Skip to content
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

Document Boot Folder changes #3153

Closed
aallan opened this issue Oct 10, 2023 · 6 comments · Fixed by #3389
Closed

Document Boot Folder changes #3153

aallan opened this issue Oct 10, 2023 · 6 comments · Fixed by #3389
Assignees
Labels
bookworm 🐛 Issue with Bookworm pi5 5️⃣ It's the everything computer. optimised.

Comments

@aallan
Copy link
Contributor

aallan commented Oct 10, 2023

With the changes coming with Bookworm, is the content of the Boot Folder still correct?

For instance, it mentions wpa_supplicant, with Network Manager running the end user shouldn't be touching this file at all.

Also, how have the binary blobs changed for Pi 5?

@aallan aallan added question bookworm 🐛 Issue with Bookworm pi5 5️⃣ It's the everything computer. optimised. labels Oct 10, 2023
@aallan aallan added this to the Raspberry Pi 5 milestone Oct 10, 2023
@lurch
Copy link
Contributor

lurch commented Oct 10, 2023

IIRC the EEPROM on the Pi 4 means that the Pi 4 doesn't need a bootcode.bin, and the EEPROM on the Pi 5 means that the Pi 5 doesn't need a bootcode.bin nor a start.elf file. I believe the Pi 5 will load kernel_2712.img if it exists, but fall back to kernel8.img if it doesn't.

Contents of the boot partition on a 64-bit Bookworm image:

bcm2710-rpi-2-b.dtb       bcm2711-rpi-cm4s.dtb  fixup.dat         start4cd.elf
bcm2710-rpi-3-b.dtb       bcm2712-rpi-5-b.dtb   fixup_db.dat      start4db.elf
bcm2710-rpi-3-b-plus.dtb  bootcode.bin          fixup_x.dat       start4.elf
bcm2710-rpi-cm3.dtb       cmdline.txt           initramfs_2712    start4x.elf
bcm2710-rpi-zero-2.dtb    config.txt            initramfs8        start_cd.elf
bcm2710-rpi-zero-2-w.dtb  fixup4cd.dat          issue.txt         start_db.elf
bcm2711-rpi-400.dtb       fixup4.dat            kernel_2712.img   start.elf
bcm2711-rpi-4-b.dtb       fixup4db.dat          kernel8.img       start_x.elf
bcm2711-rpi-cm4.dtb       fixup4x.dat           LICENCE.broadcom
bcm2711-rpi-cm4-io.dtb    fixup_cd.dat          overlays/

Oh yeah, one of the other changes is that Bookworm now uses an initramfs file by default, enabled by usage of the auto_initramfs keyword in config.txt.

So (AFAIK) a Pi 4 Model B would use start4.elf, fixup4.dat config.txt, bcm2711-rpi-4-b.dtb, cmdline.txt, initramfs8 & kernel8.img during bootup; whereas a Pi 5 would use config.txt, bcm2712-rpi-5-b.dtb, cmdline.txt, initramfs_2712 & kernel_2712.img during bootup. And for both platforms, it might load some stuff from the overlays/ folder, depending on what you've got in config.txt.

@vinceskahan
Copy link

I might also note that the docs for headless installation say dropping wpa_supplicant.conf into the boot partition (/boot/firmware now it seems) will autoconfigure wifi on firstboot. This is not the case. The firstboot just ignores that file and wifi does 'not' get configured automagically on firstboot.

The docs need updating to match the code, or vice versa.

I have no idea where to report the breaking change so I thought I'd mention it here. It is not indicated in any official changelogs or blogs or anywhere else I'd expect people to see. Personally I think this one is as much of a 'should be mentioned' as the PEP588 python changes from upstream that 'is' prominently mentioned.

@aallan
Copy link
Contributor Author

aallan commented Oct 12, 2023

I might also note that the docs for headless installation say dropping wpa_supplicant.conf into the boot partition (/boot/firmware now it seems) will autoconfigure wifi on firstboot. This is not the case. The firstboot just ignores that file and wifi does 'not' get configured automagically on firstboot.

Yup. That got missed, see #3164.

@aallan aallan removed the question label Oct 23, 2023
@aallan
Copy link
Contributor Author

aallan commented Oct 23, 2023

IIRC the EEPROM on the Pi 4 means that the Pi 4 doesn't need a bootcode.bin, and the EEPROM on the Pi 5 means that the Pi 5 doesn't need a bootcode.bin nor a start.elf file. I believe the Pi 5 will load kernel_2712.img if it exists, but fall back to kernel8.img if it doesn't.

So, yes. There are boot folder changes.

@aallan aallan changed the title Are there Boot Folder Contents changes? Document Boot Folderchanges Oct 23, 2023
@aallan aallan changed the title Document Boot Folderchanges Document Boot Folder changes Oct 23, 2023
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2023
@aallan aallan reopened this Dec 31, 2023
@aallan
Copy link
Contributor Author

aallan commented Dec 31, 2023

Too fast github-actions bot, too fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookworm 🐛 Issue with Bookworm pi5 5️⃣ It's the everything computer. optimised.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants