#! /usr/local/bin/jtag # Example: read whole 1M*16 flash on the BR-6104KP router / print server. # Wiggler-compatible JTAG cable, PCI parallel port recommended for speed cable parallel 0x378 WIGGLER # ADM5120 auto-detection not possible (device id = 0x00000001) detect include /usr/local/share/jtag/admtek/adm5120/adm5120 # detect CFI flash (physical address 0x1fc00000, 16-bit access) detectflash 0x3fc00000 # Make a backup of the current flash contents (for safety) # read flash (32-bit access, faster - only about 30 minutes...) readmem 0x5fc00000 0x200000 adm5120-flash.bin # for the bootloader only (Edimax BR6104K(P)/Sweex LB000021) readmem 0x5fc00000 0x10000 adm5120-bootloader.bin