All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] packagegroup-selinux-policycoreutils: add policycoreutils-hll
@ 2016-05-31 14:14 Shrikant Bobade
  2016-05-31 16:24 ` calibrator fails to run Fred Ollinger
  0 siblings, 1 reply; 4+ messages in thread
From: Shrikant Bobade @ 2016-05-31 14:14 UTC (permalink / raw)
  To: yocto; +Cc: Shrikant Bobade

From: Shrikant Bobade <shrikant_bobade@mentor.com>

we need policycoreutils-hll to insert custom policy module/package, without
it semodule install fail with error:

libsemanage.semanage_pipe_data: Unable to execute /usr/libexec/selinux/hll/
pp : No such file or directory
libsemanage.semanage_direct_commit: Failed to compile hll files into cil
files. (No such file or directory).
semodule:  Failed!

Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
---
 recipes-security/packagegroups/packagegroup-selinux-policycoreutils.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-security/packagegroups/packagegroup-selinux-policycoreutils.bb b/recipes-security/packagegroups/packagegroup-selinux-policycoreutils.bb
index 7f56d7c..b566134 100644
--- a/recipes-security/packagegroups/packagegroup-selinux-policycoreutils.bb
+++ b/recipes-security/packagegroups/packagegroup-selinux-policycoreutils.bb
@@ -33,5 +33,6 @@ RDEPENDS_${PN} = "\
 	policycoreutils-sestatus \
 	policycoreutils-setfiles \
 	policycoreutils-setsebool \
+	policycoreutils-hll \
 	system-config-selinux \
 "
-- 
1.9.1



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

* calibrator fails to run
  2016-05-31 14:14 [meta-selinux][PATCH] packagegroup-selinux-policycoreutils: add policycoreutils-hll Shrikant Bobade
@ 2016-05-31 16:24 ` Fred Ollinger
  2016-06-07  7:23   ` Christian Ege
  2016-06-22 17:17   ` Khem Raj
  0 siblings, 2 replies; 4+ messages in thread
From: Fred Ollinger @ 2016-05-31 16:24 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Goal: Run a cross compiled executable called calibrator from git://git.ti.com/wilink8-wlan/18xx-ti-utils.git

Here's my build script:

export NFSROOT=/srv/imx/CS65X-dev

export CROSS_COMPILE=/opt/prickle/1.7.2/sysroots/x86_64-pricklesdk-linux/usr/bin/arm-prickle-linux-gnueabi/arm-prickle-lin    ux-gnueabi-

export NLVER=3

export CFLAGS="-mfloat-abi=hard -I/opt/prickle/1.7.2/sysroots/cortexa9hf-vfp-neon-prickle-linux-gnueabi/usr/include/libnl3    "

make 

sudo make install NFSROOT=/srv/imx/CS65X-dev

----------------------------------------------------------------

This will build the library and install it onto my system.

However, when I run it, I get:

root@yocto:~# /usr/bin/calibrator 
-sh: /usr/bin/calibrator: No such file or directory

But the file does exist, and it even looks like the proper type of executable:

root@yocto:~# file /usr/bin/calibrator  
                                                                                  
/usr/bin/calibrator: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Li
nux 2.6.32, BuildID[sha1]=96e4d113a9e1a0e90fd60d8d0a59e19323457b5d, stripped

Here's my hardware info:

root@yocto:~# cat /proc/cpuinfo 
processor       : 0
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 1988.29
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision        : 0000
Serial          : 0000000000000000

Any ideas on where to start?

Thanks.

Frederick

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

