Rockbox Technical Forums

Installation / Removal => Manual Installation => Iriver - Installation/Removal/Flashing => Topic started by: steveg on June 04, 2009, 08:34:58 PM

Title: command line install of H340 bootloader without access to "Firmware Update"
Post by: steveg on June 04, 2009, 08:34:58 PM


Please ignore this message...I figured it out.....and my hack worked!  I unbricked my H340 thanks to Rockbox!

##########################################################

I have an H340 that is damaged somehow.  Even with no usb connection, the bootloader always loads up in "Bootloader USB mode".  I have built a hacked version of the bootloader and rockbox that should avoid this, but I can't install it because the instructions for loading the firmware require me to get past the "bootloader USB mode".  Even the OEM firmware has this problem (I can't get to the update firmware menu).

Is there a command line way to update the bootloader?

I have the ability to mount the drive and access the filesystem of the H340.

Assuming I have just built a custom bootloader and I have all the files produced (e.g. bootloader.bin, bootloader.elf...etc), how can I command line install it without access to the original firmware and the "update firmware" menu item?

Thanks!
-sg

ps.  I know all this is dangerous, but the H340 is now basically a bricked anyway, so I'm not afraid to roll the dice.
Title: Re: command line install of H340 bootloader without access to "Firmware Update"
Post by: Chronon on June 05, 2009, 04:16:33 AM
Would you care to share what you did?
Title: Re: command line install of H340 bootloader without access to "Firmware Update"
Post by: steveg on June 05, 2009, 07:18:17 PM

I spoke to soon.  I thought I had upgraded the firmware because rockbox loaded a couple of times, but now I can't repeat it.   I thought all i needed to do was place H300.hex in the root directory and the firmware upgrade would go automatically but it doesn't. 

Is it possible to upgrade the firmware from within rockbox?

 I suspect that as the battery gets really low, it gets beyond the "USB connected" mode in rockbox, so I'll wait for the battery to drain and try it again.

-sg