Skip to contentSkip to conversation

RAM memory verification on boot

U-Boot ethan paddloch 2 participants 4 messages Sep 15, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I am currently using u-boot version 1.1.6 on a powerpc embedded device which have increased from 64Mbyte RAM memory to 128Mbye size length. The problem is that my device does not recognize the 128Mbyte keeping the original 64Mbyte length.
Does anyone know how to let u-boot and the linux bsp to recognize the new memory length?

Thanks in advance and best regards

Ethan

#1 lore raw

Dear ethan paddloch,

Quoted 7 lines · In message <[email protected]> you wrote:

I am currently using u-boot version 1.1.6 on a powerpc embedded device whic h have increased from 64Mbyte RAM memory to 128Mbye size length. The problem is that my device does not recognize the 128Mbyte keeping the o riginal 64Mbyte length.
Does anyone know how to let u-boot and the linux bsp to recognize the new m emory length?

It seems your port does not initialize the RAM correctly. The recommended approach is to use get_ram_size() to automatically adjust to the actual RAM memory size on the system.

Note that U-Boot 1.1.6 is more than 4.5 years old. An update to the recent version is *strongly* recommended.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"In matrimony, to hesitate is sometimes to be saved."        - Butler
#2 lore raw

Hi Wolfgang,

Thanks for your reply.

Actually I am using a Freescale bsp that uses the u-boot-1.1.6 with some patches that modifies the bootloader for the freescale mpc8323erdb platform. This platform uses the mpc8323erdb.c source which has the int fixed_sdram(void) function on it to set the fixed ram to 64Mbytes.
I was thinking to include the get_ram_size() function on that source to recognize automatticaly the ram size. Do you know if it is possible? I am affraid to change the bootloader version to the latest one and get the patches missed so I could not have my system working anymore.

Thanks and best regards

Ethan

________________________________
De: Wolfgang Denk <[email protected]>
Para: ethan paddloch <[email protected]>
Cc: u-boot at lists.denx.de
Enviadas: Quarta-feira, 15 de Setembro de 2010 10:17:31
Assunto: Re: [U-Boot] RAM memory verification on boot

Dear ethan paddloch,

Quoted 7 lines · In message <[email protected]> you wrote:

I am currently using u-boot version 1.1.6 on a powerpc embedded device whic h have increased from 64Mbyte RAM memory to 128Mbye size length. The problem is that my device does not recognize the 128Mbyte keeping the o riginal 64Mbyte length.
Does anyone know how to let u-boot and the linux bsp to recognize the new m emory length?

It seems your port does not initialize the RAM correctly. The recommended approach is to use get_ram_size() to automatically adjust to the actual RAM memory size on the system.

Note that U-Boot 1.1.6 is more than 4.5 years old. An update to the recent version is *strongly* recommended.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"In matrimony, to hesitate is sometimes to be saved."        - Butler
#3 lore raw

Dear ethan paddloch,

Please STOP posting HTML!!

Quoted 6 lines · In message <[email protected]> you wrote:

Actually I am using a Freescale bsp that uses the u-boot-1.1.6 with some patches that modifies the bootloader for the freescale mpc8323erdb platform. This platform uses the mpc8323erdb.c source which has the int fixed_sdram(void) function on it to set the fixed ram to 64Mbytes.

That's a pretty much obsolete out-of-tree port then. We don't really support these here.

Are you sure it's based on version 1.1.6?

Quoted 3 lines

I was thinking to include the get_ram_size() function on that source to recognize automatticaly the ram size. Do you know if it is possible?

Everything is possible in software if you put enough effort and resources on it. The question is if this makes any sense.

Spending efforts on U-Boot 1.1.6 based code does not make any sense any more.

Quoted 2 lines

I am affraid to change the bootloader version to the latest one and get the patches missed so I could not have my system working anymore.

Changing the memory controller init code will need thorough debugging and testing in any case. This is not a task for the unexperienced.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
While most peoples' opinions change, the conviction of their correct-
ness never does.