1、插上U盘,串口终端显示:
- usb 1-1: USB disconnect, address 2
-
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
-
usb 1-1: configuration #1 chosen from 1 choice
2、fdisk -l
没有任何输出,有可能是U盘的驱动没有安装上
3、配置内核的USB部分
-> Device Drivers
-> USB support
<*> USB Mass Storage support
-> Device Drivers
<*> SCSI device support
配置好以后,make ,重新做好 uImage,替换原来的内核
4、用替换的内核,完全启动后,插入U盘,串口终端显示
- usb 1-1: new full speed USB device using s3c2410-ohci and address 2
-
usb 1-1: configuration #1 chosen from 1 choice
-
scsi0 : SCSI emulation for USB Mass Storage devices
-
scsi 0:0:0:0: Direct-Access Teclast CoolFlash 0.00 PQ: 0 ANSI: 2
-
sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
-
sd 0:0:0:0: [sda] Write Protect is off
-
sd 0:0:0:0: [sda] Assuming drive cache: write through
-
sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
-
sd 0:0:0:0: [sda] Write Protect is off
-
sd 0:0:0:0: [sda] Assuming drive cache: write through
-
sda: unknown partition table
-
sd 0:0:0:0: [sda] Attached SCSI removable disk
注意上面的红色部分,那是因为U盘还没有被分区,重新在linux下面分区,使用
fdisk /dev/sdb 当然了,看具体情况而定。我是按照这个网页来进行操作的,
5、将分区后的U盘,重新插上,显示如下信息
- usb 1-1: new full speed USB device using s3c2410-ohci and address 3
-
usb 1-1: configuration #1 chosen from 1 choice
-
scsi1 : SCSI emulation for USB Mass Storage devices
-
scsi 1:0:0:0: Direct-Access Teclast CoolFlash 0.00 PQ: 0 ANSI: 2
-
sd 1:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
-
sd 1:0:0:0: [sda] Write Protect is off
-
sd 1:0:0:0: [sda] Assuming drive cache: write through
-
sd 1:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
-
sd 1:0:0:0: [sda] Write Protect is off
-
sd 1:0:0:0: [sda] Assuming drive cache: write through
-
sda: sda1
-
sd 1:0:0:0: [sda] Attached SCSI removable disk
6、注意上面的蓝色字体,我们用
- mount -t vfat /dev/sda1 /mnt
得到的显示信息为:- # mount -t vfat /dev/sda1 /mnt/
-
Unable to load NLS charset cp437
-
FAT: codepage cp437 not found
-
mount: mounting /dev/sda1 on /mnt/ failed: Invalid argument
7、重新配置内核
File systems
-> Native language support
<*> Codepage 437 (United States, Canada)
File systems
-> Native language support
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)
8、重新 make,将重新做好的uImage 替换原来的内核
mount -t vfat /dev/sda1 /mnt 就可以成功挂载。
阅读(6793) | 评论(0) | 转发(0) |