-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system does not boot from specified partition, when using GPT #1733
Comments
That's correct. The firmware does not support specifying the partition number within GPT table. It just looks for the first "FAT / EFI" partition within the GPT |
What's being looked-for, though? A specified GPT UUID (I think If they differ, is the physical ordering on disk or the logical numbering in the partition table given priority? |
Booting from a 1TB USB SSD with GPT works fine. maybe consider a similar partition layout.
|
I'm afraid that you've missed the point - this is concerning the situation where you have multiple |
I confirm this, autoboot is useless with GPT partition. It is always boots from the first one. It looks like a bug of autoboot mechanism in rpi bootloader to me. |
Can also confirm that this happens on Raspberry Pi 4B. |
Describe the bug
No matter the value of "boot_partition" inside the autoboot.txt, system always finally boots from the default partition. (anyother_part.txt) (uboot_fdt.txt)
Value "PARTITION=" inside config.txt has no effect at all, from my testing autoboot.txt seems to be an only viable option to choose boot partition.
When setting boot_partition=2 the system does not boot at all. AFAIK that behaviour only occurs with "boot_partition" set to 2 (Attached file: bootpart2.txt)
Additional context
To my knowledge problem seems relevant when using GPT.
The problem doesn't seem to occur when using MBR with one exception - when partition type is different than "e".
Expected behaviour
System boots from the partition specified inside autoboot.txt, and properly sets property "partition" in the fdt, inside /chosen/bootloader to the number of partition it was booted from.
System
Logs
bootpart2.txt
anyother_part.txt
uboot_fdt.txt
The text was updated successfully, but these errors were encountered: