Xgorobot / RaspberryPi-CM4

RaspberryPi-CM4 code
20 stars 12 forks source link

Faster bootup #4

Open JKWiniger opened 1 year ago

JKWiniger commented 1 year ago

Remove and thin unneeded items from Raspbian OS to speed booting. -Document what is removed and why -Create a script that can make the changes on a new OS load.

JKWiniger commented 1 year ago

Just a quick look and I took 13 seconds off of the boot time taking it from 46 seconds to 33...

Changed my codlin.txt to:

console=serial0,115200 console=tty1 root=PARTUUID=71a81b7a-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet plymouth.ignore-serial-consoles

disabled these:

sudo systemctl disable dphys-swapfile.service sudo systemctl disable keyboard-setup.service sudo systemctl disable apt-daily.service sudo systemctl disable raspi-config.service sudo systemctl disable triggerhappy.service

and used raspy-config to boot to CLI instead of GUI - this took off 3 seconds.

if I put more time into it I could probably speed it up more...

using systems-analyze blame shows boot times