Linux2.6.34下 USB驱动(U盘\USB鼠标、键盘)
由于Linux中对USB的驱动已经非常完善,这里只需要按照以下配置 就可以了,配置完后重新编译内核烧到开发板上
1、修改make menuconfig
System Type -->
<*> S3C2410 USB function support
Input core support --><*> support for S3C2410 USB character device emulation
<*>Input core support
<*>keyboard support
<*>Mouse support
SCSI device support --->
< > RAID Transport Class
<*> SCSI device support
< > SCSI target support
[*] legacy /proc/scsi/ support
*** SCSI support type (disk, tape,CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tapesupport
< > SCSI CDROM support
<*> SCSI generic support
< > SCSI media changer support
[*] HID Devices --->
--- HID Devices
-*- Generic HID support
[ ] /dev/hidraw raw HID device support
*** USB Input Devices ***
<*> USB Human Interface Device(full HID) support
[ ] PID device support
[*] /dev/hiddev raw HID device support
[*] USB support --->
{*} Support for Host-side USB
[ ] USB verbose debug messages
[ ] USB announce new devices
*** Miscellaneous USB options ***
[*] USB device filesystem
[*] USB device class-devices (DEPRECATED)
<*> OHCI HCD support
<*> USB Mass Storage support
--- USB Human Interface Devices(HID)
<*> USB Human Interface Devices(full HID) support
[*] /dev/hiddev raw HID device support(EXPERIMENTAL)
2、插入U盘。
当系统启动后插入U盘就会出现一些信息,可以看到sda就是U盘设备了,sda1是U盘的一个分区。
mount /dev/sda1 /mnt/ -o utf8
utf8 参数可以识别中文
3、插入鼠标键盘
会有相应提示
更多推荐
所有评论(0)