How to add smi2021 module to kernel

614 views
Skip to first unread message

Alex A

unread,
Feb 21, 2015, 5:45:48 AM2/21/15
to easycap-so...@googlegroups.com
Hi!

I am using archlinux on banana bi, kernel 3.4.103 (here is the source file https://github.com/LeMaker/linux-sunxi ) and have an easycap somagic 4ch video 1c88:003f Somagic.

I want to add the smi2021module to my kernel so i download the same kernel which runs on my banana pi from https://github.com/LeMaker/linux-sunxi but this kernel does not have the usb and i2c folders in the drivers/media (you may check this in github files) so I download the whole kernel from https://github.com/jonjonarnearne/smi2021 into my banana pi and then copy only the usb and i2c files from smi2021 to my kernel (3.4.103) and change the makefile and kconfig from folder media, so it could link the new folders created.

Then while I am in the root of the kernel folder, I try to compile the smi2021 module only as it is written in http://code.google.com/p/easycap-somagic-linux/wiki/BuildingKernelModule#Compile_smi2021_module_only but when I run
make M=drivers/media/i2c modules or make M=drivers/media/usb/smi2021 modules I get the following error: 

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.


I also tried to install from the downloaded kernel from https://github.com/jonjonarnearne/smi2021 but when I run
make menuconfig in the root of the folder, in the menu that appears there is no "Media USB Adapters" or smi2021


There is only Device drivers -> multimedia support -> empty


Can anyone help me as I am struggling to install the drivers of the somagic card for almost 1 month. I have also written in many forums but no one answers.

Thank you very much.

tosiara

unread,
Feb 21, 2015, 9:04:13 AM2/21/15
to easycap-so...@googlegroups.com
Minimum kernel that used to support easycap was 3.7 (first version here on google code repo). I doubt you can make it working on 3.4

Alex A

unread,
Feb 21, 2015, 11:04:04 AM2/21/15
to easycap-so...@googlegroups.com
Thank's for the update Tosiara. Maybe someone in here can still get the easycap running on the 3.4.103 version?

I did some further investigating on banana pi forum and found that in that kernel provided by Lemaker (banana pi owner), there are missing headers and you need to add them manually. Maybe someone with more experience in compiling and adding modules to kernel can tell me how to add headers for kernel?

Here is the post where I read about the missing headers: http://forum.lemaker.org/forum.php?mod=viewthread&tid=2172&highlight=driver

And here is another post where I have read that I should create a Module.symvers sifle for the kernel to work: http://forum.lemaker.org/forum.php?mod=viewthread&tid=8852&highlight=driver

I have also opened some threads on lemaker forum but until now no one has replied.
Reply all
Reply to author
Forward
0 new messages