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
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Iriver - Installation/Removal/Flashing
| | | |-+  iriver patchtool only working under windows (tm)
« previous next »
  • Print
Pages: [1]

Author Topic: iriver patchtool only working under windows (tm)  (Read 4623 times)

Offline Aikon

  • Member
  • *
  • Posts: 4
iriver patchtool only working under windows (tm)
« on: March 13, 2007, 04:28:21 PM »
Got an unusual prob here. All my comps are running linux, and the patchtool I downloaded doesn't work with wine.
As far I only can three possibilities working for me:
  • Is there a sourcecode of the patchtool available that might be able to compile under linux?
  • Is there maybe a linux tool with which I can apply the patch? (patch --binary ... doesn't work)
  • Anyone trustworthy out there that can patch me the boot loader for my iriver H300? ;)
I guess that's all the possible solutions I can currently think of. Any others? Any takers?
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: iriver patchtool only working under windows (tm)
« Reply #1 on: March 13, 2007, 09:08:57 PM »
There is the mkboot tool in the tools dir of the rocbox source, it is able to patch an iriver firmware with a rockbox bootloader, you will have to use the descramble (found in the same source dir) before mkboot to decrypt the firmware image. Get a bootloader from http://www.rockbox.org/twiki/bin/view/Main/WebHome?topic=IriverBoot
After you have patched the firmware with mkboot you'll have to encrypt it again with the scramble (found in the same source dir as descramble and mkboot) tool.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: iriver patchtool only working under windows (tm)
« Reply #2 on: March 14, 2007, 07:04:54 AM »
AFAIK fwpatcher runs using wine. I simply used a windows PC at uni when I patched the firmware that days back ...
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Mr_Rabid_Teddybear

  • Member
  • *
  • Posts: 51
Re: iriver patchtool only working under windows (tm)
« Reply #3 on: March 14, 2007, 10:17:09 AM »
Quote from: Aikon on March 13, 2007, 04:28:21 PM
  • Anyone trustworthy out there that can patch me the boot loader for my iriver H300? ;)
If you PM me an e-mail adress I can send you what I got: H300 1.29 Korean firmware patched with Rockbox H300 V5 bootloader.

Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: iriver patchtool only working under windows (tm)
« Reply #4 on: March 14, 2007, 12:04:48 PM »
Please don't use the Rockbox forums to discuss distribution of the iriver firmware or other copyrighted material.  If you need to have such discussions, please do them privately, not on the forums.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline Aikon

  • Member
  • *
  • Posts: 4
Re: iriver patchtool only working under windows (tm)
« Reply #5 on: March 14, 2007, 03:04:40 PM »
First of all (giving the answers from bottom to top):
Febs, it sure wasn't my intention to do something illegally or getting you guys in trouble. I was just listing options that I could think of and got a reply.
Bluebrother, I already did try wine. Maybe I have a rather old version of this thing here at my old SuSE box. It just didn't work.
Mr_Rabid_Teddybear: Thanks a lot for your offer. I guess I'll try out the very first suggestion first, or rather I already did. :)

nls: Thanks a lot for the suggestion. Building the tools was quite easy after I edited the Makefile slightly to have it use the right compiler. Using the tools at the original image H300.hex provided me finally with a new one. It just troubles me that the size is so much different:
-rw-r--r--   2626559 Mar 14 19:26 H300.hex (old)
-rw-r--r--   4189157 Mar 14 19:29 H300.hex (new)

That's over 1M more. The bootloader is only 50k in size. Is this a normal behaviour? Could I have made a mistake while compiling/using the tools?

Here's what I did and the output of the tools:
# ./descramble -iriver ../../H300.hex H300
Model H300 series
File decoded correctly and all checksums matched!
Output file contains all headers and checksums


# ./mkboot -h300 H300 ../../bootloader-h300.bin test
Wrote 0x3febe5 bytes in test

# ./scramble -iriver test H300.hex
Model H300 series
File encoded successfully and checksum table built!


By the way... I hacked the tool "romsizetest.pl" slightly to also give me a positive message. Here's what I got:
Added to the code:
Code: [Select]
 else {
    printf "Everything in order. There still are %d bytes left.\n",$max-$file;
}

H300.hex (original version):
Everything in order. There still are 262144 bytes left.
H300.hex (patched version):
Everything in order. There still are 262144 bytes left.

Amazingly, there's no difference between the numbers.

Now I'm sitting here looking at that rather large file, not really knowing wether it's save to update the player with it.
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: iriver patchtool only working under windows (tm)
« Reply #6 on: March 14, 2007, 03:51:48 PM »
The romsizetest.pl tool is not for the iriver ROM, it is for the Archos.

The large size is correct, because the bootloader is located at the end of the image, so there is a large chunk of unused space between the end of the original image and the start of the bootloader.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline Aikon

  • Member
  • *
  • Posts: 4
Re: iriver patchtool only working under windows (tm)
« Reply #7 on: March 14, 2007, 03:55:26 PM »
Thanks a bunch for the confirmation.
I guess within a few {days, hours, minutes} I'll have a dual-boot iriver, too. I'll report back in when it's done.
Logged

Offline Aikon

  • Member
  • *
  • Posts: 4
Re: iriver patchtool only working under windows (tm)
« Reply #8 on: March 14, 2007, 07:09:31 PM »
SUCCESS!

Thanks for all the support :D :D :D

First impression after boot: That's more likely I like a software to be than the original from iriver.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: iriver patchtool only working under windows (tm)
« Reply #9 on: March 15, 2007, 10:42:18 AM »
Welcome to the fascinating world of Rockbox! ;)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Iriver - Installation/Removal/Flashing
| | | |-+  iriver patchtool only working under windows (tm)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.104 seconds with 15 queries.