kernel 2.6.21 in DSL 3.3
Hi ya' all...
First and foremost I do apologize for being too stubborn as I've read stuffs regarding DSL 3.3 and kernel 2.6's and should one insist in using 2.6 kernel in DSL just opt for DSL-N and all those stuff...the thing is, I love using DSL 3.3 and the fact that I can compile in DSL and not in DSL-N...most recently though, I've wanted to start toying with Solaris,NetBSD and OpenBSD using vmware but it says in DSL 3.3 that it can't compile the vmware module as the kernel was compiled using gcc 2.59.x and the current gcc dsl's 3.x...and so I decided to just upgrade the kernel, here was what I did:
BTW,after the 2.6.21 I re-installed DSL 3.3 and upgraded the kernel to 2.4.34 and never had any issues, everything worked flawless...but still, I have quite some sleepless nights trying to google my way through the internet searching for suitable answers to my 2.6.21 kernel upgrade issue and I give up and this is the last stop for me (for now though, after I finish LFS 6.2 I'll get back to it, equipped with more Linux internal knowledge....hehehehehe)
Oh, going back to my original vmware issue, after the 2.4.34 upgrade, I tried installing vmware and it still had the same issue, kernel was compiled using gcc 2.59.x and I gave up and opted to just study and use Xen or Qemu...
Managed to make 2.6.20 work with DSL...just used the ubuntu kernel and voila! it worked, no issues at all after compiling it et al...Here was what I did...
P.S. FYI, I also added the reiser4patch and compiled the system with reiser4 support, formatted one partition as reiser4 (compressed) and copied whole partition to it, modified /etc/fstab in the new partition,compiled new grub with reiser4 and DSL was running in reiser4...for details please refer to this excellent website for further details: linuxhelp.150m.com ...
It has solved a few of my problems and I have learnt a lot.
It has solved a few of my problems and I have learnt a lot.
No make found in DSL for kernel upgrade
I have downloaded the kernel 188.8.131.52 and ihave DSL-N in my system. when i was trying to untar the kernel source. it is untarred fine but the size of the linux-kernel folder is just 560Bytes. I dont know why it is coming like this and when i typed make mrproper for kernel upgrade saying error as no make command found. I have seen in document that DSl-N uses gcc. But when i search for gcc in DSL, it is not found. I have installed DSL-N in SATA HDD using frugal-Grubinstall using LiveCD. should i install gcc package?
Experiences, updated instructions
I needed a (damn) small VM to install a proprietary java program, and then back up the whole VM, so I picked DSL.
First everything seemed OK, but when I run the program I got "FATAL: kernel too old" messages during running the Java program. I tried to fall back to an earlier Java version in the hope that it might solve the problem, but at least Java 5 was required, and I got the same problem even with JRE 1.5.0, so I needed to change to 2.6 kernel.
Then I found this thread about using DSL with 2.6 kernel. mhykgyver's instructions were detailed enough, so I started to follow that - with some alterations though.
I grabbed the latest 2.6 kernel (184.108.40.206) from www.kernel.org in the hope that it will also work. I was too naive! I ran into multiple problems trying to use that kernel, and through various sources I concluded that there are some changes in 2.6.23, which cause various problems with DSL.
Namely, the following problems:
- the kernel didn't even compile with the gcc that I downloaded for DSL (see later), (see http://www.linuxquestions.org/questi...kernel-752732/ ). The solution was, according to the tread, to disable the relocatable option: in "make menuconfig", "Processor type and features" -> at around the end of the list there is "Build a relocatable kernel".
- then when I finally managed to build it, it was not compatible with the grub in DSL. ("No setup signature found..."). It was mentioned at http://ramses.smeyers.be/varia/grub/ that it appears at upgrading to 2.6.23.
- after upgrading to grub2, it still did not work, had some trouble with ld.so, and it also appears at 2.6.23 (I have no link for this info, sorry).
So I downloaded kernel 2.6.22, and finally I could make it work.
Here are the updated instructions:
- If using DSL in VM it's worth to create a snapshot here (e.g. if something goes wrong or if you don't want to keep gcc on the filesystem). I also created and mounted another virtual disk for the temporary files (to download stuff there, to compile the kernel there, so my first virtual hard disk will not be bloated (I want to export that after the end to a .ova file). This should be done independent (not included in the snapshot, I am using VMware ESXi for virtualization). Or maybe it could be a network mount (didn't try that).
- Install gcc to DSL. I got problems using MyDSL (see the icon on the desktop) behind a HTTP proxy, but I found a DSL forum post (http://www.damnsmalllinux.org/f/topic-3-16-5782-5.html) and I was able to download the required .dsl packages manually:
- go to http://distro.ibiblio.org/pub/linux/...mnsmall/mydsl/,
- download gcc1.dsl or gcc1-with-libs.dsl (I chose the latter, it was only a bit bigger, but the former should be also OK for compiling the kernel, according to the descrtiption) and gnu-utils.dsl
- install them (I don't know where I found this tip):
sudo mydsl-load gnu-utils.dsl
sudo mydsl-load gcc1-with-libs.dsl
- download linux-2.6.22.tar.bz2 from http://www.kernel.org/pub/linux/kernel/v2.6/
- uncompress it (I just used: tar -jxvpf /dev/hda3/linux-source-2.6.22.tar.bz2)
- cd linux-2.6.22
- Then basically follow the kernel README:
- make mrproper (I guess it's not needed for the first run)
- make menuinstall (here I left everything on the default)
- At this stage you may revert the VM to the snapshot to undo the GCC installation (if you don't need that anymore). You may want to create another snapshot before doing this. Actually I didn't try it yet.
- make modules_install
- make install (I didn't understand why mhykgyver did this manually.)
- Edit /boot/grub/menu.lst. Here I just copied the entry "DSL" changed the title to "DSL with kernel 2.6.22" and changed the kernel from "/boot/linux24" to "/boot/vmlinuz-2.6.22"
- Reboot and have fun using the new kernel.
|All times are GMT -5. The time now is 04:16 AM.|