<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/27/2014 05:48 PM, Gaurang Shastri
wrote:<br>
</div>
<blockquote
cite="mid:CAE_REAu3cEgRAeg5yZD8TPFovjx+qrVAXpKfGSy39xuAL-Ce5w@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">
<div>
<div>
<div>Hi<br>
<br>
</div>
I have added systemd as my DISTRO_FEATURES for one of my ppc
target.<br>
<br>
</div>
But in my log.do_rootfs, I can see that for "udev-hwdb" RPM,
generated from "systemd", post-installation script failed with
core dump:<br>
{{{<br>
<p class="">419:Installing udev-hwdb<span style=""> </span>########################################
[
43%]</p>
<p class="">Output from
udev-hwdb-1:208+git0+4372855b7871dd4f639d0e5fca86eff0d38aeb18-r0.2@ppce500v2:</p>
<p class="">Invalid instruction</p>
<p class="">NIP f67d2f6c<span style=""> </span>LR
f67d3130 CTR 00000000 XER 20000000</p>
<p class="">MSR 00006040 HID0 00000000<span style=""> </span>HF
00006000 idx 0 TB 00000000 00000000</p>
<p class="">GPR00 00000000f67d3130 00000000f6ffcc78
0000000000000000
0000000000000000</p>
<p class="">GPR04 0000000000000014 0000000000000010
00000000f67fe080
0000000000000215</p>
<p class="">GPR08 00000000f67cd6c4 000000000000021c
0000000000001950
000000006ffffdff</p>
<p class="">GPR12 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">GPR16 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">GPR20 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">GPR24 0000000000000000 0000000000000000
0000000000000000
00000000f67cf014</p>
<p class="">GPR28 00000000f6ffcf38 00000000f67cd000
00000000f67fd81c
000000006ffffeff</p>
<p class="">CR 28000084<span style=""> </span>[
E<span style=""> </span>L<span style="">
</span>-<span style=""> </span>-<span style=""> </span>-<span
style="">
</span>-<span style=""> </span>L<span style=""> </span>G<span
style=""> </span>]<span style=""> </span>RES
ffffffff</p>
<p class="">FPR00 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR04 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR08 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR12 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR16 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR20 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR24 0000000000000000 0000000000000000
0000000000000000
0000000000000000</p>
<p class="">FPR28 0000000000000000 0000000000000000
0000000000000000
0000000000000000 FPSCR 00000000</p>
<p class="">qemu: uncaught target signal 4 (Illegal
instruction) -
core dumped</p>
<p class="">/tmp/rpm-tmp.36340:
line 7:<span style=""> </span>8426 Illegal instruction<span
style=""> </span>(core dumped) PSEUDO_UNLOAD=1
qemu-ppc -L
$D -E LD_LIBRARY_PATH=$D/usr/lib:$D/lib $D/bin/udevadm hwdb
--update --root $D</p>
<p class="">}}}</p>
>From the above, it is clear that we are missing correct
"QEMU_OPTIONS" while passing through "qemu-ppc" binary in
qemu.bbclass. I am able to make it working with following
patch:<br>
<p class="">{{{</p>
<p class="">$
git diff meta/classes/qemu.bbclass diff --git
a/meta/classes/qemu.bbclass
b/meta/classes/qemu.bbclass index 3d437b0..8353839 100644</p>
<p class="">--- a/meta/classes/qemu.bbclass</p>
<p class="">+++ b/meta/classes/qemu.bbclass</p>
<p class="">@@ -29,7 +29,8 @@ def qemu_run_binary(data,
rootfs_path,
binary):</p>
<p class=""> </p>
<p class=""><span style=""> </span>libdir =
rootfs_path + data.getVar("libdir", False)</p>
<p class=""><span style=""> </span>base_libdir =
rootfs_path + data.getVar("base_libdir", False)</p>
<p class="">+<span style=""> </span>qemu_option =
data.getVar("QEMU_OPTIONS",True)</p>
<p class=""> </p>
<p class="">-<span style=""> </span>return
"PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\</p>
<p class="">+<span style=""> </span>return
"PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_option +
" -L </p>
<p class="">+ " + rootfs_path\</p>
<p class=""><span style=""> </span>+
" -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir +
" "\</p>
<p class=""><span style=""> </span>+
rootfs_path + binary</p>
<p class="">}}} <br>
</p>
Please check the above and let me know so that I can send the
patch in correct format (via filing a bug and attaching as
regular patch format)<br>
<br>
</div>
Regards,<br>
Gaurang Shastri<br>
<div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
I think this correct. Please send out patch to
<a class="moz-txt-link-abbreviated" href="mailto:openembedded-core@lists.openembedded.org">openembedded-core@lists.openembedded.org</a>.<br>
<br>
Regards,<br>
Chen Qi<br>
<br>
<blockquote
cite="mid:CAE_REAu3cEgRAeg5yZD8TPFovjx+qrVAXpKfGSy39xuAL-Ce5w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>