天嵌 ARM开发社区

 找回密码
 注册
查看: 3301|回复: 15

测试USB移动存储设备实验室出现的问题

[复制链接]
512380241 发表于 2010-11-7 12:04:20 | 显示全部楼层 |阅读模式
插入USB显示如下;
[root@EmbedSky /dev]# lsusb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=1221, idProduct=3234
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HYUNDAI
usb 1-1: Manufacturer: USB2.
usb 1-1: SerialNumber: 0000024150000574
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     USB2.0   HYUNDAI          2.10 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4114506 512-byte hardware sectors: (2.10 GB/1.96 GiB)
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] Assuming drive cache: write through
sda:
sd 0:0:0:0: [sda] Attached SCSI removable disk
 楼主| 512380241 发表于 2010-11-8 09:20:46 | 显示全部楼层
求救版主,高手来帮忙啊!
天嵌_support1 发表于 2010-11-8 10:26:58 | 显示全部楼层
2# 512380241


你的/dev  目录下看到了 sda 这个设备了么?
 楼主| 512380241 发表于 2010-11-8 12:43:29 | 显示全部楼层
3# embedsky_lxt


我在/dev 下面没有看sda啊
[root@EmbedSky /dev]# ls
GPIO-Control        ptmx                tty38
PWM-Test            pts                 tty39
adc                 random              tty4
audio               root                tty40
backlight           rtc0                tty41
camera              timer               tty42
console             tq2440_serial0      tty43
controlC0           tq2440_serial1      tty44
cpu_dma_latency     tq2440_serial2      tty45
dsp                 tty                 tty46
event0              tty0                tty47
fb                  tty1                tty48
fb0                 tty10               tty49
full                tty11               tty5
h3600_tsraw         tty12               tty50
i2c-0               tty13               tty51
kmsg                tty14               tty52
loop0               tty15               tty53
loop1               tty16               tty54
loop2               tty17               tty55
loop3               tty18               tty56
loop4               tty19               tty57
loop5               tty2                tty58
loop6               tty20               tty59
loop7               tty21               tty6
mem                 tty22               tty60
mice                tty23               tty61
mixer               tty24               tty62
mtd0                tty25               tty63
mtd0ro              tty26               tty7
mtd1                tty27               tty8
mtd1ro              tty28               tty9
mtd2                tty29               urandom
mtd2ro              tty3                usbdev1.1_ep00
mtdblock0           tty30               usbdev1.1_ep81
mtdblock1           tty31               v4l
mtdblock2           tty32               vcs
network_latency     tty33               vcs1
network_throughput  tty34               vcsa
null                tty35               vcsa1
pcmC0D0c            tty36               watchdog
pcmC0D0p            tty37               zero
天嵌_support1 发表于 2010-11-8 12:48:47 | 显示全部楼层
4# 512380241

你的U盘已经加载了啊。我刚刚测试是可以的。你自己弄的内核?
[root@EmbedSky /]# usb 1-1: new full speed USB device using s3c2410-ohci and address 2                             
usb 1-1: New USB device found, idVendor=0204, idProduct=6025                                                      
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                                  
usb 1-1: Product: Flash Disk                                                                                       
usb 1-1: Manufacturer: CBM                                                                                         
usb 1-1: SerialNumber: 241959011E614B00                                                                           
usb 1-1: configuration #1 chosen from 1 choice                                                                     
scsi0 : SCSI emulation for USB Mass Storage devices                                                               
scsi 0:0:0:0: Direct-Access     CBM      Flash Disk       5.00 PQ: 0 ANSI: 2                                       
sd 0:0:0:0: [sda] 4114432 512-byte hardware sectors: (2.10 GB/1.96 GiB)                                            
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] Assuming drive cache: write through                                                              
sda: sda1                                                                                                         
sd 0:0:0:0: [sda] Attached SCSI removable disk                                                
[root@EmbedSky /]# ls -la /dev/sda                                                                                 
brw-rw----    1 root     root        8,   0 Jan  1 00:09 /dev/sda                                                  
[root@EmbedSky /]#
 楼主| 512380241 发表于 2010-11-8 13:29:18 | 显示全部楼层
