-
Notifications
You must be signed in to change notification settings - Fork 9
systemd
systemd is an init daemon for Linux. It is an alternative to sysvinit or other init daemons. Website: https://www.freedesktop.org/wiki/Software/systemd/
A clean bitbake build is necessary, you might want to use a separate build dir like build_systemd
.
Before starting to bitbake an image, change local.conf accordingly. Add two lines
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_append = " systemd"
and, if necessary, remove or comment out lines specifying different init mechanisms and device file managers like
# PREFERRED_PROVIDER_udev = "eudev"
# VIRTUAL_RUNTIME_init_manager = "sysvinit"
Linux (console-image) boot time from first dmesg entry "Booting Linux..." until serial console login prompt approx. 5 seconds.
By default, the networking service is masked, i.e. it will not start. So, for the first login one cannot use network interfaces.
To change this behaviour: login, unmask and enable the networking service:
systemctl status networking
systemctl unmask networking
systemctl enable networking
systemctl start networking
start will start the service immediately, enable will enable it during boot. Check network connectivity:
ifconfig
route
ping 8.8.8.8