|
USB鼠标的配置过程(均在LFS终端下进行):
1、进入内核,进行内核的配置:
make mrproper &&
make menuconfig &&
make dep &&
make bzImage &&
make modules &&
make modules_install &&
cp arch/i386/boot/bzImage /boot/lfskernel &&
cp System.map /boot
在配置USB过程中,没有选取USB HIDBP Mouse support,其它的均按其要求选了(注:我在每次编译内核时已经从RH中将/etc/modules.conf复制到LFS下,以便满足模块的编译要求)。
2、重新启动LFS
首先使用dmesg,结果如下:
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xe000, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xe400, IRQ 11
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
ubci.c: USB UHCI at I/O 0xe800, IRQ 11
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
...
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 132k freed
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x46d/0xc504) is not claimed by any active driver
然后执行下列命令生成鼠标节点:
mkdir /dev/input \
mknod /dev/input/mice c 13 63
3、连接鼠标
ln -s psaux /dev/input/mice
这一步有必要做吗?我不知道,试试吧?!
4,启动X,(注,XF86Config-4关于鼠标部分完全按上所述)结果如下
Parse error on line 79 of section ServerLayout in file /etc/X11/XF86Config-4
This section must have an Identifier line.
(EE) Problem parsing the config file
(EE) Error from xf86HandleConfigFile()
Fatal server error:
no screens found
在XF86-4文件上的79行是Endsection(如下示0
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "ServerLayout"
InputDevice "USB Mice" "CorePointer"
EndSection <---------------------------------------------这就是第79行
Section "Monitor"
各位请多指教!!!感激不尽 |
|