Skip to contentSkip to conversation

Cross-compile vanilla kernel to armhf fails

Xenomai Huub Van Niekerk 4 participants 5 messages Jan 29, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 15 lines · Huub Van Niekerk

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
Quoted 5 lines

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.

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 24 lines · Gilles Chanteperdrix
Quoted 23 lines · Huub Van Niekerk

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

Quoted 6 lines
Quoted 2 lines

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.

#3 lore raw
Quoted 32 lines · Paul
Quoted 24 lines · Gilles Chanteperdrix
Quoted 23 lines · Huub Van Niekerk

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

Quoted 6 lines
Quoted 2 lines

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.

Quoted 8 lines

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

#4 lore raw
In reply to Paul

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 <[email protected]> wrote:

Quoted 24 lines · Gilles Chanteperdrix
Quoted 23 lines · Huub Van Niekerk

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

Quoted 6 lines
Quoted 2 lines

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
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai