From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52E908F3.9030801@gmail.com> Date: Wed, 29 Jan 2014 14:58:11 +0100 From: Sagar Behere MIME-Version: 1.0 References: <1390987721.64002.YahooMailNeo@web163903.mail.gq1.yahoo.com> <52E8CF13.4070904@xenomai.org> <201401291346.49045.paul_c@tuxcnc.org> In-Reply-To: <201401291346.49045.paul_c@tuxcnc.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Cross-compile vanilla kernel to armhf fails Reply-To: sagar.behere@gmail.com List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org On 01/29/2014 02:46 PM, Paul wrote: > On Wednesday 29 January 2014, Gilles Chanteperdrix wrote: >> On 01/29/2014 10:28 AM, Huub Van Niekerk wrote: >>> Hi, >>> >>> I'm trying to cross-compile xenomai-2.6.3 patched vanilla linux >>> kernel 3.5.7 to armhf using this command: >>> >>> /Downloads/linux-3.5.7$ CONCURRENCY_LEVEL=2 CLEAN_SOURCE=no >>> DEB_HOST_ARCH=armhf fakeroot make-kpkg --arch arm --cross-compile >>> /usr/bin/arm-linux-gnueabihf- --initrd --append-to-version >>> -xenomai-2.6.3 --revision 1.0 kernel_image kernel_headers >>> >>> >>> and get this error: >>> >>> CC drivers/xenomai/testing/timerbench.o >>> LD drivers/xenomai/testing/xeno_timerbench.o >>> LD drivers/xenomai/testing/xeno_switchtest.o >>> LD drivers/xenomai/testing/built-in.o >>> LD drivers/xenomai/built-in.o >>> LD drivers/built-in.o >>> make[1]: Leaving directory `/home/huub/Downloads/linux-3.5.7' >>> make: *** [debian/stamp/build/kernel] Error 2 >>> >>> >>> I've tried to find a possible cause but found nothing. Can anyone >>> please direct me into a possible solution ? >> >> You are lacking the line with the actual error. The full log should >> contain it. Otherwise you can try without CONCURRENCY_LEVEL, in which >> case make should stop immediately after the error. > > You may also need: > --subarch armhf > as an option passed to make-kpkg... > > But the first question should be, can you cross compile a kernel for the > target using the standard kernel make ? > > If you can't, then using make-kpkg will fail also. +1. You can use the instructions here http://wiki.gumstix.org/index.php?title=Installing_Debian_and_Xenomai_on_gumstix_Overo for attempting a basic kernel cross-compile. Just be sure to replace the `gnueabi` in those instructions with `gnueabihf` if you are using armhf /Sagar