OK2440开发板 ------linux-2.6.12内核配置支持U盘,SD卡
配置内核1.配置usb hostDevice Drivers ---> SCSI device support ---> SCSI disk support USB support ---> Support for Host-side USB
·
配置内核
1.配置usb host
SCSI device support --->
<*> SCSI disk support
USB support --->
<*> Support for Host-side USB
[*] USB verbose debug messages
--- Miscellaneous USB options
[ ] USB device filesystem
[ ] Enforce USB bandwidth allocation (EXPERIMENTAL)
[ ] Dynamic USB minor allocation (EXPERIMENTAL)
--- USB Host Controller Drivers
<*> EHCI HCD (USB 2.0) support
[ ] Full speed ISO transactions (EXPERIMENTAL)
[ ] Root Hub Transaction Translators (EXPERIMENTAL)
<*> Intel ixp435/ixp465 on-chip EHCI HCD support
< > ISP116X HCD support
< > OHCI HCD support
< > UHCI HCD (most Intel and VIA) support
< > SL811HS HCD support
--- USB Device Class drivers
< > USB Modem (CDC ACM) support
< > USB Printer support
--- NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
--- may also be needed; see USB_STORAGE Help for more information
<*> USB Mass Storage support
[*] USB Mass Storage verbose debug
2 配置SD卡
<*> MMC support
[*] MMC debugging
<*> MMC block device driver
3.配置usb和sd卡支持的文件系统(一般usb都以vfat格式,所以此处选择支持vfat)
DOS/FAT/NT Filesystems --->
<*> MSDOS fs support
<*> VFAT (Windows-95) fs support
(437) Default codepage for FAT
(iso8859-1) Default iocharset for FAT
<*> NTFS file system support
[ ] NTFS debugging support
[*] NTFS write support
4 重新编译内核,
make zImage
5 烧写新内核到开发板,用DNW的USB下载
6.重启开发板,进入文件系统后,在/dev下面建立两个设备节点:
mknod /dev/sda1 b 8 1 (sd)
在我的系统linux-2.6.12,u盘被识别为/dev/sda1,然后使用命令mount /dev/sda1 /mnt 挂载,
cd /mnt
ls -l
就会看到你U盘里的所有文件
更多推荐
已为社区贡献2条内容
所有评论(0)