|
在DDWRT FORUM上认识了一个老外,加了他MSN,他给了我一个脚本让我重起后运行一下然后把结果发到他的邮箱里,只能明天等他查了邮件才行了。
U盘是Netac 4G 群连主控 u12-u14
没用这个脚本之前原本是都是-71的错误,从来都没认出过U盘和分区,现在可以认出U盘的制造商,分区和容量,但是最终还是报了-71错误导致无法mount
他给我的脚本是:
#!/bin/sh
(
num=0
# Making sure devices are found then stop after 15 tries
while [ $num -lt 15 ]; do
if [ -e /dev/scsi/host0/bus0/target0/lun0/part1 ]; then
echo "USB Device connected with USB 2.0 abilities"
num=15
else
#rmmod sd_mod
#rmmod usb-storage
#rmmod scsi_mod
rmmod ehci-hcd
#rmmod usbcore
sleep 2
#insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /lib/modules/2.4.36/ehci-hcd.o
#insmod /jffs/lib/modules/2.4.36/scsi_mod.o
#insmod /jffs/lib/modules/2.4.30/usb-storage.o
#insmod /jffs/lib/modules/2.4.30/sd_mod.o
echo "Tried $num times, will exit after 15 is reached"
let num=num+1
sleep 2
fi
done
) > /tmp/usb.log 2>&1
运行他的脚本usb.log内容是:
Tried 0 times, will exit after 15 is reached
USB Device connected with USB 2.0 abilities
dmesg信息是:
ehci_hcd 00:02.1: remove state 1
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 2 deregistered
hub.c: new USB device 00:02.0-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Netac Model: OnlyDisk Rev: PMAP
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 7827456 512-byte hdwr sectors (4008 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
ehci_hcd 00:02.1: PCI device 14e4:471a
ehci_hcd 00:02.1: irq 3, pci mem b8002800
usb.c: new USB bus registered, assigned bus number 2
ehci_hcd 00:02.1: illegal capability!
ehci_hcd 00:02.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: USB disconnect on device 00:02.0-1 address 2
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)
[ 本帖最后由 pdckxd 于 2009-1-8 20:15 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|