public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Not able load u-boot from flash to ddr
@ 2013-05-07 15:53 sadashiva reddy
  2013-05-07 17:12 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: sadashiva reddy @ 2013-05-07 15:53 UTC (permalink / raw)
  To: u-boot

Hi,

I working on PPC440Gx processor.

I set the macro CONFIG_SYS_TEXT_BASE to 0xFFFC0000. So, the u-boot.bin is
created with 256KB file size.

This file I am loading to flash using with BDI2000 emulator.

But after loading to flash the bootloader is not copying the file from
flash to DDR location.
This we confirmed by probing the data lines and address lines of flash and
SDRAM. Nothing was toggling when we probe the lines using CRO.

But when we program vxWorks bootloader i.e bootrom.bin where the TEXT_ADDR
is 0xFFE00000.
The bootrom.bin file is created with 2MB file size. When we load this file
to flash we are able to the see bootloader is copying to DDR location while
probing.


What could be the problem in u-boot case why it is not copying to DDR?

-- 
With Regards,
N.Sadashiva Reddy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Not able load u-boot from flash to ddr
  2013-05-07 15:53 [U-Boot] Not able load u-boot from flash to ddr sadashiva reddy
@ 2013-05-07 17:12 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2013-05-07 17:12 UTC (permalink / raw)
  To: u-boot

On 05/07/2013 05:53 PM, sadashiva reddy wrote:
> I working on PPC440Gx processor.
> 
> I set the macro CONFIG_SYS_TEXT_BASE to 0xFFFC0000. So, the u-boot.bin is
> created with 256KB file size.
> 
> This file I am loading to flash using with BDI2000 emulator.
> 
> But after loading to flash the bootloader is not copying the file from
> flash to DDR location.
> This we confirmed by probing the data lines and address lines of flash and
> SDRAM. Nothing was toggling when we probe the lines using CRO.

CRO?

You should at least see one access to the FLASH location 0xffff.fffc.
This is the reset-vector, where the CPU starts loading the first code
(usually a jump to another location).

> But when we program vxWorks bootloader i.e bootrom.bin where the TEXT_ADDR
> is 0xFFE00000.
> The bootrom.bin file is created with 2MB file size. When we load this file
> to flash we are able to the see bootloader is copying to DDR location while
> probing.
> 
> What could be the problem in u-boot case why it is not copying to DDR?

This could have many, many reasons. Did you actually *port* U-Boot to
your board? Change the settings for the SDRAM controller, UART,
chip-select setup etc. All this has to be done correctly, before U-Boot
can run full to the prompt.

But again, you should at least see some accesses to the FLASH, when the
CPU starts fetching and executing the first instructions. Later on SDRAM
will get initialized and then U-Boot will start using the SDRAM. So
accesses to SDRAM will come much later. But the serial console output
from U-Boot starts pretty soon. So, with a functional U-Boot port you
will see a few lines on the console before the SDRAM is initialized.

So again, please make sure that you have configured/changed/ported your
U-Boot port correctly for your custom 440GX board. You might want to
start with some other 440GX boards.

Hope this helps a bit.

Cheers,
Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-07 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 15:53 [U-Boot] Not able load u-boot from flash to ddr sadashiva reddy
2013-05-07 17:12 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox