Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: spazz on October 01, 2009, 11:50:09 PM

Title: Compiling Rockbox and the bootloader for h140?
Post by: spazz on October 01, 2009, 11:50:09 PM
Hi everybody, It's my first time compiling and I want to make sure I wont brick my Iriver cause I didn't compiled RB and especially the bootloader properly. I know, compiling the bootloader is something that is really not suggested especially for a newbie like me but since I didn't find any help so far I decided to take the bull by the horns and do it my self :)

Ok, so first thing first, I need a recompiled RB and BL because I installed a mk2431gah disk(250GB) in my Iriver and I have a error message (ATA error: -32) when I boot it up. So from what I read in this topic http://forums.rockbox.org/index.php?topic=16423.0 I had to "...remove the call to check_registers() in ata.c".
I also had to add in my firmware/export/config-h120.h
/* Add LBA48 for my 240GB */
#define HAVE_LBA48
Got the info from that topic http://forums.rockbox.org/index.php?topic=20493.0
My adventure so far is pretty well describe in that topic:
http://forums.rockbox.org/index.php?topic=21020.0
Btw. I tryed to contact LinusN(I know he is very busy...) and nlak for help for a couple months but no succes.


Alright, about compiling, please tell me if what I do is ok.
1- I fallowed "The Simplified Guide To Compiling The Rockbox Source Code" with succes for Rockbox after applying the changes I talked about.

2- With the ../tools/configure in B mode I typed make in the bootloader folder and got a bootloader.bin

3- Typed make in tools(to be able to use descramble...I'm not sure if I had to do this???)

4- Typed: ../tools/descramble -iriver ihp_120.hex ihp_120.bin
Got this message: "Model iHP-120/ihp140
File decoded correctly and all checksum matched!
Output file contains all header and checksums"

5- Typed: ../tools/mkboot ihp_120.bin bootloader.bin new.bin
Got this message: "Wrote 0x1fc5da bytes in new.bin"

6-Typed: ../tools/scramble -iriver new.bin new.hex
Got this message: "Model Model iHP-120/ihp140
File encoded successfully and checksum table built!"

7-I renamed the new.hex into ihp_120.hex and now I just have to put it in the main directory in my h140 and upgrade the firmware...

Did I forget anything? Do I have to use the fwpatcher?

Thanks in advance and sorry for the long post :)

Carl


Title: Re: Compiling Rockbox and the bootloader for h140?
Post by: DTSyX on June 17, 2010, 01:16:05 AM
Hi,

I have exactly the same goal as You have. I also want to be able to use a hdd that has 240GB on my H140.

Did You succeed?

I guess many users would like to have an bootloader/rockbox version that enables their device to take larger hdds. I wonder: Would smaller hdds suffer from such an change? Because, if not, why isn't that feature implemented in the bootloader/Software in general?

Thanks for any answer.

DTSyX
Title: Re: Compiling Rockbox and the bootloader for h140?
Post by: Chronon on June 17, 2010, 01:55:33 AM
Support for large disks is included in Rockbox 3.6 (http://www.rockbox.org/wiki/ReleaseNotes36) and current builds.
Title: Re: Compiling Rockbox and the bootloader for h140?
Post by: nathanpc on June 17, 2010, 05:40:05 AM
Remember to put the code tags for the messages that you got. Help the forum to be more organized. ;)
Title: Re: Compiling Rockbox and the bootloader for h140?
Post by: torne on June 17, 2010, 06:18:57 AM
Remember not to reply to threads that are six months old with vague advice where the problem in question has already been fixed in the current release. Help the forum to be less filled with useless posts. ;)
Title: Re: Compiling Rockbox and the bootloader for h140?
Post by: DTSyX on June 17, 2010, 08:16:46 AM
Sorry, guys. I couldn't find a more recent one that concerns iriver an large hdds and didn't want to start a new thread containing just the same question. Sorry.

But: Thank you for replying that fast and helpfully!

If that one ("Remember to put the code tags for the messages that you got. Help the forum to be more organized.") was adressed at me, I don't know what it means exactly, sorry.

The reason why I didn't think the large hdd problem would be resolved is, that I just yesterday had email contact with someone who says to do some iriver modding and he told me, that he never has put in any hdds with more than 120gb space because of the compiling needs. I assumed that this info would be up to date. So I'm glad to hear/read, that larger hdds are no problem any longer!

Thank you for all your great work, you developers!!!

And if you want to clean up the forum, just delete this thread or move it to "useless/overdued threads" or so, I surely wouldn't be mad or something!

I'm just happy and thankful!