All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Cross-compile vanilla kernel to armhf fails
@ 2014-01-29  9:28 Huub Van Niekerk
  2014-01-29  9:51 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Huub Van Niekerk @ 2014-01-29  9:28 UTC (permalink / raw)
  To: xenomai@xenomai.org

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 ?

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Cross-compile vanilla kernel to armhf fails
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-29  9:51 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai@xenomai.org

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.


-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Cross-compile vanilla kernel to armhf fails
  2014-01-29  9:51 ` Gilles Chanteperdrix
@ 2014-01-29 13:46   ` Paul
  2014-01-29 13:58     ` Sagar Behere
  2014-01-29 14:06     ` Huub Van Niekerk
  0 siblings, 2 replies; 5+ messages in thread
From: Paul @ 2014-01-29 13:46 UTC (permalink / raw)
  To: xenomai

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Cross-compile vanilla kernel to armhf fails
  2014-01-29 13:46   ` Paul
@ 2014-01-29 13:58     ` Sagar Behere
  2014-01-29 14:06     ` Huub Van Niekerk
  1 sibling, 0 replies; 5+ messages in thread
From: Sagar Behere @ 2014-01-29 13:58 UTC (permalink / raw)
  To: xenomai

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Cross-compile vanilla kernel to armhf fails
  2014-01-29 13:46   ` Paul
  2014-01-29 13:58     ` Sagar Behere
@ 2014-01-29 14:06     ` Huub Van Niekerk
  1 sibling, 0 replies; 5+ messages in thread
From: Huub Van Niekerk @ 2014-01-29 14:06 UTC (permalink / raw)
  To: xenomai@xenomai.org

I just successfully cross-compiled the kernel using make. Actually, I assume it was successful, as I didn't test it yet.
May or should need --subarch ? I read about it in posts, and the man file only says "some architectures". Is there a (official) doc telling about armhf ? I do prefer make-kpkg as I did that on x86, which made installing with dpkg a lot easier.




On Wednesday, January 29, 2014 2:49 PM, Paul <paul_c@tuxcnc.org> 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.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-29 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-01-29 14:06     ` Huub Van Niekerk

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.