summaryrefslogtreecommitdiffstats
path: root/utils/hwpatcher
AgeCommit message (Collapse)AuthorFilesLines
2014-09-02hwpatcher: add generic RKW file patching scriptMarcin Bukat1-0/+126
This script is handy hacking tool to patch RKW file with arbitrary binary and put jump into implanted code. It also shows how to use hwstub crc routine. Change-Id: I89b5086dc1ddaca3dbc03df26a85472d8a20d51e
2014-08-26hwpatcher: add framework for CRC computationAmaury Pouly2-11/+106
Change-Id: Ib78f0fe58db5cec86f043d3e9e1ca14e69297ba0 Reviewed-on: http://gerrit.rockbox.org/911 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-08-13hwpatcher: fix horrible typo in the makefileAmaury Pouly1-1/+1
Change-Id: I6e8d8ae3a5f6e1111a6b7d910a1a6b94e2733ca6
2014-06-25Remove empty filesAmaury Pouly2-2/+0
Change-Id: I44a4a90cddba7d0aed4d5f06934848690d0d32f4
2014-06-24Introduce hwpatcher, a tool to patch binariesAmaury Pouly17-0/+2228
This tool is a scriptable (lua) tool to patch binaries, it supports: - raw binary - ELF - SB(v1/v2) It also contains some basic routines to parse and generate useful arm/thumb code like jump or register load/store. This is very useful to take a firmware and patch an interrupt vector or some code to jump to an extra payload added to the binary. Examples are provided for several STMP based target which the payload is expected to be hwstub, and also for the Sansa View. A typical patcher usually requires three elements: - the lua patcher itself - the payload (hwstub for example) - (optional) a small stub either to jump properly to the payload or determine under which circumstance to do the jump (hold a key for example) Change-Id: I6d36020a3bc9e636615ac8221b7591ade5f251e3