citruz / haos-rockpi

Home Assistant OS for Rock Pi 4
Apache License 2.0
59 stars 4 forks source link

Image for Rockpi 4b fails to boot on device previously configured to run from NVME using SPI flash #38

Open kyleyoung101 opened 1 month ago

kyleyoung101 commented 1 month ago

Describe the issue you are experiencing

Testing on my RockPi4b with the image released on 2024-10-05 (13.1). The device successfully boots using flashed NVME from Radxa's Downloads page (Both the last released Ubuntu 20.04 server and Debian 10 Desktop Images from Radxa Downloads.

However, using your Images The device does not boot from NVME, nor from eMMC or SD card. Not sure if the SPI Flash interferes, or is only designed to boot Radxa based images, but I am not able to boot with the SPI flash pre-configured to boot from NVME.

Image was flashed with Balena Etcher. If you have any additional troubleshooting tips I can take, Willing to give it a shot.

What operating system image do you use?

rockpi-4b

What version of Home Assistant Operating System is installed?

None Yet

Did the problem occur after upgrading the Operating System?

No

Hardware details

Rockpi 4b with SPI flash already set to boot from NVME.

Steps to reproduce the issue

  1. Have Rockpi4b
  2. Configure using Radxa's Documentation to boot from NVME (SPI Flash Configured to boot to NVME)
  3. Test boot NVME with Radxa's Debian/Ubuntu image to confirm SPI flash is correctly working
  4. Reflash the NVME with the Specified boot on the project's Releases page ( haos_rockpi-4b-13.1.dev20241005.img.xz )
  5. Attempt to boot. ...

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

Cannot get to this point of boot process

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

Cannot get to this point of boot process

System information

Radxa Rockpi 4b

Additional information

No response

citruz commented 2 weeks ago

The radxa bootloader is not compatible with this image. You need to use the miniloader.img image provided with every release. Flash that to the SPI flash and make sure there is nothing else in the eMMC. I don't have a board with SPI flash so I can't tell you the exact procedure but from your issue description you seem to know how. Alternatively, and this what I do on my 4B+, you can flash the miniloader onto eMMC. But still make sure that there is no other bootloader in SPI flash. There can only be one and it has to be the one provided with this image.