tcl: add ASUS RT-N66U config 53/2153/5
authorPaul Fertser <fercerpav@gmail.com>
Sat, 24 May 2014 06:04:14 +0000 (10:04 +0400)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 1 Jun 2014 18:27:09 +0000 (18:27 +0000)
CFI flashing verified with real hardware. RAM configuration wasn't
attempted.

Change-Id: I9185ab71430d799793befef708a15f62edba1663
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2153
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tcl/board/asus-rt-n66u.cfg [new file with mode: 0644]
tcl/target/bcm4706.cfg [new file with mode: 0644]
tcl/tools/firmware-recovery.tcl

diff --git a/tcl/board/asus-rt-n66u.cfg b/tcl/board/asus-rt-n66u.cfg
new file mode 100644 (file)
index 0000000..4b255cf
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# http://wikidevi.com/wiki/Asus_RT-N66U
+#
+
+echo "ATTENTION: you need to solder a 4.7-10k pullup resistor to pin 21 of flash IC"
+echo "to enable JTAG, see http://wl500g.info/album.php?albumid=28&attachmentid=8991 ,"
+echo "there is an unpopulated footprint near U8.\n"
+
+set partition_list {
+    CFE                { Bootloader                    0xbc000000 0x00040000 }
+    firmware   { "Kernel+rootfs"               0xbc040000 0x01fa0000 }
+    nvram      { "Config space"                0xbdfe0000 0x00020000 }
+}
+
+source [find target/bcm4706.cfg]
+
+# External 32MB NOR Flash (Spansion S29GL256P10TF101
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xbc000000 0x02000000 2 2 $_TARGETNAME
diff --git a/tcl/target/bcm4706.cfg b/tcl/target/bcm4706.cfg
new file mode 100644 (file)
index 0000000..10b32c7
--- /dev/null
@@ -0,0 +1,7 @@
+set _CHIPNAME bcm4706
+set _CPUID 0x1008c17f
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME mips_m4k -endian little -chain-position $_TARGETNAME
index 45311490faaef902305a078f8b3216a8e337a3ec..0f2bc2ab07c56518cc95915f4ab4d91f00deebc2 100644 (file)
@@ -3,6 +3,7 @@ echo "Use -c firmware_help to get help\n"
 
 set known_boards {
     "asus-rt-n16               ASUS RT-N16"
+    "asus-rt-n66u              ASUS RT-N66U"
     "linksys-wrt54gl           Linksys WRT54GL v1.1"
     "netgear-dg834v3           Netgear DG834G v3"
     "bt-homehubv1              BT HomeHub v1"

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)