From: "Tomaž Zaman" <tomaz@mono.si>
To: "u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Grub doesn’t load devicetree
Date: Thu, 29 Aug 2024 00:31:01 +0000 [thread overview]
Message-ID: <7cbce75d-51fe-4c87-9c90-01e86a06f0fe@Spark> (raw)
In-Reply-To: 7f33e3d7-e5ab-4c1d-a69a-153a50a6b0c2@Spark
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
I’m working on an arm64 board with an NXP LS1046A CPU and I simply cannot get Grub to load a different device tree than the one that’s provided to it by the EFI Stub.
=> fatload mmc 0:1 $kernel_addr_r /EFI/boot/grubaa64.efi
=> fatload mmc 0:1 $fdt_addr_r /boot/dtb/fsl-ls1046a-rdb-sdk.dtb
=> bootefi $kernel_addr_r $fdt_addr_r
At his point, I get a couple of errors like “smmu node not found”.
However, if I, instead of "fsl-ls1046a-rdb-sdk.dtb” use "fsl-ls1046a-rdb.dtb”, then I get to Grub without any errors.
And this is where I encounter the issue. Because I would like to use a different DTB for booting Linux than the one that’s provided by the EFI configuration table, I set
devicetree /boot/dtb/fsl-ls1046a-rdb-sdk.dtb
linux /boot/vmlinuz-6.6.3-arm64
initrd /boot/initrd.img-6.6.3-arm64
In this case, the devicetree instruction gets ignored completely, and before I see kernel loading, the message “Using FDT from the EFI configuration table"
Is there a way for me to override/replace the device tree that u-boot passed to Grub? I tried passing the “dtb=“ parameter to the kernel boot command, but in that case, I get "EFI stub: ERROR: Failed to handle fs_proto” because kernel when booting doesn’t appear to have access to the same filesystem that Grub does.
Thank you!
(this is my first time using *any* mailing list, so apologies if this is the wrong address to send this question to)
Tomaž Zaman, CEO
Mono Technologies Inc.
+386 30 651 645
[cid:18EB2FEE485A4DD7A1CE716CE14FCBC7]
[-- Attachment #2: 18EB2FEE485A4DD7A1CE716CE14FCBC7.png --]
[-- Type: image/png, Size: 5014 bytes --]
next parent reply other threads:[~2024-08-29 4:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7f33e3d7-e5ab-4c1d-a69a-153a50a6b0c2@Spark>
2024-08-29 0:31 ` Tomaž Zaman [this message]
2024-08-29 8:01 ` Grub doesn’t load devicetree Peter Robinson
2024-08-29 9:31 ` Tomaž Zaman
2024-08-29 9:37 ` Peter Robinson
2024-08-29 9:40 ` Tomaž Zaman
2024-08-29 9:44 ` Peter Robinson
2024-08-29 9:54 ` Tomaž Zaman
2024-08-29 12:17 ` Simon Glass
2024-08-29 13:25 ` Tomaž Zaman
2024-08-30 23:48 ` Tomaž Zaman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cbce75d-51fe-4c87-9c90-01e86a06f0fe@Spark \
--to=tomaz@mono.si \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.