Systemd port on custom embedded linux
Kay Sievers
kay.sievers at vrfy.org
Wed Sep 8 06:06:56 PDT 2010
On Wed, Sep 8, 2010 at 14:43, Cristian Axenie <cristian.axenie at gmail.com> wrote:
> I have some questions regarding some options to enable/disable when using
> systemd on a custom embedded Linux distro. I've managed to port systemd-8
> for a Tegra2 similar board, based on ARMv7 CPU. The embedded OS is a Fedora
> like system and I have used the systemd-8-1.fc14.src.rpm.
> Next the most important setup steps are given. When configuring the package
> I've used the following options :
> --with-distro=other \
> --with-sysvinit-path=/etc/rc.d/init.d \
> --with-sysvrcd-path=/etc/rc.d \
> --with-syslog-service=rsyslog.service \
> --with-dbuspolicydir=/etc/dbus-1/system.d \
> --with-dbussessionservicedir=/usr/share/dbus-1/services \
> --with-dbussystemservicedir=/usr/share/dbus-1/services/../system-services \
> --with-dbusinterfacedir=/usr/share/dbus-1/services/../interfaces
>
> Another aspect refers to the fact that on the embedded system I don't need a
> graphical interface so systemdadm will not be necessary, and also due to the
> fact that I'm cross-compiling I have eliminated the
> org.freedesktop.systemd1.%.xml target from Makefile.in in order to skip
> running the ARM binary ./systemd --introspect=${@:.xml=} on the host build
> system. Also the porting guide was considered when preparing the package for
> cross-compilation.
> After the compilation I've added init=/bin/systemd to my kernel boot line
> and after freeing the init memory the system hangs with a "Failed to mount
> /dev : No such device" message.
You have CONFIG_DEVTMPFS=y in your kernel?
> The compilation environment was properly
> configured with all the dependencies version required by systemd although
> there were some options that were diabled. For example, for udev I have
> disabled introspection support.
Udev itself has no idea of any introspection, it's just a library
GUdev, which you don't need for systemd.
Kay
More information about the systemd-devel
mailing list