http://android.pastebin.com/abCHbGvX
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 4 Oct 2010 18:23:46 +0000 (20:23 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 4 Oct 2010 18:23:46 +0000 (20:23 +0200)
openocd/wiggler.cfg [new file with mode: 0644]

diff --git a/openocd/wiggler.cfg b/openocd/wiggler.cfg
new file mode 100644 (file)
index 0000000..32d8e53
--- /dev/null
@@ -0,0 +1,64 @@
+#######################################\r
+# HTC Dream/Magic - OpenOCD configuration\r
+# > Wiggler profile\r
+#\r
+# For use with openocd 0.4\r
+#######################################\r
+\r
+# Parallel port wiggler (many clones available) on port 0x378\r
+#\r
+# Addresses: 0x378/LPT1 or 0x278/LPT2 ...\r
+\r
+interface parport\r
+parport_port 0x378\r
+parport_cable wiggler\r
+\r
+\r
+##### HTC Dream configuration #####\r
+# based on Atmel AT91rm9200\r
+###################################\r
+\r
+reset_config trst_and_srst srst_pulls_trst\r
+\r
+#dream information (or something near it)\r
+   set  _CHIPNAME arm926ejs\r
+   set  _ENDIAN little\r
+   set _CPUTAPID 0xa01700e1\r
+\r
+\r
+proc dbreg {} {\r
+    #show 16 arm registers only\r
+    reg 0\r
+    reg 1 \r
+    reg 2\r
+    reg 3\r
+    reg 4\r
+    reg 5\r
+    reg 6\r
+    reg 7\r
+    reg 8\r
+    reg 9\r
+    reg 10\r
+    reg 11\r
+    reg 12\r
+    reg 13\r
+    reg 14\r
+    reg 15\r
+}\r
+\r
+jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+# Create the GDB Target.\r
+set _TARGETNAME arm9.cpu\r
+target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME\r
+\r
+# Work area non-functional at this point in time\r
+#$_TARGETNAME configure -work-area-phys 0x00200000 \\r
+#              -work-area-size 0x4000 -work-area-backup 1\r
+# .. seems to work until watchdog is triggered..\r
+#arm9 configure -work-area-phys 0x103B5000  \\r
+#        -work-area-size 0x200 -work-area-backup 0\r
+\r
+# This chip has a DCC ... use it\r
+arm7_9 dcc_downloads enable\r
+arm7_9 fast_memory_access enable
\ No newline at end of file