Results 1 to 5 of 5

Thread: How to build a kernel module for knoppix 5.1.1?

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    3

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    140
    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.

  3. #3
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    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

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    140
    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

  5. #5
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    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

  1. How to build aufs for remastered Knoppix 5.1.1's kernel?
    By tr in forum Customising & Remastering
    Replies: 2
    Last Post: 02-26-2007, 02:30 PM
  2. Can I use Knoppix to add and/or remove a kernel module of an
    By Virgilinux in forum General Support
    Replies: 3
    Last Post: 10-09-2005, 03:01 PM
  3. Adding/Updating a kernel module in KNOPPIX 3.9
    By opeer in forum Customising & Remastering
    Replies: 0
    Last Post: 07-15-2005, 04:23 PM
  4. Knoppix 3.4 with kernel 2.6.5 doesn't have lvm module?
    By littleKoala in forum General Support
    Replies: 3
    Last Post: 06-29-2004, 11:56 AM
  5. Kernel Build with kernel-source-2.4.20-xfs:
    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
  •  


IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture

IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)

$36.53



IBM Server Rack Cabinet 9308-RC4 picture

IBM Server Rack Cabinet 9308-RC4

$209.00



IBM System p5 9131-52A 3.5

IBM System p5 9131-52A 3.5" 4-Bay Server 80P6787 1 CPU 2GB 6 HD CADDIES TAPE BU

$250.00



IBM Netezza 3567 picture

IBM Netezza 3567

$5000.00



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System

$359.99



IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture

IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD

$68.50



IBM Power8 |S822 8284-22A 12-Bay Server | 1x 00UM260 CPU, 128GB RAM, No HDD's picture

IBM Power8 |S822 8284-22A 12-Bay Server | 1x 00UM260 CPU, 128GB RAM, No HDD's

$237.15



COMPLETE IBM 9009 41A ISERIES POWER9 ENTRY LEVEL SERVER FULLY TESTED AND WORKING picture

COMPLETE IBM 9009 41A ISERIES POWER9 ENTRY LEVEL SERVER FULLY TESTED AND WORKING

$3550.00



IBM Server System X3100 M4 | Xeon @ 3.10 Ghz | 8GB | 250GB HDD No OS (IG-PC26) picture

IBM Server System X3100 M4 | Xeon @ 3.10 Ghz | 8GB | 250GB HDD No OS (IG-PC26)

$112.95



IBM QRadar xx29 Server 4412Q2A picture

IBM QRadar xx29 Server 4412Q2A

$209.99