From: Paul Fertser Date: Tue, 31 Dec 2013 15:07:47 +0000 (+0400) Subject: tcl/board: add Linksys WRT54GL v1.1 board config X-Git-Tag: v0.8.0-rc1~137 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=302a3a8fed6a279b99d64dd901946202bd6afa6f;p=openocd tcl/board: add Linksys WRT54GL v1.1 board config Tested flashing a real v1.1 device. Change-Id: Ie0d202b9fded8b92e731d93e0ef17be415a75fc8 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/1852 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/tcl/board/linksys-wrt54gl.cfg b/tcl/board/linksys-wrt54gl.cfg new file mode 100644 index 00000000..ffe53ffb --- /dev/null +++ b/tcl/board/linksys-wrt54gl.cfg @@ -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 index 00000000..3f0495a3 --- /dev/null +++ b/tcl/target/bcm5352e.cfg @@ -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