-
Notifications
You must be signed in to change notification settings - Fork 930
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
rpi5: overlay_prefix
required in config.txt
for dtoverlay support
#3079
Comments
So this is a bug in the Raspberry Pi firmware then right?
Ah I see those are all our investigations. Have you reported it upstream to the Raspberry Pi developers? |
That's a good question. I first wanted to share this here with you so that you can try to reproduce this yourself first. If done, then we could of course open up a new issue ticket at the upstream project.
Nope, not yet. As said, I first want to see if you guys could reproduce that issue. Another question would be where to issue this issue afterwards? rpi-firmware or rpi-eeprom? |
Not sure if we all missed it before or if it's been added recently, but the
I can confirm that adding an empty README file to the |
Really? This sounds indeed like a strange feature or side-effect. Can't be real that just adding an empty README fixes this issue. In fact, this might IMHO later end up in a potential regression in case someone else might think removing the README might be ok and then the issue appears again. Perhaps instead explicity adding |
Since we're using a custom os_prefix for dual boot on RPi 5, overlays can be also present in different directories. Raspberry Pi's bootloader has a strange feature that it only respects os_prefix if the directory with overlays contains a README file: https://www.raspberrypi.com/documentation/computers/config_txt.html#overlay_prefix While rpi-firmware package touches the file when copying overlays to the destination directory, for RPi 5 we are using BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS option which does not copy or create it. Ensure it is present (no matter if we're using intree on rpi-firmware overlays) in the hassos-hook. Fixes #3079 (also removed invalid mention about the README from config.txt)
Since we're using a custom os_prefix for dual boot on RPi 5, overlays can be also present in different directories. Raspberry Pi's bootloader has a strange feature that it only respects os_prefix if the directory with overlays contains a README file: https://www.raspberrypi.com/documentation/computers/config_txt.html#overlay_prefix While rpi-firmware package touches the file when copying overlays to the destination directory, for RPi 5 we are using BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS option which does not copy or create it. Ensure it is present (no matter if we're using intree on rpi-firmware overlays) in the hassos-hook. Fixes #3079 (also removed invalid mention about the README from config.txt)
Since we're using a custom os_prefix for dual boot on RPi 5, overlays can be also present in different directories. Raspberry Pi's bootloader has a strange feature that it only respects os_prefix if the directory with overlays contains a README file: https://www.raspberrypi.com/documentation/computers/config_txt.html#overlay_prefix While rpi-firmware package touches the file when copying overlays to the destination directory, for RPi 5 we are using BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS option which does not copy or create it. Ensure it is present (no matter if we're using intree on rpi-firmware overlays) in the hassos-hook. Fixes #3079 (also removed invalid mention about the README from config.txt)
Describe the issue you are experiencing
Due to the changed bootloading chain in the current RaspberryPi5 support it seems loading device tree overlays specified in the
/mnt/boot/config.txt
bootloader config file seems to be broken at the moment.Even thought the documentation on the tryboot functionality in the RaspberryPi bootloader states that
os_prefix
is added to the existingoverlay_prefix
option (default:overlays/
), this seems to be NOT the case at the moment (cf. https://www.raspberrypi.com/documentation/computers/config_txt.html#overlay_prefix)This has become visible in the optional support for the
RPI-RF-MOD
Homematic RF module which requires to adapt the/mnt/boot/config.txt
file, adding adtoverlay=rpi-rf-mod
statement to it. However, doing so in the currentconfig.txt
of the rpi5 version of HomeAssistantOS does not load therpi-rf-mod.dtbo
file. After looking at the output of the RaspberryPi bootloader one can see that the bootloader tries to load that dtoverlay, but fails:After adding the following additional (usually not required)
overlay_prefix
line to theconfig.txt
file:the bootloader can correctly load the
rpi-rf-mod.dtbo
(not the number of bytes mentioned in the rpi-rf-mod line):Thus, it seems that with the tryboot functionality in place the stated
${os_prefix}${overlay_prefix}
prefixing (cf. https://www.raspberrypi.com/documentation/computers/config_txt.html#overlay_prefix) does not seem to be in place or work correctly in the context of HomeAssistantOS.BTW: It can also be seen in the bootloader that it is also not able to load the
vc4-kms-v3d.dtbo
with the missingoverlay_prefix
line.What operating system image do you use?
RaspberryPi 5
What version of Home Assistant Operating System is installed?
11.4
Did you upgrade the Operating System.
No
Steps to reproduce the issue
vc4-kms-v3d.dtbo
dtoverlayoverlay_prefix=slot-A/overlays/
toconfig.txt
.vc4-kms-v3d.dtbo
dtoverlay during bootup.Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
n/a
Additional information
The issue has already been reported and investigated accordingly. See:
#3069
jens-maus/RaspberryMatic#2618
The text was updated successfully, but these errors were encountered: