All,
I installed Kubuntu 6.06 Drapper Drake from the .iso file I downloaded from the Kubuntu website.
Installation went smooth and the system is running fine.
I'm currently studying a book about kernel modules (I'm quite new in this matter) and one of the exercises was to download a recent kernel from kernel.org and start to recompile the kernel. I downloaded the latest kernel release: 2.6.17.7.
To get the compilation go through took me some time, but in the end I was able to compile both kernel and modules.
Installing the modules was no problem too, everything seemed to work fine.
But when I tried to do a make install for the kernel, I got the following warning:
What is wrong with the syntax in line 20 of the script /usr/sbin/mkboot? I'm not an expert in scripting yet, so this is Latin to me...
Since GRUB is used on my system, I did what was asked here above and I've changed the file 'menu.lst', needed by GRUB when starting up the kernel.
I've added the following lines in front of the original first section (like this, my section became the default selection):
As you can see, I've also created an initrd.img file, using the following command (mkinitrd is not available on Kubuntu 6.06 apparently...):
This command was executed from within the /usr/src/linux directory.
The result was indeed a file called initrd.img-2.6.17.7_GVCKERNEL, but I'm not sure if this is correct. Can someone confirm this?
Next to this, I did a reboot of the system.
Rebooting went fine, but I didn't see the graphical Kubuntu loading session anymore. The screen remained black for the whole startup session (the time needed to boot up the kernel and to launch KDE), but at the end I got the graphical login view of KDE again.
Also, when rebooting the new kernel, I don't see the graphical Kubuntu shutdown session, again only a black screen.
So, once the kernel is up and running, I get Kubuntu working fine and I have the correct kernel loaded too (so, mine). Checked via "uname -r".
But why do I not have the graphical startup and shutdown session and is my screen remaining black for that period? Has this something to do with the "make install" that failed because of the error in the file /usr/sbin/mkboot? Or is it because my initrd.img file is created wrongly?
Or because of some other reason?
Any help much appreciated.
Best rgds,
--Geert
I installed Kubuntu 6.06 Drapper Drake from the .iso file I downloaded from the Kubuntu website.
Installation went smooth and the system is running fine.
I'm currently studying a book about kernel modules (I'm quite new in this matter) and one of the exercises was to download a recent kernel from kernel.org and start to recompile the kernel. I downloaded the latest kernel release: 2.6.17.7.
To get the compilation go through took me some time, but in the end I was able to compile both kernel and modules.
Installing the modules was no problem too, everything seemed to work fine.
But when I tried to do a make install for the kernel, I got the following warning:
Code:
geertvc@kubuntudt606:/usr/src/linux$ sudo make install sh /usr/src/linux-2.6.17.7/arch/i386/boot/install.sh 2.6.17.7_GVCKERNEL arch/i386/boot/bzImage System.map "/boot" /usr/sbin/mkboot: line 20: [: proc: unary operator expected In order to use the new kernel image you have just installed, you will need to reboot the machine. First, however, you will need to either make a bootable floppy diskette, re-run LILO, or have GRUB installed. Checking for ELILO...No GRUB is installed. To automatically switch to new kernels, point your default entry in menu.lst to /boot/vmlinuz-2.6.17.7_GVCKERNEL
Since GRUB is used on my system, I did what was asked here above and I've changed the file 'menu.lst', needed by GRUB when starting up the kernel.
I've added the following lines in front of the original first section (like this, my section became the default selection):
Code:
## ## End Default Options ## title Kubuntu, kernel 2.6.17.7 (GVCKERNEL) color magenta/blue black/magenta root (hd0,0) kernel /vmlinuz-2.6.17.7_GVCKERNEL root=/dev/sda3 ro quiet splash initrd /initrd.img-2.6.17.7_GVCKERNEL savedefault boot
Code:
mkinitramfs -o /boot/initrd.img-2.6.17.7_GVCKERNEL 2.6.17.7_GVCKERNEL
The result was indeed a file called initrd.img-2.6.17.7_GVCKERNEL, but I'm not sure if this is correct. Can someone confirm this?
Next to this, I did a reboot of the system.
Rebooting went fine, but I didn't see the graphical Kubuntu loading session anymore. The screen remained black for the whole startup session (the time needed to boot up the kernel and to launch KDE), but at the end I got the graphical login view of KDE again.
Also, when rebooting the new kernel, I don't see the graphical Kubuntu shutdown session, again only a black screen.
So, once the kernel is up and running, I get Kubuntu working fine and I have the correct kernel loaded too (so, mine). Checked via "uname -r".
But why do I not have the graphical startup and shutdown session and is my screen remaining black for that period? Has this something to do with the "make install" that failed because of the error in the file /usr/sbin/mkboot? Or is it because my initrd.img file is created wrongly?
Or because of some other reason?
Any help much appreciated.
Best rgds,
--Geert
Comment