是,我重新操作了一下在/dev 目录下有sda了,可是打不开啊,我从哪里看我U盘里的内容啊!
天嵌_support1 发表于 2010-11-8 14:07:38 | 显示全部楼层
6# 512380241


看看手册嘛, 在 /udisk 目录下
ls -la udisk/
 楼主| 512380241 发表于 2010-11-8 16:02:44 | 显示全部楼层
7# embedsky_lxt


谢谢版主了,前面太粗心了,受教了,下次虚心看手册!
 楼主| 512380241 发表于 2010-11-8 16:20:09 | 显示全部楼层
7# embedsky_lxt


我看了版主,可是我的ls -la /mnt/udisk目录下不是我U盘的内容啊。
[root@EmbedSky udisk]# ls -la /mnt/udisk/
drwxr-xr-x    1 root     root         2048 Mar 18  2009 .
drwxr-xr-x    1 root     root         2048 Mar 18  2009 ..
实际上我U盘里是两首歌曲。这个问题怎么解决呢?
 楼主| 512380241 发表于 2010-11-9 09:16:45 | 显示全部楼层
版主再帮我看看啊!!!!!
天嵌_support1 发表于 2010-11-9 12:03:29 | 显示全部楼层
9# 512380241


看看 /udisk 这个目录,不是 /mnt/udisk 这个
 楼主| 512380241 发表于 2010-11-9 12:14:31 | 显示全部楼层
11# embedsky_lxt


usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=1221, idProduct=3234
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HYUNDAI
usb 1-1: Manufacturer: USB2.
usb 1-1: SerialNumber: 0000024150000574
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 180K

scsi 0:0:0:0: Direct-Access     USB2.0   HYUNDAI          2.10 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4114506 512-byte hardware sectors: (2.10 GB/1.96 GiB)
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] Assuming drive cache: write through
sda:
sd 0:0:0:0: [sda] Attached SCSI removable disk
usbcore: registered new interface driver rt73usb
usbcore: registered new interface driver zd1211rw
initializing s3c2440 camera interface......
s3c2440 camif init done
Loading OV9650 driver.........
OV9650 address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
OV9650 address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
No OV9650 found!!!
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 10:23:45:67:89:ab
eth0: link down
ifconfig eth0 192.168.1.6 netmask 255.255.255.0 up
add default gw 192.168.1.2
Done
[09/Nov/2010:04:01:52 +0000] Start Qtopia-2.2.0
boa: server version Boa/0.94.13
[09/Nov/2010:04:01:52 +0000] boa: server built Jul 29 2009 at 14:27:34.
[09/Nov/2010:04:01:52 +0000] boa: starting server pid=496, port 80

Please press Enter to activate this console. [root@EmbedSky /]#
[root@EmbedSky /]# ls -la /udisk
ls: /udisk: No such file or directory
这是我开机时候的一段页面,我看是显示挂在上U盘了 可是没有 /udisk/ 这个文件夹啊!
天嵌_support1 发表于 2010-11-9 12:42:17 | 显示全部楼层
12# 512380241


郁闷了,一个U盘的挂载怎么会那么繁琐,1562107786, 我看看吧
 楼主| 512380241 发表于 2010-11-9 13:12:43 | 显示全部楼层
13# embedsky_lxt


呜呜,我也不知道怎么回事啊,换了个U盘 竟然在ls /mnt/udisk 发现内容了。 是不是发现的最少的要是文件夹形式啊,不能直接是两个歌曲吧。呵呵,麻烦版主了啊!
 楼主| 512380241 发表于 2010-11-9 14:04:13 | 显示全部楼层
我知道我U盘的问题了,得手动挂载 mount  /dev/sda  /mnt/disk 才能看见U盘里的内容。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 20:20 , Processed in 1.039102 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表