* Re: calibrator fails to run
  2016-05-31 16:24 ` calibrator fails to run Fred Ollinger
@ 2016-06-07  7:23   ` Christian Ege
  2016-06-22 17:17   ` Khem Raj
  1 sibling, 0 replies; 4+ messages in thread
From: Christian Ege @ 2016-06-07  7:23 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hello Frederick,

> Goal: Run a cross compiled executable called calibrator from git://git.ti.com/wilink8-wlan/18xx-ti-utils.git
>
> Here's my build script:
>
> export NFSROOT=/srv/imx/CS65X-dev
> export CROSS_COMPILE=/opt/prickle/1.7.2/sysroots/x86_64-pricklesdk-linux/usr/bin/arm-prickle-linux-gnueabi/arm-prickle-lin    ux-gnueabi-
> export NLVER=3
> export CFLAGS="-mfloat-abi=hard -I/opt/prickle/1.7.2/sysroots/cortexa9hf-vfp-neon-prickle-linux-gnueabi/usr/include/libnl3    "
>
> make
Maybe better use
source /opt/prickle/1.7.2/environment-setup-armv7ahf-vfp-neon-poky-linux-gnueabi

and after this you can use
export CROSS_COMPILE=arm-prickle-linux-gnueabi-

BTW I am using this recipe to compile the TI tools for my UDOO meta layer
https://github.com/graugans/meta-udoo/blob/krogoth/recipes-bsp/wl18xx-conf/wl18xx-conf.bb

Maybe this is an option for you too


From the output it looks like hardfp/softfp missmatch..

Regards,
Christian
> sudo make install NFSROOT=/srv/imx/CS65X-dev
>
> ----------------------------------------------------------------
>
> This will build the library and install it onto my system.
>
> However, when I run it, I get:
>
> root@yocto:~# /usr/bin/calibrator
> -sh: /usr/bin/calibrator: No such file or directory
>
> But the file does exist, and it even looks like the proper type of executable:
>
> root@yocto:~# file /usr/bin/calibrator
>
> /usr/bin/calibrator: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Li
> nux 2.6.32, BuildID[sha1]=96e4d113a9e1a0e90fd60d8d0a59e19323457b5d, stripped
>
> Here's my hardware info:
>
> root@yocto:~# cat /proc/cpuinfo
> processor       : 0
> model name      : ARMv7 Processor rev 10 (v7l)
> BogoMIPS        : 1988.29
> Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x2
> CPU part        : 0xc09
> CPU revision    : 10
>
> Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
> Revision        : 0000
> Serial          : 0000000000000000
>
> Any ideas on where to start?
>
> Thanks.
>
> Frederick
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
http://ch.ege.io/


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

* Re: calibrator fails to run
  2016-05-31 16:24 ` calibrator fails to run Fred Ollinger
  2016-06-07  7:23   ` Christian Ege
@ 2016-06-22 17:17   ` Khem Raj
  1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2016-06-22 17:17 UTC (permalink / raw)
  To: Fred Ollinger; +Cc: yocto@yoctoproject.org

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


> On May 31, 2016, at 9:24 AM, Fred Ollinger <Fred.Ollinger@seescan.com> wrote:
> 
> Goal: Run a cross compiled executable called calibrator from git://git.ti.com/wilink8-wlan/18xx-ti-utils.git
> 
> Here's my build script:
> 
> export NFSROOT=/srv/imx/CS65X-dev
> 
> export CROSS_COMPILE=/opt/prickle/1.7.2/sysroots/x86_64-pricklesdk-linux/usr/bin/arm-prickle-linux-gnueabi/arm-prickle-lin    ux-gnueabi-
> 
> export NLVER=3
> 
> export CFLAGS="-mfloat-abi=hard -I/opt/prickle/1.7.2/sysroots/cortexa9hf-vfp-neon-prickle-linux-gnueabi/usr/include/libnl3    "
> 
> make
> 
> sudo make install NFSROOT=/srv/imx/CS65X-dev


You have two options.

1. Write a recipe for this package and let OE build it and you can add it to your image with IMAGE_INSTALL if you want it in final image. For OE recipe you can follow devtool workflow to add new recipe or you can manually do it by copying a similar looking recipe and making needed changes.

2. if you dont want to work with OE immediately then you can generate SDK with bitbake -cpopulate_sdk <your image>
install the resulting SDK using the self installer ( .sh file) and then using the SDK, ensure that you use CC, CXX and its ilk
as it is after sourcing the environment.



> 
> ----------------------------------------------------------------
> 
> This will build the library and install it onto my system.
> 
> However, when I run it, I get:
> 
> root@yocto:~# /usr/bin/calibrator
> -sh: /usr/bin/calibrator: No such file or directory

you might need to do chmod +x for this file. Secondly it might be using wrong ABI  ( hard-float or not ) ensure that
the ABIs of the system and your app are same.

> 
> But the file does exist, and it even looks like the proper type of executable:
> 
> root@yocto:~# file /usr/bin/calibrator
> 
> /usr/bin/calibrator: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Li
> nux 2.6.32, BuildID[sha1]=96e4d113a9e1a0e90fd60d8d0a59e19323457b5d, stripped
> 
> Here's my hardware info:
> 
> root@yocto:~# cat /proc/cpuinfo
> processor       : 0
> model name      : ARMv7 Processor rev 10 (v7l)
> BogoMIPS        : 1988.29
> Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x2
> CPU part        : 0xc09
> CPU revision    : 10
> 
> Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
> Revision        : 0000
> Serial          : 0000000000000000
> 
> Any ideas on where to start?


readelf -A <your app>
readelf -A <some app on target>

should be same.

> 
> Thanks.
> 
> Frederick
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

end of thread, other threads:[~2016-06-22 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-31 14:14 [meta-selinux][PATCH] packagegroup-selinux-policycoreutils: add policycoreutils-hll Shrikant Bobade
2016-05-31 16:24 ` calibrator fails to run Fred Ollinger
2016-06-07  7:23   ` Christian Ege
2016-06-22 17:17   ` Khem Raj

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.