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
  •  


New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture

New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C

$90.00



LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture

LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module

$95.00



LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver picture

LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver

$40.00



Fully Compatibility 10GBase-T Transceiver SFP-10G-T  SFP+ to RJ45 Copper 30M 80M picture

Fully Compatibility 10GBase-T Transceiver SFP-10G-T SFP+ to RJ45 Copper 30M 80M

$45.00



🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥 picture

🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥

$6.80



GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture

GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03

$6.80



Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03) picture

Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03)

$5.85



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$12.99



New Cisco SFP-10G-LRM 10G SFP+ LRM 1310nm 220m SMF/MMF LC Module picture

New Cisco SFP-10G-LRM 10G SFP+ LRM 1310nm 220m SMF/MMF LC Module

$32.19



New Cisco GLC-TE 1G SFP Copper RJ45 100m 1000BASE-T Transceiver Module picture

New Cisco GLC-TE 1G SFP Copper RJ45 100m 1000BASE-T Transceiver Module

$21.62