* Adding prebuilt binaries to /usr/bin on rootfs
@ 2013-04-17 15:00 Satya Swaroop Damarla
2013-04-17 15:05 ` Burton, Ross
0 siblings, 1 reply; 10+ messages in thread
From: Satya Swaroop Damarla @ 2013-04-17 15:00 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]
Hi Guys,
I have few prebuilt binaries and I want to add them to the rootfs at the
build itself. So, I created a recipe... but I get an error .. Can you
please tell me what the error could be?
DESCRIPTION = "Skidata Tools"
LICENSE = "CLOSED"
SRC_URI = "file:///home/damarla/yocto/skidata-tools.zip"
SRCREV ?= "${AUTOREV}"
SRC_URI[md5sum] = "fda9d9034bfb64deab57513472279a81"
SRC_URI[sha256sum] =
"8c917892677c44784a99b29c4302cfec257cd422ccc06c3d90432c4a74960af8"
do_install () {
install -d ${D}/usr/bin
pwd
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/TCPDownload
${D}/usr/bin/
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/USBDownload
${D}/usr/bin/USBDownload
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/devsrv
${D}/usr/bin/devsrv
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/i2c-test
${D}/usr/bin/i2c-test
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/sdusb-cmd
${D}/usr/bin/sdusb-cmd
install -m 0755
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/skidata-tools/setty
${D}/usr/bin/setty
}
FILES_TCPDownload = "${D}/usr/bin/TCPDownload"
FILES_USBDownload = "${D}/usr/bin/USBDownload"
FILES_devsrv = "${D}/usr/bin/devsrv"
FILES_i2c-test = "${D}/usr/bin/i2c-test"
FILES_sdusb-cmd = "${D}/usr/bin/sdusb-cmd"
FILES_setty = "${D}/usr/bin/setty"
Help is greatly appreciated!
Greets,
Satya
[-- Attachment #2: Type: text/html, Size: 2558 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 15:00 Adding prebuilt binaries to /usr/bin on rootfs Satya Swaroop Damarla
@ 2013-04-17 15:05 ` Burton, Ross
2013-04-17 15:11 ` Satya Swaroop Damarla
0 siblings, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2013-04-17 15:05 UTC (permalink / raw)
To: Satya Swaroop Damarla; +Cc: yocto
On 17 April 2013 16:00, Satya Swaroop Damarla <swaroop.damarla@gmail.com> wrote:
> I have few prebuilt binaries and I want to add them to the rootfs at the
> build itself. So, I created a recipe... but I get an error .. Can you please
> tell me what the error could be?
It helps when you tell us what error you're getting.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 15:05 ` Burton, Ross
@ 2013-04-17 15:11 ` Satya Swaroop Damarla
2013-04-17 15:56 ` Burton, Ross
2013-04-26 5:55 ` Khem Raj
0 siblings, 2 replies; 10+ messages in thread
From: Satya Swaroop Damarla @ 2013-04-17 15:11 UTC (permalink / raw)
To: Burton, Ross, yocto
[-- Attachment #1: Type: text/plain, Size: 2345 bytes --]
Hi Burton,
Please have a look at the build error I had
WARNING: File '/usr/bin/sdusb-cmd' from skidata-tools was already stripped,
this will prevent future debugging!
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/devsrv'
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/USBDownload'
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/setty'
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/TCPDownload'
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/sdusb-cmd'
ERROR: QA Issue: No GNU_HASH in the elf binary:
'/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/i2c-test'
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/temp/log.do_package.31327
ERROR: Task 10
(/home/damarla/yocto/poky/meta/recipes-extended/skidata-tools/
skidata-tools.bb, do_package) failed with exit code '1'
Greets,
Satya
On Wed, Apr 17, 2013 at 5:05 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 17 April 2013 16:00, Satya Swaroop Damarla <swaroop.damarla@gmail.com>
> wrote:
> > I have few prebuilt binaries and I want to add them to the rootfs at the
> > build itself. So, I created a recipe... but I get an error .. Can you
> please
> > tell me what the error could be?
>
> It helps when you tell us what error you're getting.
>
> Ross
>
[-- Attachment #2: Type: text/html, Size: 3112 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 15:11 ` Satya Swaroop Damarla
@ 2013-04-17 15:56 ` Burton, Ross
2013-04-17 18:10 ` Satya Swaroop Damarla
2013-04-26 5:55 ` Khem Raj
1 sibling, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2013-04-17 15:56 UTC (permalink / raw)
To: Satya Swaroop Damarla; +Cc: yocto
On 17 April 2013 16:11, Satya Swaroop Damarla <swaroop.damarla@gmail.com> wrote:
> WARNING: File '/usr/bin/sdusb-cmd' from skidata-tools was already stripped,
> this will prevent future debugging!
Use INHIBIT_PACKAGE_DEBUG_SPLIT = "1" to turn off the generation of
-dbg packages, as this is where the splitting and stripping happens.
As your binaries are already stripped, -dbg packages are pointless.
> ERROR: QA Issue: No GNU_HASH in the elf binary:
> '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/devsrv'
This is familiar but I can't remember how to make it disappear, sorry.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 15:56 ` Burton, Ross
@ 2013-04-17 18:10 ` Satya Swaroop Damarla
2013-04-17 18:54 ` Burton, Ross
0 siblings, 1 reply; 10+ messages in thread
From: Satya Swaroop Damarla @ 2013-04-17 18:10 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 904 bytes --]
Hi..
If I dont avoid this error.. I cant build the rootfilesystem....
On Wed, Apr 17, 2013 at 5:56 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 17 April 2013 16:11, Satya Swaroop Damarla <swaroop.damarla@gmail.com>
> wrote:
> > WARNING: File '/usr/bin/sdusb-cmd' from skidata-tools was already
> stripped,
> > this will prevent future debugging!
>
> Use INHIBIT_PACKAGE_DEBUG_SPLIT = "1" to turn off the generation of
> -dbg packages, as this is where the splitting and stripping happens.
> As your binaries are already stripped, -dbg packages are pointless.
>
> > ERROR: QA Issue: No GNU_HASH in the elf binary:
> >
> '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/devsrv'
>
> This is familiar but I can't remember how to make it disappear, sorry.
>
> Ross
>
[-- Attachment #2: Type: text/html, Size: 1447 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 18:10 ` Satya Swaroop Damarla
@ 2013-04-17 18:54 ` Burton, Ross
2013-04-17 19:10 ` Hans Beckerus
2013-04-18 5:01 ` Michael Fainstein
0 siblings, 2 replies; 10+ messages in thread
From: Burton, Ross @ 2013-04-17 18:54 UTC (permalink / raw)
To: Satya Swaroop Damarla; +Cc: yocto
On 17 April 2013 19:10, Satya Swaroop Damarla <swaroop.damarla@gmail.com> wrote:
> If I dont avoid this error.. I cant build the rootfilesystem....
Hopefully someone else will respond who knows how to handle that problem.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 18:54 ` Burton, Ross
@ 2013-04-17 19:10 ` Hans Beckerus
2013-04-18 5:01 ` Michael Fainstein
1 sibling, 0 replies; 10+ messages in thread
From: Hans Beckerus @ 2013-04-17 19:10 UTC (permalink / raw)
To: yocto
On 2013-04-17 8:54, Burton, Ross wrote:
> On 17 April 2013 19:10, Satya Swaroop Damarla <swaroop.damarla@gmail.com> wrote:
>> If I dont avoid this error.. I cant build the rootfilesystem....
> Hopefully someone else will respond who knows how to handle that problem.
I do not have a direct answer, but googling this problem seems to give a
lot of hits, with various answers on how to resolve it.
The common thing seems to be that they all cover binaries compiled from
within OE/Yocto. In this case I think we are talking pre-built binaries,
right?
The hash problem could (because I am not sure) be a combination of the
compiler being used, linker options and what Yocto expects.
Is it possible for you to recompile your binaries? In that case try to
add this switch to LDFLAGS (or whatever flags you use to feed the
linker), --hash-style=gnu. Also see http://lwn.net/Articles/192624/
I might be completely off-target here but take it for what it is ;)
Hans
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 18:54 ` Burton, Ross
2013-04-17 19:10 ` Hans Beckerus
@ 2013-04-18 5:01 ` Michael Fainstein
2013-04-19 6:10 ` Satya Swaroop Damarla
1 sibling, 1 reply; 10+ messages in thread
From: Michael Fainstein @ 2013-04-18 5:01 UTC (permalink / raw)
To: Satya Swaroop Damarla; +Cc: yocto@yoctoproject.org
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Burton, Ross
> Sent: יום ד 17 אפריל 2013 21:55
> To: Satya Swaroop Damarla
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Adding prebuilt binaries to /usr/bin on rootfs
>
> On 17 April 2013 19:10, Satya Swaroop Damarla <swaroop.damarla@gmail.com>
> wrote:
> > If I dont avoid this error.. I cant build the rootfilesystem....
>
> Hopefully someone else will respond who knows how to handle that problem.
>
> Ross
This error is generated by meta/classes/insane.bbclass.
Check the usage of INSANE_SKIP_ flag in various recipes. Try adding line
INSANE_SKIP_${PN} = "ldflags"
to your recipe.
Michael
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-18 5:01 ` Michael Fainstein
@ 2013-04-19 6:10 ` Satya Swaroop Damarla
0 siblings, 0 replies; 10+ messages in thread
From: Satya Swaroop Damarla @ 2013-04-19 6:10 UTC (permalink / raw)
To: Michael Fainstein, yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]
Gentlemen!
It worked.. Thanks a lot
Greets,
Satya
On Thu, Apr 18, 2013 at 7:01 AM, Michael Fainstein <
Michael.Fainstein@ecitele.com> wrote:
> > -----Original Message-----
> > From: yocto-bounces@yoctoproject.org [mailto:yocto-
> > bounces@yoctoproject.org] On Behalf Of Burton, Ross
> > Sent: יום ד 17 אפריל 2013 21:55
> > To: Satya Swaroop Damarla
> > Cc: yocto@yoctoproject.org
> > Subject: Re: [yocto] Adding prebuilt binaries to /usr/bin on rootfs
> >
> > On 17 April 2013 19:10, Satya Swaroop Damarla <swaroop.damarla@gmail.com
> >
> > wrote:
> > > If I dont avoid this error.. I cant build the rootfilesystem....
> >
> > Hopefully someone else will respond who knows how to handle that problem.
> >
> > Ross
>
> This error is generated by meta/classes/insane.bbclass.
> Check the usage of INSANE_SKIP_ flag in various recipes. Try adding line
> INSANE_SKIP_${PN} = "ldflags"
> to your recipe.
>
> Michael
>
>
> This e-mail message is intended for the recipient only and contains
> information which is CONFIDENTIAL and which may be proprietary to ECI
> Telecom. If you have received this transmission in error, please inform us
> by e-mail, phone or fax, and then delete the original and all copies
> thereof.
>
>
[-- Attachment #2: Type: text/html, Size: 2332 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding prebuilt binaries to /usr/bin on rootfs
2013-04-17 15:11 ` Satya Swaroop Damarla
2013-04-17 15:56 ` Burton, Ross
@ 2013-04-26 5:55 ` Khem Raj
1 sibling, 0 replies; 10+ messages in thread
From: Khem Raj @ 2013-04-26 5:55 UTC (permalink / raw)
To: Satya Swaroop Damarla; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 2111 bytes --]
On Apr 17, 2013, at 8:11 AM, Satya Swaroop Damarla <swaroop.damarla@gmail.com> wrote:
> Hi Burton,
>
> Please have a look at the build error I had
>
> WARNING: File '/usr/bin/sdusb-cmd' from skidata-tools was already stripped, this will prevent future debugging!
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/devsrv'
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/USBDownload'
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/setty'
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/TCPDownload'
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/sdusb-cmd'
> ERROR: QA Issue: No GNU_HASH in the elf binary: '/home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/packages-split/skidata-tools/usr/bin/i2c-test'
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
> ERROR: Logfile of failure stored in: /home/damarla/yocto/poky/buildSkidataHarmony/tmp/work/cortexa9-vfp-vfpv3d16-poky-linux-gnueabi/skidata-tools/1.0-r0/temp/log.do_package.31327
> ERROR: Task 10 (/home/damarla/yocto/poky/meta/recipes-extended/skidata-tools/skidata-tools.bb, do_package) failed with exit code '1'
>
This means linker flags are not proper. what happens if you add TARGET_CC_ARCH += "${LDFLAGS}" to recipe
[-- Attachment #2: Type: text/html, Size: 2755 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-04-26 5:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-17 15:00 Adding prebuilt binaries to /usr/bin on rootfs Satya Swaroop Damarla
2013-04-17 15:05 ` Burton, Ross
2013-04-17 15:11 ` Satya Swaroop Damarla
2013-04-17 15:56 ` Burton, Ross
2013-04-17 18:10 ` Satya Swaroop Damarla
2013-04-17 18:54 ` Burton, Ross
2013-04-17 19:10 ` Hans Beckerus
2013-04-18 5:01 ` Michael Fainstein
2013-04-19 6:10 ` Satya Swaroop Damarla
2013-04-26 5:55 ` 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.