Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: mike1968 on February 10, 2013, 12:40:16 PM

Title: problem compiling new Kernel
Post by: mike1968 on February 10, 2013, 12:40:16 PM
Hello all,

I will try to build my own Kernel.

I install all teh tools from the step-by-step instruktion from the wiki.

when I start the uboot build i got this error:

uboot-allwinner
root@michael-netbook:/home/michael/olinuxino# cd uboot-allwinner/
root@michael-netbook:/home/michael/olinuxino/uboot-allwinner#
make a13_olinuxino CROSS_COMPILE=arm-linux-gnueabi-
make: *** Keine Regel, um »a13_olinuxino« zu erstellen.  Schluss.

please help

thx michael
Title: Re: problem compiling new Kernel
Post by: JohnS on February 10, 2013, 04:10:24 PM
I guess you could help yourself by sticking to English.  Sorry, but it's probably true...
Title: Re: problem compiling new Kernel
Post by: jwischka on February 10, 2013, 04:17:36 PM
did you

git checkout sunxi

before you tried to make?

Quote from: mike1968 on February 10, 2013, 12:40:16 PM
Hello all,

I will try to build my own Kernel.

I install all teh tools from the step-by-step instruktion from the wiki.

when I start the uboot build i got this error:

uboot-allwinner
root@michael-netbook:/home/michael/olinuxino# cd uboot-allwinner/
root@michael-netbook:/home/michael/olinuxino/uboot-allwinner#
make a13_olinuxino CROSS_COMPILE=arm-linux-gnueabi-
make: *** Keine Regel, um »a13_olinuxino« zu erstellen.  Schluss.

please help

thx michael
Title: Re: problem compiling new Kernel
Post by: aauer1 on February 12, 2013, 08:12:24 PM
Hi,

first of all, I think you are trying to build u-boot and not the kernel. To compile u-boot, you have to do the following steps:

1. make A13-OLinuXino_config
2. make

Cheers,
Andreas
Title: Re: problem compiling new Kernel
Post by: mike1968 on February 12, 2013, 11:16:11 PM
Quote from: aauer1 on February 12, 2013, 08:12:24 PM
Hi,

first of all, I think you are trying to build u-boot and not the kernel. To compile u-boot, you have to do the following steps:

1. make A13-OLinuXino_config
2. make

Cheers,
Andreas

Hello Andreas,

yes, you are rigth...i follow the step by step instruction,,,so i try to compile u-boot(did i need this??)
i get this error:
root@michael-netbook:~/olinuxino/uboot-allwinner# make A13-OLinuXino_config
make: *** No rule to make target `A13-OLinuXino_config'.  Stop.
make: *** [A13-OLinuXino_config] Fehler 1
root@michael-netbook:~/olinuxino/uboot-allwinner#
Title: Re: problem compiling new Kernel
Post by: mike1968 on February 12, 2013, 11:44:10 PM
ok...
I jumped to the next step..."Building the Kernel"

all seems ok...can create the .config file, but then i continue i get this massage:

root@michael-netbook:~/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage
make: arm-linux-gnueabi-gcc: Kommando nicht gefunden
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
  CC      kernel/bounds.s
/bin/sh: arm-linux-gnueabi-gcc: not found
make[1]: *** [kernel/bounds.s] Fehler 127
make: *** [prepare0] Fehler 2


please help me :-\ >:(..
Title: Re: problem compiling new Kernel
Post by: aauer1 on February 12, 2013, 11:48:17 PM
You have to install a cross compiler. If you are using Ubuntu you can use Synaptic to install gcc-arm-linux-gnueabi (I'm not sure if the package has exactly that name).
Then the command should be available.

Cheers,
Andreas
Title: Re: problem compiling new Kernel
Post by: mike1968 on February 13, 2013, 12:21:19 AM
Quote from: aauer1 on February 12, 2013, 11:48:17 PM
You have to install a cross compiler. If you are using Ubuntu you can use Synaptic to install gcc-arm-linux-gnueabi (I'm not sure if the package has exactly that name).
Then the command should be available.

Cheers,
Andreas

Thank you very much Andreas

It works and seem my problem is solved
:) ;) :D ;D

Best regards
Michael