Skip to contentSkip to conversation

Basic question w.r.t bootloader

DISCUSSION Arravind babu 2 participants 2 messages Oct 6, 2005 MIPS

lore
Share & tools
lore
#0 lore raw

Hi all,

Generally how bootloader/bootflash code detects
the size of RAM on the board? Is it hardcoded some where in the bootflash code or is it detected using memory chips ?

Thanks in advance,

Aravind.

__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

Generally how bootloader/bootflash code detects
the size of RAM on the board? Is it hardcoded some where in the bootflash code or is it detected using memory chips ?

One method is to probe addresses (at N, 2*N, 4*N etc. starting with a resonable value of N like 1 MB) until probing fails. See for example common/memsize.c in the U-Boot sources.

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: [email protected]
The IQ of the group is the lowest IQ of a member of the group divided
by the number of people in the group.