Chinaunix首页 | 论坛 | 博客
  • 博客访问: 138266
  • 博文数量: 30
  • 博客积分: 887
  • 博客等级: 准尉
  • 技术积分: 342
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-03 19:11
文章分类

全部博文(30)

文章存档

2012年(19)

2011年(1)

2010年(6)

2009年(4)

我的朋友

分类: 嵌入式

2012-02-21 21:04:05

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  当然了,看具体情况而定。我是按照这个网页来进行操作的,


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 就可以成功挂载。

阅读(6695) | 评论(0) | 转发(0) |
0

上一篇:Madplay移植-MINI2440

下一篇:linux移植LCD驱动

给主人留下些什么吧!~~