Re: [yocto] How to get fw_env.config installed
> > > >> I'm working on including the u-boot fw utility tools in my image, > >> specifically fw_printenv and fw_setenv. > >> For these to work the file fw_env.config needs to be placed at > /etc/fw_env.config. > >> > >> I can see in oe-core/meta/recipes-bsp/u-boot/u-boot.inc there is a > >> test that if fw_env.config is in the working dir it will be installed > >> in ${sysconfdir} and I can see in the > >> meta-ti/recipes-bsp/u-boot/u-boot-beagleboard_2011.09.bb they simply > >> include > file://fw_env.conf in the SRC_URI list to get the file in the working dir. > >> > >> So I created a bbappend file for the ti u-boot recipe > >> (u-boot-ti-staging_2013.10.bb) that I'm using and build and I don't get > >> the file in > my image root filesystem. > >> > >> If I run bitbake -c install virtual/bootloader I can see that the > >> file does get copied into u-boot's working dir image/etc directory > >> but it never makes it into the final root filesystem. > >> > >> What am I missing? > > > > The u-boot.inc file is looking for a ".config" file, not ".conf". > > > Thanks Isak, I'm aware of that I just miss typed it in that one sentence in > my e-mail. > I got it right everywhere else including my code. Can I ask have you used this > mechanism and does it work for you? > Sorry to disappoint you. As I've got a whole bunch of files to install in /etc, I'm using a custom recipe. Regards Isak -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Luajit Compile Error
Hi, I include luajit package from the meta-embedded and compile it. My build system is CentOS(64 bit). when I compile for the target(64 bit),It is OK,with no errors. But when I compile for the target(32 bit),it has the following errors. If you know the solution, please help me! Thank you&Best regards Li Xin -- $ cat tmp/work/i586-poky-linux/luajit/2.0.3-r0/temp/log.do_compile DEBUG: Executing shell function do_compile NOTE: make -j 10 CROSS=i586-poky-linux- TARGET_CFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86 -m32 -march=i586 TARGET_LDFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86 TARGET_SHLDFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86 HOST_CC=gcc -m32 Building LuaJIT 2.0.3 make -C src make[1]: Entering directory `/yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/LuaJIT-2.0.3/src' BUILDVM lj_vm.s Error: pointer size mismatch in cross-build. BUILDVM lj_ffdef.h Try: make HOST_CC="gcc -m32" CROSS=... BUILDVM lj_bcdef.h make[1]: *** [lj_vm.s] Error 1 make[1]: *** Waiting for unfinished jobsError: pointer size mismatch in cross-build. Try: make HOST_CC="gcc -m32" CROSS=... make[1]: *** [lj_ffdef.h] Error 1 Error: pointer size mismatch in cross-build. Try: make HOST_CC="gcc -m32" CROSS=... make[1]: *** [lj_bcdef.h] Error 1 make[1]: Leaving directory `/yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/LuaJIT-2.0.3/src' make: *** [default] Error 2 ERROR: oe_runmake failed -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Error with vServer
i try to build an Image with yoctos poky on my vserver (Ubuntu 14.04 LTS minimal - Vserver 64bit) With my own pc with the same ubuntu version i don't have any problems to build the image, but on my vserver i get a lot of errors like this one: ERROR: Execution of event handler 'run_buildstats' failed Traceback (most recent call last): File "run_buildstats(e)", line 85, in run_buildstats(e=) File "buildstats.bbclass", line 2, in get_device(e=) IOError: [Errno 2] No such file or directory: '/home/yocto/yocto/poky/build-hd/tmp/buildstats//.device' What can i do? -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Error with vServer
Hi Marc, On Wednesday 29 October 2014 13:46:56 Marc wrote: > i try to build an Image with yoctos poky on my vserver (Ubuntu 14.04 LTS > minimal - Vserver 64bit) > > With my own pc with the same ubuntu version i don't have any problems to > build the image, but on my vserver i get a lot of errors like this one: > > ERROR: Execution of event handler 'run_buildstats' failed > Traceback (most recent call last): > File "run_buildstats(e)", line 85, in > run_buildstats(e=) > File "buildstats.bbclass", line 2, in get_device(e= object at 0x7f5f79df6c10>) > IOError: [Errno 2] No such file or directory: > '/home/yocto/yocto/poky/build-hd/tmp/buildstats//.device' > > What can i do? Does /home/yocto/yocto/poky/build-hd/tmp/buildstats/ exist? If not, is it just the buildstats directory that is not yet created? (It should be created automatically, but I'm just trying to diagnose the issue.) Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Error with vServer
> > Does /home/yocto/yocto/poky/build-hd/tmp/buildstats/ exist? If not, is it just > the buildstats directory that is not yet created? (It should be created > automatically, but I'm just trying to diagnose the issue.) > > Cheers, > Paul > Hello Paul, thx for your answer, yes the directory is created Cheers, Marc -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [opkg-utils PATCH] update-alternatives: Installing fails for "["
>From 6431466b7c3f5fe76720372593fc785b572db84c Mon Sep 17 00:00:00 2001 From: Jian Liu Date: Wed, 29 Oct 2014 09:58:14 +0800 Subject: [opkg-utils PATCH] update-alternatives: Installing fails for "[" Insalling packages using update-alternatives will give the following error lines: sed: -e expression #1, char 41: unterminated address regex sed: -e expression #1, char 42: unterminated address regex This is caused by the script update-alternatives. "[" can not be used directly in sed expression, which should be escaped in sed expression. Signed-off-by: Jian Liu --- update-alternatives |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/update-alternatives b/update-alternatives index c332309..8916cbd 100644 --- a/update-alternatives +++ b/update-alternatives @@ -68,6 +68,10 @@ protect_slashes() { sed -e 's/\//\\\//g' } +protect_special_character() { + sed -e 's/\[/\\\[/g' +} + remove_alt() { [ $# -lt 2 ] && return 1 local name="$1" @@ -75,7 +79,7 @@ remove_alt() { [ ! -f $ad/$name ] && return 0 - path=`echo $path | protect_slashes` + path=`echo $path | protect_slashes | protect_special_character` sed -ne "/^$path\>.*/!p" $ad/$name > $ad/$name.new mv $ad/$name.new $ad/$name } -- 1.7.0.5 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto