도와주세요!!
글 수 15,339
2002.10.30 09:46:38 (*.226.144.34)
6666
답변을 해주시는 분들께 죄송한 말씀 드립니다.
워낙 경황이 없던 터에 질문을 올리느라 소홀했던점 죄송합니다.
앞으로도 많은 조언을 부탁드리겠습니다.
제가 사용하고 있는 PC는
MainBoard : (메인보드 제품 설명서 입니다)
http://www.advantech.co.kr/client/charge/search_view_detail1.asp?
arti_index=248&mid_class_seq=6&sma_class_seq=28&page=1
O/S : Debian Woody
아래는 제가 설정한 config 파일입니다.
이부분은 강좌에 나와 있는 것과 일치하는 부분입니다.
####################################################################
# Microwindows and Nano-X configuration file
#
# This package can be configured to run on Linux (MIPS, ARM, POWERPC
or x86)
# UNIX, ELKS, DJGPP, or RTEMS.
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
# svgalib for VGA hardware.
# In addition, a gpm or direct serial mouse driver can be configured.
# On ELKS, the bios screen driver and serial mouse driver are always
used.
#
# Either Microwindows and/or Nano-X can be built.
# Microwindows and Nano-X have several demos.
#
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
####################################################################
####################################################################
#
# build target platform
#
# Valid ARCH values are:
#
# LINUX-NATIVE
# LINUX-ARM
# LINUX-MIPS
# LINUX-POWERPC
# LINUX-SH
# FREEBSD-X86
# SOLARIS
# RTEMS
# DJGPP
# ELKS
#
# note: ELKS can't build client/server nano-X, nor widget lib
#
####################################################################
ARCH = LINUX-NATIVE
ARMTOOLSPREFIX = arm-linux-
MIPSTOOLSPREFIX = mipsel-linux-
POWERPCTOOLSPREFIX = powerpc-linux-
SHTOOLSPREFIX = sh-linux-gnu
RTEMSTOOLSPREFIX = i386-rtemself-
####################################################################
#
# Compiling options
#
####################################################################
OPTIMIZE = Y
DEBUG = Y
VERBOSE = Y
####################################################################
#
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
#
####################################################################
MICROWIN = Y
NANOX = N
SHAREDLIBS = N
OBJFRAMEWORK = N
####################################################################
#
# Demos to build
#
####################################################################
MICROWINDEMO = Y
NANOXDEMO = N
####################################################################
#
# Applications to build
#
####################################################################
NANOWM = N
####################################################################
#
# The pixeltype of the native hardware or underlying graphics library.
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use
fbset.
# It also enables GdArea/GrArea for this particular pixel packing
format.
#
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal
index*/
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8
truecolor*/
# define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8
truecolor*/
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5
truecolor*/
# define MWPF_TRUECOLOR555 /* pixel is packed 16 bits 5/5/5
truecolor*/
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2
truecolor*/
#
####################################################################
SCREEN_PIXTYPE = MWPF_TRUECOLOR565
####################################################################
#
# NanoX: Put Y to the following line to link the nano-X application
# with the server. This is required for ELKS, if no network is
present,
# or for speed or debugging. This affects the nano-X server only.
#
####################################################################
LINK_APP_INTO_SERVER = N
####################################################################
#
# File I/O support
# Supporting either below drags in libc stdio, which may not be wanted
#
####################################################################
HAVE_FILEIO = N
####################################################################
# BMP, GIF reading support
####################################################################
HAVE_BMP_SUPPORT = Y
HAVE_GIF_SUPPORT = Y
HAVE_PNM_SUPPORT = N
HAVE_XPM_SUPPORT = N
####################################################################
# JPEG support through libjpeg, see README.txt in contrib/jpeg
####################################################################
HAVE_JPEG_SUPPORT = N
INCJPEG = .
LIBJPEG = /usr/lib/libjpeg.a
####################################################################
# PNG support via libpng and libz
####################################################################
HAVE_PNG_SUPPORT = N
INCPNG = .
LIBPNG = /usr/lib/libpng.a
LIBZ = /usr/lib/libz.a
####################################################################
# T1 adobe type1 font support thru t1lib
####################################################################
HAVE_T1LIB_SUPPORT = N
INCT1LIB = /usr/include
LIBT1LIB = /usr/lib/libt1.a
####################################################################
# TrueType font support thru FreeType
####################################################################
HAVE_FREETYPE_SUPPORT = N
INCFTLIB = /usr/include
LIBFTLIB = /usr/lib/libttf.so
FREETYPE_FONT_DIR = "/usr/local/microwin/fonts"
####################################################################
# Shared memory support for Nano-X client/server protocol speedup
####################################################################
HAVE_SHAREDMEM_SUPPORT = N
####################################################################
# Chinese Han Zi Ku font support
####################################################################
HAVE_HZK_SUPPORT = N
HZK_FONT_DIR = "fonts/chinese"
####################################################################
# Chinese BIG5 compiled in font support (big5font.c)
####################################################################
HAVE_BIG5_SUPPORT = N
####################################################################
# Chinese GB2312 compiled in font support (gb2312font.c)
####################################################################
HAVE_GB2312_SUPPORT = N
####################################################################
# Korean HANGUL font support (jo16x16.c)
####################################################################
HAVE_KSC5601_SUPPORT = N
HANGUL_FONT_DIR = "fonts/korean"
####################################################################
# Generate screen driver interface only with no fonts or clipping
####################################################################
NOFONTSORCLIPPING = N
####################################################################
#
# Window move algorithms for Microwindows
# Change for tradeoff between cpu speed and looks
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
# Otherwise an XOR redraw is used for window moves only after button
up,
# quickest (should set for ELKS)
# UPDATEREGIONS paints in update clipping region only for better look
and feel
#
####################################################################
ERASEMOVE = Y
UPDATEREGIONS = Y
####################################################################
#
# Use MS fonts (default no)
#
####################################################################
HAVEMSFONTS = N
####################################################################
#
# Link with Gray Palette (valid only for 4bpp modes)
#
####################################################################
GRAYPALETTE = N
####################################################################
#
# If the platform is running UNIX, Linux or RTEMS...
#
####################################################################
ifneq ($(ARCH), ELKS)
# X Window screen, mouse and kbd drivers
X11 = Y
ifeq ($(X11), Y)
# predefined model or select screen width, height, depth(palette mode
only)
SCREEN_E15 =
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
SCREEN_DEPTH = 16
# You may want to turn this on for XFree86 4.x or if your backing
store
# isn't functioning properly
USE_EXPOSURE = Y
else
# framebuffer screen driver (linear and/or vga 4 planes)
# set VTSWITCH to include virtual terminal switch code
# set FBREVERSE to reverse bit orders in 1,2,4 bpp
FRAMEBUFFER = N
FBVGA = N
VTSWITCH = Y
FBREVERSE = N
# svgalib screen driver
VGALIB = N
# direct VGA hardware access screen driver
HWVGA = N
####################################################################
# Mouse or touch screen driver
# TPMOUSE for Linux-VR and Embedded Planet
# TPHELIO for VTech Helio
# ADSMOUSE for ADS Graphics Client
# IPAQMOUSE for Compaq iPAQ,Intel Assabet, ARM ucb1200 (/dev/h3600_ts
11,0)
# HARRIERMOUSE for NEC Harrier
# PSIONMOUSE for the Psion 5
# MTMOUSE for Microtouch touchpanel controller at RS232 port
####################################################################
GPMMOUSE = Y
SERMOUSE = N
TPMOUSE = N
TPHELIO = N
ADSMOUSE = N
IPAQMOUSE = N
HARRIERMOUSE = N
PSIONMOUSE = N
MTMOUSE = N
NOMOUSE = N
# keyboard or null kbd driver
TTYKBD = N
SCANKBD = Y
PIPEKBD = N
NOKBD = N
endif
####################################################################
# Screen driver specific configuration
# SA1100_LCD_LTLEND 4bpp driver with arm SA1100 LCD controller
# INVERT4BPP 4bpp inverted pixel driver for VTech Helio
####################################################################
SA1100_LCD_LTLEND = N
INVERT4BPP = N
####################################################################
#
# If the platform is a RTEMS box ....
#
####################################################################
ifeq ($(ARCH), RTEMS)
# Location & BSP information of the RTEMS build
RTEMS_BUILD = /tools/build-i386-elf-rtems
RTEMS_BSP = pc386
LINK_APP_INTO_SERVER = Y
endif
endif
####################################################################
#
# If the platform is an ELKS box ...
#
####################################################################
ifeq ($(ARCH), ELKS)
# Higher speed asm driver, c driver of hercules screen driver
ASMVGADRIVER = Y
CVGADRIVER = N
HERCDRIVER = N
DBGDRIVER = N
# Mouse support
SERMOUSE = Y
endif
#####################################################################
config 파일을 수정한후에
make clean; make 를 했습니다.
bin 디렉토리에 생성된 데모파일들(./mdemo, ./mtest 등등)을 실행 해 보면
"Cannot initialise keyboard"
"Cannot initialise screen"
이라는 메세지와 함께 프로그램이 종료 됩니다.
키보드에 관련한 문제는 리터문을 주석처리 하여 일단 넘겼지만
이부분도 정확히 아시는 분이 있으시면 답변주시면 감사하겠습니다.
메인보드에 PS/2 포트는 하나가 있습니다.
기본적으로 /dev/ttyS0 로 동작하는 COM1포트가
현재 시스템에서는 /dev/ttyS1으로 동작합니다.
그럼 다시조언 부탁드리겠습니다. 혹시 부족한점 있으시더라도
너그러히 이해해주시고 필요한 사항을 적어주시면 감사하겠습니다.
누군가 적어놓은 글중에 이런말이 있더군요
"비록 지금은 모자라지만 나중에는 필요한 사람이 되도록 도와 주십시요"
라구요. 제가 꼭 하고 싶은 말입니다..그럼..(--)(__)
워낙 경황이 없던 터에 질문을 올리느라 소홀했던점 죄송합니다.
앞으로도 많은 조언을 부탁드리겠습니다.
제가 사용하고 있는 PC는
MainBoard : (메인보드 제품 설명서 입니다)
http://www.advantech.co.kr/client/charge/search_view_detail1.asp?
arti_index=248&mid_class_seq=6&sma_class_seq=28&page=1
O/S : Debian Woody
아래는 제가 설정한 config 파일입니다.
이부분은 강좌에 나와 있는 것과 일치하는 부분입니다.
####################################################################
# Microwindows and Nano-X configuration file
#
# This package can be configured to run on Linux (MIPS, ARM, POWERPC
or x86)
# UNIX, ELKS, DJGPP, or RTEMS.
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
# svgalib for VGA hardware.
# In addition, a gpm or direct serial mouse driver can be configured.
# On ELKS, the bios screen driver and serial mouse driver are always
used.
#
# Either Microwindows and/or Nano-X can be built.
# Microwindows and Nano-X have several demos.
#
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
####################################################################
####################################################################
#
# build target platform
#
# Valid ARCH values are:
#
# LINUX-NATIVE
# LINUX-ARM
# LINUX-MIPS
# LINUX-POWERPC
# LINUX-SH
# FREEBSD-X86
# SOLARIS
# RTEMS
# DJGPP
# ELKS
#
# note: ELKS can't build client/server nano-X, nor widget lib
#
####################################################################
ARCH = LINUX-NATIVE
ARMTOOLSPREFIX = arm-linux-
MIPSTOOLSPREFIX = mipsel-linux-
POWERPCTOOLSPREFIX = powerpc-linux-
SHTOOLSPREFIX = sh-linux-gnu
RTEMSTOOLSPREFIX = i386-rtemself-
####################################################################
#
# Compiling options
#
####################################################################
OPTIMIZE = Y
DEBUG = Y
VERBOSE = Y
####################################################################
#
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
#
####################################################################
MICROWIN = Y
NANOX = N
SHAREDLIBS = N
OBJFRAMEWORK = N
####################################################################
#
# Demos to build
#
####################################################################
MICROWINDEMO = Y
NANOXDEMO = N
####################################################################
#
# Applications to build
#
####################################################################
NANOWM = N
####################################################################
#
# The pixeltype of the native hardware or underlying graphics library.
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use
fbset.
# It also enables GdArea/GrArea for this particular pixel packing
format.
#
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal
index*/
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8
truecolor*/
# define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8
truecolor*/
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5
truecolor*/
# define MWPF_TRUECOLOR555 /* pixel is packed 16 bits 5/5/5
truecolor*/
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2
truecolor*/
#
####################################################################
SCREEN_PIXTYPE = MWPF_TRUECOLOR565
####################################################################
#
# NanoX: Put Y to the following line to link the nano-X application
# with the server. This is required for ELKS, if no network is
present,
# or for speed or debugging. This affects the nano-X server only.
#
####################################################################
LINK_APP_INTO_SERVER = N
####################################################################
#
# File I/O support
# Supporting either below drags in libc stdio, which may not be wanted
#
####################################################################
HAVE_FILEIO = N
####################################################################
# BMP, GIF reading support
####################################################################
HAVE_BMP_SUPPORT = Y
HAVE_GIF_SUPPORT = Y
HAVE_PNM_SUPPORT = N
HAVE_XPM_SUPPORT = N
####################################################################
# JPEG support through libjpeg, see README.txt in contrib/jpeg
####################################################################
HAVE_JPEG_SUPPORT = N
INCJPEG = .
LIBJPEG = /usr/lib/libjpeg.a
####################################################################
# PNG support via libpng and libz
####################################################################
HAVE_PNG_SUPPORT = N
INCPNG = .
LIBPNG = /usr/lib/libpng.a
LIBZ = /usr/lib/libz.a
####################################################################
# T1 adobe type1 font support thru t1lib
####################################################################
HAVE_T1LIB_SUPPORT = N
INCT1LIB = /usr/include
LIBT1LIB = /usr/lib/libt1.a
####################################################################
# TrueType font support thru FreeType
####################################################################
HAVE_FREETYPE_SUPPORT = N
INCFTLIB = /usr/include
LIBFTLIB = /usr/lib/libttf.so
FREETYPE_FONT_DIR = "/usr/local/microwin/fonts"
####################################################################
# Shared memory support for Nano-X client/server protocol speedup
####################################################################
HAVE_SHAREDMEM_SUPPORT = N
####################################################################
# Chinese Han Zi Ku font support
####################################################################
HAVE_HZK_SUPPORT = N
HZK_FONT_DIR = "fonts/chinese"
####################################################################
# Chinese BIG5 compiled in font support (big5font.c)
####################################################################
HAVE_BIG5_SUPPORT = N
####################################################################
# Chinese GB2312 compiled in font support (gb2312font.c)
####################################################################
HAVE_GB2312_SUPPORT = N
####################################################################
# Korean HANGUL font support (jo16x16.c)
####################################################################
HAVE_KSC5601_SUPPORT = N
HANGUL_FONT_DIR = "fonts/korean"
####################################################################
# Generate screen driver interface only with no fonts or clipping
####################################################################
NOFONTSORCLIPPING = N
####################################################################
#
# Window move algorithms for Microwindows
# Change for tradeoff between cpu speed and looks
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
# Otherwise an XOR redraw is used for window moves only after button
up,
# quickest (should set for ELKS)
# UPDATEREGIONS paints in update clipping region only for better look
and feel
#
####################################################################
ERASEMOVE = Y
UPDATEREGIONS = Y
####################################################################
#
# Use MS fonts (default no)
#
####################################################################
HAVEMSFONTS = N
####################################################################
#
# Link with Gray Palette (valid only for 4bpp modes)
#
####################################################################
GRAYPALETTE = N
####################################################################
#
# If the platform is running UNIX, Linux or RTEMS...
#
####################################################################
ifneq ($(ARCH), ELKS)
# X Window screen, mouse and kbd drivers
X11 = Y
ifeq ($(X11), Y)
# predefined model or select screen width, height, depth(palette mode
only)
SCREEN_E15 =
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
SCREEN_DEPTH = 16
# You may want to turn this on for XFree86 4.x or if your backing
store
# isn't functioning properly
USE_EXPOSURE = Y
else
# framebuffer screen driver (linear and/or vga 4 planes)
# set VTSWITCH to include virtual terminal switch code
# set FBREVERSE to reverse bit orders in 1,2,4 bpp
FRAMEBUFFER = N
FBVGA = N
VTSWITCH = Y
FBREVERSE = N
# svgalib screen driver
VGALIB = N
# direct VGA hardware access screen driver
HWVGA = N
####################################################################
# Mouse or touch screen driver
# TPMOUSE for Linux-VR and Embedded Planet
# TPHELIO for VTech Helio
# ADSMOUSE for ADS Graphics Client
# IPAQMOUSE for Compaq iPAQ,Intel Assabet, ARM ucb1200 (/dev/h3600_ts
11,0)
# HARRIERMOUSE for NEC Harrier
# PSIONMOUSE for the Psion 5
# MTMOUSE for Microtouch touchpanel controller at RS232 port
####################################################################
GPMMOUSE = Y
SERMOUSE = N
TPMOUSE = N
TPHELIO = N
ADSMOUSE = N
IPAQMOUSE = N
HARRIERMOUSE = N
PSIONMOUSE = N
MTMOUSE = N
NOMOUSE = N
# keyboard or null kbd driver
TTYKBD = N
SCANKBD = Y
PIPEKBD = N
NOKBD = N
endif
####################################################################
# Screen driver specific configuration
# SA1100_LCD_LTLEND 4bpp driver with arm SA1100 LCD controller
# INVERT4BPP 4bpp inverted pixel driver for VTech Helio
####################################################################
SA1100_LCD_LTLEND = N
INVERT4BPP = N
####################################################################
#
# If the platform is a RTEMS box ....
#
####################################################################
ifeq ($(ARCH), RTEMS)
# Location & BSP information of the RTEMS build
RTEMS_BUILD = /tools/build-i386-elf-rtems
RTEMS_BSP = pc386
LINK_APP_INTO_SERVER = Y
endif
endif
####################################################################
#
# If the platform is an ELKS box ...
#
####################################################################
ifeq ($(ARCH), ELKS)
# Higher speed asm driver, c driver of hercules screen driver
ASMVGADRIVER = Y
CVGADRIVER = N
HERCDRIVER = N
DBGDRIVER = N
# Mouse support
SERMOUSE = Y
endif
#####################################################################
config 파일을 수정한후에
make clean; make 를 했습니다.
bin 디렉토리에 생성된 데모파일들(./mdemo, ./mtest 등등)을 실행 해 보면
"Cannot initialise keyboard"
"Cannot initialise screen"
이라는 메세지와 함께 프로그램이 종료 됩니다.
키보드에 관련한 문제는 리터문을 주석처리 하여 일단 넘겼지만
이부분도 정확히 아시는 분이 있으시면 답변주시면 감사하겠습니다.
메인보드에 PS/2 포트는 하나가 있습니다.
기본적으로 /dev/ttyS0 로 동작하는 COM1포트가
현재 시스템에서는 /dev/ttyS1으로 동작합니다.
그럼 다시조언 부탁드리겠습니다. 혹시 부족한점 있으시더라도
너그러히 이해해주시고 필요한 사항을 적어주시면 감사하겠습니다.
누군가 적어놓은 글중에 이런말이 있더군요
"비록 지금은 모자라지만 나중에는 필요한 사람이 되도록 도와 주십시요"
라구요. 제가 꼭 하고 싶은 말입니다..그럼..(--)(__)