Other OS

How to add new module in kernel 3.4.103

0 2168
Hi!

I need to add new module for a usb video grabber from http://code.google.com/p/easycap ... uildingKernelModule so I download the kernel 3.4.103 from https://github.com/LeMaker/linux-sunxi and copy the new module into the kernel 3.4.103 folder: drivers/media/usb and create a makefile and kconfig and link them in drivers/media, but when I run from installation root  make M=drivers/media/usb/ i get 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.

In the original kernel 3.4.103 there is no usb file in drivers/media and there also is no i2c folder, which is needed as a dependecy for driver from usb to work, so I create one usb and one i2c folder in media folder and copy the drivers from http://code.google.com/p/easycap-somagic-linux/ and copy in the kernel 3.2.103 drivers/media/usb and link the makefile and kconfig, but I still get this error.

Can someone help me, maybe I am not compiling the modules the right way.

Thanks!
You have to log in before you can reply Login | Sign Up

Points Rules