-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
11.2dev (rpi): u-boot crashes with miniuart-bt and rpi-rf-mod dtbo enabled with latest stable_2023XXXX kernels #2919
Comments
After some more investigation on the actual dtb differences between older raspberrypi/linux kernel sources I identified the following potential changes resulting in the actual issue reported here: chosen {
bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0";
- phandle = <0x3d>;
+ phandle = <0x50>;
+ stdout-path = "serial0:115200n8";
}; So it seems the raspberrypi folks have added a dedicated However, adding the following dtbo overlay section to wipe the
So this might be able to solve the issue. Question remains, however, if this would be an appropriate workaround the issue or if we should takle this issue in a different manner (e.g. remove that stdout-path definitions in the board dts in the kernel sources or patch u-boot to not use |
in the <chosen> dt overlay section so that u-boot won't pick this up. With newer raspberrypi kernel versions the stdout-path was set to a default serial port which caused u-boot to pick that up as the stdout path, thus resulting in crashes if the rpi-rf-mod dtbo was loaded. (cf. home-assistant/operating-system#2919)
Thanks for the thorough investigation, your patch looks sound, however we're currently looking into Bluetooth issues that emerged on some RPis after the kernel update as well and I'm not sure if we won't be reverting any of the DTS patches, as it seems to share some common grounds with your issue. I'll keep you posted! |
of u-boot so that they won't interfere with our rpi-rf-mode dtbo. This should allow to remove the stdout-path workaround to prevent u-boot from crashing in case the rpi-rf-mod.dtbo is enabled in config.txt. (cf. home-assistant/operating-system#2919)
…into dev_patch0182_fix1513 * 'master' of https://github.com/jens-maus/RaspberryMatic: snapshot bump [3.73.9.20231118-bf6c11c] Add port 2110 for homeputer Exec-Engine to HA-addon config (jens-maus#2515, @tomquist) updated OCCU to 3.73.9-1 and adapted WebUI patches. explicitly disable the bcm283x serial driver support in the rpi versions of u-boot so that they won't interfere with our rpi-rf-mode dtbo. This should allow to remove the stdout-path workaround to prevent u-boot from crashing in case the rpi-rf-mod.dtbo is enabled in config.txt. (cf. home-assistant/operating-system#2919) snapshot bump [3.73.6.20231117-d250419] added new WebUI 0182-WebUI-Fix-DimmerControl-RemoveButtonRefreshDelay patch which fixes unwanted delay in displaying the correct dimmer status (jens-maus#1513, jens-maus#2513, @jp112sdl)
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. |
Describe the issue you are experiencing
I just recognized that when enabling the necessary
miniuart-bt
andrpi-rf-mod
device tree overlay together using:in the
/mnt/boot/config.txt
in the 11.2dev development builds, the u-boot bootloader does seem to crash badly with leaving the system unbootable. When just enablingminiuart-bt
orrpi-rf-mod
device tree overlay alone, the system boots thought, but functionality is of course missing.After some more investigation, it seems the cultrip of the issue seems that with newer RaspberryPi kernels (all with
stable_XXXXXXX
tags) and new/different board dtb is supplied (e.g.bcm2711-rpi-4-b.dtb
). When replacing the dtb file in/mnt/boot
with the one of the official 11.1 HAos build the system continues to boot withminiuart-bt
andrpi-rf-mod
enabled and even with the newer kernel from thestable_XXXXXX
raspberrypi/linux project tags.Furthermore and to rule out issues with the
rpi-rf-mod
dtoverlay definition itself, I tried to reproduce the issue with a vanilla RaspberryPiOS (bookworm) installation which also comes with the same updated board dtb and the miniuart dtbo. When using the samerpi-rf-mod
dtbo there the system boots nicely but there of course no u-boot second stage bootloader is used but just the default raspberrypi bootloader.To summarize: It seems u-boot is running in some issues when the
miniuart-bt
andrpi-rf-mod
dtbo are enabled together with the newer board dtb (e.g.bcm2711-rpi-4-b.dtb
). Unfortunately I could not identify the root cause in u-boot yet, but without u-boot the system advances and boots and the device tree looks normal. Just u-boot itself does not like the combination ofminiuart-bt
andrpi-rf-mod
dtbo being enabled anymore if the board dtb is coming from the newerstable_XXXXXX
raspberrypi/linux compiles.What operating system image do you use?
rpi4-64 (Raspberry Pi 4/400 64-bit OS)
What version of Home Assistant Operating System is installed?
11.2dev
Did you upgrade the Operating System.
No
Steps to reproduce the issue
minuart-bt
andrpi-rf-mod
dtbo at the same timeminuart-bt
ORrpi-rf-mod
dtbo again and note the system boots againAnything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
RaspberryPi platform (tested with pi3, pi4, etc.).
Additional information
n/a
The text was updated successfully, but these errors were encountered: