Linux Kernel compilation

Started by Dami1, November 07, 2012, 09:49:43 PM

Previous topic - Next topic

Dami1

Hi,

By following the tutorial to build a kernel for the A13 Olinuxino board, (http://olimex.wordpress.com/2012/10/12/building-bootable-sd-card-with-debian-linux-image-for-a13-olinuxino/), The board don't boot correctly. The booting process stop at "Starting kernel ..." and nothing happen. If I try an other .config file that was recommended on this forum (http://www.seacolors.de/A13/.config) the kernel correctly boot but I'm unable to add kernel options that I need especially SUN4I_GPIO_UGLY=y. If I add this line, the make process rewrite entirely the .config file and my kernel become unbootable again.

Can someone paste a .config that run correctly with the SUN4I_GPIO_UGLY=y or say me what is wrong when using the basic a13_defconfig file ?

Thank you for your help.

marcellus.pereira

Try this:

1) copy the sun4i-gpio.c (located under drivers/misc/) to a new directory. /tmp perhaps. Jump to it.
2) create a Makefile with just one line:
obj-m := sun4i-gpio.o
3) compile the module with the command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -C /home/marcellus/olinuxino/linux-sunxi/  SUBDIRS=$PWD modules
the parameter after the "-C" is the location of the kernel
4) you will see the sun4i-gpio.ko file. Try to insmod it.
5) Be happy.

Dami1

Thank you  guy !

It works fine !

But if someone has a working .config file created with a13_defconfig I would like to get it and understand why it didn't work for me.

David Goadby

Having just compiled my first kernel I too ran into this problem. The blog entry tells you to add the entry SUN4I_GPIO_UGLY=y to the .config file. The make then creates a new .config and the change is lost.

I will try the workaround suggested but there must be a proper fix for this that can be applied.