-
How to build a kernel module for knoppix 5.1.1?
I have successfully remastered knoppix-5.1.1 by removing and adding packages.
I now would like to be able to activate my wireless adaptor, being an intel ipw3495 card.
Software and build instructions are available at e.g. http://ipw3495.sf.net, but
when these are executed, the system (knoppix) reports:
=========
ERROR: A compatible subsystem was not found in the following path[s]:
/lib/modules/2.6.19 /lib/modules/2.6.19/build
You need to install the ieee80211 subsystem from http://ieee80211.sf.net
and point this build to the location where you installed those sources, eg.:
% make IEEE80211_INC=/usr/src/ieee80211/
or use the 'make patch_kernel' within the ieee80211 subsystem to patch your
kernel sources.
===========
Let's try do that:
root@Knoppix:/tmp/ieee80211-1.2.16# make
Checking in /lib/modules/2.6.19 for ieee80211 components...
find: /lib/modules/2.6.19/build/: No such file or directory
/lib/modules/2.6.19/kernel/net/ieee80211/ieee80211.ko
/lib/modules/2.6.19/kernel/net/ieee80211/ieee80211_crypt.ko
/lib/modules/2.6.19/kernel/net/ieee80211/ieee80211_crypt_ccmp.ko
/lib/modules/2.6.19/kernel/net/ieee80211/ieee80211_crypt_tkip.ko
/lib/modules/2.6.19/kernel/net/ieee80211/ieee80211_crypt_wep.ko
Above files found. Remove? [y],n
find: /lib/modules/2.6.19/build/: No such file or directory
grep: /lib/modules/2.6.19/build//.config: No such file or directory
grep: /lib/modules/2.6.19/build//include/linux/autoconf.h: No such file or directory
find: /lib/modules/2.6.19/build/: No such file or directory
make -C /lib/modules/2.6.19/build M=/ramdisk/tmp/ieee80211-1.2.16 modules
make: *** /lib/modules/2.6.19/build: No such file or directory. Stop.
make: *** [modules] Error 2
========
Is it possible to obtain the /lib/modules/2.6.19/build/ contents?
There does not seem to be a deb pkg around that provides this directory (debian provides
packages up to and including 2.6.18....
Are there packages with kernel headers (I think it is) around for knoppix' 2.6.19 kernel??
If not, is it possible to create them from the vanilla kernel sources?
TIA,
Richard
-
Senior Member
registered user
Richard,
It sounds to me like you are usuing the CD version. The kernel sources were removed to make room for apllications. Try a dry run with the DVD version.
-
With the sources on the DVD I have been able to build the ipw3945 kernel module succesfully.
I just made my first wireless connection with this driver from knoppix
)
There is one thing, that is to be done. A "modprobe -i ipw3945" results in "module not found".
After I have executed "depmod -a" and execute the same modprobe command all is fine.
I have tried to run "depmode -a" in my chrooted knoppix environment, but that does not work
as it looks for the host kernel version and not the chroot kernel version. Can something be
done about that, if so how?
TIA,
Richard
-
Senior Member
registered user
Did you copy over the dvd version for your remaster or are you still using the the files copied from the cd? If you did copy over the cd, did you copy over the files from KNOPPIX2?
The remastering guide does not say it but if you are remastering the dvd you have to
cp -Rp /KNOPPIX2/* /mnt/hda1/knx/source/KNOPPIX
KNOPPIX2 contains most of the /usr
The problem is that the resulting remaster will be 4 GB and at this point there seems to be a 2 GB limit on cloop. (may be fixed on 5.1). There is not a very clear guide on how to recreate KNOPPIX and KNOPPIX2
You could start from scratch if you want as well with a new kernel. I would try to download 2.6.19.1 and apply the patches in the /usr/src of the dvd. 2.6.20 just came out but you take your chances with compatibility
-
I'm still remastering the CD, and it works actually very well 
It's a bit silly to download 4GB, to be able to obtain a file of (I guess) some kilo bytes.
My problem is solved by executed depmode including kernel version number. So what
I did was to execute 'depmode -a 2.6.19' in the chroot knoppix environment. This processes
the modules dependencies just as it should
)
Thanks for support!
Richard
Similar Threads
-
By tr in forum Customising & Remastering
Replies: 2
Last Post: 02-26-2007, 02:30 PM
-
By Virgilinux in forum General Support
Replies: 3
Last Post: 10-09-2005, 03:01 PM
-
By opeer in forum Customising & Remastering
Replies: 0
Last Post: 07-15-2005, 04:23 PM
-
By littleKoala in forum General Support
Replies: 3
Last Post: 06-29-2004, 11:56 AM
-
By TheCyberDude in forum Tips and Tricks
Replies: 3
Last Post: 09-03-2003, 03:10 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Cisco SFP-10G-SR V03 850nm 10GBASE-SR SFP+ MMF 10-2415-03 Transceiver
$4.99

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED
$24.99

Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver
$20.70