Third Party > Repairing and Upgrading Rockbox Capable Players

iriver H340 with 240GB drive - success!

<< < (6/8) > >>

tigertom2003uk:
Hi pwhodges,
Can you please send me the modified HEX?
I would have a go in doing what you did but I haven't a clue as I'm not into pc programing & all that sort of thing!
Regards Tom.

guzzi75:
Hello, my H340 with 80Gb is too small now for all my FLAC files  :D

So i bough the mk2431gah and a zif converter.
inserted in H340. it works fine in direct usb: H340 booted with original firmware and i was able to get a whole partition of 240gb.

But, with rockbox for now, i cannot boot. got ata: -XX.
With the pwhodges bootloader, i don't go after voltage on boot.
I don't know if the boot loader fails in mounting partition or before.

For now, i installed cygwin, and i wait the end of compilation. i added the two line from pwhodges and the patch about car cradle which is based on 1.31K
any other ideas?
Post Merge: January 08, 2012, 03:01:25 PMHello,
With the VM i was able to build rockbox and svn backward to previous known ok bootloader: 19309.
svn update -r 19309 rockbox
I was also able to build the bootloader and install it

tools/rockboxdev.sh
11
B
make
  ../tools/descramble -iriver H300-1.29-EU.hex H300-1.29-EU.bin
 ../tools/mkboot -h300 H300-1.29-EU.bin bootloader.bin H300.bin
 ../tools/scramble -iriver H300.bin H300.hex
copy to HDD root.
boot with original firmware "REC + Play"; long press NAV ; menu General ; update firmware

It doesn't boot with mk2431GAH but it's ok to boot to the original firmware.
What's interesting is that it does not boot either on my previous HD, a MK8007GAH (ok with the 2006 bootloader or the 17607).

Keep in mind the size of the bin generated, it appears there is a limitation. I don't know what is the barrier



guzzi75:
i added a few printf to "manually" debug.
For now, i got the call to "storage init":
rc=storage_init()
and it never comes back.
I have to boot to original firmware.
I have to go deeper to storage_init :)

Post Merge: January 09, 2012, 07:39:57 PMactivated also DEBUGF
it is ide_power_enable which hangs.
I never saw the secund printf.

void ide_power_enable(bool on)
{
printf("begin INSIDE ide_power_enable");
    if(on)
        and_l(~0x80000000, &GPIO_OUT);
    else
        or_l(0x80000000, &GPIO_OUT);
printf("END INSIDE ide_power_enable");
}
Now, i have to look if there are previous or other behaviours in svn.
Maybe it is also a function called in the wrong sequence.


some1:
I cannot help, but am interested to see how this goes, i am looking to ugrade my h340 to 240gb and would be trying to do the same thing, i hope you figure out a solution.

guzzi75:
I did it :)
it is very nasty code because i am not a dev.
Bootloader Version: r19309M-120111
Very nasty because i charge my H340 with external supply and original firmware.
So i do not use usb on start.

I deactivated the USB in bootloader.

Of course, it is still in firmware. so connection to PC is ok after boot.

My H340 boots with lcd off.
Right now, i am transferring 200GB of FLAC at 10MB/s
I am not even sure i can boot on original firmware. but it's ok for me, job is done.

So all disclaimers, no guarantee, at your own risk. But it is a very interesting challenge for oneself and understanding of fantastic job done by Rockbox developpers.


I used
svn checkout svn://svn.rockbox.org/rockbox/trunk -r 19309 rockbox

Mods of files:
~/rockbox/firmware/export/config-h300.h
add at the end of the file:
/* add for large LBA and sectors */
#define HAVE_LBA48
#define MAX_PHYS_SECTOR_SIZE 4096

more complicated, comment code in
~/rockbox/firmware/export/iriver_h300.c
lines may differ because i added my own comment

Do not stop the hard drive at boot, i need it :)

    Line 166    /*ide_power_enable(false);*/

line 249    /* if(charger_inserted())

to     line 341         lcd_update();
    } */

After that, usual compilation.
Maybe only the comment of the HDD shutdown is enough.
I may try in a few days. in this case, it will be lcd ON at boot.
Good luck.



Post Merge: January 11, 2012, 12:37:59 PMAnd if you really want to try

http://www.packupload.com/GWJUHNIQB82

http://www.packupload.com/GWJUHNIQB82


unzip put H300.hex at root folder of the HDD.
Boot to the original firmware and update.

For now, already 10GB copied

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version