]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fdt: Make sure there is no stale initrd left
authorRichard Weinberger <richard@nod.at>
Thu, 29 May 2025 15:02:13 +0000 (17:02 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jun 2025 22:13:51 +0000 (16:13 -0600)
commit9fe2e4b46458f9c4ec6b8115ebf18b4b26fe6127
treeafe9716931faff6b94facf915e2ba9794427c219
parent53cc4332b3b37218a7cdab8bdb953da57eec2668
fdt: Make sure there is no stale initrd left

Although if we don't setup an initrd, there could be a stale initrd
setting from the previous boot firmware in the live device tree. So,
make sure there is no setting left if we don't want an initrd.

This can happen when booting on a Raspberry Pi. The boot firmware can
happily load an initrd before us and configuring the addresses in the
live device tree we get handed over.

Especially the setting `auto_initramfs` in config.txt is dangerous.
When enabled (default), the firmware tries to be smart and looks for
initramfs files.

Signed-off-by: Richard Weinberger <richard@nod.at>
boot/fdt_support.c