[yocto] /lib/ld-linux.so.3: No such file or directory

Paul Eggleton paul.eggleton at linux.intel.com
Wed Jul 31 03:04:54 PDT 2013


Hi Lothar,

On Tuesday 30 July 2013 18:04:49 lothar at denx.de wrote:
> I'm writing a recipe firmware_HEAD.bb. The actions shall be checkout from
> git, run "make", copy the result to ${D}/lib/firmware.
> 
> DESCRIPTION = "external sdma-firmware blob"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM =
> "file://sdma-gen-image.c;beginline=1;endline=19;md5=8db9f935666ba755af54af9d
> 8611b857" PR = "r1"
> SRC_URI = "git://git.pengutronix.de/git/imx/sdma-firmware.git/"
> ## curr HEAD: "4aede1eb121e8199d33fe6697f4c91405086000a"
> SRCREV = "4aede1eb121e8199d33fe6697f4c91405086000a"
> S = "${WORKDIR}/git"
> do_install(){
>      install -d ${D}/lib/firmware
> # TODO
> }
> 
> 
> 
> Actually an easy task, I thought. Checkout works fine, but the implicit make
> fails, having /lib/ld-linux.so.3 already installed under ${sysroot}/lib.

I'm not sure but it definitely sounds like it's looking on the host rather than 
in the proper target sysroot. I'd suggest looking at other recipes that are 
makefile based; you should define your own do_compile and supply the appropriate 
options to make (or more appropriately oe_runmake) within it.

> $ MACHINE="m53evk" bitbake -b
> /work/lothar/acme/meta-acme/recipes-kernel/sdma-firmware/sdma-firmware_HEAD.
> bb -f
> WARNING: Buildfile specified, dependencies will not be handled. If
> this is not what you want, do not use -b / --buildfile.

You should not use -b; if you do, anything you mention in DEPENDS won't be 
satisfied when it comes time. Use "bitbake recipename" instead of "bitbake -b 
path/to/recipename_version.bb".

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list