; bdiGDB flash programming via xkphys on a Cavium CN6880 ; ------------------------------------------------------ ; ; ; Note: ; On the CN6800-EVB make sure that jumper J35 is installed! ; Otherwise the on-board MCU-EJTAG interface is selected. ; [INIT] ; WCP0 12 0x504000e4 ;enable access to 64-bit segmet ; WM64 0x8001180000000000 0x000000008fff1f00 ;MIO_BOOT_REG_CFG0: map to 0x1f000000 ; [TARGET] ; common parameters POWERUP 5000 ;power-up delay 5 seconds JTAGCLOCK 16000000 ;use 16 MHz JTAG clock RESET HARD ;hard reset via RST pin ; ;====================================================== ; !!!! defines the cores numbers without any holes !!!! ;====================================================== ; ; Core#0 parameters (active core after reset) #0 CPUTYPE CNMIPS2 #0 ENDIAN BIG #0 JTAGDELAY 10 #0 STARTUP HALT ;halt at the boot vector #0 BREAKMODE HARD #0 WORKSPACE 0x80000000 ;workspace in L2 cache #0 SCANPRED 31 155 ;select last core in scan chain #0 SCANSUCC 0 0 ; [HOST] FILE E:/temp/dump256k.bin FORMAT BIN 0xA0001000 PROMPT cnMIPS2#0> [FLASH] ;Program boot flash S29GL064N-R3 in 8-bit mode WORKSPACE 0x80001000 ;workspace in L2 cache CHIPTYPE MIRRORX8 ;Flash type CHIPSIZE 0x00800000 ;The visible size of one flash chip in bytes BUSWIDTH 8 ;The width of the flash memory bus in bits FILE e:/temp/dump16k.bin FORMAT BIN 0x800100001f280000 ERASE 0x800100001f280000 [REGS] ;used for all cores unless overridden DMM1 0xFF300000 ;DSU base address DMM2 0x80000000_0 ;xkphys segment FILE $regCNMIPS2.def