[U-Boot-Users] can't light led after flash restrict to preliminary range
刘辉
liuhuicumt at tom.com
Fri Jul 29 11:34:46 CEST 2005
hello all:
I am new for U-boot and try to port uboot base one TQM866M to my board. I meet a problem and I don't know how to sovle it. Here is the situation:
I light a led in cup_init.c -> cpu_init_f( ) as flow:
[174] led_init(0x7); /* here is my light led function*/
[175] /* now restrict to preliminary range */
[176] memctl->memc_br0 = CFG_BR0_PRELIM;
[177] memctl->memc_or0 = CFG_OR0_PRELIM;
And I succeed. But when i move the led function down to line 177 or even to 176, the led doesn't work, as flows:
[174] /* now restrict to preliminary range */
[175] memctl->memc_br0 = CFG_BR0_PRELIM;
[176] led_init(0x7); /* here is my light led function*/
[177] memctl->memc_or0 = CFG_OR0_PRELIM;
Here is the short discription of my board:
MPC859DSL
OSCLK
AM29lv320mb * 1, CS0, 4MByte
IC42S16800-t *2, CS1, 32Mbyte
I didn't change any words of the tqm866.h, because I thing that:
1. althoung I have only one flash chip, while tqm866m has tow and memc_or1 was set in line 168, but it doesn't take into use.
2. the or and br belong to ram don't take into use at this moment, too.
i don't have a debuger like IDE2000, so i was so confused.
hope you can help me.
regards.
More information about the U-Boot
mailing list