Re: [U-Boot] MPC8641D stucks before relocation

2013-11-11 Thread York Sun
You said you used the exactly same register for CodeWarrior and U-boot. CodeWarrior works but U-boot doesn't? You can try two methods to debug. 1) Build a RAMBOOT u-boot, use CodeWarrior to initialize DDR and copy u-boot to its destination and start to run. 2) Let u-boot initialize DDR, make a

Re: [U-Boot] MPC8641D stucks before relocation

2013-11-09 Thread Ashish
On Monday 28 October 2013 05:31 PM, Ashish Khetan wrote: I disabled the 2nd core by using cfg_core1_enable and D2_MSRCID1 signal is not connected and we are using DDR controller 2... will this create any obstacles to relocate? Is there any other register configuration for DDR? can somebody

Re: [U-Boot] MPC8641D stucks before relocation

2013-10-28 Thread Ashish Khetan
I disabled the 2nd core by using cfg_core1_enable and D2_MSRCID1 signal is not connected and we are using DDR controller 2... will this create any obstacles to relocate? Is there any other register configuration for DDR? can somebody help me to understand this or give me some pointer to get more

Re: [U-Boot] MPC8641D stucks before relocation

2013-10-28 Thread York Sun
I see you have relaxed most timing to the slowest. Debugging DDR is not about trial and error because there are so many parameters. Could you get some guidance from hardware designers? If you can't, I suggest you get the spec and do the math yourself, using the DDR driver we have in u-boot. BTW,

[U-Boot] MPC8641D stucks before relocation

2013-10-25 Thread Ashish Khetan
hii I am using MPC8641D based custom board for evaluation purpose. I am using minimal configuration for this board i.e. only FLASH and DDR initialisation. when I compiled U-boot in debug mode its printing addresses, i check for those addresses and found that it is unable to relocate itself to

Re: [U-Boot] MPC8641D stucks before relocation

2013-10-25 Thread York Sun
It is probably because your DDR wasn't initialized correctly. You can try to dump all DDR registers and check if anyone is suspicious. You can also override any register before enabling the controller. You may also add some memory test before relocation. York On 10/25/2013 06:38 AM, Ashish

Re: [U-Boot] MPC8641D stucks before relocation

2013-10-25 Thread Ashish Khetan
Thanks For reply, i check DDR configuration using Code warrior, and successfully getting read/write from DDR. I use the following configuration in code warrior and same in u-boot... writemem.l 0xf8006000 0x001f # CS0_BNDS writemem.l 0xf8006080 0x80914102 # CS0_CONFIG writemem.l