Author Topic: help compiling kernel for lubuntu-desktop-12.10-v1.05  (Read 2016 times)

Offline lukasfischer

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
help compiling kernel for lubuntu-desktop-12.10-v1.05
« on: August 31, 2014, 03:57:59 pm »
Hi there,
i am trying to compile a new kernel for the official lubuntu-desktop-12.10-v1.05 nand image.
I tried to compile the sources from
http://dl.cubieboard.org/software/a10-cubieboard/lubuntu/linux-sunxi-kernelheader-v1.05.tar.gz
from the same download site as the image, but they don't compile at all.
So i tried the way described on the sunxi wiki pulling the git version
Code: [Select]
git clone -b sunxi-3.4 https://github.com/linux-sunxi/linux-sunxi.gitand doing an oldconfig with the output of zcat /proc/config.gz from the current kernel using default answers.
I then added the hidraw and changed nothing else with menuconfig and wanted to recompile the uImage.
I got this error:
Code: [Select]
  LD      drivers/built-in.o
drivers/media/built-in.o: In function `kmalloc_slab':
/home/lukas/Downloads/cubie/linux-sunxi/include/linux/slub_def.h:217: multiple definition of `get_video_info'
drivers/video/built-in.o:/home/lukas/Downloads/cubie/linux-sunxi/drivers/video/sunxi/hdmi/hdmi_core.c:223: first defined here
make[1]: *** [drivers/built-in.o] Fehler 1
make: *** [drivers] Fehler 2

Compiling a minimal kernel with sun4i_defconfig works and i could replace the uBoot uImage on nand and boot, but too many modules are missing for startup. Anyhow, at least the crosscompiler and the sunxi-tools are confirmed to work in my setup.

What could be the problem of my kernel config (attached)?