summaryrefslogtreecommitdiff
path: root/utils/rknanoutils/rkboottool/misc.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-06-19 22:52:18 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-06-19 22:54:41 +0200
commit906963ae7667ae06951e12c0f02032184a4e23fd (patch)
tree105b9ded4736810f9d62512f7f966abf6ba91799 /utils/rknanoutils/rkboottool/misc.c
parent715111122837440d3a1463d0d6932c469418dcbb (diff)
downloadrockbox-906963ae7667ae06951e12c0f02032184a4e23fd.tar.gz
rockbox-906963ae7667ae06951e12c0f02032184a4e23fd.zip
rknanoutils: much more sensible format guess
I finally found a sensible format for the executable files. The tool now can output the loading entry to elf files. Some disassembly and analysis suggest the phys/virt addresses are correct. However the entries are somehow linked and it is still unclear how (are there "calls" to the code ? when ?). Change-Id: Ied38b5bb297176c5755b5ecb3309f4a259c18cd4
Diffstat (limited to 'utils/rknanoutils/rkboottool/misc.c')
-rw-r--r--utils/rknanoutils/rkboottool/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/rknanoutils/rkboottool/misc.c b/utils/rknanoutils/rkboottool/misc.c
index b8644b3bf8..108235e7fd 100644
--- a/utils/rknanoutils/rkboottool/misc.c
+++ b/utils/rknanoutils/rkboottool/misc.c
@@ -34,6 +34,13 @@ char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' };
34 34
35static bool g_color_enable = true; 35static bool g_color_enable = true;
36 36
37void *xmalloc(size_t s)
38{
39 void * r = malloc(s);
40 if(!r) bugp("malloc");
41 return r;
42}
43
37void enable_color(bool enable) 44void enable_color(bool enable)
38{ 45{
39 g_color_enable = enable; 46 g_color_enable = enable;