All of lore.kernel.org
 help / color / mirror / Atom feed
* udev-hwdb - post installation error (PPC target)
@ 2014-11-27  9:48 Gaurang Shastri
  2014-11-27 10:10 ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Gaurang Shastri @ 2014-11-27  9:48 UTC (permalink / raw)
  To: yocto@yoctoproject.org; +Cc: meta-freescale, Paul Eggleton

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

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udev-hwdb - post installation error (PPC target)
  2014-11-27  9:48 udev-hwdb - post installation error (PPC target) Gaurang Shastri
@ 2014-11-27 10:10 ` ChenQi
  2014-11-27 11:17   ` Gaurang Shastri
  0 siblings, 1 reply; 3+ messages in thread
From: ChenQi @ 2014-11-27 10:10 UTC (permalink / raw)
  To: yocto

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udev-hwdb - post installation error (PPC target)
  2014-11-27 10:10 ` ChenQi
@ 2014-11-27 11:17   ` Gaurang Shastri
  0 siblings, 0 replies; 3+ messages in thread
From: Gaurang Shastri @ 2014-11-27 11:17 UTC (permalink / raw)
  To: ChenQi; +Cc: yocto@yoctoproject.org

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

Sent to the mailing list.

Please confirm.

//Gaurang Shastri

On Thu, Nov 27, 2014 at 3:40 PM, ChenQi <Qi.Chen@windriver.com> wrote:

>  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
>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-27 11:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27  9:48 udev-hwdb - post installation error (PPC target) Gaurang Shastri
2014-11-27 10:10 ` ChenQi
2014-11-27 11:17   ` Gaurang Shastri

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.