riscv-openocd/tcl/board/linksys-wag200g.cfg

30 lines
991 B
INI
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
#
# Linksys WAG200G Router
#
# The stock firmware Flash layout is organized as follow:
#
# Start End Device
# 0x90000000 0x90020000 /dev/mtdblock/2
# 0x90020000 0x900d0000 /dev/mtdblock/1
# 0x900d0000 0x903a0000 /dev/mtdblock/0
# 0x903a0000 0x903e0000 /dev/mtdblock/5
# 0x903e0000 0x903f0000 /dev/mtdblock/3
# 0x903f0000 0x90400000 /dev/mtdblock/4
set partition_list {
adam2 { "Adam2 bootloader" 0x90000000 0x00020000 }
kernel { "Kernel" 0x90020000 0x000b0000 }
rootfs { "Root FS" 0x900d0000 0x002d0000 }
lang { "Minix language part" 0x903a0000 0x00040000 }
config { "Firmware config" 0x903e0000 0x00010000 }
adam2env { "Adam2 environment" 0x903f0000 0x00010000 }
}
source [find target/ti-ar7.cfg]
# External 4MB MXIC 29LV320MBTC Flash (Manufacturer/Device: 0x00c2 0x227e)
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x90000000 0x00400000 2 2 $_TARGETNAME