Results 1 to 4 of 4

Thread: Rebuilding Kernel in 5.1.: Knoppix patch?

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    4

    Rebuilding Kernel in 5.1.: Knoppix patch?

    I 've managed to build a kernel and put it in a Remastered iso.
    But there are errors and it drops to a limited shell.
    I think I need more than the Kernel source form Kernel.org and the old config file.

    http://www.knoppix.net/wiki/Knoppix_Custom_Kernel_Howto

    Talks about a Knoppix patch but I cannot find this for the 2.6 Kernel.
    I think I need this. Is it still required?
    Does anyone know what needs to be included to get this to work?

    I tried it again more carfully. Same problem.
    This is the Boot messages:
    intel_rng: FWH not detected

    Welcome to the KNOPPIX live GNU/Linux on CD!


    Running Linux Kernel 2.6.19.
    Total Memory available: 1026940kB, Memory free: 990732kB
    Allowing slow USB-devices some more time to register...OK.
    Enabling DMA acceleration for: hda [Maxtor 6E040L0]
    Enabling DMA acceleration for: hdc [CDU5211]
    Enabling DMA acceleration for: hdd [IOMEGA ZIP 250 ATAPI]
    Can't find KNOPPIX filesystem, sorry.
    Dropping you to a (very limited) shell.
    Press reset button to quit.

    Additional builtin commands available:
    cat mount umount
    insmod rmmod lsmod

    knoppix# _


    That WIKI Page also needs updating for Knoppix 5.1. Should I do this as I go along? I don't want to trash the page for people still using the older versions of knoppix.

    Thanks,
    SC

  2. #2
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282
    According to the boot messages, your remaster is still using 2.6.19

    When you were working in the chroot environment did you recreate a symlink to vmlinuz?
    E.g. ln -s vmlinuz-2.6.23 vmlinuz (or whatever you called your kernel) and a symlink
    to the initial ramdisk.

    Regarding the remastering wiki, I've just spent 2 days remastering a knoppix 5.11 disk.
    I have also found some errors which I will be emailing to the page maintainer.

    The most noticeable error for me was when testing the kde environment as user 'knoppix'
    the X window system would not start.
    In the chroot env I had to run
    chmod 1777 /tmp/.X11-unix
    to give write permission.

    The other most dominating error is that mkisofs is now a symlink to genisofs. The man page
    for genisosys claims that it accepts options "1" for full 31 character iso9660 filenames.

    However on running the final command I got unrecognised option "1", also tried with "I" and
    got the same message.
    Dont know if this is a typo by me, a problem with genisofs in knoppix 5.11 or a package bug,
    however omitting 1 completely worked for me.

    What Id suggest is remaster a knoppix 5.11 cd without modifying the kernel (apologies if you
    have already done this) then add your updated kernel.
    HTH

  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    4

    Symlink to initial ramdisk?

    Thanks for helping hal8000, I'm in a pretty bad hole here.

    Where does the Symlink to the initial ram disk go?

    I have managed to remaster before. It works as long as I don't try a custom kernel.

    What I did was download the code for the kernel 2.6.19 since its the same as the knoppix 5.1 cd.
    Then I used the config file from /boot but modified to recognize more serial ports.
    I didn't apply any patches at all. Just the oldconfig. I compiled the kernel and modules. I placed the new kernel in source/KNOPPIX/boot and in master/boot/isolinux/ except renamed "linux". in minirt.gz I replaced all the modules with the freshly compiled ones.

    I get the feeling that I'm just poking at random here. Do you know any good books or other references on doing this?

  4. #4
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282
    OK, I too have included an updated 2.6.22 kernel to my remastered ISO and..... it doesn't work (still loads but uses kernel 2.6.19).
    I've dug a little more deeply and believe I have the answer.

    I'm remastering using the wiki process, so boot from a live cd, expand the contents of the cd to a free partition create source and master, work on the cloop, make changes, create a cloop again and then an iso.

    The contents of the /cdrom/boot/isolinux are the answer.

    These are isolinux and boot directories are copied in the master location, it is the file isolinux.cfg that controls the boot process.
    AFAICT this file contains links to the booting process (default) boots the standard kernel expert includes alternate options.

    To use your new kernel back up the file called linux in the /boot/isolinux folder and place your kernel here.
    The initial ramdisk, there is a file called minirt.gz when I expanded this it looks as though it might be an initrd, but then reading through the knoppix
    wiki this is a compressed ext2 filesystem.

    I have not yet tried this myself, but one way around this is to compile a kernel with support for your root filesystem and any other devices that need
    starting at boot time e.g. scsi drivers.
    Its not an acceptable solution if you want to try out different hardware but may work. I will post back in a few days if I get this to work myself.

    Books, I've searched on Amazon and found knoppix hacks (I've ordered it for myself) and the reviews look pretty good.

Similar Threads

  1. Trouble with knoppix-kernel.patch <-> any Kernel
    By -Hawkeye- in forum Customising & Remastering
    Replies: 1
    Last Post: 12-07-2005, 11:50 AM
  2. Patch on Kernel of Knoppix
    By Frunktz in forum General Support
    Replies: 1
    Last Post: 07-27-2005, 04:08 PM
  3. Would someone please patch the knoppix kernel with i2c?
    By arkaine23 in forum Customising & Remastering
    Replies: 3
    Last Post: 08-20-2003, 02:11 PM
  4. Knoppix-kernel.patch
    By ozfrog in forum Customising & Remastering
    Replies: 4
    Last Post: 06-21-2003, 04:30 PM
  5. Where's the KNOPPIX kernel patch
    By henriquegobbi in forum Customising & Remastering
    Replies: 0
    Last Post: 03-19-2003, 02:27 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
  •  


WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5

Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$169.99



Western Digital 4TB WD Purple Surveillance HDD, Internal Hard Drive - WD43PURZ picture

Western Digital 4TB WD Purple Surveillance HDD, Internal Hard Drive - WD43PURZ

$96.99



Dell PowerEdge R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES picture

Dell PowerEdge R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES

$2630.00



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$89.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$69.99



2TB 3.5

2TB 3.5" HDD Sata Mixed Brands hard drive Tested Formatted

$18.99



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$209.99



Seagate Barracuda ST3000DM001 3TB 7200 RPM 64MB 6.0Gbs SATA 3.5

Seagate Barracuda ST3000DM001 3TB 7200 RPM 64MB 6.0Gbs SATA 3.5" Internal HDD

$25.89