From c9a028cc183d638c16ca9a8858b783b1830be16f Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 24 Jun 2014 18:04:17 +0200 Subject: Introduce hwpatcher, a tool to patch binaries 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 --- utils/hwpatcher/patch_viewbl.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 utils/hwpatcher/patch_viewbl.lua (limited to 'utils/hwpatcher/patch_viewbl.lua') diff --git a/utils/hwpatcher/patch_viewbl.lua b/utils/hwpatcher/patch_viewbl.lua new file mode 100644 index 0000000000..8d1c8b69c3 --- /dev/null +++ b/utils/hwpatcher/patch_viewbl.lua @@ -0,0 +1 @@ + -- cgit v1.2.3