How to (cross-)compile Ubuntu for ARM-OMAP4 with V4L2 support

Here is a little tutorial on how I did to compile Ubuntu for my ARM OMAP4 based LeopardBoard with V4L2.

I did those commands on my Ubuntu 12.04 laptop x86 computer.

1) Download from https://gitorious.org/omap4-v4l2-camera
I chose the Ubuntu Natty TI OMAP4 version: https://gitorious.org/omap4-v4l2-camera/omap4-v4l2-camera/trees/ubuntu-natty_ti-omap4-v4l2cam
2) Untar in the directory of your choice
3) Launch the config: ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CONFIG_DEBUG_SECTION_MISMATCH=y make menuconfig
4) Choose the options you want
5) Launch ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CONFIG_DEBUG_SECTION_MISMATCH=y make uImage modules
6) Enjoy

I was stumbling upon a problems when compiling, among them:
– I had to disable SPI as it did not compile correctly (and I did not need it)
– cpu_hz was undeclared and I had to modify the arch/arm/clock.c file like explained here: http://git.linaro.org/gitweb?p=ubuntu/linux-linaro-natty.git;a=commitdiff;h=44cf7b973e14909ea30a762e0c25381606a9cfdf

Jun21

Comments are closed.