#! /usr/local/bin/jtag # Example: read whole 1M*16 flash on RTL8181/8186 based devices. # WARNING: flash writing with "flashmem" not tested on 8186 yet, needs # a volunteer with a bricked box (nothing to lose if it doesn't work). # Xilinx-compatible JTAG cable, PCI parallel port recommended for speed cable ppdev /dev/parport1 DLC5 # auto-detected as Lexra LX5280 (device id = 0x1528000D) detect # detect CFI flash (physical address 0x1fc00000, 16-bit access) detectflash 0x3fc00000 # read flash (32-bit access, faster - only about 30 minutes...) readmem 0x5fc00000 0x200000 rtl8181-flash.bin