summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2013-07-18 23:55:35 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2013-11-24 00:10:36 +0100
commit8e633385912494ff5e871ec4c264d3a7db46fb98 (patch)
treea8d6b23861969b7df72bb79695ad742082ce2b02 /utils/hwstub/tools
parent1ed57aaa5049d2bbe4e94bed6674bd405e98a4a5 (diff)
downloadrockbox-8e633385912494ff5e871ec4c264d3a7db46fb98.tar.gz
rockbox-8e633385912494ff5e871ec4c264d3a7db46fb98.zip
hwstub rk27xx port
Change-Id: I85ac57117911544b65ccd56eb16303e30be67cab
Diffstat (limited to 'utils/hwstub/tools')
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp18
-rw-r--r--utils/hwstub/tools/lua/load.lua3
2 files changed, 2 insertions, 19 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp
index 1e77e511ba..d70fd6dc06 100644
--- a/utils/hwstub/tools/hwstub_shell.cpp
+++ b/utils/hwstub/tools/hwstub_shell.cpp
@@ -826,24 +826,6 @@ int main(int argc, char **argv)
826 goto Lerr; 826 goto Lerr;
827 } 827 }
828 } 828 }
829
830 // dump ROM
831 if(!g_quiet)
832 {
833 void *rom = malloc(64 * 1024);
834 ret = hwstub_rw_mem(&g_hwdev, 1, 0xc0000000, rom, 64 * 1024);
835 if(ret != 64 * 1024)
836 {
837 printf("Cannot read ROM: %d\n", ret);
838 goto Lerr;
839 }
840
841 printf("ROM successfully read!\n");
842 FILE *f = fopen("rom.bin", "wb");
843 fwrite(rom, 64 * 1024, 1, f);
844 fclose(f);
845 }
846
847 /** Init lua */ 829 /** Init lua */
848 830
849 // create lua state 831 // create lua state
diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua
index 24c0f6b619..2875b74f1a 100644
--- a/utils/hwstub/tools/lua/load.lua
+++ b/utils/hwstub/tools/lua/load.lua
@@ -3,4 +3,5 @@ package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lu
3if hwstub.dev.target.id == hwstub.dev.target.STMP then 3if hwstub.dev.target.id == hwstub.dev.target.STMP then
4 require "stmp" 4 require "stmp"
5end 5end
6require "dumper" \ No newline at end of file 6
7require "dumper"