-
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
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-
-
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.
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
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
Originally Posted by
firnsy
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
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?
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?
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
Lenovo ThinkPad Laptop PC Computer 15.6" Core i5 8GB RAM 256GB SSD Windows 11
$198.50
15.6" Lenovo ThinkPad Laptop PC: Intel i5 16GB RAM 512 SSD Windows 11 Webcam
$227.99
Lenovo ThinkPad Laptop PC 15" FHD Core i5 16GB RAM 256GB SSD Windows 10 Pro HDMI
$239.99
Lenovo Ideapad 1 14" Laptop - Celeron N4020 with 4GB Memory - Intel UHD Graph...
$149.99
Lenovo ThinkPad 15.6" Core i5 Laptop PC Computer Windows 10 16GB RAM 256GB SSD
$204.42
Lenovo ThinkPad T540P 15.6" FHD Laptop PC Intel i5 8GB Ram 256GB SSD Fingerprint
$118.00
Lenovo Thinkpad X390 Yoga 13.3" 2in1 TOUCH i5-8365U 256GB SSD 8GB Win 10 Laptop
$199.99
Lenovo - Flex 5i Chromebook Plus Laptop with Google AI - 14" 2K Touch - Intel...
$349.00
Lenovo ThinkBook 14 Gen 6 AMD Laptop, 14" IPS 60Hz, Ryzen 5 7530U, 8GB, 256GB
$569.94
~OVERSTOCK~ 15.6 Lenovo ThinkPad Laptop: Intel i5 16GB RAM 1TB SSD Windows 10
$309.95