Hi, I am trying to cross-compile the kernel (virtualbox ubuntu 12.04 64 bits) to include support for GSPCA cameras as module, but I am getting an error on build, so nothing is generated on output folder.
I tried to compile on the board itself and it is almost fine, generates the hwpack but do not generates the livesuit (board's linux is 32bit, and what it seems is that livesuit can be generated only in 64 bits systems).
I got some different errors, I solved some of them, seems like some git files are damaged or something, so I did a dirty job searching the missing or damaged files content to get them right.
The last error I got I am showing below:
CC kernel/audit_tree.o CC kernel/hung_task.o LD kernel/time/built-in.o CC kernel/rcutiny.o CC kernel/relay.o CC kernel/utsname_sysctl.o CC kernel/delayacct.o CC kernel/taskstats.o CC kernel/tsacct.o CC kernel/elfcore.o CC kernel/irq_work.o CC kernel/cpu_pm.o CC kernel/time.o CHK kernel/config_data.h UPD kernel/config_data.h CC kernel/configs.o LD kernel/built-in.o make: *** [sub-make] Error 2 make: Leaving directory `/home/vagrant/sunxi-bsp/kernel/linux-sunxi' make: *** [linux] Error 2
This I got while trying to compile the kernel (after enter with make mrproper on linux-sunxi, because I got an error saying that the linux-sunxi I cloned in git was dirty).
I guess this error I showed is because this thing below:
/home/vagrant/sunxi-bsp/kernel/linux-sunxi/fs/open.c:31:23: fatal error: linux/ima.h: No such file or directory compilation terminated. make: *** [fs/open.o] Error 1
Somebody had this problem too?
I followed this tutorial: http://learn.linkspr...x86-64-machine/
And please correct some things on that apt-get: include apt-get install -y libncurses5-dev pkg-config
You will need libncurses if you want to customize the kernel (make menuconfig).
Thanks for the support guys.
PS: I am using Vagrant as virtualbox provider, it is a very cool tool to work with embedded systems, it do not eat so much space in the host hard disk as a common virtual box (ubuntu 12.04 64 bits just about 300MB on disk) and it is very good for team work. If the community here will want some more information I could make a quick-and-dirty tutorial of building a box using it.