Skip to contentSkip to conversation

MPC8536DS Evaluation Board Force DDR Setting cannot be done properly

U-Boot AgarwalAshish 2 participants 4 messages May 15, 2009 – May 26, 2009

lore
Share & tools
lore
#0 lore raw

Hello All,

I am Ashish Agarwal.

Currently i am working on the MPC8536DS Freescale Development system evaluation and the Uboot development for a customized board.

-------------------------------------------------------
Problem 1 : DDR Force setting
-------------------------------------------------------
when i try to force setting of DDR parameter over 8536DS board through the

    #define CONFIG_SPD_EEPROM           -> #undef CONFIG_SPD_EEPROM
    #define CONFIG_DDR_SPD              -> #undef CONFIG_DDR_SPD

the compile giver me error about "CONFIG_SPD_EEPROM is required" as this is written at the bottom place of include/configs/MPC8536ds.h file

becuase we want to set forcly DDR parameters so I commented these lines too
====================================================
#ifndef CONFIG_SPD_EEPROM
#error ("CONFIG_SPD_EEPROM is required") #endif
====================================================
DDR Force parameter were set as they were set when i complied the source with SPD setting. [Dumped from the Uboot].
They have to work for Force DDR setting too ;) but they are not working.

I was able to compile the souce and dowloading of uboot to the FLASH. but ubootis stuck in between.

I stuck somewhere arround
"realocate_code" the next step of u-boot print statements where i am reaching upto is "Now Running in RAM- U-Boot at: %0x ".

and as i am not able to debugg u-boot via the CW it is paining me to get rid out of this all stuff.

[UBoot Debug for the MPC8536DS is not rleased yet they might be supported in 8.8.3 version of CW :( ]

though i had done DDR parameter work for the VxWorks OS DDR Parameter setting [so i now how to calculate those]

--> is it the source problem ??
The DDR parameter settings via "phys_size_t fixed_sdram(void)" function. or it is the other issue ??
is i am missing something.

<< <<< <<< <<< - V - >>> >>> >>> >>

	CPU	: MPC8536DS [Freescale PoerPC]
	UBOOT 	: U-Boot 1.3.4 
	Kernel	: Linux 2.6.26

<< <<< <<< <<< - V - >>> >>> >>> >>

Any help or comments are highly appreciable.

?????????????????????????
--
Ashish
???????????:*:*:? ??:*:*:????
????????????
E-MAIL : ashish.g at teldevice.co.jp
????:*:*:? ??:*:*:???????????

#1 lore raw

[U-Boot] MPC8536DS Evaluation Board Force DDR Setting cannot bedone properly

Quoted 54 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of AgarwalAshish
Sent: Friday, May 15, 2009 3:27 PM
To: u-boot at lists.denx.de
Cc: ashish.g at teldevice.co.jp
Subject: [U-Boot] MPC8536DS Evaluation Board Force DDR Setting cannot bedone properly

Hello All,

I am Ashish Agarwal.

Currently i am working on the MPC8536DS Freescale Development system evaluation and the Uboot development for a customized board.

-------------------------------------------------------
Problem 1 : DDR Force setting
-------------------------------------------------------
when i try to force setting of DDR parameter over 8536DS board through the

    #define CONFIG_SPD_EEPROM           -> #undef CONFIG_SPD_EEPROM
    #define CONFIG_DDR_SPD              -> #undef CONFIG_DDR_SPD

the compile giver me error about "CONFIG_SPD_EEPROM is required" as this is written at the bottom place of include/configs/MPC8536ds.h file

becuase we want to set forcly DDR parameters so I commented these lines too ==================================================== #ifndef CONFIG_SPD_EEPROM
#error ("CONFIG_SPD_EEPROM is required") #endif
====================================================
DDR Force parameter were set as they were set when i complied the source with SPD setting. [Dumped from the Uboot].
They have to work for Force DDR setting too ;) but they are
not working.

I was able to compile the souce and dowloading of uboot to the FLASH. but ubootis stuck in between.

I stuck somewhere arround
"realocate_code" the next step of u-boot print statements where i am reaching upto is "Now Running in RAM- U-Boot at: %0x ".

and as i am not able to debugg u-boot via the CW it is paining me to get rid out of this all stuff.

