#! /usr/local/bin/jtag # Example: read whole 1M*16 flash on the BR-6104KP router / print server. # WARNING: flash writing with "flashmem" is tested on my ADM5120, but # use it at your own risk. # Wiggler-compatible JTAG cable, PCI parallel port recommended for speed cable parallel 0x378 WIGGLER # auto-detection not possible (device id = 0x00000001) detect include admtek/adm5120/adm5120 # detect CFI flash (physical address 0x1fc00000, 16-bit access) detectflash 0x3fc00000 # write to flash (162-bit access - roughly 1 hour for the complete 2MB) flashmem 0x3fc00000 adm5120-flash.bin # for the bootloader only (Edimax BR6104K(P)/Sweex LB000021) flashmem 0x3fc00000 adm5120-bootloader.bin