summaryrefslogtreecommitdiffstats
path: root/utils/AMS/hacking
AgeCommit message (Collapse)AuthorFilesLines
2008-10-04Move mkamsboot into the rbutil/mkamsboot/ directory - no other changes, so ↵Dave Chapman6-782/+2
this should still work the same as before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18706 a1c6a512-1295-4272-9138-f99709370657
2008-10-02Remove the dependency on sufficient free space in the padding at the end of ↵Dave Chapman2-57/+52
the firmware block by storing the ucl unpack function in the main firmware block, immediately before the compressed firmware image. Also simplify the memcpy function in test.S. This has been tested successfully on a Clip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18682 a1c6a512-1295-4272-9138-f99709370657
2008-10-01It turns out that in-place UCL decompression isn't as easy as we thought, so ↵Dave Chapman1-2/+22
we copy the OF to an unused part of RAM before decompressing it. This works - I have successfully patched m300a-1.1.17A.bin and installed on my Clip with this code. Thanks to Rafael Carre (funman) for the actual patch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18679 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Correct the content of an error message (thanks to Jens for spotting) and ↵Dave Chapman1-2/+2
fix a warning git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18678 a1c6a512-1295-4272-9138-f99709370657
2008-10-01We need to strip the header (26 bytes) from the UCL file - based on the ↵Dave Chapman1-1/+35
information in tools/ucl2src.pl. Also add some sanity checking of the UCL file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18677 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Bug fix #1 for mkamsboot - pass the correct parameters to the ucl unpack ↵Dave Chapman2-3/+6
function. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18676 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Untested (i.e. will almost certainly brick your device if you attempt to use ↵Dave Chapman5-95/+304
it) first attempt at making mkamsboot store the original firmware as a UCL compressed image. If it works, then this means we have about 40KB (depending on target and OF version) for our bootloader code. I repeat: This is UNTESTED and needs reviewing fully before attempting to install on a device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18675 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Original, unmodified version of the ARM thumb implementation of the UCL ↵Dave Chapman1-0/+187
ucl_nrv2e_decompress_8 function from upx-3.03 - licensed under the GPL (v2 or later). This will be used to decompress the original firmware image in the next version of mkamsboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18674 a1c6a512-1295-4272-9138-f99709370657
2008-09-29We don't know how to increase the firmware size, so abort instead of ↵Dave Chapman1-9/+5
creating a bricking firmware. Suggested by Rafaël Carré (funman). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18663 a1c6a512-1295-4272-9138-f99709370657
2008-05-11Some tools for hacking Sansa V2 (AMS) firmware files and injecting our own code.Dave Chapman5-0/+525
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17464 a1c6a512-1295-4272-9138-f99709370657