AMiLDA FORUM

You are not logged in.

Announcement

### Our Homepage is down at the moment...work in progress !! ###

#1 2006-04-15 15:38:57

TiTaN_pi8
Member
Belgium
Registered: 2006-04-15
Last visit: 2006-10-19
Posts: 10

USB code bug

Hello,

First of all, I hope this message is in the right category on this forum. Maybe there should be a section for bugs?

I downloaded and compiled the AMiLDA 0.4.2 sources today using the edimax toolchain. I added support for USB Printers to the kernel.

When I try to attach a USB memory stick to the router I get these error messages:

ub.c: new USB device HUB-1, assigned address 2
usb_control/bulk_msg: timeout
neo ep_add_ed() failed!!
neo ep_add_ed() failed!!
usb_control/bulk_msg: timeout
neo ep_add_ed() failed!!
neo ep_add_ed() failed!!
neo ep_add_ed() failed!!
usb: raced timeout, pipe 0x80000280 status 0 time left 0
usb.c: USB device descriptor short read (expected 18, got 0)
hub.c: new USB device HUB-1, assigned address 3
usb_control/bulk_msg: timeout
neo ep_add_ed() failed!!
usb: raced timeout, pipe 0x80000380 status 0 time left 0
usb.c: USB device descriptor short read (expected 18, got 8)


Also, once, I got this Kernel Panic:

Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 481:
$0 : 00000000 10008401 00000054 00000004 0000dce4 2033338e 00000004 00000000
$8 : 00000000 1000001f 00000000 67736d5f 2033333a 0000003a 80251f00 6e72656b
$16: 80e20200 21c00001 80eea5e0 80ebb000 00e20340 8035e800 7fff6cd8 00000000
$24: 00000010 2ab7fb80                   80250000 80251e60 0049694c 800d9cf0
Hi : 00000000
Lo : 00000500
epc   : 800d9d4c    Not tainted
Status: 10008403
Cause : 10800010
PrId  : 0001800b
Process klogd (pid: 32, stackpage=80250000)
Stack:    80251e98 00000000 80251ed8 802401a8 80ebb000 b1200000 8035e800
80100000 80000000 7fff6848 800daa20 802c9220 00740000 80eea61a 00000010
67736d5f 8032aa60 02000001 00000003 802d5b64 80251f30 80008720 0000003a
0000003a 7fff6848 7fff6848 801d2060 8032aa60 00000003 fffffffb 80251f30
80008a00 80250000 80251f08 0049694c 8003f78c 00000000 00000003 10008400
80251f30 ...
Call Trace:   [<80100000>] [<800daa20>] [<80008720>] [<80008a00>] [<8003f78c>]
[<801908ac>] [<8001d0c8>] [<80190a28>] [<8000efe4>] [<80066460>]

Code: 24420050  00a22821  000423c2 <8ca30000> 3084000f  24020001  00821004  00621825  aca30000
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing


I thought AMiLDA 0.4.2 had stable USB code? Are you aware of the USB code not working or is this a problem you haven't encountered before?

Offline

 

#2 2006-04-15 17:29:43

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: USB code bug

Hi

I'm aware that USB doesn't work for all people. However, USB is a work in progress. I have recently got a 6104KP (thanks MrZack!) where i can debug the code, but that'll have to wait until more important things are finished.

Anyway, i'll keep the USB driver updated from the midge sources (they are working on it i think).

Sergio

Offline

 

#3 2006-04-16 10:40:33

TiTaN_pi8
Member
Belgium
Registered: 2006-04-15
Last visit: 2006-10-19
Posts: 10

Re: USB code bug

I looked at your thread on the norocketscience forum and I compiled a firmware image with the usb-shci.c/h files that are linked to on that forum (http://www.scintilla.utwente.nl/~marcel … sb-2.4.32/). The USB code acts different, but still not working:

hub.c: new USB device adm5120-hcd-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
td_fill_ahci: Error ~~~~~~!!
td_fill_ahci: Error ~~~~~~!!
usb_control/bulk_msg: timeout
td_fill_ahci: Error ~~~~~~!!
td_fill_ahci: Error ~~~~~~!!
usb_control/bulk_msg: timeout
scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
hub.c: already running port 1 disabled by hub (EMI?), re-enabling...
usb.c: USB disconnect on device adm5120-hcd-1 address 2
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?

I think this is the USB code from the midge project, so updating to that isn't going to help I think.

Anyway, thanks for the reply! If I get some more USB things working i'll let you know!

Offline

 

#4 2006-04-25 22:23:18

margro
New member
Netherlands
Registered: 2006-03-15
Last visit: 2006-04-25
Posts: 4
Website

Re: USB code bug

TiTaN_pi8 wrote:

I looked at your thread on the norocketscience forum and I compiled a firmware image with the usb-shci.c/h files that are linked to on that forum (http://www.scintilla.utwente.nl/~marcel … sb-2.4.32/). The USB code acts different, but still not working:

I think this is the USB code from the midge project, so updating to that isn't going to help I think.

Anyway, thanks for the reply! If I get some more USB things working i'll let you know!

No. these files are not from Midge but the ones I've created. I had the same problems with the Midge usb drivers (that are now included in AMiLDA), so I made a new port of the working 2.4.18 usb drivers to the 2.4.32 and started debugging to figure out why it was not working for my usb devices on a 2.4.32 kernel.
I heard from more people that my version also does not work for alle devices. Currently I've tested it on my Sweex with 5 different usb sticks, 3 harddisks, a printer and a cardreader and I see sometimes the same errors as you describe. I hope I can fix them, but debugging USB on this board is very time consuming and the documentation is a bit minimal.


2x Sweex LB000021 with USB mod 2 serial ports and LCD; Linksys WRT54G

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB