Modify

Opened 9 years ago

Closed 8 years ago

Last modified 21 months ago

#2480 closed defect (fixed)

[adm5120] BR-6104KP USB support

Reported by: magika Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version:
Keywords: adm5120 USB Cc:

Description

problems with usb devices, here usb flash:

trunk, r9146, br-6104kp profile, xmodem image

usb 1-1: new full speed USB device using adm5120-hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Crossfire 2.01 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4012472 512-byte hardware sectors (2054 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 4012472 512-byte hardware sectors (2054 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda:<3>adm5120-hcd adm5120-hcd.0: Babble Detected
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
 unable to read partition table
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete

root@OpenWrt:/# dd if=/dev/sda of=/dev/null bs=10240 count=10240
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
usb 1-1: reset full speed USB device using adm5120-hcd and address 2
...

Attachments (0)

Change History (12)

comment:1 Changed 8 years ago by juhosg

  • Keywords adm5120 USB added
  • Milestone set to Kamikaze
  • Owner changed from developers to juhosg
  • Priority changed from high to normal
  • Status changed from new to assigned

comment:2 Changed 8 years ago by juhosg

The USB driver is experimental and has lots of problems.

comment:3 follow-up: Changed 8 years ago by petr.stetina@…

What about to merge midge (http://midge.vlad.org.ua/wiki) and yours firmware. It has some limitations but does work. At least mass storage driver.

comment:4 in reply to: ↑ 3 Changed 8 years ago by juhosg

Replying to petr.stetina@braien.com:

What about to merge midge (http://midge.vlad.org.ua/wiki) and yours firmware. It has some limitations but does work. At least mass storage driver.

WIP

comment:5 Changed 8 years ago by petr.stetina@…

Nice.

comment:6 in reply to: ↑ description Changed 8 years ago by magika

r9513:

SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
admhc-hcd: ADMtek USB 1.1 Host Controller Driver v0.03
admhc-hcd: block sizes: ed 80 td 32
adm5120-hcd adm5120-hcd.0: ADM5120 built-in USB 1.1 Host Controller
adm5120-hcd adm5120-hcd.0: new USB bus registered, assigned bus number 1
adm5120-hcd adm5120-hcd.0: irq 11, io mem 0x11200000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new full speed USB device using adm5120-hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Crossfire 2.01 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4012472 512-byte hardware sectors (2054 MB)
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] 4012472 512-byte hardware sectors (2054 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda:<7>adm5120-hcd: Transfer Descriptor Complete
 sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
...
root@OpenWrt:/# dd if=/dev/sda of=/dev/null
4012472+0 records in
4012472+0 records out
...
root@OpenWrt:/tmp# dd if=/dev/sda of=/dev/sda bs=1024 count=1024 seek=1
1024+0 records in
1024+0 records out
root@OpenWrt:/tmp# dd if=/dev/sda of=orig bs=1024 count=1
1+0 records in
1+0 records out
root@OpenWrt:/tmp# dd if=/dev/sda of=test1 bs=1024 count=1 skip=10
1+0 records in
1+0 records out
root@OpenWrt:/tmp# dd if=/dev/sda of=test2 bs=1024 count=1 skip=100
1+0 records in
1+0 records out
root@OpenWrt:/tmp# dd if=/dev/sda of=test3 bs=1024 count=1 skip=512
1+0 records in
1+0 records out
...
root@OpenWrt:/tmp# md5sum orig
16285e47efb18bd1317cc2f26c649d10  orig
root@OpenWrt:/tmp# md5sum test1
16285e47efb18bd1317cc2f26c649d10  test1
root@OpenWrt:/tmp# md5sum test2
16285e47efb18bd1317cc2f26c649d10  test2
root@OpenWrt:/tmp# md5sum test3
16285e47efb18bd1317cc2f26c649d10  test3

Good work!

comment:7 Changed 8 years ago by petr.stetina@…

Hi, is there any progress with stable USB stack?

comment:8 Changed 8 years ago by willi

BusyBox v1.8.1 (2007-11-24 02:16:34 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r9593) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
udev on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /mnt/usbdrive type ext2 (rw)

Standard config + usbfs + ext2 + usbstroage

USB Storage WORKS
Libusb WORKS- as fare as usb works

usbsound failed

tusb3420 private firmware failed

-> still bugs but much better now.

comment:9 Changed 8 years ago by Volker Jahns <volker@…>

USB storage broken in Kamikaze (trunk, r10229), kernel 2.6.23.14 on BR6104KP

adm5120: setting up board 'Edimax BR-6104K/6104KP'

...

SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PPP generic driver version 2.4.2
admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.16.1
admhc-hcd: block sizes: ed 64 td 64
adm5120-hcd adm5120-hcd.0: ADM5120 built-in USB 1.1 Host Controller
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
adm5120-hcd adm5120-hcd.0: new USB bus registered, assigned bus number 1
adm5120-hcd adm5120-hcd.0: irq 11, io mem 0x11200000
adm5120-hcd: created debug files
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: ADM5120 built-in USB 1.1 Host Controller
usb usb1: Manufacturer: Linux 2.6.23.14 admhc-hcd
usb usb1: SerialNumber: ADM5120
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
hub 1-0:1.0: trying to enable port power on non-switchable hub
drivers/usb/core/inode.c: creating file '001'
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0006
hub 1-0:1.0: reset change on port 1
hub 1-0:1.0: reset change on port 2
hub 1-0:1.0: port 2, status 0101, change 0011, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-2: new full speed USB device using adm5120-hcd and address 2
usb 1-2: default language 0x0409
usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: Cruzer Mini
usb 1-2: Manufacturer: SanDisk Corporation
usb 1-2: SerialNumber: 200350018002f4a38ef6
usb 1-2: uevent
usb 1-2: usb_probe_device
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: uevent
usb 1-2:1.0: uevent
drivers/usb/core/inode.c: creating file '002'
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
hub 1-0:1.0: port 2 enable change, status 00000103
Initializing USB Mass Storage driver...
usb-storage 1-2:1.0: usb_probe_interface
usb-storage 1-2:1.0: usb_probe_interface - got id
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Mini      0.1  PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 1000944 512-byte hardware sectors (512 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 1000944 512-byte hardware sectors (512 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete
jffs2: Too few erase blocks (4)
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"

Unable to mount /dev/sda1 in /mnt

root@OpenWrt:/# mount /dev/sda1 /mnt
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
mount: mounting /dev/sda1 on /mnt failed: Invalid argument

comment:10 Changed 8 years ago by volker@…

usbstorage works now. ext2 filesystem option must be checked in .config ( this is _not_ the default).

comment:11 Changed 8 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:12 Changed 21 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.