If you're serious about boot time (and image size) reduction, your first step should be to create your own DISTRO and your own image recipe. Scrap those first words actually, I think this should be the first step in anything that's to become a real product.

It's much more efficient to start empty en add what you need, then to start with an everything-but-the-kitchen-sink image and then try to remove things without breaking other things.

Putting things in ":remove" overrides is not going to work as you expect. If package X has a run-time dependency on package Y, then package Y will be installed regardless of whether you added a bunch of ZZZ:remove += "Y" in some places. To get rid of Y, you'll have to remove or alter X.

Also start with analyzing your boot time. I've seen projects where people spent weeks on removing services and gaining less than a second, while they left a "bootdelay" active in U-boot. Of total 10 seconds boot time, three seconds were spent twidling thumbs in U-boot. That's a 30% boot time improvement in less than an hour's work.

A raspberrypi 4 for example will spend about 5 seconds in its closed-source firmware at boot. Some things are just beyond your control.

On many embedded devices boot time is dominated by the IO speed of the boot device. Just changing your rootfs type from ext4 into LZ4-compressed squashfs often reduces the boot time noticably.

When using systemd, "systemd-analyze criticalpath" should be your starting 
point.

M.

On 27-11-2024 07:25, sateesh m via lists.yoctoproject.org wrote:
Hi Team,
I want to improve my boot time so for that I want to disable few services which is running during boot up. I want to disable below mentioned services.



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64372): https://lists.yoctoproject.org/g/yocto/message/64372
Mute This Topic: https://lists.yoctoproject.org/mt/109803053/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to