From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id ABEC24C800BE for ; Thu, 3 Feb 2011 15:35:17 -0600 (CST) Received: by mail.chez-thomas.org (Postfix, from userid 999) id 557EA1660447; Thu, 3 Feb 2011 14:35:17 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.1 Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 028F716603FC; Thu, 3 Feb 2011 14:35:09 -0700 (MST) Message-ID: <4D4B1F8D.1050704@mlbassoc.com> Date: Thu, 03 Feb 2011 14:35:09 -0700 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Darren Hart References: <9DA5872FEF993D41B7173F58FCF6BE940A5EBA78@orsmsx504.amr.corp.intel.com> <9DA5872FEF993D41B7173F58FCF6BE9411F42785@orsmsx504.amr.corp.intel.com> <4D4AF221.5020303@linux.intel.com> <4D4B09F7.2000305@mlbassoc.com> In-Reply-To: <4D4B09F7.2000305@mlbassoc.com> Cc: "yocto@yoctoproject.org" Subject: Re: Kernel Panics on armv4t with gcc.4.5.1 X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2011 21:35:18 -0000 X-Groupsio-MsgNum: 915 Content-Type: multipart/mixed; boundary="------------050404070406090900040200" --------------050404070406090900040200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/03/2011 01:03 PM, Gary Thomas wrote: > On 02/03/2011 11:21 AM, Darren Hart wrote: >> On 02/03/2011 09:00 AM, Kamble, Nitin A wrote: >>> Hi Diego, >>> >>> Good to know your kernel panic is gone. The 4.5.1 tree is arm specific >>> linaro patches, which probably helping you. You can also try the >>> meta-linaro layer. >>> >>> http://git.pokylinux.org/cgit/cgit.cgi/meta-linaro/ >> >> This has moved: >> >> http://git.pokylinux.org/cgit/cgit.cgi/poky-extras >> >>> >>> And Darren is working on updating that layer currently. The gcc from >>> that layer has linaro arm patches. >> >> I'm running into some build issues during the uprev, but hoping to have it done ASAP. > > To be clear on how to use this - I added the meta-linaro layer to my > poky tree and added these to my .conf: > GCCVERSION = "4.5.1.linaro" > SDKGCCVERSION = "4.5.1.linaro" > > When I tried this, I got these errors: > NOTE: preferred version 4.5.1.linaro of gcc-cross not available (for item virtual/arm-poky-linux-gnueabi-gcc) > NOTE: preferred version 4.5.1.linaro of gcc-runtime not available (for item virtual/arm-poky-linux-gnueabi-compilerlibs) > NOTE: preferred version 4.5.1.linaro of gcc-cross not available (for item virtual/arm-poky-linux-gnueabi-g++) > NOTE: preferred version 4.5.1.linaro of gcc-cross-intermediate not available (for item virtual/arm-poky-linux-gnueabi-gcc-intermediate) > NOTE: preferred version 4.5.1.linaro of gcc-crosssdk not available (for item virtual/i586-pokysdk-linux-gcc-crosssdk) > NOTE: preferred version 4.5.1.linaro of gcc-runtime-nativesdk not available (for item virtual/i586-pokysdk-linux-compilerlibs-nativesdk) > NOTE: preferred version 4.5.1.linaro of gcc-cross-initial not available (for item virtual/arm-poky-linux-gnueabi-gcc-initial) > NOTE: preferred version 4.5.1.linaro of gcc-crosssdk not available (for item virtual/i586-pokysdk-linux-g++-crosssdk) > NOTE: preferred version 4.5.1.linaro of gcc-crosssdk-intermediate not available (for item virtual/i586-pokysdk-linux-gcc-intermediate-crosssdk) > NOTE: preferred version 4.5.1.linaro of gcc-crosssdk-initial not available (for item virtual/i586-pokysdk-linux-gcc-initial-crosssdk) > > What did I miss? The file meta-linaro/conf/layers.conf was incorrect (diff attached). I changed it and now I get this error which I really don't understand: NOTE: Error expanding variable do_unpack | ETA: --:--:-- ERROR: Error parsing /home/local/poky-amltd/meta-linaro/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb: invalid syntax (, line 3) What makes this so hard to understand is that gcc-crosssdk-intermediate_4.5.1.linaro.bb is virtually identical to gcc-crosssdk-intermediate_4.5.1.bb: $ diff -u meta-linaro/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb --- meta-linaro/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb 2011-02-03 12:30:29.000000000 -0700 +++ meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb 2011-01-14 14:25:24.000000000 -0700 @@ -1,4 +1,4 @@ require gcc-cross-intermediate_${PV}.bb -require recipes-devtools/gcc/gcc-crosssdk-intermediate.inc +require gcc-crosssdk-intermediate.inc -PR = "r0" +PR = "r1" What does the error above mean and how does it relate to these files/differences? > >>> *From:*Diego Sueiro [mailto:diego.sueiro@gmail.com] >>> *Sent:* Tuesday, February 01, 2011 7:34 AM >>> *To:* Kamble, Nitin A >>> *Cc:* yocto@yoctoproject.org >>> *Subject:* Re: [yocto] Kernel Panics on armv4t with gcc.4.5.1 >>> >>> Nitin, >>> >>> After removing: >>> >>> echo "/* GNU ld script >>> >>> Use the shared library, but some functions are only in >>> >>> the static library. */ >>> >>> GROUP ( libgcc_s.so.1 libgcc.a )" > ${D}${libdir}/libgcc_s.so >>> >>> from gcc-package-target.inc and gcc-package-cross.inc, the gcc 4.5.2 was >>> successfully compiled. >>> >>> >>> And no kernel panic anymore. :-D >>> >>> I just want to understand what is wrong with gcc 4.5.1. >>> >>> Regards, >>> >>> -- >>> *dS >>> Diego Sueiro >>> >>> Administrador do Portal Embarcados >>> www.embarcados.com.br >>> >>> /*long live rock 'n roll*/ >>> >>> On Tue, Feb 1, 2011 at 8:40 AM, Diego Sueiro >> > wrote: >>> >>> Nitin, >>> >>> I got this error: >>> >>> /home/dev/yocto-repo/build/tmp/sysroots/i686-linux/usr/bin/armv4t-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld: >>> /usr/lib/crti.o: Relocations in generic ELF (EM: 3) >>> >>> /home/dev/yocto-repo/build/tmp/sysroots/i686-linux/usr/bin/armv4t-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld: >>> /usr/lib/crti.o: Relocations in generic ELF (EM: 3) >>> >>> /usr/lib/crti.o: could not read symbols: File in wrong format >>> >>> collect2: ld returned 1 exit status >>> >>> make[2]: *** [libgcc_s.so] Error 1 >>> >>> make[2]: *** Waiting for unfinished jobs.... >>> >>> arm-poky-linux-gnueabi-ranlib libgcc_eh.a >>> >>> arm-poky-linux-gnueabi-ranlib libgcc.a >>> >>> make[2]: Leaving directory >>> `/home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/gcc-4.5.2/build.i686-linux.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libgcc' >>> >>> make[1]: *** [all-target-libgcc] Error 2 >>> >>> make[1]: Leaving directory >>> `/home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/gcc-4.5.2/build.i686-linux.arm-poky-linux-gnueabi' >>> >>> make: *** [all] Error 2 >>> >>> FATAL: oe_runmake failed >>> >>> Function 'do_compile' failed (see >>> /home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/temp/log.do_compile.646 >>> for further information) >>> >>> ERROR: Function 'do_compile' failed (see >>> /home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/temp/log.do_compile.646 >>> for further information) >>> >>> >>> Regards, >>> >>> -- >>> *dS >>> Diego Sueiro >>> >>> /*long live rock 'n roll*/ >>> >>> On Mon, Jan 31, 2011 at 10:41 PM, Kamble, Nitin A >>> > wrote: >>> >>> Diego, >>> >>> Can you try with 4.5.2 gcc from this branch: >>> http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=nitin/khem_gcc_nitin >>> >>> Thanks, >>> >>> Nitin >>> >>> *From:*yocto-bounces@yoctoproject.org >>> >>> [mailto:yocto-bounces@yoctoproject.org >>> ] *On Behalf Of *Diego Sueiro >>> *Sent:* Monday, January 31, 2011 10:53 AM >>> *To:* yocto@yoctoproject.org >>> *Subject:* [yocto] Kernel Panics on armv4t with gcc.4.5.1 >>> >>> Folks, >>> >>> I'm not a kernel and neither a gcc expert developer, and after searching >>> for a solution for the last 2 weeks I've decided to appeal to the list. >>> >>> I'm trying to build a kernel image (2.6.32 and 2.6.30) for mini2440 >>> (armv4t) with Yocto Project (poky master branch) and I'm facing a >>> strange issue. >>> >>> If I compile the kernel with Yocto gcc recipes (gcc 4.5.1) the kernel >>> will panic on init (console printed message is attached for kernel >>> 2.6.30 and 2.6.32). >>> >>> But, if I compile the kernel with meta-oe gcc recipes (gcc 4.5) >>> everything will be ok. >>> >>> Just for your reference these is the gcc recipes which I'm using: >>> >>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/gcc >>> >>> http://git.openembedded.org/cgit.cgi/meta-openembedded/tree/recipes-devtools/gcc >>> >>> I've compiled with and without thumb instructions, but the issue remains. >>> >>> I've tried to apply the patches gcc-armv4-pass-fix-v4bx-to-ld.patch and >>> gcc-arm-volatile-bitfield-fix.patch, but no success. >>> >>> Kind Regards, >>> >>> -- >>> >>> *dS >>> Diego Sueiro >>> >>> /*long live rock 'n roll*/ >>> >> >> > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ --------------050404070406090900040200 Content-Type: text/plain; name="linaro.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="linaro.patch" --- layer.conf~ 2011-02-03 12:30:29.000000000 -0700 +++ layer.conf 2011-02-03 13:58:18.204938350 -0700 @@ -5,7 +5,8 @@ BBPATH := "${BBPATH}:${LAYERDIR}" # We have an images and various recipe-* directories, add to BBFILES -BBFILES := "${BBFILES} ${LAYERDIR}/images/*.bb ${LAYERDIR}/images/*.bbappend ${LAYERDIR}/recipes-*/*.bb ${LAYERDIR}/recipes-*/*.bbappend" +BBFILES := "${BBFILES} ${LAYERDIR}/images/*.bb ${LAYERDIR}/images/*.bbappend \ + ${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "linaro" BBFILE_PATTERN_linaro := "^${LAYERDIR}/" --------------050404070406090900040200--