From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx1.pokylinux.org (Postfix) with ESMTP id E40144C8008C for ; Thu, 3 Feb 2011 12:21:28 -0600 (CST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 03 Feb 2011 10:21:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,421,1291622400"; d="scan'208";a="599200963" Received: from doubt.jf.intel.com (HELO [10.24.5.197]) ([10.24.5.197]) by orsmga002.jf.intel.com with ESMTP; 03 Feb 2011 10:21:15 -0800 Message-ID: <4D4AF221.5020303@linux.intel.com> Date: Thu, 03 Feb 2011 10:21:21 -0800 From: Darren Hart User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Kamble, Nitin A" References: <9DA5872FEF993D41B7173F58FCF6BE940A5EBA78@orsmsx504.amr.corp.intel.com> <9DA5872FEF993D41B7173F58FCF6BE9411F42785@orsmsx504.amr.corp.intel.com> In-Reply-To: <9DA5872FEF993D41B7173F58FCF6BE9411F42785@orsmsx504.amr.corp.intel.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 18:21:29 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. -- Darren > > Thanks, > > Nitin > > *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*/ > -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel