All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: udev-hwdb - post installation error (PPC target)
Date: Thu, 27 Nov 2014 18:10:31 +0800	[thread overview]
Message-ID: <5476F897.6040303@windriver.com> (raw)
In-Reply-To: <CAE_REAu3cEgRAeg5yZD8TPFovjx+qrVAXpKfGSy39xuAL-Ce5w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3495 bytes --]

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

>
>
>


[-- Attachment #2: Type: text/html, Size: 7181 bytes --]

  reply	other threads:[~2014-11-27 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-27  9:48 udev-hwdb - post installation error (PPC target) Gaurang Shastri
2014-11-27 10:10 ` ChenQi [this message]
2014-11-27 11:17   ` Gaurang Shastri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5476F897.6040303@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.