Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Third Party
| |-+  Repairing and Upgrading Rockbox Capable Players
| | |-+  iriver H340 with 240GB drive - success!
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: iriver H340 with 240GB drive - success!  (Read 34335 times)

Offline sordup

  • Member
  • *
  • Posts: 30
Re: iriver H340 with 240GB drive - success!
« Reply #15 on: October 07, 2010, 02:41:23 AM »
torne - Thanks again for chiming in here!
In regards to the bootloader question, following pwhodges lead:

        "I have acquired a collection of updated H300 bootloaders that various people have published briefly; the one I used is r17607M-080522, but I now have no idea who made it (you can download it here, at your own risk, etc, etc)."

I download the "fixed" bootloader, then how do I install it exactly? Haven't done this in a while and can't remember. This isn't what is flashed to memory, is it?
and then...
                     "Of course, I updated the bootloader before taking the old disk out!"

What do you think he means here? Isn't this "new" bootloader already updated? Is it necessary to do this (update bootloader) with the old disk installed?

Having done this then, Rockbox 3.6 can be installed and we'd be good to go? No compiling nor the added code necessary, yes?

I am obviously planning ahead with this in case there is no fix with my drive problem that you are already helping me with here: http://forums.rockbox.org/index.php?topic=25856.0
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: iriver H340 with 240GB drive - success!
« Reply #16 on: October 07, 2010, 04:11:45 AM »
When he says update he means installing it over the one that doesn't support large drives, not replacing it with a newer one. You need to do this before you replace the drive.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline sordup

  • Member
  • *
  • Posts: 30
Re: iriver H340 with 240GB drive - success!
« Reply #17 on: October 07, 2010, 12:32:25 PM »
To install the bootloader is simply copying the hex file to the drive, is that correct? Or is it flashing it to memory somehow?
As i said, can't remember.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: iriver H340 with 240GB drive - success!
« Reply #18 on: October 07, 2010, 02:50:12 PM »
You copy the hex file onto the player and then when you disconnect, it flashes the contents of the file to the player's flash, if I remember correctly.

Edit: OK, I don't remember correctly, see peteswensson's later post for the instructions.
« Last Edit: November 17, 2010, 05:39:18 AM by torne »
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline zcream

  • Member
  • *
  • Posts: 3
Re: iriver H340 with 240GB drive - success!
« Reply #19 on: November 16, 2010, 10:45:19 AM »
I hope Paul comes back to this topic. The Rockbox FAQ states that its hard to access more than 128Gb. Is that no longer a problem ?
Also, would you mind posting the final image of rockbox that you used ? With the bootloader and rockbox, it should be easy enough.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: iriver H340 with 240GB drive - success!
« Reply #20 on: November 16, 2010, 10:50:32 AM »
Quote from: zcream on November 16, 2010, 10:45:19 AM
I hope Paul comes back to this topic. The Rockbox FAQ states that its hard to access more than 128Gb. Is that no longer a problem ?
This is only an issue on the Archos players. Other devices don't have this problem.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline zcream

  • Member
  • *
  • Posts: 3
Re: iriver H340 with 240GB drive - success!
« Reply #21 on: November 16, 2010, 07:12:39 PM »
OK. Would the procedure and bootloader be the same for the H320 ? If the only difference between the 320 and 340 is the HDD, I might as well get the H320 as I am going to swap the drive.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: iriver H340 with 240GB drive - success!
« Reply #22 on: November 16, 2010, 07:19:23 PM »
The H300 series is all the same apart from the stock drive capacity, yes.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: iriver H340 with 240GB drive - success!
« Reply #23 on: November 16, 2010, 08:16:18 PM »
And thickness, if I remember correctly. The H340 was made for a 40GB dual platter disk which is thicker than the 20GB single platter disk in an H320 which then also has a thinner case. I'm not a 100% sure but it's probably worth it to investigate a bit more if the replacement drive will fit physically (and maybe someone else can tell exactly).
Logged

Offline peteswensson

  • Member
  • *
  • Posts: 43
Re: iriver H340 with 240GB drive - success!
« Reply #24 on: November 16, 2010, 08:20:38 PM »
The iriver H320 and H340 are identical electronically.  Pixelma is correct about the physical differences: the thickness of the hard drive (5mm vs 8mm), the profile of the blue foam rubber cradling the hard drive (H340 is deeper, to accommodate the thicker hard drive), and the depth of the back cover (likewise).  The H340 is much less common than the H320, so it can be hard to find the model that accommodates the thicker hard drive.  The 1.8" Toshiba drives that end in L are 5mm thick, while those that end in H are 8mm thick.

Also, Torne said that the H300 will flash a modified hex file when you disconnect.  This is not correct for the iriver.  You must use the routine to update the firmware that is in the original firmware.  Press <Record> and <On> simultaneously to enter the original firmware.  Press and continue to hold the <Navi> button in the playback standby screen or the radio screen until the Menu screen opens.  The menu system has 7 main options and submenus for each option.  Scroll to <General> and press <Navi>.  Scroll to <Firmware Upgrade> and press <Navi>.  Follow directions on the display from that point.  Be sure to have your iriver plugged into your recharger so that it doesn't run out of battery power while in the midst of flashing the firmware.
Logged
iriver H3120, H380, iriver H332 (Transcend), iriver H332 (RiData)

Offline tigertom2003uk

  • Member
  • *
  • Posts: 16
Re: iriver H340 with 240GB drive - success!
« Reply #25 on: March 27, 2011, 04:01:52 PM »
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.
Logged

Offline guzzi75

  • Member
  • *
  • Posts: 13
Re: iriver H340 with 240GB drive - success!
« Reply #26 on: January 07, 2012, 07:44:48 PM »
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 PM
Hello,
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



« Last Edit: January 08, 2012, 03:03:18 PM by guzzi75 »
Logged

Offline guzzi75

  • Member
  • *
  • Posts: 13
Re: iriver H340 with 240GB drive - success!
« Reply #27 on: January 09, 2012, 06:38:37 PM »
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 PM
activated 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.


« Last Edit: January 09, 2012, 07:43:19 PM by guzzi75 »
Logged

Offline some1

  • Member
  • *
  • Posts: 16
Re: iriver H340 with 240GB drive - success!
« Reply #28 on: January 10, 2012, 02:30:04 PM »
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.
Logged

Offline guzzi75

  • Member
  • *
  • Posts: 13
Re: iriver H340 with 240GB drive - success!
« Reply #29 on: January 11, 2012, 12:19:17 PM »
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 PM
And 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

« Last Edit: January 11, 2012, 12:45:28 PM by guzzi75 »
Logged

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Third Party
| |-+  Repairing and Upgrading Rockbox Capable Players
| | |-+  iriver H340 with 240GB drive - success!
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.08 seconds with 23 queries.