Re: [bcm63xx] Usb2 not working on Huawei HG553

crisman wrote:

One thing: initially there was b66 on my  station, then I downgraded to the spanish b21 using the smb exploit, and then I installed openwrt from web interface of b21 using the squashfs hw553 image. So I have not changed the cfe with the AGPF one.

AFAIK, b66 has a different cfe (you cannot flash from cfe because you can't enter in failsafe mode pressing reset button on boot)

I'm using the old cfe (b21) that let you flash but serial is disabled, i dont know how but maybe this could be the problem.

I have another HG553 with b66, i will unlock telnet and flash to see if i can get it work.

Re: [bcm63xx] Usb2 not working on Huawei HG553

@crisman

How did you downgraded to b21 without changing the cfe?

you didn't

"./upfw4 cfe.bin"    ?

Re: [bcm63xx] Usb2 not working on Huawei HG553

Hi all.
Me and my friend Falegname have two board with hardware version "HG55MAGV VER.D". Maybe there are differences from VER.A??

Re: [bcm63xx] Usb2 not working on Huawei HG553

rway wrote:

Hi all.
Me and my friend Falegname have two board with hardware version "HG55MAGV VER.D". Maybe there are differences from VER.A??

you could give a try, install from trunk and see if it's working.

Re: [bcm63xx] Usb2 not working on Huawei HG553

me and rway have tryed some revision, stable and trunk, but still not working...

31 (edited by stevie7303215 2012-03-31 03:38:05)

Re: [bcm63xx] Usb2 not working on Huawei HG553

hi guys, I have it working
I used spanish version 21 and from the webinterface updated the stock hg553 firmware from the repo.

you can get the spanish version here http://bandaancha.eu/tema/1655425/actualizar-firmware-huawei-hg553

i held the reset button for 30 secs and updated to spanish from cfe
after its flashed log into
192.168.0.1
username admin
password VF-EShg553

then from the webinterface in the spanish admin update softare to openwrt stock.

Goodluck

and thanks to crisman for pointing me in the right direction. smile

Re: [bcm63xx] Usb2 not working on Huawei HG553

Good. Now I'll try your way, I hope it works for everyone!

33 (edited by crisman 2012-03-31 10:11:37)

Re: [bcm63xx] Usb2 not working on Huawei HG553

protomax wrote:

@crisman

How did you downgraded to b21 without changing the cfe?

you didn't

"./upfw4 cfe.bin"    ?

I haven't changed the cfe with the AGPF one, but with the b21 one, then from recovery I flashed the b21 e then from webinterface of b21 I flashed openwrt-hw553-squashfs.

@falegname try without kmod-usb-uhci

p.s. backfire has no support for hw553, so you used the agpf image...

34 (edited by rway 2012-03-31 11:05:06)

Re: [bcm63xx] Usb2 not working on Huawei HG553

I tried using the revision 30919, it works!

This is the output when I plug the usb drive.

root@OpenWrt:/# [ 1325.688000] usb 1-2: new high speed USB device number 4 using bcm63xx_ehci
[ 1325.836000] scsi2 : usb-storage 1-2:1.0
[ 1326.848000] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.14 PQ: 0 ANSI: 2
[ 1326.856000] sd 2:0:0:0: Attached scsi generic sg0 type 0
...

This is the result of hdparm.

root@OpenWrt:/mnt/pen# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:    78 MB in  2.02 seconds =  38.54 MB/sec
Timing buffered disk reads:   38 MB in  3.02 seconds =  12.59 MB/sec

Now I want to try the latest trunk.

Note lightly off-topic: with this method, there are not more errors about unknown symbols in modules b43 and mac80211, that instead appears without this trick.

Re: [bcm63xx] Usb2 not working on Huawei HG553

rway wrote:

I tried using the revision 30919, it works!

This is the output when I plug the usb drive.

root@OpenWrt:/# [ 1325.688000] usb 1-2: new high speed USB device number 4 using bcm63xx_ehci
[ 1325.836000] scsi2 : usb-storage 1-2:1.0
[ 1326.848000] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.14 PQ: 0 ANSI: 2
[ 1326.856000] sd 2:0:0:0: Attached scsi generic sg0 type 0
...

This is the result of hdparm.

root@OpenWrt:/mnt/pen# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:    78 MB in  2.02 seconds =  38.54 MB/sec
Timing buffered disk reads:   38 MB in  3.02 seconds =  12.59 MB/sec

Now I want to try the latest trunk.

Note lightly off-topic: with this method, there are not more errors about unknown symbols in modules b43 and mac80211, that instead appears without this trick.

Fantastic, and all you need to add to the stock openwrt image from the repo is. (basic usb)
kmod-usb-core    
kmod-usb-ohci
kmod-usb2

36 (edited by protomax 2012-03-31 17:45:29)

Re: [bcm63xx] Usb2 not working on Huawei HG553

Yes, r30919 is working for me too, updating from b21 firmware update, but downloaded-trunk is not working (usb modules not included), i will build trunk with usb modules to see if that is the problem.

thanks crisman for helping us to figure out the problem.

UPDATE:

Using the downloaded trunk snapshot:

--test n. 1:

at first boot:
opkg update
opkg install kmod-usb-ohci
opkg install kmod-usb2 (doesn't work)

--test n. 2 (reflash with b21 then openwrt)

at first boot:
opkg update
opkg install kmod-usb2 (works)
opkg install kmod-usb-ohci (stops working)

--test n. 3 (reflash with b21 then openwrt)

at first boot:
hard reset then
opkg update
opkg install kmod-usb2 (does not work)

-----------------

r30919 build with:

kmod-usb-ohci
kmod-usb2

[s]works fine[/s]

after a power cycle stops working

****************************************

is someone having the same issue?

[s]i can't build trunk atm, i'm getting 404 on hostapd-20120326.tar.bz2 (didn't tried with a clean build)[/s]

Re: [bcm63xx] Usb2 not working on Huawei HG553

Update2:


at first boot (r30939):
opkg update
opkg install kmod-usb2
reboot

(still working)

after powering down the router, ehci module just stops working, no dmesg activity (same if you include usb modules at build time).


In conclusion, to get it work:

openwrt must be installed from b21 firmware update page, not from cfe, but stops working after powering down the router.

Re: [bcm63xx] Usb2 not working on Huawei HG553

now we have to find what stops working after powering down, Florian in this ticket: https://dev.openwrt.org/ticket/11200
wrote that can be a GPIO, maybe until B21 is running it set up fine this gpio and when reboot it is still active, but when powering down, gpio is deactivated...

Re: [bcm63xx] Usb2 not working on Huawei HG553

all of you which have problems, have you in any time used the agpf cfe? maybe the agpf cfe modified some values in flash... you should try with a virgin board without using the agpf cfe. Else I don't know what could be the problem. I repeat, my board is working perfectly and both ports works in usb 2.0

Re: [bcm63xx] Usb2 not working on Huawei HG553

protomax wrote:

Update2:


at first boot (r30939):
opkg update
opkg install kmod-usb2
reboot

(still working)

after powering down the router, ehci module just stops working, no dmesg activity (same if you include usb modules at build time).


In conclusion, to get it work:

openwrt must be installed from b21 firmware update page, not from cfe, but stops working after powering down the router.

I have 2 hg553 routers.
I installed spanish 21 on both of them and upgraded from the web interface. I downloaded from trunk the hg553 standard image and did exactly the same for both routers. I never noticed this issue till I read your post as I just did a standard reboot when installing addtional packages. not turning off the router.

I have plugged both in and tested them.
router 1 (I only wanted to install a usb modem so just the basic usb)
kmod-usb-core   
kmod-usb-ohci
kmod-usb2

After turning this router on I plugged a usb drive in both of the usb hubs and ehci works for both of them. I tested it with lsusb and detects the flash from both ports.

router 2 I install a usb modem and a harddrive
kmod-usb-core   
kmod-usb-ohci
kmod-usb2

kmod-usb-storage
kmod-usb-storage-extras
block-mount
kmod-fs-ext4
kmod-scsi-generic

When turning this router on the usb doesnt work on the bottom usb port. (the ehci fails)

I am guessing maybe it could be in the usb storage packages? did you install the usb storage as well?

Re: [bcm63xx] Usb2 not working on Huawei HG553

crisman wrote:

all of you which have problems, have you in any time used the agpf cfe? maybe the agpf cfe modified some values in flash... you should try with a virgin board without using the agpf cfe. Else I don't know what could be the problem. I repeat, my board is working perfectly and both ports works in usb 2.0

crisman do you have usb storage installed? or just the basic usb support?

42 (edited by protomax 2012-03-31 20:08:30)

Re: [bcm63xx] Usb2 not working on Huawei HG553

stevie7303215 wrote:

I am guessing maybe it could be in the usb storage packages? did you install the usb storage as well?

no, just kmod-usb2.


@crisman
from dmesg i can see that we have the same cfe version, BUT i dont know which cfe is because i didn't made the downgrade.

Can someone with a working router (no reboot problem) make a cfe dump and upload the file?

dd if=/dev/mtd0 of=/tmp/cfe.backup

Re: [bcm63xx] Usb2 not working on Huawei HG553

@crisman

can you upload somewhere the cfe that you used to downgrade from b66?, where you downloaded it?

Re: [bcm63xx] Usb2 not working on Huawei HG553

@protomax
I confirm, same problem too. After power off / power on, the ehci module stops working. During my tests I always just restarted and I had not noticed this problem.

Re: [bcm63xx] Usb2 not working on Huawei HG553

I tried the latest trunk, revision 31151, same problem.

@crisman
During these tests, I never changed the cfe. B21 firmware displays cfe version d031.5002. Openwrt output shows cfe version 100.48.56-48.46.

46 (edited by stevie7303215 2012-04-01 15:35:38)

Re: [bcm63xx] Usb2 not working on Huawei HG553

protomax wrote:
stevie7303215 wrote:

I am guessing maybe it could be in the usb storage packages? did you install the usb storage as well?

no, just kmod-usb2.


@crisman
from dmesg i can see that we have the same cfe version, BUT i dont know which cfe is because i didn't made the downgrade.

Can someone with a working router (no reboot problem) make a cfe dump and upload the file?

dd if=/dev/mtd0 of=/tmp/cfe.backup

This is my router 1 that works after the turning the unit on and off
root@Thai:~# dd if=/dev/mtd0 of=/tmp/cfe.backup
256+0 records in
256+0 records out
root@Thai:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 090c:1000 Feiya Technology Corp. Flash Drive
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636
root@Thai:~# dmesg | grep hub
[   12.120000] usbcore: registered new interface driver hub
[   13.700000] hub 1-0:1.0: USB hub found
[   13.704000] hub 1-0:1.0: 2 ports detected
[   14.396000] hub 2-0:1.0: USB hub found
[   14.400000] hub 2-0:1.0: 1 port detected
root@Thai:~# dmesg | grep ohci
[   14.308000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.316000] bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
[   14.324000] bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus                                              number 2
[   14.332000] bcm63xx_ohci bcm63xx_ohci.0: irq 13, io mem 0xfffe1400
root@Thai:~# dmesg | grep ehci
[   13.632000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.636000] bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
[   13.644000] bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus                                              number 1
[   13.676000] bcm63xx_ehci bcm63xx_ehci.0: irq 18, io mem 0xfffe1300
[   13.692000] bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00, overcurr                                             ent ignored
[   14.020000] usb 1-2: new high speed USB device number 2 using bcm63xx_ehci
[  576.740000] usb 1-1: new high speed USB device number 3 using bcm63xx_ehci
root@Thai:~# cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 3.00
S:  Manufacturer=Linux 3.0.18 ohci_hcd
S:  Product=BCM63XX integrated OHCI controller
S:  SerialNumber=bcm63xx
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 2
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.00
S:  Manufacturer=Linux 3.0.18 ehci_hcd
S:  Product=BCM63XX integrated EHCI controller
S:  SerialNumber=bcm63xx
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0031 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE CDMA Technologies MSM
S:  SerialNumber=1234567890ABCDEF
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=090c ProdID=1000 Rev=11.00
S:  Manufacturer=SMI Corporation
S:  Product=USB DISK
S:  SerialNumber=AA04012700007535
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us


I have done some further testing on router 2 that doesnt have the usb working. I downloaded the latest hg553 from trunk.
I plug my usb flash drive into the port next to the lan.
I install kmod-usb-core kmod-usb2 only,  after a reboot the led light on the flash drive stays on. I run lsusb and doesnt detect any drives.
I then install kmod-usb-ohci and the led light turns off instantly. (the light stays on router 1 which gives me a sign it works)

I am guessing ohci is conflicting with ehci for some strange reason?

Re: [bcm63xx] Usb2 not working on Huawei HG553

rway wrote:

I tried the latest trunk, revision 31151, same problem.

@crisman
During these tests, I never changed the cfe. B21 firmware displays cfe version d031.5002. Openwrt output shows cfe version 100.48.56-48.46.

both my routers are showing cfe version 100.48.56-48.46 and 1 works and the other doesnt

Re: [bcm63xx] Usb2 not working on Huawei HG553

stevie7303215 wrote:
crisman wrote:

all of you which have problems, have you in any time used the agpf cfe? maybe the agpf cfe modified some values in flash... you should try with a virgin board without using the agpf cfe. Else I don't know what could be the problem. I repeat, my board is working perfectly and both ports works in usb 2.0

crisman do you have usb storage installed? or just the basic usb support?

yes, I have usb-storage installed. I tried putting a usb 2.0 flash drive and is recognized in both ports

Re: [bcm63xx] Usb2 not working on Huawei HG553

Someone says that their board has two usb 2.0.
My board has one usb 1.1 (at the top) and one usb 2.0 (near ethernet).
Maybe some difference in model board?

Re: [bcm63xx] Usb2 not working on Huawei HG553

Well, the boards with 2 x usb2.0 + 1 x usb1.1 are HG556a, and they have exactly the same problem with the usb. Whereas for some people the usb1.1 at the top works, for others it doesn't. With OEM firmware it always works fine for me, but with Openwrt it doesn't or behaves weird as stevie7303215 described.