Re: How to force newly-compiled busybox into core-image-minimal (restating an earlier post)
Gary Thomas
On 2013-01-16 12:02, Brian Smucker wrote:
Hello all,The problem is that your rebuild of busybox only ran the compile step, not any of the install or packaging steps. Thankfully there is a new bitbake option which makes this much easier. See if this does what you want: % bitbake busybox -C compile % bitbake core-image-minimal -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
|
|
|
|
How to force newly-compiled busybox into core-image-minimal (restating an earlier post)
Brian Smucker
Hello all,
I'm not sure if my prior question was unclear or if the question was something nobody knows the answer to. I think there's probably a simple answer, but maybe not. So the background is this: A poky/danny setup where I have previously-compiled core-image-minimal. I force busybox to be recompiled: bitbake -c -f compile busybox I clean core-image-minimal: bitbake -c -f cleansstate core-image-minimal I rebuild the core image: bitbake core-image-minimal Result: The busybox that is included in the core-image rootfs is a busybox that was compiled earlier. It has an earlier timestamp. Question: How do I force the newly-compiled busybox to be included in the core-image rootfs, so that the rootfs generation process does not retrieve some stale version of busybox from a cache somewhere? (Without deleting the tmp directory. I know that works.) There's got to be a simple answer. Thanks, Brian ps. This is merely an interim way to test a particular permutation of the busybox config. I know how to make a recipe using bbappend and a new defconfig for busybox. But I want to do a series of quick-and-dirty tests with various busybox config options.
|
|
|
|
Re: Busybox still old version: Still looking for a clear understanding of an old mystery.
Autif Khan <autif.mlist@...>
On Wed, Jan 16, 2013 at 10:23 AM, Brian Smucker <bds@...> wrote:
Hi,I see. I think that is a bit unorthodox. (Mostly because I have never tried it. Is it even supposed to work like you describe? I suppose not. But that aside ...) If I were doing this, I would create a busybox bbappend in my meta layer and override the danny stock do_prepare_config() (in meta/recipes-core/busybox/busybox.inc) 96 do_prepare_config () { 97 sed -e 's#@DATADIR@#${datadir}#g' \ 98 < ${WORKDIR}/defconfig > ${S}/.config 99 sed -i -e '/CONFIG_STATIC/d' .config 100 echo "# CONFIG_STATIC is not set" >> .config 101 for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \ 102 ${S}/.config 103 sed -i -e '${configmangle}' ${S}/.config 104 if test ${DO_IPv4} -eq 0 && test ${DO_IPv6} -eq 0; then 105 # disable networking applets 106 mv ${S}/.config ${S}/.config.oe-tmp 107 awk 'BEGIN{net=0} 108 /^# Networking Utilities/{net=1} 109 /^#$/{if(net){net=net+1}} 110 {if(net==2&&$0 !~ /^#/&&$1){print("# "$1" is not set")}else{print}}' \ 111 ${S}/.config.oe-tmp > ${S}/.config 112 fi 113 } Thanks,
|
|
|
|
Re: Remove unwanted package from Qt
Jon Szymaniak <jon.szymaniak@...>
On Wed, Jan 16, 2013 at 1:14 PM, Paul Eggleton
<paul.eggleton@...> wrote: I'm not doing anything too unusual for "installing" Qt. My recipes for my Qt application simply inherit qt4e, and list qt4-embedded in DEPENDS. The only place where I deviated a bit from the norm is that I use a qt4-embedded_4.8.3.bbappend to set up QT_CONFIG_FLAGS exactly as I want them, and to rm ${D}/usr/bin/qtopia. Below's my bbappend. I'd be interested to hear if there's a better way to clean out unneeded directories from a rootfs (in my case ${D}/usr/bin/qtopia). DEPENDS = "qt4-tools-native freetype jpeg libpng zlib" # Override provided recipe and configure Qt4 to... # - Disable irrelevant functionality and output # - Disable SQL Plugins # - Disable unused input/ouput # - Have keyboard input and mouse input via /dev/input/mice # - Have Linux framebuffer support # - Use QML (so we need the declarative engine) # # Note, some of these might be extraneous, and this is a work in progress. # (You've been warned!) QT_CONFIG_FLAGS = "\ -embedded ${QT_ARCH} -qtlibinfix ${QT_LIBINFIX} \ -release -no-rpath -reduce-relocations -shared -no-exceptions \ -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-sse4.1 -no-sse4.2 -no-avx \ -no-glib -no-largefile -no-accessibility -no-openssl -no-gtkstyle \ -no-xcursor -no-xinerama -no-phonon -no-phonon-backend -no-svg -no-webkit \ -no-libmng -no-accessibility -no-qt3support -no-xmlpatterns \ -no-audio-backend -no-gif -nomake examples -nomake demos -no-javascript-jit \ -no-nis -no-cups -no-declarative-debug \ -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc \ -no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian -no-sql-tds \ -no-xkb -no-kbd-tty -no-kbd-qnx -no-mouse-linuxinput \ -no-mouse-tslib -no-mouse-qnx -no-mouse-linuxtp \ -qt-mouse-pc -qt-kbd-linuxinput \ -qt-gfx-linuxfb -qt-gfx-multiscreen \ -depths 8,16,24,32 \ -declarative -script" PRINC := "${@int(PRINC) + 1}" # Despite not building them, qt4.inc creates /usr/bin/qtopia/ with # only demo/ and example/ underneath. Let's get rid of these... do_install_append() { rm -rf ${D}/usr/bin/qtopia }
|
|
|
|
Re: Remove unwanted package from Qt
Paul Eggleton
On Wednesday 16 January 2013 23:26:20 Navani Srivastava wrote:
On Thu, Dec 27, 2012 at 11:08 PM, Jon Szymaniak<jon.szymaniak@...>wrote: Can I ask both of you exactly how you are getting Qt installed into the image?I tried the same but again ended up with error. As of now i am removing allOops...just wanted to note the typo in my above response -- I'm not atI am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture.I ran into this as well after using a bbappend to disable a number of Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre
|
|
|
|
Re: Remove unwanted package from Qt
Navani Srivastava <navani.srivastava@...>
I tried the same but again ended up with error. As of now i am
removing all unwanted things from rootfs by making changes in
image_types.bbclass. I am sure this is not the correct way, any ideas
are appreciated.. Thanks
On Thu, Dec 27, 2012 at 11:08 PM, Jon Szymaniak <jon.szymaniak@...> wrote:
|
|
|
|
Re: Build external module against Yocto kernel
Darren Hart <dvhart@...>
On 01/15/2013 10:38 AM, Bruce Ashfield wrote:
On 13-01-15 01:26 PM, Patrick Turley wrote:Thanks for keeping this going Bruce. Yes, kernel-dev is the package forOn Jan 15, 2013, at 12:00 PM, Bruce Ashfield <bruce.ashfield@...>I finally found the entries that I was recalling earlier. They are: the target. The only trick here is that we currently purge the host binaries which means that you need to build scripts on the target prior to building the module. I think this might be missing from the new kernel manual as it isn't a particularly common use-case, and is rather orthogonal to the way the tooling has been designed (not to say it can't be done). Patrick, please keep us posted if this continues to not work for you. I will open a bug to include a section about this in the kernel development manual. -- Darren Hart Intel Open Source Technology Center Yocto Project - Technical Lead - Linux Kernel
|
|
|
|
Re: Busybox still old version: Still looking for a clear understanding of an old mystery.
Brian Smucker
Hi,
toggle quoted messageShow quoted text
The version of busybox is the same. I've just temporarily done a bitbake -c menuconfig to change one of the options, recompiled using the custom config that's generated, and now I want to force its inclusion into core-image-minimal. Thanks, Brian
On 1/16/2013 6:13 AM, Autif Khan wrote:
On Tue, Jan 15, 2013 at 6:57 PM, Brian Smucker <bds@...> wrote:Hi Rudolf,What is the new version of busybox?
|
|
|
|
Re: Raspberry Pi do_fetch failure
Alex J Lennon <ajlennon@...>
On 16/01/2013 14:11, Gary Thomas wrote:
On 2013-01-16 07:02, Alex J Lennon wrote:Quite :) I took a look in classes/mirrors.bbclass and I see a Yocto mirror URI in there for git://On 16/01/2013 13:59, Robert P. J. Day wrote:Yes, that would work (it's how I use it). However, it's not tiny :-) Here's what theOn Wed, 16 Jan 2013, Alex J Lennon wrote:Thanks Robert. I've got an archive I can use but wanted to see if it was working yet.On 16/01/2013 05:45, Ed Nelson wrote:github has been particularly annoying with respect to this lately.I finally got a response back from github ....I've just tried it and it is still failing - http://downloads.yoctoproject.org/mirror/sources/ I see that there are similar sized linux yocto tarballs mirrored at that location. Would it be appropriate to mirror the RPi kernel tarball up there for the time being? Cheers, Alex
|
|
|
|
Re: Busybox still old version: Still looking for a clear understanding of an old mystery.
Autif Khan <autif.mlist@...>
On Tue, Jan 15, 2013 at 6:57 PM, Brian Smucker <bds@...> wrote:
Hi Rudolf,What is the new version of busybox? What is the full filename of the new recipe that you created to compile a new version of busybox? For example the old one is busybox_1.20.2.bb (in meta/recipes-core/busybox) Also, can you please paste the .bb file in the email My question is that after compiling busybox, I do
|
|
|
|
Re: Raspberry Pi do_fetch failure
Gary Thomas
On 2013-01-16 07:02, Alex J Lennon wrote:
On 16/01/2013 13:59, Robert P. J. Day wrote:Yes, that would work (it's how I use it). However, it's not tiny :-) Here's what theOn Wed, 16 Jan 2013, Alex J Lennon wrote:Thanks Robert. I've got an archive I can use but wanted to see if it was working yet.On 16/01/2013 05:45, Ed Nelson wrote:github has been particularly annoying with respect to this lately.I finally got a response back from github ....I've just tried it and it is still failing - tarball looked like last I touched this: -rw-rw-r-- 1 996 996 555905690 Sep 5 10:29 /work/misc/Poky/sources/git2_github.com.raspberrypi.linux.git.tar.gz -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
|
|
|
|
Re: Raspberry Pi do_fetch failure
Robert P. J. Day
On Wed, 16 Jan 2013, Alex J Lennon wrote:
On 16/01/2013 13:59, Robert P. J. Day wrote:wait a minute, what i wrote above can't be right, i have a wiki pageOn Wed, 16 Jan 2013, Alex J Lennon wrote:Thanks Robert. I've got an archive I can use but wanted to see if it wasOn 16/01/2013 05:45, Ed Nelson wrote:github has been particularly annoying with respect to this lately.I finally got a response back from github ....I've just tried it and it is still failing - for this: http://www.crashcourse.ca/wiki/index.php/Building_basic_RPi_image which shows my recipe mods to look like: -SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \ +SRC_URI = "git:///home/rpjday/oe/dist/t/linux;protocol=file;branch=rpi-3.2.27 \ not sure where i got the earlier stuff i posted. I think the fetcher archives up the retrieved git repo into amy setup always creates tarballs from whatever is fetched so, once that's done, i always end up using local tarballs. i have a wiki page which explains how to create your own local mirror of tarballs: http://www.crashcourse.ca/wiki/index.php/OE_Creating_your_%22own_mirror%22 rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
|
|
|
|
Re: Raspberry Pi do_fetch failure
Alex J Lennon <ajlennon@...>
On 16/01/2013 13:59, Robert P. J. Day wrote:
On Wed, 16 Jan 2013, Alex J Lennon wrote:Thanks Robert. I've got an archive I can use but wanted to see if it was working yet.On 16/01/2013 05:45, Ed Nelson wrote:github has been particularly annoying with respect to this lately.I finally got a response back from github ....I've just tried it and it is still failing - I think the fetcher archives up the retrieved git repo into a .tar.gz doesn't it in the downloads directory? Would it not help if those tarballs were mirrored so the fetcher could fall back on the mirror? Cheers, Alex
|
|
|
|
Re: Raspberry Pi do_fetch failure
Robert P. J. Day
On Wed, 16 Jan 2013, Alex J Lennon wrote:
On 16/01/2013 05:45, Ed Nelson wrote:github has been particularly annoying with respect to this lately.I finally got a response back from github ....I've just tried it and it is still failing - my workaround is to simply clone what you need manually, then tweak the recipe thusly to point at your local repo: SRCREV = "10182a3bc434b27740f81c2b836a1af943060241" SRC_URI = "git:///home/rpjday/oe/dist/t/linux;protocol=git;branch=rpi-3.2.27 \ " yes, it's hacky, but it lets me get back to work. sure be nice when this silliness is resolved. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
|
|
|
|
Re: Raspberry Pi do_fetch failure
Alex J Lennon <ajlennon@...>
On 16/01/2013 05:45, Ed Nelson wrote:
I finally got a response back from github ....I've just tried it and it is still failing - WARNING: Failed to fetch URL git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27, attempting MIRRORS if available ERROR: Fetcher failure: Fetch command failed with exit code 128, output: Cloning into bare repository '/data_drive/RPiMonoSmoke/yoctoProject/raspberryPiBuild/downloads/git2/github.com.raspberrypi.linux.git'... fatal: read error: Connection timed out fatal: early EOF fatal: index-pack failed ERROR: Function failed: Fetcher failure for URL: 'git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27'. Unable to fetch URL from any source. Alex
|
|
|
|
migrating oe-classic to yocto Facing problem unable to create image folder in ${WORKDIR}/image
Pravin Mahadev Shedage <pravin.sh@...>
Hello All, I am trying to build altiris_7.1.8280 for x86 platform. It is unable to create folder
Step to build 1. bitbake -b ../meta/recipes-tos/altiris/altiris_7.1.8280.bb 2. bitbake altiris
- altiris_7.1.8280.bb recipe migrated from oe-classic to yocto. - I tried altiris recipe in oe-core as well as yocto. Sometimes it creates image folder in ${WORKDIR} after cleaning recipe with -c clean option & again build it then it will not created.
parmod@ubuntu:~/pravin/oe-core_2/oe-core/build$ bitbake -b ../meta/recipes-tos/altiris/altiris_7.1.8280.bb Build Configuration: NOTE: Preparing runqueue Summary: There was 1 WARNING message shown. parmod@ubuntu:~/pravin/oe-core_2/oe-core/build$ ls tmp-eglibc/work/i586-oe-linux/altiris/7.1.8280-1
Can some one help me on the same issue ?
Thanks & Regards, PraviN
|
|
|
|
[PATCH] For danny: Fix typo in kvm capability detection in runqemu
Björn Stenberg <bjorn@...>
Signed-off-by: Björn Stenberg <bjst@...>
--- diff --git a/scripts/runqemu b/scripts/runqemu index fb7ac56..fc7d749 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -155,7 +155,7 @@ while true; do ;; "kvm") KVM_ENABLED="yes" - KVM_CAPABLE=`grep -q 'vmx\|smx' /proc/cpuinfo && echo 1` + KVM_CAPABLE=`grep -q 'vmx\|svm' /proc/cpuinfo && echo 1` ;; "") break ;; *) -- Björn
|
|
|
|
Re: SDK environment LDFLAGS problem?
Wolfgang Denk <wd@...>
Dear Bruce,
In message <50F59A91.5080806@...> you wrote: This is indeed a problem, and not only with the kernel, but also forYes, it's clear to me that, in this one respect, the SDK is unsuitable example with U-Boot - fortunately there are not that many software packages that need to tweak with linker scripts etc. so they need to call the linker directly. You probably want Jessica or Richard to comment on the architecture /... Everyone/Everything has their reasons for the different workflow(s).I found it difficult to find any formal definition of what LDFLAGS is supposed to be. The most authoritative appears to be the definition as given by the make(1) documentation - as this is where LDFLAGS actually gets used: `LDFLAGS' Extra flags to give to compilers when they are supposed to invoke the linker, `ld'. Note the phrase "flags to give to compilers", i. e. this clearly states that the linking is supposed to be done by running the compiler frontend, and not the linker directly. So even though we feel the recent version breaks old habits, it seems that simply our old habits were based on incorrect assumptions. I see no reason to fix the current settings, but perhaps it would be helpful to clearly document this behaviour and recommend a workaround. At least this was what we did for our Yocto based ELDK [1]. [1] http://www.denx.de/wiki/view/ELDK-5/FrequentlyAskedQuestionsAndAnswers#Compiling_U_Boot_or_Linux_fails Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@... Steal five dollars and you were a petty thief. Steal thousands of dollars and you are either a government or a hero. - Terry Pratchett, _Going_Postal_
|
|
|
|
Re: Weekly build availability.
McClintock Matthew-B29882 <B29882@...>
On Tue, Jan 15, 2013 at 10:44 PM, Saul Wold <sgw@...> wrote:
On 01/15/2013 08:37 PM, McClintock Matthew-B29882 wrote:I made a recipe for libpfm3 and libpfm4 so let me submit those beforeThere is a patch from Bogdan for this one, see "oprofile: set correct kernel anyone else spends time on it. -M
|
|
|
|
Re: Weekly build availability.
Saul Wold <sgw@...>
On 01/15/2013 08:37 PM, McClintock Matthew-B29882 wrote:
On Tue, Jan 15, 2013 at 7:09 PM, Flanagan, ElizabethThere is a patch from Bogdan for this one, see "oprofile: set correct kernel path", there is clearly more work needed here, but that will get us past this failure until we get the libpfm recipe in, which looks like it will be required also. Sau! -M
|
|
|