From: Sagar Behere <sagar.behere@gmail.com>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] Cross-compile vanilla kernel to armhf fails
Date: Wed, 29 Jan 2014 14:58:11 +0100 [thread overview]
Message-ID: <52E908F3.9030801@gmail.com> (raw)
In-Reply-To: <201401291346.49045.paul_c@tuxcnc.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
next prev parent reply other threads:[~2014-01-29 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 9:28 [Xenomai] Cross-compile vanilla kernel to armhf fails Huub Van Niekerk
2014-01-29 9:51 ` Gilles Chanteperdrix
2014-01-29 13:46 ` Paul
2014-01-29 13:58 ` Sagar Behere [this message]
2014-01-29 14:06 ` Huub Van Niekerk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E908F3.9030801@gmail.com \
--to=sagar.behere@gmail.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.