Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 57

Thread: HOWTO: Customising/Upgrading the Kernel - An Evolving HowTo

  1. #31
    Senior Member registered user
    Join Date
    Mar 2005
    Posts
    103
    Thanks alot for this great howto. I managed to get my 1st kernel on live CD. I obtained kernel 2.6.14-3 sources from here:
    http://www.kernel.org/
    and used Kanotix 2005-03 config file to configure it. I used cloop sources from here:
    http://debian-knoppix.alioth.debian.org/sources/
    My live CD is working perfictly. Now, I will start adding drivers to my remaster.

    However, I do not know how to add kernel headers to my live CD since this is not a debian kernel source. Do you have an idea how to do that?

  2. #32
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272
    Quote Originally Posted by firnsy
    That being said this HOWTO is aimed to replace the kernel using a more traditional method, rather than make-kpkg. Unless you experience these problems having followed the HOWTO as written, it can not be improved to ensure others don't experience similar obstacles.

    Thus I would request that you attempt to compile using the methods detailed, and report your errors based on them, then I can provide better assistance.
    There's no difference if you use 'make' or 'make-kpkg kernel_image' to compile kernel and its modules (same error messages). I just like more of Debian way to compile kernel with make-kpkg. Also installing .deb packages is very simple and secure Only thing to remember is that 'make-kpkg clean' cleans also asm symlink from include sub-directory so it must be created again (ln -s asm-i386 asm).

    So my problem was NOT the method itself but something else I still actually don't know. I can compile fine in my old Athlon 1300 MHz machine with 768 MB RAM but NOT in my 64-bit Atllon 3000+ machine with 2 GB RAM. So I think this must have something to do with 64-bit AMD processor. (?)

    Now I have 2.6.15-rc4 kernel from Debian source with unionfs 1.0.14 and cloop 2.02 (Used Debian kernel because Knoppix is Debian based and Debian kernels are patched already)

    Thank you, firmsy, of your howto and also of initRAMFS howto. Using initramfs helped much (no need to shrink unionfs. module).

    -tapsa-

  3. #33
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Upgrade 2.6.9 kernel in Knoppix 3.7?

    This is a most interesting discussion.

    I have no interest in making a new CD. My interest is upgrading the 2.6.9 kernel in my Knoppix 3.7 HDD install.

    Since I don't want 3 kernels in the OS, I want to remove the (buggy) 2.6.9 kernel. The venerable 2.4.27 kernel will stay -- for now.

    I have downloaded the newest 2.6.15 kernel. How do I proceed?

    I have never done anything like this before.

    sakiZ

  4. #34
    Junior Member
    Join Date
    Jan 2006
    Location
    Boston, USA
    Posts
    4

    Why not extend the initrd image

    In order to fit the very large unionfs.ko module, it would seem reasonable to extend the initrd image, minirt.gz.


    Any thoughts on why this is good or bad for Knoppix?

  5. #35
    Member registered user
    Join Date
    Mar 2005
    Posts
    87

    Re: Why not extend the initrd image

    Quote Originally Posted by pracsec
    In order to fit the very large unionfs.ko module, it would seem reasonable to extend the initrd image, minirt.gz.


    Any thoughts on why this is good or bad for Knoppix?
    When originally working with new kernels and unionfs I just extended the initrd image. This was fine, but I was getting sick and tired of the uncompressing, loopback mounting, copying, unmounting, compressing cycle. It wasn't until I found the alternate initRAMFS structure, this is essentially dynamic in size in that it doesn't require you to allocate the space for all the files.

    Checkout my other HOWTO at http://www.knoppix.net/forum/viewtopic.php?t=22271

  6. #36
    Junior Member
    Join Date
    Jan 2006
    Location
    Boston, USA
    Posts
    4

    Re: Why not extend the initrd image

    Quote Originally Posted by firnsy
    Quote Originally Posted by pracsec
    In order to fit the very large unionfs.ko module, it would seem reasonable to extend the initrd image, minirt.gz.


    Any thoughts on why this is good or bad for Knoppix?
    When originally working with new kernels and unionfs I just extended the initrd image. This was fine, but I was getting sick and tired of the uncompressing, loopback mounting, copying, unmounting, compressing cycle. It wasn't until I found the alternate initRAMFS structure, this is essentially dynamic in size in that it doesn't require you to allocate the space for all the files.

    Checkout my other HOWTO at http://www.knoppix.net/forum/viewtopic.php?t=22271
    Firnsy, I agree - it is tiring. I'll give your HOWTO a try and report back. Also, I think I can add some of my experience to this HOWTO. I just need to gather up my notes and get them in usable form.

  7. #37
    Junior Member
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    1

    Kernel patches needed?

    Hello,

    I'm about to put Xen-patched kernel 2.6.15 on a Knoppix CD for out LiveCD router simulator project. I've compiled a kernel that starts just fine (booted the CD-Rom but chose to load kernel from harddrive, which is possible thanks til GRUB). However, just that it starts and everything *seems* alright doesn't mean it is

    As stated, the kernel is not knoppix-patched in any way. And that is because... I've never been into knoppix remastering until now. So, my questions are quite simple:

    Are there and knoppix-patches to kernel that I really should apply? Or is a debian-kernel (which Xen-kernel is derived from) just fine?

    I've heard something about patching the size of the kernel parameter (/proc/cmdline) because of the massive options list a Knoppix LiveCD can use. How about that?

    Oh, and while I'm on the topic. I've had some fights with unionfs.ko before I got it all right. The size of the file was somewhere around 5.4MB. Stripping it, or compiling without -g in Makefile, made it smaller (2,4MB). But when I tried to load it, I got "Invalid module format". So I just made my miniroot larger, and put the unstripped version there. It loads just fine.

  8. #38
    Member registered user
    Join Date
    Mar 2005
    Posts
    87

    Re: Kernel patches needed?

    Quote Originally Posted by doktorn
    Hello,

    I'm about to put Xen-patched kernel 2.6.15 on a Knoppix CD for out LiveCD router simulator project. I've compiled a kernel that starts just fine (booted the CD-Rom but chose to load kernel from harddrive, which is possible thanks til GRUB). However, just that it starts and everything *seems* alright doesn't mean it is

    As stated, the kernel is not knoppix-patched in any way. And that is because... I've never been into knoppix remastering until now. So, my questions are quite simple:

    Are there and knoppix-patches to kernel that I really should apply? Or is a debian-kernel (which Xen-kernel is derived from) just fine?

    I've heard something about patching the size of the kernel parameter (/proc/cmdline) because of the massive options list a Knoppix LiveCD can use. How about that?

    Oh, and while I'm on the topic. I've had some fights with unionfs.ko before I got it all right. The size of the file was somewhere around 5.4MB. Stripping it, or compiling without -g in Makefile, made it smaller (2,4MB). But when I tried to load it, I got "Invalid module format". So I just made my miniroot larger, and put the unstripped version there. It loads just fine.
    Essentially the only remaining knoppix patch, if you could call it that, would indeed be the extension of the command line from default 256 characters up to 512. To tell you the truth I don't remember to do that everytime I recompile a new kernel (currently using 2.6.15.2).

    It is true that unionfs can cause grief when stripped, although similarly to the kernel, I like to maintain cutting edge with this and the current snapshot of unionfs compiles to about 400k without debugging, so there are some definant improvements from that end.

  9. #39
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272

    Re: Kernel patches needed?

    Quote Originally Posted by firnsy
    Essentially the only remaining knoppix patch, if you could call it that, would indeed be the extension of the command line from default 256 characters up to 512. To tell you the truth I don't remember to do that everytime I recompile a new kernel (currently using 2.6.15.2).
    .
    I don't use that patch either because only very rarely (or never) you need more than 256 characters in command line in remastered version.

    I use also 2.6.15.2 kernel from kernel.org at this time and unionfs from Debian unstable. If someone has problems in compiling, my files can be used from http://tapsa.terae.net/linux/knoppix...inux-2.6.15.2/. There's also corrected minirt.gz file (usb2 patch) and instructions how to get initRAMFS unzipped (using it according firmsy's howto). I have translated 'Welcome to Knoppix-live-DVD' in finnish - so please, use yor own language and repack minirt.gz again.


    -tapsa-

  10. #40
    Junior Member
    Join Date
    Dec 2005
    Posts
    4
    So does anyone know why the Knoppix unionfs.ko module is only 77k in size and the ones all of us seem to be building are MUCH larger? (My most recent was 5.5Mb unstripped).

Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Howto repair a kernel panic?
    By sublime005la in forum Other Live CDs
    Replies: 1
    Last Post: 09-13-2006, 01:43 PM
  2. howto upgrade the kernel
    By waellinux in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-27-2005, 06:34 AM
  3. Howto update to kernel 2.6.0-test4
    By Henk Poley in forum Tips and Tricks
    Replies: 10
    Last Post: 01-29-2004, 08:04 AM
  4. Upgrading to a full Debian System. Howto??
    By soapee01 in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 05-15-2003, 10:08 PM
  5. New howto : Custom Knoppix Kernel
    By eadz in forum Customising & Remastering
    Replies: 1
    Last Post: 01-17-2003, 01: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
  •  


Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$197.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture

Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays

$159.99



Dell PowerEdge R720xd 26HDD 300gb  2.5-inch E5-2697  X 2CPU 384RAM 7.2 Tb HDD  picture

Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 

$180.00



Dell Poweredge R730xd 12 Bay LFF 2x SFF  2x E5-2680v3 2.5ghz H730p No Ram No HDD picture

Dell Poweredge R730xd 12 Bay LFF 2x SFF 2x E5-2680v3 2.5ghz H730p No Ram No HDD

$219.99



Dell PowerEdge R720 Server 3.5 LFF 128Gb, 32Tb SAS/120Gb SSD, 2x6c CPUs, Proxmox picture

Dell PowerEdge R720 Server 3.5 LFF 128Gb, 32Tb SAS/120Gb SSD, 2x6c CPUs, Proxmox

$520.00



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$226.00



DELL PowerEdge R730XD Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730XD Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45

$267.00



DELL R630 Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4x 1.2TB SAS 4xRJ45 picture

DELL R630 Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4x 1.2TB SAS 4xRJ45

$306.00