]> git.sur5r.net Git - openocd/commitdiff
tcl/board: add Linksys WRT54GL v1.1 board config
authorPaul Fertser <fercerpav@gmail.com>
Tue, 31 Dec 2013 15:07:47 +0000 (19:07 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 8 Jan 2014 22:18:25 +0000 (22:18 +0000)
Tested flashing a real v1.1 device.

Change-Id: Ie0d202b9fded8b92e731d93e0ef17be415a75fc8
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1852
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/board/linksys-wrt54gl.cfg [new file with mode: 0644]
tcl/target/bcm5352e.cfg [new file with mode: 0644]

diff --git a/tcl/board/linksys-wrt54gl.cfg b/tcl/board/linksys-wrt54gl.cfg
new file mode 100644 (file)
index 0000000..ffe53ff
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# Linksys WRT54GL v1.1
+#
+
+source [find target/bcm5352e.cfg]
+
+set partition_list {
+    CFE                { Bootloader                    0x1c000000 0x00040000 }
+    firmware   { "Kernel+rootfs"               0x1c040000 0x003b0000 }
+    nvram      { "Config space"                0x1c3f0000 0x00010000 }
+}
+
+# External 4MB NOR Flash (Intel TE28F320C3BD90 or similar)
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x1c000000 0x00400000 2 2 $_TARGETNAME
diff --git a/tcl/target/bcm5352e.cfg b/tcl/target/bcm5352e.cfg
new file mode 100644 (file)
index 0000000..3f0495a
--- /dev/null
@@ -0,0 +1,7 @@
+set _CHIPNAME bcm5352e
+set _CPUID 0x0535217f
+
+jtag newtap $_CHIPNAME cpu -irlen 8 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME mips_m4k -endian little -chain-position $_TARGETNAME