[UBoot Debug for the MPC8536DS is not rleased yet they might be supported in 8.8.3 version of CW :( ]

Quoted 8 lines

though i had done DDR parameter work for the VxWorks OS DDR Parameter setting [so i now how to calculate those]

--> is it the source problem ??
The DDR parameter settings via "phys_size_t
fixed_sdram(void)" function. or it is the other issue ??
is i am missing something.

Did you modify the the DDR memory size according to your DIMM in the function fixed_sdram()?

Best Regards,
Mingkai

#2 lore raw

[U-Boot] MPC8536DS Evaluation Board Force DDR Setting cannot bedone properly

Hello Mingkai

Thanks for you kind attention to my mail.

Quoted 3 lines

Did you modify the the DDR memory size according to your DIMM in the function fixed_sdram()?

Yes i know i have to do this. I fixed this via declaring a MACRO Globally.

but for my first test case as i mentioned that i used the same Memory and same condition as they were before. The same memory (DDR1 DIMM 512MB) i am using before with the SPD read DDR setting.

Indeed it is is neccessary to check @ the very first stage. :)

thanks for your point but i am still in the trap :(

--
Ashish

?????????????????????????
???????????:*:*:? ??:*:*:????
????????????????
?????????????SFTG??
????????????

?224-0045?????????????????
TEL : 045-474-3549 FAX : 045-474-7060
E-MAIL : ashish.g at teldevice.co.jp
Home : http://www.teldevice.co.jp/
????:*:*:? ??:*:*:???????????

Quoted 69 lines
Quoted 54 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of AgarwalAshish
Sent: Friday, May 15, 2009 3:27 PM
To: u-boot at lists.denx.de
Cc: ashish.g at teldevice.co.jp
Subject: [U-Boot] MPC8536DS Evaluation Board Force DDR Setting cannot bedone properly

Hello All,

I am Ashish Agarwal.

Currently i am working on the MPC8536DS Freescale Development system evaluation and the Uboot development for a customized board.

-------------------------------------------------------
Problem 1 : DDR Force setting
-------------------------------------------------------
when i try to force setting of DDR parameter over 8536DS board through the

    #define CONFIG_SPD_EEPROM           -> #undef CONFIG_SPD_EEPROM
    #define CONFIG_DDR_SPD              -> #undef CONFIG_DDR_SPD

the compile giver me error about "CONFIG_SPD_EEPROM is required" as this is written at the bottom place of include/configs/MPC8536ds.h file

becuase we want to set forcly DDR parameters so I commented these lines too ==================================================== #ifndef CONFIG_SPD_EEPROM
#error ("CONFIG_SPD_EEPROM is required") #endif
====================================================
DDR Force parameter were set as they were set when i complied the source with SPD setting. [Dumped from the Uboot].
They have to work for Force DDR setting too ;) but they are
not working.

I was able to compile the souce and dowloading of uboot to the FLASH. but ubootis stuck in between.

I stuck somewhere arround
"realocate_code" the next step of u-boot print statements where i am reaching upto is "Now Running in RAM- U-Boot at: %0x ".

and as i am not able to debugg u-boot via the CW it is paining me to get rid out of this all stuff.

[UBoot Debug for the MPC8536DS is not rleased yet they might be supported in 8.8.3 version of CW :( ]

Quoted 8 lines

though i had done DDR parameter work for the VxWorks OS DDR Parameter setting [so i now how to calculate those]

--> is it the source problem ??
The DDR parameter settings via "phys_size_t
fixed_sdram(void)" function. or it is the other issue ??
is i am missing something.

Did you modify the the DDR memory size according to your DIMM in the function fixed_sdram()?

Best Regards,
Mingkai

#3 lore raw

[U-Boot] MPC8536DS Evaluation Board Force DDR Setting cannot bedone properly

As i were able to set the DDR data Via [I2C bus] SPD[Serial presence detect] table read for the custom board design i am working on ...

so as for now i am not require to debug the Uboot DDR FORce setting option .

though i got the clue about the DR force setting ..

file: "u-boot-1.3.4\board\freescale\mpc8536ds\mpc8536ds.c"

phys_size_t
initdram(int board_type)
{

......
..
......

ifdef CONFIG_SPD_EEPROM

	dram_size = fsl_ddr_sdram();
	dram_size = setup_ddr_tlbs(dram_size / 0x100000);
	dram_size *= 0x100000;
#else
	dram_size = fixed_sdram();

	// Modified [Added]
	dram_size = setup_ddr_tlbs(dram_size / 0x100000);

	// ADD function for The LAWBAR SETTING for the DDR memory window  

#endif
....
...
....
}

Modifications needed
-> setup_ddr_tlbs();
function call to setup DDR TLB [L2MMUCAMx or we can say MAS(0-3)]

-> As "fsl_ddr_sdram()" performs the
a. SPD read
b. DDR parameter setting
c. LAW BAR, LAWAR setting

so we have to set the LAWBAR And LAW AR there ...

If i have a chance to fix this then i will inform in this series.

If any body wants to fix this then Most Welcome to you ....

--
Ashish Agarwal
???????????:*:*:? ??:*:*:????
????????????
????:*:*:? ??:*:*:???????????