Hi everyone, currently i am trying to make my boot time in my Beaglebone black as low as possible, target is < 10s
Here is my systemd-analyze blame
root@arm:~# systemd-analyze
Startup finished in 4.093s (kernel) + 9.019s (userspace) = 13.113s
multi-user.target reached after 8.695s in userspace
root@arm:~# systemd-analyze blame
8.179s dev-mmcblk0p1.device
2.291s systemd-udev-trigger.service
1.016s systemd-logind.service
938ms e2scrub_reap.service
850ms user@1000.service
727ms sudo.service
706ms dev-mqueue.mount
691ms sys-kernel-debug.mount
651ms sys-kernel-tracing.mount
634ms fake-hwclock.service
608ms kmod-static-nodes.service
594ms modprobe@configfs.service
586ms modprobe@fuse.service
585ms modprobe@drm.service
570ms systemd-fsck-root.service
550ms systemd-modules-load.service
421ms systemd-remount-fs.service
408ms sys-fs-fuse-connections.mount
396ms systemd-user-sessions.service
379ms systemd-sysusers.service
378ms systemd-journal-flush.service
375ms systemd-random-seed.service
373ms sys-kernel-config.mount
here is my df -h in home
root@arm:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 30G 250M 28G 1% /
devtmpfs 221M 0 221M 0% /dev
tmpfs 245M 0 245M 0% /dev/shm
tmpfs 98M 800K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 49M 0 49M 0% /run/user/1000
My sd card is not too slow,
root@arm:~# hdparm -tT /dev/mmcblk0p1
/dev/mmcblk0p1:
Timing cached reads: 368 MB in 2.01 seconds = 183.19 MB/sec
Timing buffered disk reads: 66 MB in 3.07 seconds = 21.51 MB/sec
i notice that 8.179s dev-mmcblk0p1.device or service that mount sd-card take the longest
at first i thought because i have many package in sd card, but it not
i try to delete so many package, just to need to boot ok, from 544Mb to 250Mb, but it still take 13s
I don’t know why is that, i disable and delete all package and service related to Internet, sudo, openssl, … Because i want my boot time as low as possible, i disable tty1, i only connect to board, through USB serial
Can you guy suggest me what to do next , i try many thing, at first the boot takes 18s, now it is 13s
I follow the guide install kernel of RobertCNelson