No I did not. What’s the point when ssd boot is supported (I guess) since 5.10. I have had freezing problems since 4.8
Nice guide! I have one question, wouldn’t you be able to update the eeprom using “SSH access to the host” without having to change the OS?
SSD started in early 5.x releases not at 5.10. As I was trying to explain, many that have the freeze issue only have them on OS above 5.4.
Yes you’re right. I have been using SSD booting since the beginning of version 5.0. Today I am on the current version 5.12
There ARE differences!
Mine is an RPi 4B 8GB
It reports revision 1.4 with BogogMIPS 108.00 on all cores, running HA 5.12.
It runs/ran stable on ALL 5.x versions with several EEPROM versions starting at 2020-09-03.
Here is the complete cpuinfo:
➜ ~ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : d03114
Serial : 10000000d1cXXXX
Model : Raspberry Pi 4 Model B Rev 1.4
My best guess would be that the 8GB versions in general have a newer hardware revision, simply because they were designed much later. I also read in the RPi issue tracker that the 8GB version has a different timing during warm restart. AFAIR the USB3 power down cycle seems to be longer.
Is there anybody here having any trouble with an 8 GB version of RPi 4B?
If not, maybe buying the 8 GB version would be a reliable recommendation for a stable and trouble free USB boot.
I was hoping that this would be the answer. Just checked on the 1119 issue and there are some with the freeze issue having the same 8g version as you.
Database file should not have such a problem. In most cases YES you will get errors about it afer you restore and then you can just delete it and restart your HA. It shouldn’t be that a snapshot won’t restore or that you’d have to go into such lengths of uncompressing a snapshot and recompressing without the .db file.
If system isn’t coming back after you restore you’d have to check what the supervisor and core logs are saying.
The hardware revision on the 8GB was primarily addressing changes so that all 8GB can be used on the board.
There was also a slight board revision 1.1 vs 1.2 for 2/4GB boards to address an issue with USB-C compatibility as well.
Not sure if such chages would have ay different effect on usb booting though
You are correct that 1.2 fixed the USB-C power supply issue. JPSY has 1.4. Not sure if there was any changes that could have effected the impedance of the USB C ports, which in turn could effect timing.
Have you used checked the memory usages?
I’m seeing in my install a huge amount being used by HA (in this setup, only with 4Gb).
I narrowed it down with using the Service profiler.start_log_objects to the set_location service…
But maybe something else is happening?
VM so far stable and it has allocated the same amount of 4GB RAM. It may be anything resident, sure the geoloc trackers also calculate/save something all the time but VM on my desktop apparently doesn’t have any troubles. I will go for better hw. Nuc or vm on synology nas. There is a great thread comparing rpi/odroid/nuc
Okay, then an other issue.
RPI is now my only option since I’m traveling and not able/willing to buy other hardware.
Without this grazy memory usages (like 600MB in a couple of hours) it is fine.
I only have a couple of sensors and will add a few relais…
This mem usage is completely normal for HA and a more or less virgin system. This is the reason why systems with more add-ons easily start to lag on RPi 3s with 1GB of mem. It is also normal that the mem usage slowly ramps up after reboot and takes some hours to reach a stable level.
My extensively configured HA allocates approx 2GB when grooved in.
Okay, makes sense when indeed a lot of devices are connected. For me I just see a connection between 1 service homeassistent.set_location and this amount of memory.
At the first line I start the node-RED with the service. Within a couple of hours there is almost a GB used for only this service. (have to mention it gets updated every minute).
Second line is node-RED flow deactivated and HA (in docker) restarted.
Then it gets stable.
Yes, but memory account ramps up also with add-ons. You have Node RED installed, which is definitely not lightweight. Have you checked you HA Logbook for many entity changes coming in? Anyway, I don’t think this is the place to discuss HA’s memory consumption. It has nothing to do with setting up RPi 4B and SSD boot.
On you configuration. What firmware version on the StarTech controller? I believe ending in 02 is the latest. Also are you using the top or bottom usb3 port?
Still trying to see what is different.
Thanks
@Jpsy,
Used the latest firmware on the StarTech 3.1 controller and tried the OS 5.12 again. Locked in 4 hours. No errors in any of the logs. Still have yet to see a failure on 5.4.
This IS a veritable conundrum. I read through your issue report where Agners tried to provide a debugging version. A pity that he did not succeed. I hope that this strange behavior will finally reveal it’s hidden logic and it all will lead to a better OS.
His debug version would not boot off of the SSD. I wish I was the only one, but it looks like more and more people are opening GitHub issues. Most of the people there have use Home Assistant for a while and understand what they are doing. It does not look like the inexperienced “operator error”. It looks like there is an issue somewhere with the OS. As you are aware there were major changes to the OS for the Pi after 5.4. I hope the answer isn’t they will stop supporting Home Assistant on the RPI4.
I also tried the method that is “support” and installed on an SD and move all but the boot to the SSD. This failed also after 3 to 4 hours. No difference than just using the SSD.
Thanks for trying! If I see something useful, I will post it here so you can attach it to your directions.
Bill