Support and General Use > Hardware
Gigabeat F firmware hacking information
roolku:
--- Quote from: shoora on April 17, 2007, 12:18:48 PM ---Please look for fwup listing in forder
http://rapidshare.com/users/VUBQPF
--- End quote ---
Thank you for sharing this, I now have "Powerup on AC plugin" and "Shorted delay on POWER" on my gigabeat.
One thing I noticed was that encrypt.bat and decrypt.bat didn't handle f-hd-loader+crc.bin, so i added:
--- Code: ---..\fwupDecrypt\fwupDecrypt.exe f-hd-loader+crc.bin f-hd-loader+crc.bin.dec
--- End code ---
and
--- Code: ---..\fwupDecrypt\fwupDecrypt.exe -e f-hd-loader+crc.bin.dec f-hd-loader+crc.bin
--- End code ---
respectively. Also is it required to de-/encrypt the other 4 files since only f-hd-loader+crc.bin.dec is being patched? I noticed the cycle didn't result in identical files.
Anyway. Everything worked fine. So thanks again.
shoora:
--- Quote from: roolku on April 17, 2007, 02:45:39 PM ---One thing I noticed was that encrypt.bat and decrypt.bat didn't handle f-hd-loader+crc.bin, so i added:
--- End quote ---
It's just because of time stamp in image. Look at last 16 bytes in decrypted file. fwup utility just compares time stamp of image file with same area in flash and reject flashing of older or same image.
I just decided not to put adiition effort on detection that image was actually modified.
By the way, with some mumba-jumba I've managed to successfuly resume Gigabeat from suspend bypassing bootstrap. The only problem I have is LED controller initialization is unreliable. And, possibly, there some small issues with IDE controller. I am can try to implement something like suspend function to put Rockbox into sleep and return from this function after resume. Same as original Linux on gigabeat.
Do we any Rockbox targets that implement suspend? We can save few seconds on shutdown and on resume (bypassing rebuffering).
I have some project with higher priority, and have plan to return to rockbox in a few days.
Mad Cow:
Nice! I just figured out how to decrypt hd-graphic+crc.bin and work the BMP viewer. I'm guessing you have to run "fwupdecrypt.exe -e -a5 input.bin hd-graphic+crc.bin" after, to encrypt it. Also, how do you work the patches?
EDIT: decrypt.bat doesn't seem to work, it says that it's "unable to open source file", but fwupdecrypt.exe works fine if I do it manually. ??? The paths are all correct, if they aren't it gives another error.
roolku:
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---I'm guessing you have to run "fwupdecrypt.exe -e -a5 input.bin hd-graphic+crc.bin" after, to encrypt it.
--- End quote ---
Where did you get the -a5 ? encrypt.bat doesn't have it.
fwupDecrypt.exe -e hd-graphic+crc.bin.dec hd-graphic+crc.bin
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---Also, how do you work the patches?
--- End quote ---
decrypt.bat
<patch>.bat
encrypt.bat
note my comment about missing line in *crypt.bat. I am still not 100% sure you need to *crypt all 5 files (or just the one you want to modify), but Shora's date comment seems to support it.
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---EDIT: decrypt.bat doesn't seem to work, it says that it's "unable to open source file", but fwupdecrypt.exe works fine if I do it manually. ??? The paths are all correct, if they aren't it gives another error.
--- End quote ---
Double-check your path. It worked for me. Alternatively - did you have the input file open in an editor perhaps?
Mad Cow:
--- Quote from: roolku on April 18, 2007, 04:09:11 AM ---
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---I'm guessing you have to run "fwupdecrypt.exe -e -a5 input.bin hd-graphic+crc.bin" after, to encrypt it.
--- End quote ---
Where did you get the -a5 ? encrypt.bat doesn't have it.
fwupDecrypt.exe -e hd-graphic+crc.bin.dec hd-graphic+crc.bin
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---Also, how do you work the patches?
--- End quote ---
decrypt.bat
.bat
encrypt.bat
note my comment about missing line in *crypt.bat. I am still not 100% sure you need to *crypt all 5 files (or just the one you want to modify), but Shora's date comment seems to support it.
--- Quote from: Mad Cow on April 17, 2007, 08:49:21 PM ---EDIT: decrypt.bat doesn't seem to work, it says that it's "unable to open source file", but fwupdecrypt.exe works fine if I do it manually. ??? The paths are all correct, if they aren't it gives another error.
--- End quote ---
Double-check your path. It worked for me. Alternatively - did you have the input file open in an editor perhaps?
--- End quote ---
Then what do the -a* switches do? And yes, I had it open in an editor, could that have caused the problem?
EDIT: the .bat files still don't work, this is what they look like:
--- Code: ---..\fwupDecrypt\fwupDecrypt.exe hd-graphic+crc.bin hd-graphic+crc.bin.dec
..\fwupDecrypt\fwupDecrypt.exe hd-panic+crc.bin hd-panic+crc.bin.dec
..\fwupDecrypt\fwupDecrypt.exe hd-secure+crc.bin hd-secure+crc.bin.dec
..\fwupDecrypt\fwupDecrypt.exe hd-zboot-flprog-2440+CRC.bin hd-zboot-flprog-2440+CRC.bin.dec
--- End code ---
The directory structure is the same as in the zip and anll of the needed files are in fwupDecrypt.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version