From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6D7A1E0087D; Thu, 27 Nov 2014 02:10:25 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1C539E0030B for ; Thu, 27 Nov 2014 02:10:19 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id sARAAIoP019667 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Thu, 27 Nov 2014 02:10:19 -0800 (PST) Received: from [128.224.162.226] (128.224.162.226) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 27 Nov 2014 02:10:18 -0800 Message-ID: <5476F897.6040303@windriver.com> Date: Thu, 27 Nov 2014 18:10:31 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: References: In-Reply-To: X-Originating-IP: [128.224.162.226] Subject: Re: udev-hwdb - post installation error (PPC target) X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 10:10:25 -0000 Content-Type: multipart/alternative; boundary="------------020205010901030706040308" --------------020205010901030706040308 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 11/27/2014 05:48 PM, Gaurang Shastri wrote: > Hi > > I have added systemd as my DISTRO_FEATURES for one of my ppc target. > > But in my log.do_rootfs, I can see that for "udev-hwdb" RPM, generated > from "systemd", post-installation script failed with core dump: > {{{ > > 419:Installing udev-hwdb######################################## [ 43%] > > Output from > udev-hwdb-1:208+git0+4372855b7871dd4f639d0e5fca86eff0d38aeb18-r0.2@ppce500v2: > > Invalid instruction > > NIP f67d2f6cLR f67d3130 CTR 00000000 XER 20000000 > > MSR 00006040 HID0 00000000HF 00006000 idx 0 TB 00000000 00000000 > > GPR00 00000000f67d3130 00000000f6ffcc78 0000000000000000 0000000000000000 > > GPR04 0000000000000014 0000000000000010 00000000f67fe080 0000000000000215 > > GPR08 00000000f67cd6c4 000000000000021c 0000000000001950 000000006ffffdff > > GPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > GPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > GPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > GPR24 0000000000000000 0000000000000000 0000000000000000 00000000f67cf014 > > GPR28 00000000f6ffcf38 00000000f67cd000 00000000f67fd81c 000000006ffffeff > > CR 28000084[ EL----LG]RES ffffffff > > FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > FPR28 0000000000000000 0000000000000000 0000000000000000 > 0000000000000000 FPSCR 00000000 > > qemu: uncaught target signal 4 (Illegal instruction) - core dumped > > /tmp/rpm-tmp.36340: line 7:8426 Illegal instruction(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 > > }}} > > >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: > > {{{ > > $ git diff meta/classes/qemu.bbclass diff --git > a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index > 3d437b0..8353839 100644 > > --- a/meta/classes/qemu.bbclass > > +++ b/meta/classes/qemu.bbclass > > @@ -29,7 +29,8 @@ def qemu_run_binary(data, rootfs_path, binary): > > libdir = rootfs_path + data.getVar("libdir", False) > > base_libdir = rootfs_path + data.getVar("base_libdir", False) > > +qemu_option = data.getVar("QEMU_OPTIONS",True) > > -return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\ > > +return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_option + " -L > > + " + rootfs_path\ > > + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ > > + rootfs_path + binary > > }}} > > 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) > > Regards, > Gaurang Shastri > I think this correct. Please send out patch to openembedded-core@lists.openembedded.org. Regards, Chen Qi > > > --------------020205010901030706040308 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit
On 11/27/2014 05:48 PM, Gaurang Shastri wrote:
Hi

I have added systemd as my DISTRO_FEATURES for one of my ppc target.

But in my log.do_rootfs, I can see that for "udev-hwdb" RPM, generated from "systemd", post-installation script failed with core dump:
{{{

419:Installing udev-hwdb       ######################################## [ 43%]

Output from udev-hwdb-1:208+git0+4372855b7871dd4f639d0e5fca86eff0d38aeb18-r0.2@ppce500v2:

Invalid instruction

NIP f67d2f6c   LR f67d3130 CTR 00000000 XER 20000000

MSR 00006040 HID0 00000000  HF 00006000 idx 0 TB 00000000 00000000

GPR00 00000000f67d3130 00000000f6ffcc78 0000000000000000 0000000000000000

GPR04 0000000000000014 0000000000000010 00000000f67fe080 0000000000000215

GPR08 00000000f67cd6c4 000000000000021c 0000000000001950 000000006ffffdff

GPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000

GPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000

GPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000

GPR24 0000000000000000 0000000000000000 0000000000000000 00000000f67cf014

GPR28 00000000f6ffcf38 00000000f67cd000 00000000f67fd81c 000000006ffffeff

CR 28000084  [ E  L  -  -  -  -  L  G  ]             RES ffffffff

FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000

FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPSCR 00000000

qemu: uncaught target signal 4 (Illegal instruction) - core dumped

/tmp/rpm-tmp.36340: line 7:  8426 Illegal instruction     (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

}}}

>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:

{{{

$ git diff meta/classes/qemu.bbclass diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index 3d437b0..8353839 100644

--- a/meta/classes/qemu.bbclass

+++ b/meta/classes/qemu.bbclass

@@ -29,7 +29,8 @@ def qemu_run_binary(data, rootfs_path, binary):

 

     libdir = rootfs_path + data.getVar("libdir", False)

     base_libdir = rootfs_path + data.getVar("base_libdir", False)

+    qemu_option = data.getVar("QEMU_OPTIONS",True)

 

-    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\

+    return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_option + " -L

+ " + rootfs_path\

             + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\

             + rootfs_path + binary

}}}

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)

Regards,
Gaurang Shastri


I think this correct. Please send out patch to openembedded-core@lists.openembedded.org.

Regards,
Chen Qi





--------------020205010901030706040308--