(02-21-2023, 12:42 AM)KreAch3R Wrote: I've had my share of bootloops at start and it came out that it was a combination of a normal voltage drop during crank (small one), and the biggest factor, the pi peripherals were drawing too much power during startup.Alright that's a lot of good info. I think I'll try to delay the powering of USB devices using the
Disconnect everything non essential and check if it still happens.
Also, some cars cut out power to audio systems (where have you connected your 5V converter??), and that can cause a momentary drop in voltage so pi thinks it was a restart cycle and can get stuck restarting. Use a relay mechanism to draw power directly from battery but use the switched-on current of the crank to toggle the relay.
Re-check all your connections and solders (if any), and thicken any clumpsy looking connection hanging by a thread. That could solve some voltage drops.
Lastly, buy a external 12V or 5V powered usb hub, and connect all peripherals to that, and that to pi.
All of the above solved the problem for me. I never get bootloops at startup these days.
USB_MSD_PWR_OFF_TIMEUSB_MSD_PWR_OFF_TIME
Parameter in the boot file. It can be set for the Pi3, hopefully it also works in the Pi4. If not, I'll delay powering the Pi in my power circuit for something like 2-3 seconds. If that doesn't work, I'll try the external USB power.
To answer the question about the converter, it's connected directly to the battery, but the pi ground is connected to a MOSFET that's controlled by an ESP32 so I can freely control when it powers on.
(02-20-2023, 06:58 AM)Daniel_BlueWave Wrote: I would also go into direction of voltage drop. RPi is very sensitive for voltage drops.
You can checks others Users solutions from here:
https://bluewavestudio.io/community/forum-91.html
Hopefully, a delay in powering the pi after The crank helps with avoiding the voltage drop.