[yocto] systemd support?

Erik Botö erik.boto at pelagicore.com
Fri Aug 16 05:07:14 PDT 2013


Hi,

There's a bug in the bugzilla for this,
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4843 . You can also look
at a mail thread,
http://lists.openembedded.org/pipermail/openembedded-core/2013-June/080328.html
for
some more context.

If you just want to get past it you can do something like the below. It's
not a real fix but a work around.

diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 3d437b0..0f6e882 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -30,6 +30,6 @@ def qemu_run_binary(data, rootfs_path, binary):
     libdir = rootfs_path + data.getVar("libdir", False)
     base_libdir = rootfs_path + data.getVar("base_libdir", False)
-    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\
+    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -U LD_PRELOAD -L " +
rootfs_path\
             + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\
             + rootfs_path + binary


Cheers,
Erik Botö



On Fri, Aug 16, 2013 at 1:07 PM, Gary Thomas <gary at mlbassoc.com> wrote:

> On 2013-08-15 16:29, Gary Thomas wrote:
>
>> I tried to take my existing Poky/Yocto system (using my own $DISTRO
>> which is a derivative of poky) and enable systemd.  I'm using today's
>> master:
>>    meta              = "cutting-edge:**ff10f72abda52315b892c64f711096**
>> 772d9a4c1c"
>>
>> Sadly, building the simplest image fails with this error:
>>
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//sbin/poweroff
>> to /sbin/poweroff.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/last
>> to /usr/bin/last.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/mesg
>> to /usr/bin/mesg.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/utmpdump
>> to /usr/bin/utmpdump.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/wall
>> to /usr/bin/wall.sysvinit
>> | ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be
>> preloaded: ignored.
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**systemd-udevd.
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/scp
>> to /usr/sbin/dropbearmulti
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/ssh
>> to /usr/sbin/dropbearmulti
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**dropbear.
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**networking.
>>
>> I wasn't sure what brought in the error so I pasted a number of lines
>> of context.
>>
>> Note: building the same image with 'sysvinit' in DISTRO_FEATURES
>> instead of 'systemd' works fine.
>>
>> Any ideas what's going on here?
>>
>>
> Interesting - this seems to be a host bug.  I got the above error
> when building on Ubuntu 12.04/x86_64.  I do not get the error when
> using Fedora 13/i386.  I've not yet tried any other host.
>
>
> --
> ------------------------------**------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------**------------------------------
> ______________________________**_________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>



-- 
=============================================
Erik Botö
Senior Software Engineer
Pelagicore AB
Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden
Mobile: +46 (0)76 881 72 03
E-Mail: erik.boto at pelagicore.com
=============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130816/acd68890/attachment.html>


More information about the yocto mailing list