Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4274496
  • 博文数量: 1148
  • 博客积分: 25453
  • 博客等级: 上将
  • 技术积分: 11949
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 21:14
文章分类

全部博文(1148)

文章存档

2012年(15)

2011年(1078)

2010年(58)

分类: 嵌入式

2011-04-01 15:18:25

参考资料:
       tq移植手册09年版
1.在2.6.30.4 内核中,已经支持U盘,usb鼠标键盘了,所以我们这里只需简单配置就可以了。


2.make menuconfig  设置
  1. Device Driver->
  2.     S3CI device support->
  3.     <*>SCSI device support
  4.     [*]legacy /proc/scsi/support
  5.     <*>SCSI disk support
  6.     <*>SCSI CDROM support

  7.  [*]HID Devices ->
  8.     <*> USB Human Interface Device
  9.     [*] /dev/hiddev raw HID device support
  10.  [*]USB suppport->
  11.    <*> Support for host-side usb
  12.    [*] usb device filesystem
  13.    [*] usb de vice class-device
  14.    <*> usb mass stroage support

3.测试
  1. [\u@\h \W]# 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 iT1167B USB Flash Disk 0.00 PQ: 0 ANSI: 2
  5. sd 0:0:0:0: [sda] 7892992 512-byte hardware sectors: (4.04 GB/3.76 GiB)
  6. sd 0:0:0:0: Attached scsi generic sg0 type 0
  7. sd 0:0:0:0: [sda] Write Protect is off
  8. sd 0:0:0:0: [sda] Assuming drive cache: write through
  9. sd 0:0:0:0: [sda] Assuming drive cache: write through
  10.  sda: sda1   ###注意这里
  11. sd 0:0:0:0: [sda] Attached SCSI removable disk
  12. FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case

  13. [\u@\h \W]# mount /dev/sda1 /mnt/udisk/
  14. [\u@\h \W]# ls /mnt/udisk/
  15. 5浣欏▉鍏堢殑涓汉绠鍘?doc checkDisk
  16. Raiden3闆风數3.rar ephonesetup
  17. Setup_WebClient.exe ibm
  18. YLMF_GhostXPSP3_201101_TN30.iso me
  19. berkeley new
  20. bootex.log 绠鍘?doc
  21. [\u@\h \W]# umount /mnt/udisk/
  22. [\u@\h \W]#









阅读(788) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~