public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Placement of FDT in memory
@ 2025-12-18 22:04 Yuri Honegger
  2026-01-09 11:34 ` Simon Glass
  2026-01-09 17:09 ` Tom Rini
  0 siblings, 2 replies; 9+ messages in thread
From: Yuri Honegger @ 2025-12-18 22:04 UTC (permalink / raw)
  To: u-boot

Hello,
Recently I've been playing around with the imx23-olinuxino 
(mx23_olinuxino_defconfig) and booting NetBSD using u-boot. During that, I've 
noticed that NetBSD panics because u-boot places the device tree in the BSS
section of NetBSD. NetBSD clears the BSS section and then complains 
that the device tree is corrupt.

Reading the logs, it appears that FDT and kernel get loaded at non-overlapping
ranges, but then u-boot relocates the device tree right after the kernel into
the BSS section.

## Booting kernel from Legacy Image at 42000000 ...
Image Name: NetBSD/earmv5 11.99.4
Image Type: ARM Linux Kernel Image (no loading done) (uncompressed)
Data Size: 11950164 Bytes = 11.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
Booting using the fdt blob at 0x41000000
Working FDT set to 41000000
XIP Kernel Image (no loading done) to 42000040
Loading Device Tree to 42b93000, end 42b99a0a ... OK
Working FDT set to 42b93000
Starting kernel ...

The bootm command seems to insist on having to relocate the device tree.

Is this something the OS is expected to deal with?

In the meantime, I've managed to work around this by running
env set fdt_high 0x41000000;
before bootm. Is there a better solution than this to force the placement
of the device tree?

Thank you,
Yuri

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

end of thread, other threads:[~2026-01-10 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 22:04 Placement of FDT in memory Yuri Honegger
2026-01-09 11:34 ` Simon Glass
2026-01-09 21:24   ` Yuri Honegger
2026-01-09 17:09 ` Tom Rini
2026-01-09 21:13   ` Yuri Honegger
2026-01-09 21:33     ` Tom Rini
2026-01-10  7:56     ` Martin Husemann
2026-01-10 16:43       ` Tom Rini
2026-01-10 17:45         ` Martin Husemann

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