From 302a3a8fed6a279b99d64dd901946202bd6afa6f Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Tue, 31 Dec 2013 19:07:47 +0400 Subject: [PATCH] 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 --- tcl/board/linksys-wrt54gl.cfg | 15 +++++++++++++++ tcl/target/bcm5352e.cfg | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 tcl/board/linksys-wrt54gl.cfg create mode 100644 tcl/target/bcm5352e.cfg diff --git a/tcl/board/linksys-wrt54gl.cfg b/tcl/board/linksys-wrt54gl.cfg new file mode 100644 index 000000000..ffe53ffbb --- /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 000000000..3f0495a3e --- /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