citruz / haos-rockpi

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

None of the release images successfully booting on 4C+ V1.41 #33

Closed DuncanDotPY closed 2 weeks ago

DuncanDotPY commented 5 months ago

Describe the issue you are experiencing

I previously had a very stable haos setup running on a rock 4C+ V1.41 (so thanks!) but after an update to haos, the system would no longer boot anymore. I have a backup I can restore it from, but I can't get any haos image to boot on my 4c+ anymore.

I have tried:

None of that has worked, implying something upstream perhaps? In any case, I thought it important to flag. On one (the newly purchased) rock 4c+ the screen stays black, on the other, I get the same behaviour as described in issue 24.

What operating system image do you use?

rock-4c-plus

What version of Home Assistant Operating System is installed?

Any

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

1.Flash an SD card with any of the haos-rockpi releases to a rock 4c+ V1.41 2.Attempt to boot

...

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

Can't boot- no access to logs.

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

Can't boot- no access to logs.

System information

No response

Additional information

No response

citruz commented 5 months ago

The fact that previously working images are not working anymore is very surprising. I honestly don't have another idea to try since you already checked multiple SD cards and even a new board. I am assuming you don't have an eMMC chip installed? Let me know when you have the serial logs available.

DuncanDotPY commented 5 months ago

Yeah no eMMC installed - all SD card based for now. I have a serial adapter ordered and will get around to investigating this as soon as it arrives. Have you any quick and trusty links for setting up logging on the rockpis? If not, I'll work it out of course.

citruz commented 5 months ago

You can follow the radxa guide: https://wiki.radxa.com/Rockpi4/dev/serial-console The only thing to note is that this image uses a lower baudrate of 115200 to prevent compatibility issues.

DuncanDotPY commented 5 months ago

Thanks for the link @citruz. I managed to squeeze some serial logs out of my rock 4c+ boards. I should add, I've jumped ship onto an RPI 5 but, hopefully, this exercise will be useful to someone else.

So I now have two rock 4c+ V1.41 boards. While both have rock 4 c plus v.1.41 printed on the PCB itself, they are visually slightly different (components, labelling etc.). They also both behave differently.

The Newer 4c+ The new board will only spit out ascii nonsense into the log: 4cplus_serial_log_New_Board.txt

The older 4c+ The original board that worked once upon a time behaves one of two ways.

  1. Without an ethernet cable connecting the board to the router, the board achieves a heartbeat on the blue LED, but still doesn't appear to boot successfully. See 4cplus_serial_log.txt 4cplus_serial_log.txt

  2. With an ethernet cable connecting the board to the router, the board doesn't achieve a blue LED heartbeat. See 4cplus_serial_log_with_ethernet.txt 4cplus_serial_log_with_ethernet.txt

citruz commented 5 months ago

Thanks for the logs! From a brief look these seem like real low-level issues where the kernel tries to access an invalid address in memory. Something very fundamental seems to be going wrong. I will try to understand more about what is going on in these logs but it might be above my level of understanding.

The new board will only spit out ascii nonsense into the log:

Did you also try the default baudrate of 1500000?

I think I didn't ask that yet, do other images like armbian work?

DuncanDotPY commented 5 months ago

It's the least I can do! I did get nearly a year of stable Home Assistant out of your Images after all :)

Did you also try the default baudrate of 1500000?

Good call, I'll try that in the morning. It's crashing much earlier so it might give a more fundamental view of the problem.

I think I didn't ask that yet, do other images like armbian work?

Yes. Armbian, Ubuntu and Debian images all worked on both boards.

citruz commented 1 month ago

Were you able to solve your problem?