This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#4753 - H300 USB Bootloader Mode not working properly
Attached to Project:
Rockbox
Opened by Rui Marinho (nobelium) - Tuesday, 28 February 2006, 21:17 GMT+2
Last edited by Nils Wallménius (nls) - Wednesday, 12 November 2008, 15:47 GMT+2
Opened by Rui Marinho (nobelium) - Tuesday, 28 February 2006, 21:17 GMT+2
Last edited by Nils Wallménius (nls) - Wednesday, 12 November 2008, 15:47 GMT+2
|
DetailsI haven't been able to successfully connect my iriver h340 via USB, using the bootloader USB mode, even after numerous connect/disconnects. Windows XP won't recognize anything. USB Mode works good after booting rockbox.
|
This task depends upon
I've performed some checks by using a USB monitor program - http://www.hhdsoftware.com/usbmon.html which allows trial runs for free.
Unfortunately this shows nothing happening at all from the PC end when using the bootloader USB mode.
As a comparison, if I boot Rockbox first, the logged data starts with the following:
000001: Get Status Request (DOWN), 07.04.2006 12:59:41.2451792 +142.9856032
Get status from Device. Data length 0x2 bytes (00 00)
000002: Control Transfer (UP), 07.04.2006 12:59:41.2451792 +0.0
Pipe Handle: 0x85a0a9f4
03 00 ..
Setup Packet
80 00 00 00 00 00 02 00€.......
Recipient: Device
Request Type: Standard
Direction: Device->Host
Request: 0x0 (GET_STATUS)
Value: 0x0
Index: 0x0
Length: 0x2
...
(This then succeeds every time.)
I've now tried this on 3 different PCs - two running Windows XP SP2 and one running Windows 2000 SP4 - and all 3 machines give exactly the same results.
In the unlikely case it's relevant, my Iriver firmware is 1.28E.
Can anybody give some more details???
1) H340 is powered off and no charger is connecte.
2) Connect USB cable to USB 2.0 DEVICE port.
3) H340 powers up, displays "Rochbox Bootloader/Version 5/Batt: ?.??V" - then "Bootloader USB mode".
4) PC does not recognise anything happening.
If I boot into the IRiver firmware (1.28E), USB works fine every time.
Is somebody else able to reproduce this behaviour?
- USB direct on motherboard
- powered hub
- unpowered hub
- usb 1.1 or 2.0
I've seen it do strange things on disconnect when using the hub of a DELL monitor.
It is maybe also related to a setting in retailos about connecting on desktop or hub.
You can also try enabling/disabling usb charging in retailos
USB Charging in RetailOS was disabled, but enabling it makes no difference to Rockbox. USB Conn Mode in RetailOS was set to Desktop, tried Hub, but no change.
It seems that this bootloader bug affects some H300 users. With or without a HUB I get the same results.
There is a whole thread for it in MisticRiver forums.
It would be good to know what Linus has to say about this, since he wrote the Bootloader.
When disconnecting from my dell monitor at work, the h340 stays in usb mode.
This depends on the usb settings of the original firmware (don't remember which one),
so I can solve it that way.
On my old box with a nondescript VIA chipset and USB 1.1 ports it normally doesn't work, but given enough patience and restarts of the player it will work.
When Rockbox is up and running USB mode always works fine with both PCs. Both PCs run Windows XP and I have never touched any USB related settings in Windows.
I've been experiencing problems with the USB bootloader too.
I'm running a recent Debian Linux, kernel 2.6.16.18. USB is built in and uses USB 2.0.
I own an iRiver H320 with a V5 bootloader and 1.30 EU firmware version.
When Rockbox is loaded, USB works very well.
Here is what's printed in the syslog.
Jun 5 12:00:13 localhost kernel: usb 1-2: new high speed USB device using ehci_hcd and address 24
Jun 5 12:00:14 localhost kernel: usb 1-2: configuration #2 chosen from 1 choice
Jun 5 12:00:14 localhost kernel: scsi24 : SCSI emulation for USB Mass Storage devices
Jun 5 12:00:14 localhost kernel: usb-storage: device found at 24
Jun 5 12:00:14 localhost kernel: usb-storage: waiting for device to settle before scanning
Jun 5 12:00:19 localhost kernel: Vendor: TOSHIBA Model: MK2004GAL Rev: JC10
Jun 5 12:00:19 localhost kernel: Type: Direct-Access ANSI SCSI revision: 00
Jun 5 12:00:19 localhost kernel: SCSI device sdb: 39063024 512-byte hdwr sectors (20000 MB)
Jun 5 12:00:19 localhost kernel: sdb: Write Protect is off
Jun 5 12:00:19 localhost kernel: sdb: Mode Sense: 00 4a 00 00
Jun 5 12:00:19 localhost kernel: sdb: assuming drive cache: write through
Jun 5 12:00:19 localhost kernel: SCSI device sdb: 39063024 512-byte hdwr sectors (20000 MB)
Jun 5 12:00:19 localhost kernel: sdb: Write Protect is off
Jun 5 12:00:19 localhost kernel: sdb: Mode Sense: 00 4a 00 00
Jun 5 12:00:19 localhost kernel: sdb: assuming drive cache: write through
Jun 5 12:00:19 localhost kernel: sdb: sdb1
Jun 5 12:00:19 localhost kernel: sd 24:0:0:0: Attached scsi disk sdb
Jun 5 12:00:19 localhost kernel: usb-storage: device scan complete
Jun 5 12:00:21 localhost kernel: UDF-fs: No VRS found
Jun 5 12:00:21 localhost kernel: UDF-fs: No VRS found
Jun 5 12:00:21 localhost kernel: Unable to identify CD-ROM format.
Jun 5 12:00:21 localhost kernel: Unable to identify CD-ROM format.
Jun 5 12:00:21 localhost kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Then my H300 icon pops up on my KDE desktop and device is mounted perfectly.
Now, when using the USB bootloader (iRiver is off, no prower cable, then USB is plugged in) nothing gets printed.
USB chipset is an ICH5 and works perfectly under Linux.
Hope that helps.
USB2 (motherboard), XP SP2.
Also I am not sure how this can have any relation to USB bootloader on rockbox, in any case more people should test these options just to be sure.
BTW I'm a bit sceptical about that 'hub mode' trick.... how could the iRiver original mode affect the Rockbox bootloader when there's a power off between the two things ?
Using a h340 with v5 bootloader on usb2.0 connection (via chipset) to a gentoo box with kernels from 2.6.12ish to 2.6.19.
I've repeatedly checked the kernel logs from time to time and it never shows anything.
I will leave this task open until the final bootloader is released and more people would be able to verify it.
However it fails to boot for petur's H300+MK8007GAH - crash appears to be in thread.c.
I'd guess that the change which broke it is r12514 or r12519 - maybe look at http://svn.rockbox.org/viewvc.cgi/trunk/bootloader/main.c?r1=12513;r2=12519;pathrev=12519