clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Dec. 13 2005,19:40 |
|
I'd be interested in seeing a kernel recompilation howto as well. It looks like it should be easy, but when I try it it doesn't work.
I see that in the download section there are sources so I got linux-2.4.31.tar.gz, dsl.config, and knoppix-kernel.patch
I installed three extensions: dsl-dpgk.dsl, gnu-utils.dsl, and gcc1.dsl. I made a source directory to put the files in, and downloaded libncurses5-dev and patch:
Code Sample | sudo su mkdir /usr/src chmod 775 /usr/src chown dsl /usr/src chgroup staff /usr/src chgrp staff /usr/src apt-get update apt-get install patch libncurses5-dev exit |
Then I copied linux-2.4.31.tar.gz, dsl.config, and knoppix-kernel.patch into /usr/src. I untared the linux package, copied the dsl configuration to the linux directory.
I had to modify the patch before I could use it. Has anyone else run into this? Should we change the patch to be a "dsl-2.0.patch?" I had to change two lines that had gcc-2.95 to plain old gcc to avoid error further on.
Code Sample | cd /usr/src tar -xzvf linux-2.4.31.tar.gz
beaver knoppix-kernel.patch # save as knoppix-kernel.patch2 # change gcc-2.95 to just gcc in 2 places and save the new file # I had to do this to avoid errors
patch -p1 -d linux-2.4.31 < knoppix-kernel.patch2 cp dsl.config linux-2.4.31/.config cd linux-2.4.31 |
then I ran the three parts of the makefile, which I though would result in a bzImage that would be identical to the one in dsl (linux24) but it was slightly larger. Why would that be?
Code Sample | make menuconfig make dep make bzImage
# now the new kernel bzImage is waiting in # /usr/src/linux-2.4.31/arch/i386/boot/bzImage |
then I made a newcd, replacing the old linux24 with a renamed bzImage but the cd didn't work (started, but couldn't write to ld.so.cache, write only file system).
Code Sample | cd /home/dsl mkdir newcd mkdir newcd/KNOPPIX cp -Rp /cdrom/boot newcd cp -Rp /cdrom/lost+found newcd cp -p /cdrom/index.html newcd cp /cdrom/KNOPPIX/KNOPPIX newcd/KNOPPIX sudo cp /ramdisk/usr/src/linux-2.4.31/arch/i386/boot/bzImage newcd/boot/isolinux/linux24 # note the kernel name is now linux24
# what follows is all on one line sudo mkisofs -no-pad -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o mydsl.iso newcd # line ends |
It would be nice to know how this can be done. I'd also recomend fixing the patch so that it actually works with dsl.
I also had problems using the libncurses5.dsl and libncurses5-dev.dsl packages. I had loaded libc.dsl and libc-dev.dsl and kernel sources.dsl first, created my /usr/src directory, and make menuconfig worked fine. After the patch it would fail because it couldn't find the libncurses5 libraries.
|