Compiling kernel modules!?

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Compiling kernel modules!?

Postby Alaska » Sat Oct 08, 2011 10:43 pm

Hello all,

i am new to archlinux(arm), but not new to linux. Before i used arch on my dockstar, i was a distro-hopper for about 8 years, now i prefer Parduslinux on my desktop, but arch seems to be better for me. Just a few words about me :)

So, here is my problem:
i will use vdr on my dockstar, but the dvb-usb-af9015 kernel module does not exist......it should be in kernel since 2.6.28. I have the actual 3.0 kernel on my dockstar, everything runs smooth. i have some aur-packages installed and other things are running top!
i use the latest files from linuxtv.org
http://linuxtv.org/downloads/drivers/li ... ST.tar.bz2
but if i will compile the module on the dockstar i get this(just the last few lines of course):

$this->bbcode_second_pass_code('', ' CC [M] /home/alaska/aur/media_build/v4l/ivtv-udma.o
CC [M] /home/alaska/aur/media_build/v4l/ivtv-vbi.o
CC [M] /home/alaska/aur/media_build/v4l/ivtv-yuv.o
CC [M] /home/alaska/aur/media_build/v4l/m5mols_core.o
In file included from /usr/src/linux-3.0-ARCH/arch/arm/include/asm/gpio.h:5:0,
from include/linux/gpio.h:18,
from /home/alaska/aur/media_build/v4l/m5mols_core.c:21:
arch/arm/mach-kirkwood/include/mach/gpio.h:9:23: fatal error: plat/gpio.h: No such file or directory
compilation terminated.
make[3]: *** [/home/alaska/aur/media_build/v4l/m5mols_core.o] Fehler 1
make[2]: *** [_module_/home/alaska/aur/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-3.0-ARCH'
make[1]: *** [default] Fehler 2
make[1]: Leaving directory `/home/alaska/aur/media_build/v4l'
make: *** [all] Fehler 2
build failed at ./build line 353.
')

i searched for days to solve this, now i am helpless and can not find anything to eleminate my problem myself.
i found the firmware in AUR, but not the kernel module......
my dvbt stick is a msi digivox 2 ver.3.0 with afatech af9015 and Microtune mt2060. On other distris i can compile it or it is in the kernel. in the standard-kernel of arch it should be.......
okay, i know we use not the standard kernel here, so how can i get the kernel module?
thanks for your help!
Alaska
 
Posts: 6
Joined: Fri Sep 16, 2011 11:08 am

Re: Compiling kernel modules!?

Postby hydro » Sun Oct 09, 2011 1:47 pm

Seems like one or more required header files are not in the linux-headers package.
This is an ugly solution:
$this->bbcode_second_pass_code('', '
$ tar xf linux-3.0.tar.bz2 linux-3.0/arch/arm/plat-orion/include/plat
# cp -iav linux-3.0/arch/arm/plat-orion/ /usr/src/linux-3.0-ARCH/arch/arm/
')
Kernel is available here
ftp://ftp.uni-kl.de/pub/linux/kernel/v3.0/

Several other possibilites:
- Report the issue here, maybe the header package will be revised
- Ask for inclusion of the module in the kernel package
- Compile your own kernel (this is what I did)
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Compiling kernel modules!?

Postby Alaska » Sun Oct 09, 2011 4:14 pm

thanks,

will try to compile a kernel myself......
Alaska
 
Posts: 6
Joined: Fri Sep 16, 2011 11:08 am


Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests