嵌入式Linux之我行,主要讲述和总结了本人在学习嵌入式linux中的每个步骤。一为总结经验,二希望能给想入门嵌入式Linux的朋友提供方便。如有错误之处,谢请指正。
一、移植环境
- 主 机:VMWare--Fedora 9
- 开发板:Mini2440--64MB Nand
- 编译器:arm-linux-gcc-4.3.2
二、移植步骤
1. 配置内核对USB设备的支持。2.6.30.4内核中对USB设备的支持已经非常全面了,这里只需要配置他就可以了,配置完后重新编译内核烧到开发板上
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 tape support < > SCSI CDROM support <*> SCSI generic support < > SCSI media changer support [*] HID Devices ---> --- HID Devices -*- Generic HID support [ ] HID debugging 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
|
2. 插入U盘。当系统启动后插入U盘就会出现一些信息,可以看到sda就是U盘设备了,sda1是U盘的一个分区
3. 挂载U盘。执行mount命令将U盘挂载到/mnt/usb/目录下,但是没成功,出错啦
3. 错误分析处理。首先查看/dev/目录下并没有sda1节点所以出错,我们查看/proc/partitions/目录发现sda1的主设备号是8,次设备号是1,那么我们就创建这个设备的节点,b代表块设备,最后再执行mount命令,没有出错
4. U盘成功挂载。查看U盘中的内容
阅读(314) | 评论(0) | 转发(0) |