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
  •  


Intel Core i7-13700K - Core i7 13th Gen Raptor Lake 16-Core (8P+8E) P-core Base picture

Intel Core i7-13700K - Core i7 13th Gen Raptor Lake 16-Core (8P+8E) P-core Base

$219.90



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$214.99



AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads picture

AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads

$309.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$309.99



Intel Core i5-8400T SR3X6 1.70GHz 6 Core 6 Threads LGA1151 CPU Processor TESTED picture

Intel Core i5-8400T SR3X6 1.70GHz 6 Core 6 Threads LGA1151 CPU Processor TESTED

$39.99



Intel Core I7-3770 Processor (3.40GHz, 4 Cores, Socket H2 LGA-1155) - SR0PK picture

Intel Core I7-3770 Processor (3.40GHz, 4 Cores, Socket H2 LGA-1155) - SR0PK

$24.97



AMD Ryzen 5 7600x Processor (5.3 GHz, 6 Cores, LGA 1718/Socket AM5) NEW OEM Tray picture

AMD Ryzen 5 7600x Processor (5.3 GHz, 6 Cores, LGA 1718/Socket AM5) NEW OEM Tray

$169.98



INTEL CORE I5-9600K 3.7GHZ SOCKET LGA1151 6-CORE DESKTOP CPU PROCESSOR SRELU picture

INTEL CORE I5-9600K 3.7GHZ SOCKET LGA1151 6-CORE DESKTOP CPU PROCESSOR SRELU

$55.00



Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU Proc... picture

Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU Proc...

$269.99



Intel Core i9-11900K Processor (5.3 GHz, 8 Cores, Socket FCLGA1200) Box  -... picture

Intel Core i9-11900K Processor (5.3 GHz, 8 Cores, Socket FCLGA1200) Box -...

$200.00