[PATCH] board: developerbox: fix mem_map setup timing

Tom Rini trini at konsulko.com
Thu Mar 14 01:40:03 CET 2024


On Wed, Mar 06, 2024 at 03:11:10PM +0900, Masahisa Kojima wrote:

> The setup of global variable mem_map was moved into enable_caches()
> by commit a70c75cabae1 ("board: developerbox: move mem_map setup later")
> since U-Boot was directly booted from NOR flash in XIP
> and bss is not yet available in dram_init() at that time.
> This has a problem, mem_map variable is used by
> the get_page_table_size() to calculate the page table size,
> but get_page_table_size() is called earlier than enable_caches()
> which fills mem_map variable. With that, U-Boot fails to boot when
> 64GB DIMM is installed.
> 
> Currently U-Boot on the Developerbox board is not booted in XIP
> and bss is available in dram_init(), let's move mem_map setup
> in dram_init().
> 
> Signed-off-by: Masahisa Kojima <kojima.masahisa at socionext.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240313/6c0c56cb/attachment.sig>


More information about the U-Boot mailing list