
Hello all,
I compiled u-boot 1.1.1 under cygwin for Coyote board with "make ixdp425_config && make all". I use BDI2000 or Insight to load "u-boot" to the board. It runs well after I commented out below lines in "cpu/ixp/start. S":
/* set EXP CS0 to the optimum timing */ ldr r1, =CFG_EXP_CS0 ldr r2, =IXP425_EXP_CS0 str r1, [r2]
/* make sure flash is visible at 0 */ ldr r2, =IXP425_EXP_CFG0 ldr r1, [r2] orr r1, r1, #0x80000000 str r1, [r2]
mov r1, #CFG_SDR_CONFIG ldr r2, =IXP425_SDR_CONFIG str r1, [r2]
/* disable refresh cycles */ mov r1, #0 ldr r3, =IXP425_SDR_REFRESH str r1, [r3]
/* send nop command */ mov r1, #3 ldr r4, =IXP425_SDR_IR str r1, [r4] DELAY_FOR 0x4000, r0
/* set SDRAM internal refresh val */ ldr r1, =CFG_SDRAM_REFRESH_CNT str r1, [r3] DELAY_FOR 0x4000, r0
/* send precharge-all command to close all open banks */ mov r1, #2 str r1, [r4] DELAY_FOR 0x4000, r0
/* provide 8 auto-refresh cycles */ mov r1, #4 mov r5, #8 111: str r1, [r4] DELAY_FOR 0x100, r0 subs r5, r5, #1 bne 111b
/* set mode register in sdram */ mov r1, #1 str r1, [r4] DELAY_FOR 0x4000, r0
/* send normal operation command */ mov r1, #6 str r1, [r4] DELAY_FOR 0x4000, r0
If I don't comment out this, it will die on "mov r1, #4" or "mov r1, #1".
Can anyone tell me why?
My second question is how to program the u-boot to flash under BDI2000.
I've tried to program "u-boot" and "u-boot.bin" to 0x50000000 under BDI2000. I can run it under BDI2000 by "go 0x50000000". But after I unplug the BDI2000 from the Coyote board, it can't run (There's nothing on console).
Thanks in advance.