A question about initialization of SDRAM
Thanks for your reply!
I had tried several different version of ppc_8xx-gcc to build the same u-boot.Only version 3.2.1 works ok.
All the others(3.2.2, 3.3.1 and 3.3.3) have the problem that I have said before. So I think that maybe there is something different between these versions of gcc. Would you please explain it to me? Thanks a lot.
Quoted 42 lines
Quoted 21 lines
Quoted 2 lines · In message <[email protected]> you wrote:
I am trying to use ELDK to make a u-boot on the board with MPC852T.
"the board with MPC852T"? There is many such boards, most of them differnt.
Quoted 1 line
There is declaration of rtx in
cpu/mpc8xx/fec.c:...
Quoted 1 line
static RTXBD *rtx = NULL;...
Quoted 2 lines
I think that "rtx" should be NULL at the first time fec_init() is entered,so the rtx will be given the value. but after the ELDK make the u-boot, "rtx" isn't NULL at the first time fec_init() is entered, it is 0xffffffff.What makes you think so? The code is running perfectly fine on many boards. Which specific problem do you see?
Quoted 2 lines
Before the word "memctl->memc_mbmr = 0xD0924114" in the function initdram, rtx is NULL(0x0),but after that it is 0xffffffff. Part of the fuction initdram is below:Looks as if there was a bug in the SDRAM init sequence for your board.
Quoted 17 lines
Quoted 1 line
I wonder what happens in "
memctl->memc_mbmr= 0xD0924114;",would you please explain it to me ? Thanks!Please see the processor's User's Manual; read the memory controller section.
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de WARNING: This Product Attracts Every Other Piece of Matter in the Universe, Including the Products of Other Manufacturers, with a Force Proportional to the Product of the Masses and Inversely Proportional to the Distance Between Them.= = = = = = = = = = = = = = = = = = = =
Quoted 4 lines · In message <[email protected]> you wrote:
I had tried several different version of ppc_8xx-gcc to build the same u-boot.Only version 3.2.1 works ok.
All theothers(3.2.2, 3.3.1 and 3.3.3)have the problem that I have said before. So I think that maybe there is something different between these versions of gcc. Would you please explain it to me? Thanks a lot.
I cannot confirm your observation. For example, ELDK release 3.1.1 uses GCC 3.3.3, and this works perfectly fine.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Parkinson's Law: Work expands to fill the time alloted it.