Welcome! Log In Create A New Profile

Advanced

Ubit Kernel with liplianin - Kernel headers available?

Posted by nationat 
Ubit Kernel with liplianin - Kernel headers available?
September 13, 2011 01:28PM
Hi,

some month ago, i've installed ubit v6 with sata kernel and modules from Jeff. Debian is running rockstable on the device!
Now i need the s2-liplianin drivers for my usb-s2-device.

But after clone the hg-repo, i got these error from make:
make -C /usr/src/s2-liplianin/v4l
make[1]: Entering directory `/usr/src/s2-liplianin/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.37
File not found: /lib/modules/2.6.37-ubit-01715-g1e5cda0/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
make[1]: Leaving directory `/usr/src/s2-liplianin/v4l'
make: *** [all] Error 2
root@debian:/usr/src/s2-liplianin# ls -la /lib/modules/2.6.37-ubit-01715-g1e5cda0/build/
ls: cannot access /lib/modules/2.6.37-ubit-01715-g1e5cda0/build/: Too many levels of symbolic links
because:
/usr/src# ls -la linux-2.6 -> ../../lib/modules/2.6.37-ubit-01715-g1e5cda0/build
and
/usr/src# ls -la /lib/modules/2.6.37-ubit-01715-g1e5cda0/
lrwxrwxrwx 1 root src     18 Mar 19 17:57 build -> /usr/src/linux-2.6

I think i need the headers, to correct the links - but i don't know where to get them!

So, are there kernel headers available anywhere, or have i done a different mistake?
Re: Ubit Kernel with liplianin - Kernel headers available?
September 13, 2011 06:31PM
Ouch thats ugly. They are circular references. And you didn't do it. I just opened up modules.tar.gz and its like that in the package. Without the source, you're not going to be able to compile that module. You'll have to build your own custom kernel. A quick google search seems to indicate that this module is in the mainline kernel since 2.6.39. There was a post about compiling the 3.0.x kernel. Search the forums.

Sorry it's not really relevant.
http://forum.doozan.com/read.php?4,5889,5889#msg-5889

But there are some other posts about compiling 2.6.38 and 2.6.39.



Edited 1 time(s). Last edit at 09/13/2011 07:22PM by kraqh3d.
Re: Ubit Kernel with liplianin - Kernel headers available?
September 14, 2011 02:42AM
Thanks for reply.

I've build a new kernel this way:

HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net

with the difference:

original
make-kpkg --rootcmd fakeroot --arch armel --cross-compile arm-none-linux-gnueabi- --append-to-version=-goflex --revision=1.1 --initrd kernel_image
my way
make-kpkg --rootcmd fakeroot --arch armel --cross-compile arm-none-linux-gnueabi- --append-to-version=-goflex --revision=1.1 --initrd binary

too have all the binary's!

Will test it this evening...
Re: Ubit Kernel with liplianin - Kernel headers available?
September 14, 2011 05:20AM
I'm very eager to hear about the outcome! I had a similar problem when trying to compile the IET iSCSI module but unfortunately even after having installed the headers, the compilation still failed. Didn't try installing kernel source, though. At the end I just cross-compiled the module using the environment I had left from compiling the kernel. Worked like a charm.

By the way, for some reason my kernel-headers contained a lot of X11 related dependencies which are definitely not needed for a headless server. I solved this simply by removing those by hand.

cd ~/Kernel
dpkg-deb -x linux-headers-2.6.38.8-goflex-ubit_1.1_armel.deb linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked
dpkg-deb -e linux-headers-2.6.38.8-goflex-ubit_1.1_armel.deb linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked/DEBIAN
nano linux-headers-2.6.38.8-goflex-ubit_1.1_armel/debian/control
replace
Depends: libaudio2, libc6 (>= 2.8), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libice6 (>= 1:1.0.0), libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), libqt3-mt (>= 3:3.3.8-b), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxft2 (>> 2.1.1), libxi6, libxinerama1, libxrandr2, libxrender1, libxt6, zlib1g (>= 1:1.1.4)
by
Depends: libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)
and do
dpkg-deb -b linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: