发博文
byhoo123

byhoo.blog.chinaunix.net

   
个人资料
  • 博客访问:6616
  • 博文数量:30
  • 博客积分:842
  • 博客等级:准尉
  • 关注人气: 3
  • 注册时间:2009-10-03 19:11:46
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
开发板挂载U盘 (2012-02-21 21:04)
标签开发 


1、插上U盘,串口终端显示:

  1. usb 1-1: USB disconnect, address 2
  2. usb 1-1: new full speed USB device using s3c2410-ohci and address 3
  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盘,串口终端显示

  1. usb 1-1: new full speed USB device using s3c2410-ohci and address 2
  2. usb 1-1: configuration #1 chosen from 1 choice
  3. scsi0 : SCSI emulation for USB Mass Storage devices
  4. scsi 0:0:0:0: Direct-Access Teclast CoolFlash 0.00 PQ: 0 ANSI: 2
  5. sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
  6. sd 0:0:0:0: [sda] Write Protect is off
  7. sd 0:0:0:0: [sda] Assuming drive cache: write through
  8. sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
  9. sd 0:0:0:0: [sda] Write Protect is off
  10. sd 0:0:0:0: [sda] Assuming drive cache: write through
  11.  sda: unknown partition table
  12. sd 0:0:0:0: [sda] Attached SCSI removable disk

注意上面的红色部分,那是因为U盘还没有被分区,重新在linux下面分区,使用

fdisk /dev/sdb  当然了,看具体情况而定。我是按照这个网页来进行操作的,

http://linux.chinaitlab.com/safe/761824.html


5、将分区后的U盘,重新插上,显示如下信息

 

  1. usb 1-1: new full speed USB device using s3c2410-ohci and address 3
  2. usb 1-1: configuration #1 chosen from 1 choice
  3. scsi1 : SCSI emulation for USB Mass Storage devices
  4. scsi 1:0:0:0: Direct-Access Teclast CoolFlash 0.00 PQ: 0 ANSI: 2
  5. sd 1:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
  6. sd 1:0:0:0: [sda] Write Protect is off
  7. sd 1:0:0:0: [sda] Assuming drive cache: write through
  8. sd 1:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)
  9. sd 1:0:0:0: [sda] Write Protect is off
  10. sd 1:0:0:0: [sda] Assuming drive cache: write through
  11. sda: sda1
  12. sd 1:0:0:0: [sda] Attached SCSI removable disk

6、注意上面的蓝色字体,我们用

  1. mount -t vfat /dev/sda1 /mnt
得到的显示信息为:

  1. # mount -t vfat /dev/sda1 /mnt/
  2. Unable to load NLS charset cp437
  3. FAT: codepage cp437 not found
  4. 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 就可以成功挂载。

博客推荐文章
亲,您还没有登录,请[登录][注册]后再进行评论