-
Senior Member
registered user
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?
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
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.
![Cool](images/smilies/icon_cool.gif)
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-
-
Senior Member
registered user
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. ![Smile](images/smilies/icon_smile.gif)
sakiZ
-
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?
-
Re: Why not extend the initrd image
![Quote](images/misc/quote_icon.png)
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
-
Re: Why not extend the initrd image
![Quote](images/misc/quote_icon.png)
Originally Posted by
firnsy
![Quote](images/misc/quote_icon.png)
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.
-
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 ![Wink](images/smilies/icon_wink.gif)
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.
-
Re: Kernel patches needed?
![Quote](images/misc/quote_icon.png)
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.
-
Senior Member
registered user
Re: Kernel patches needed?
![Quote](images/misc/quote_icon.png)
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-
-
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).
Similar Threads
-
By sublime005la in forum Other Live CDs
Replies: 1
Last Post: 09-13-2006, 01:43 PM
-
By waellinux in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-27-2005, 06:34 AM
-
By Henk Poley in forum Tips and Tricks
Replies: 10
Last Post: 01-29-2004, 08:04 AM
-
By soapee01 in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 05-15-2003, 10:08 PM
-
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
-
Forum Rules
![Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture](/store/img/g/yKsAAOSwNPJlqMdQ/s-l225/Fanxiang-SSD-4TB-2TB-1TB-PS5-SSD-M-2-NVME-SSD-7300.jpg)
Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive
$269.99
![Kingshark M.2 2242 2280 SSD 128GB 256GB 512GB 1TB Internal Solid State Drive Lot picture](/store/img/g/8ncAAOSw5L5iB3iu/s-l225/Kingshark-M-2-2242-2280-SSD-128GB-256GB-512GB-1TB-.jpg)
Kingshark M.2 2242 2280 SSD 128GB 256GB 512GB 1TB Internal Solid State Drive Lot
$179.99
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$188.99
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/g/pJUAAOSwFaRkhuj-/s-l225/Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$119.99
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
![Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot picture](/store/img/g/4A0AAOSw4aRlCzo8/s-l225/Patriot-P300-128G-256GB-512GB-1TB-2TB-M-2-2280-PCI.jpg)
Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot
$16.99
![1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk picture](/store/img/g/ADkAAOSwHoFmfNEh/s-l225/1080PRO-4TB-SSD-Solid-State-Hard-Drive-Ngff-M-2-SS.jpg)
1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk
$28.99
![Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006 picture](/store/img/g/sC4AAOSwvtdmGzk0/s-l225/Western-Digital-256GB-M-2-PCIe-NVMe-SSD-PC-SN740-M.jpg)
Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006
$16.99
![SAMSUNG 2.5 in SSD 870 EVO 2TB 1TB 500 GB 250 GB SATA III Solid State Drive lot picture](/store/img/g/8dwAAOSwy6dmeTP5/s-l225/SAMSUNG-2-5-in-SSD-870-EVO-2TB-1TB-500-GB-250-GB-S.jpg)
SAMSUNG 2.5 in SSD 870 EVO 2TB 1TB 500 GB 250 GB SATA III Solid State Drive lot
$149.13
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/g/vt0AAOSwAgVls0tY/s-l225/Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99