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

Raspberry PI 4 cannot boot from SD after upgrade to 10 #2500

Closed
BastiOfBerlin opened this issue Apr 21, 2023 · 9 comments
Closed

Raspberry PI 4 cannot boot from SD after upgrade to 10 #2500

BastiOfBerlin opened this issue Apr 21, 2023 · 9 comments
Labels
board/raspberrypi Raspberry Pi Boards bug

Comments

@BastiOfBerlin
Copy link

Describe the issue you are experiencing

After upgrading to HAOS 10, the system won't boot up anymore. Unlike several other issues already opened, I do not use any NVMe or USB-attached SSDs, but instead the good old micro SD card to boot from.

I hava already tried to update the bootloader as suggested in other issues, without any effect. After attaching a monitor, I only get the follwing 5 lines of output:

Net:    eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
PCI: Failed autoconfig bar 10
starting USB...
Bus xhci_pci:

Then it stops and nothing more. Consequently, I am not able to downgrade manually. The automatic restoral doesn't work either as no OS is being loaded.

For now, I'll flash 9.5 on a spare SD and restore a backup.

Would be nice if you had any idea on how to fix this.

What operating system image do you use?

rpi4 (Raspberry Pi 4/400 32-bit OS)

What version of Home Assistant Operating System is installed?

10.0

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Upgrade to 10.0 via UI

...

Anything in the Supervisor logs that might be useful for us?

No

Anything in the Host logs that might be useful for us?

No

System information

Note that this information was collected after the backup restore on the same board with a fresh SD card!

System Information

version core-2023.4.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 5.15.84-v8
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.04.0
agent_version 1.4.1
docker_version 20.10.22
disk_total 57.8 GB
disk_used 5.8 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Check Home Assistant configuration (3.11.0), Cloudflared (4.1.2), ESPHome (2023.3.2), File editor (5.5.0), Let's Encrypt (4.12.8), Nextcloud Backup (0.17.7), NGINX Home Assistant SSL proxy (3.4.0), Samba share (10.0.0), Terminal & SSH (9.7.0)
Dashboards
dashboards 1
resources 0
views 7
mode storage
Recorder
oldest_recorder_run 7. April 2023 um 12:49
current_recorder_run 21. April 2023 um 21:46
estimated_db_size 685.29 MiB
database_engine sqlite
database_version 3.38.5

Additional information

No response

@ubkr

This comment was marked as off-topic.

@agners agners added the board/raspberrypi Raspberry Pi Boards label Apr 24, 2023
@agners
Copy link
Member

agners commented Apr 24, 2023

@ubkr your problem is more likely related to #2482. The boot log is interesting though, and could help to investigate that further. Can you re-post it in #2482? Also, do you use the 32-bit or 64-bit image?

@agners
Copy link
Member

agners commented Apr 24, 2023

@BastiOfBerlin do you have anything connected on any of the USB ports? If so, does the system boot if you plug everything out? And if so, what do you have connected exactly?

@BastiOfBerlin
Copy link
Author

@BastiOfBerlin do you have anything connected on any of the USB ports? If so, does the system boot if you plug everything out? And if so, what do you have connected exactly?

TL;DR: no, nothing attached at all, except for eth network.

Long version:
No, originally, the RP4 was running with only power and network attached. While testing with a monitor attached, I also connected USB keyboard and mouse via a hub, which didn't change a thing. I've also tried with a monitor, but without anything connected to USB.

The Raspi is enclosed in a Coolermaster case (original Kickstarter version). AFAIK this only adds better accessible GPIOs and this button should be connected via GPIO as well.

@agners
Copy link
Member

agners commented Apr 24, 2023

I've been able to reproduce the problem on my Raspberry Pi 4 8GB with 32-bit U-Boot. PR #2505 addresses the problem, I'll backpart the PR and make it part of the upcomming 10.1 release.

@agners agners closed this as completed Apr 24, 2023
@ubkr
Copy link

ubkr commented Apr 24, 2023

@ubkr your problem is more likely related to #2482. The boot log is interesting though, and could help to investigate that further. Can you re-post it in #2482? Also, do you use the 32-bit or 64-bit image?

@agners quit sure it was due to the problem you found and fixed in PR #2505 since I for some reason run with a 32-bit U-Boot. Did some testing tonight and was just about to report when I saw your fix. I'll be happy to try it out when there is a build. Thank you!!

@agners
Copy link
Member

agners commented Apr 25, 2023

You can find rpi4 builds of HAOS 10.1 with the fix applied here:
https://github.com/home-assistant/operating-system/releases/tag/10.1

@ubkr
Copy link

ubkr commented Apr 25, 2023

@agners A last comment on this issue, it's working now. I've not flashed with the complete image though, just swaped out u-boot.bin and adjusted the config and it booted.
And again thank you.

@BastiOfBerlin
Copy link
Author

I can confirm it works now: Flashed 10.1 on the old SD card and restored a newly created backup. Everything's running again. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/raspberrypi Raspberry Pi Boards bug
Projects
None yet
Development

No branches or pull requests

3 participants