Skip to contentSkip to conversation

SDRAM

U-Boot-Users Måns Brorsson 3 participants 3 messages Jan 31, 2006 – Feb 1, 2006

lore
Share & tools
lore
#0 lore raw

Ok i hope i turned the irritating HTML of, now!

The thing i missed is which cfg_ the U-Boot has to have. Should i put my sram address as CFG_SDRAM_BASE and underline CFG_SRAM_BASE?

--
M?ns Brorsson

#1 lore raw
Quoted 1 line · In message <[email protected]> you…

Ok i hope i turned the irritating HTML of, now!

Yes, thanks!

Quoted 2 lines

The thing i missed is which cfg_ the U-Boot has to have. Should i put my sram address as CFG_SDRAM_BASE and underline CFG_SRAM_BASE?

CFG_SRAM_BASE is not really used anywhere in U-Boot; it's just passed to the Linux kernel on some boards.

CFG_SDRAM_BASE is more important.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Research is what I'm doing when I don't know what I'm doing.
                                                 -- Wernher von Braun
#2 lore raw
In reply to Måns Brorsson

Hi Mans,

Quoted 2 lines

The thing i missed is which cfg_ the U-Boot has to have. Should i put my sram address as CFG_SDRAM_BASE and underline CFG_SRAM_BASE?

I'm assuming you're using Nios II ... in which case the code doesn't really care about SDRAM ... since the SDRAM controller is configured when you create the Nios II system module, not a run time. So yes, you can set CFG_SDRAM_BASE to point to your SRAM base address. And just set CFG_SRAM_BASE/SIZE to zero.

Also, there are several patches for the Nios II code that haven't made it into the source tree yet -- if you run into problems, just let me know & I'll send you the patches directly.

Regards,
--Scott