RPI4 Image and Slow Starting SSH

Thanks for putting the image together for an RPI4… saved me lots of time. I installed your first release and then (having to rebuild things) installed your latest release. Each one seems to take a real long time before SSH gets enabled… maybe 2-3 minutes after booting. Is this normal? (I’ve turned off the AP mode and connected the robot to my home’s WiFi using pifi).

It does generally need a minute or two indeed.

I think it may have something to do with a graceful shutdown. It’s back up almost immediately after a reboot and a lot sooner if it was shut down normally instead of unplugged since it then needs to verify the partition if I recall right.

I ran into the same problem. After the fix, it takes only few seconds instead of 5 mins.

Edit /etc/network/interfaces and change “auto” for interfaces to “allow-hotplug”

sudo nano /etc/network/interfaces

Example: auto interface for ethernet card auto eth0 change to allow-hotplug eth0

After that for me “systemd-analyze blame” -> networking.service changes from 5 min to 2s

2 Likes

Hi @tomkart

This is great work, thanks!

There is also the workaround posted here: ROS image on Raspberry Pi 4? I should have copied that to this thread.

Rohan