Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Kernel Source for Knoppix CD's

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228

    Kernel Source for Knoppix CD's

    I am really loving the Knoppix distro(s) after they are installed on my local drive. I was always a little fearful of trying a debian install, but with Knoppix, there's no fear of flying

    I am now trying to compile a piece of software and ./configure states that it needs the kernel sources. A unname -a shows that I have the 2.4.20-xfs version of the kernel. If I do an apt-get install for kernel-source-2.4.20-xfs, it says no such package. I installed kernel-source-2.4.20 (close enough, right but now it says it can't continue without the complete kernel source.

    I am currently downloading 3.2, so if you could tell me a method of obtaining this for 3.1 as well as 3.2, it would be greatly appreciated.

    Regards,

    ~paul

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Kernel Source for Knoppix CD's

    --You will 1) need enough space for the entire kernel source (100 Meg or so), and 2) have to DL and decompress the source for 2.4.20 from here:
    http://www.kernel.org/pub/linux/kern...2.4.20.tar.bz2

    Quote Originally Posted by pau1knopp
    I am really loving the Knoppix distro(s) after they are installed on my local drive. I was always a little fearful of trying a debian install, but with Knoppix, there's no fear of flying

    I am now trying to compile a piece of software and ./configure states that it needs the kernel sources. A unname -a shows that I have the 2.4.20-xfs version of the kernel. If I do an apt-get install for kernel-source-2.4.20-xfs, it says no such package. I installed kernel-source-2.4.20 (close enough, right but now it says it can't continue without the complete kernel source.

    I am currently downloading 3.2, so if you could tell me a method of obtaining this for 3.1 as well as 3.2, it would be greatly appreciated.

    Regards,

    ~paul

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228

    Then what?

    Thanks for the prompt response to my question.

    I am currently downloading the file you mentioned. After I untar it, I am not quite sure what I need to do to get the right stuff into the /usr/src/linux-2.4.20-xfs subdirectory...

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228

    Some progress...

    Okay, I have made some progress, but have not met with success yet. Per the suggestion in the forum, the kernel source I am using is linux-2.4.20.tar.bz2. Although, I'm not sure if I'm missing something, because when I type uname -a the system reports

    Linux wally 2.4.20-xfs #1 SMP Mit Jan 29 18:47:59 CET 2003 i686 VIA Samuel 2 CentaurHauls GNU/Linux

    I see that Knoppix 3.1/2 is 2.4.20-xfs and my kernel source is 2.4.20.

    Next I untarred the contents into /usr/src/ and recreated the symlink /usr/src/linux to point to this directory. I also had to recreate the symlink /lib/modules/2.4.20-xfs/build to point
    to this new directory to proceed without errors (can't find module XXX).

    Next, I ran makemenuconfig and compiled the kernel and did the requisite make "dep" afterwards to allow the system to recognize the new kernel source.

    I was then able start compiling without bombing out right away. I ran autoconf with no errors, but when I when to run ./configure, it appear to run and compiled, but noted the following:

    checking for kernel includes directory... yes
    (/lib/modules/2.4.20-xfs/build/include)checking that running and kernel source
    versions match... noconfigure: WARNING: Kernel source version 2.4.20 does not
    match running version. This kernel module may not work correctly...

    Any suggestions on where I may have gone wrong?

    Thanks for all the help so far...

    ~paul

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Posts
    2
    Same probs here

    cu

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Some progress...

    --If it's only a warning, proceed. See if it works.

    --Knoppix is a one-off kernel with XFS filesystem support. When you compile Linus source, xfs is gone unless you apply the patches for it. Since the kernel version is otherwise the same, alsa should still work. But, you may have to compile the entire kernel (with the 2.4.20-xfs config file from Klaus) and boot with that instead of 2.4.20-xfs.

    --Personally I wish Klaus would just go with standard Linus source, but that's just me.

    Quote Originally Posted by pau1knopp
    Okay, I have made some progress, but have not met with success yet. Per the suggestion in the forum, the kernel source I am using is linux-2.4.20.tar.bz2. Although, I'm not sure if I'm missing something, because when I type uname -a the system reports

    Linux wally 2.4.20-xfs #1 SMP Mit Jan 29 18:47:59 CET 2003 i686 VIA Samuel 2 CentaurHauls GNU/Linux

    I see that Knoppix 3.1/2 is 2.4.20-xfs and my kernel source is 2.4.20.

    Next I untarred the contents into /usr/src/ and recreated the symlink /usr/src/linux to point to this directory. I also had to recreate the symlink /lib/modules/2.4.20-xfs/build to point
    to this new directory to proceed without errors (can't find module XXX).

    Next, I ran makemenuconfig and compiled the kernel and did the requisite make "dep" afterwards to allow the system to recognize the new kernel source.

    I was then able start compiling without bombing out right away. I ran autoconf with no errors, but when I when to run ./configure, it appear to run and compiled, but noted the following:

    checking for kernel includes directory... yes
    (/lib/modules/2.4.20-xfs/build/include)checking that running and kernel source
    versions match... noconfigure: WARNING: Kernel source version 2.4.20 does not
    match running version. This kernel module may not work correctly...

    Any suggestions on where I may have gone wrong?

    Thanks for all the help so far...

    ~paul

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202
    ...kernel-2.4.20-xfs is a custom kernel...kernel-2.4.20 is no the same thing

    There is in synaptic (apt-get gui frontend) the option to download kernel-2.4.20-xfs -image only, not the kernel source
    żany ideas to get kernel-2.4.20-xfs-source? żany debian repository?

    thanks

  8. #8
    Junior Member
    Join Date
    Jan 2003
    Location
    Japan
    Posts
    7

    Re: Kernel Source for Knoppix CD's

    Hi ALL,

    How to patch and build the original kernel-source-2.4.20 for XFS;

    Get and tar extract the original kernel-source-2.4.20.tar.bz2 in /usr/src.
    Get a "kernel-patch-xfs" as below;
    # apt-get install kernel-patch-xfs

    Above will creat the directory tree /usr/src/kernel-patches/.
    Then apply "knoppix-kernel.patch" which is located in /usr/src Knoppix distro.

    Perhaps you want below too;
    # mv kernel-source-2.4.20 kernel-source-2.4.20-xfs
    # ln -s kernel-source-2.4.20-xfs linux
    Then you might want to edit the fourth line of Makefile adding;
    EXTRAVERSION =-xfs

    # cd linux
    # export PATCH_THE_KERNEL=YES
    # make-kpkg --added-patches=/usr/src/kernel-patches/all/apply/xfs configure
    (you might use the configuration file from /boot/config-2.4.20 Knoppix)
    Confirm the following lines in linux/.config
    CONFIG_XFS_FS=m
    CONFIG_XFS_RT=y
    CONFIG_XFS_QUOTA=y
    CONFIG_XFS_DMAPI=y
    # CONFIG_XFS_DEBUG is not set

    # fakeroot make-kpkg kernel-image

    That's all!

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202
    thanks,

    apt-get dont find the knoppix-kernel.patch but it is already at /usr/src/
    Here it is

    --- linux/arch/i386/kernel/setup.c.orig 2002-10-04 01:02:25.000000000 +0200
    +++ linux/arch/i386/kernel/setup.c 2002-10-04 01:03:24.000000000 +0200
    @@ -195,7 +195,7 @@
    #define INITRD_START (*(unsigned long *) (PARAM+0x21)
    #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
    #define COMMAND_LINE ((char *) (PARAM+204)
    -#define COMMAND_LINE_SIZE 256
    +#define COMMAND_LINE_SIZE 512 /* The boot commandline in Knoppix can get quite long -KK Oct. 2002 */

    #define RAMDISK_IMAGE_START_MASK 0x07FF
    #define RAMDISK_PROMPT_FLAG 0x8000

  10. #10
    Junior Member
    Join Date
    Jan 2003
    Location
    Japan
    Posts
    7
    Hi oscar,

    Please remember that you need two patches,
    knoppix-kernel.patch and kernel-patch-xfs.

    The first one is located in Knoppix /usr/src/ as you and I wrote but the second one can be obtained by apt-get from Debian package.

    Good luck!

Page 1 of 3 123 LastLast

Similar Threads

  1. No Knoppix kernel headers and source (GPL Violation?)
    By pau1knopp in forum General Support
    Replies: 2
    Last Post: 08-02-2006, 03:41 PM
  2. Kernel Source for 2.4.26 (Knoppix 3.4)
    By EdeS in forum Customising & Remastering
    Replies: 4
    Last Post: 08-17-2004, 11:13 AM
  3. Knoppix V3.3 Kernel Source / Configuration - Please help!
    By Nils_ in forum Hardware & Booting
    Replies: 1
    Last Post: 02-28-2004, 10:19 PM
  4. Can I get knoppix Kernel source and customize? rebuild
    By astormchaser in forum Customising & Remastering
    Replies: 3
    Last Post: 06-05-2003, 10:16 PM
  5. custom kernel, debian source vs kernel.org source
    By garyng in forum Customising & Remastering
    Replies: 1
    Last Post: 04-13-2003, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture

Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home

$9.97



Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home picture

Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home

$24.98



KLIM Cool Laptop Cooler Fan, Portable Quiet Cooling Vacuum w/Display - BLUE LED picture

KLIM Cool Laptop Cooler Fan, Portable Quiet Cooling Vacuum w/Display - BLUE LED

$15.95



Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust picture

Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust

$29.40



Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US picture

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US

$12.19



Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit picture

Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit

$2.99



3in1 Handheld Vacuum  Keyboard Cleaner Dust Cleaning Laptop Desktop PC Computer picture

3in1 Handheld Vacuum Keyboard Cleaner Dust Cleaning Laptop Desktop PC Computer

$16.99



Kensington Desktop VAC 110v Compact Easy to Use ~ Model 60050 ~ Vacuum Cleaner picture

Kensington Desktop VAC 110v Compact Easy to Use ~ Model 60050 ~ Vacuum Cleaner

$19.95



Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster picture

Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster

$38.99



1pc, Cordless Vacuum Cleaner, Lightweight Stick Vacuum Cleaner With Powerful picture

1pc, Cordless Vacuum Cleaner, Lightweight Stick Vacuum Cleaner With Powerful

$149.99