[U-Boot-Users] how to program u-boot to flash?

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.

In message 2A5969FA1F2BAE48BA505A2BD83BD965020E5B52@shamsg10.corp.jabil.org you wrote:
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":
...
If I don't comment out this, it will die on "mov r1, #4" or "mov r1, #1".
Can anyone tell me why?
You must be doing something wrong. probably the init sequences as performed by your BDI config file and those used in U-Boot conflict with each other.
My second question is how to program the u-boot to flash under BDI2000.
See the BDI2000 user's Manual, and the DULG.
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).
Is your boot device remapped to 0x50000000 on your board? Really?
Best regards,
Wolfgang Denk
participants (2)
-
Aric Wang
-
Wolfgang Denk