FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have compiled kernel in Debian boxes many times, but still I don't get howto do it in FC2 by the right way. Since 2.6.x kernels dont need make dep etc.
The machine is now in that condition how the installer lefts it (ookay i have updatet packages to newer versions) and i have downloaded the kernel source to /usr/src and unzipped it /usr/src/linux-2.6.8.1 directory and after that i have
run command
Code:
make menuconfig
and choosed what i need and after that compiled the kernel & modules whit no errors
Code:
make bzImage && make modules && make modules_install
So now I have the bzImage and System.map (and vmlinuz old is 1.3M and new is 3.3M?) files waiting for.. what?
Do I copy & link them like:
So can somebody give me good hints howto continue after compiling, I'v looked many pages but every page says so different things ? I'm totally confused....
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176
Rep:
Just copy the bzImage file from the source directory into the boot directory, and name it as vmlinuz-version-name. you also have to do a mkinitrd /boot/initrd-version-name.img version-name to create the initrd image file. Don't worry about the old initrd and vmlinuz files. They don't take up that much space. Add the vmlinuz and initrd files you created to your grub.conf file. You should be all set.
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176
Rep:
You seem to be compiling kernel version 2.6.8-1. For this, type the following command: "mkinitrd /boot/initrd-2.6.8-1.img 2.6.8-1". That should produce the requisite initrd file. Your vmlinuz should be named as vmlinuz-2.6.8-1.
Originally posted by cincindie You seem to be compiling kernel version 2.6.8-1. For this, type the following command: "mkinitrd /boot/initrd-2.6.8-1.img 2.6.8-1". That should produce the requisite initrd file. Your vmlinuz should be named as vmlinuz-2.6.8-1.
OK just one question more (hope just one), i typed accidentally wrong one point my first message.. I unzipped the new kernel to (default)
/usr/src/linux-2.6.8.1 not /usr/src/linux-2.6.8-1 directory so the vmlinuz prolly sould named anyway vmlinuz-2.6.8.1
Code:
mv arch/i386/boot/bzImage /boot/vmlinuz-2.6.8.1
or ?
I'm so nervous because the machine is "somewhere" and my job is "just upgrade it" :P
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176
Rep:
No. It depends on the version mentioned in the first four lines of your Makefile in your linux source directory (in your case /usr/src/linux-2.6.8.1/Makefile). In your case, the version is 2, Patchlevel is 6, Sublevel is 8 and Extraversion is -1. Hence, it should be initrd-2.6.8-1.img. vmlinuz can be named anything as long as you refer to the proper image file in your grub.conf. For consistency sake, I'd name it vmlinuz-2.6.8-1 too.
Originally posted by cincindie No. It depends on the version mentioned in the first four lines of your Makefile in your linux source directory (in your case /usr/src/linux-2.6.8.1/Makefile). In your case, the version is 2, Patchlevel is 6, Sublevel is 8 and Extraversion is -1. Hence, it should be initrd-2.6.8-1.img. vmlinuz can be named anything as long as you refer to the proper image file in your grub.conf. For consistency sake, I'd name it vmlinuz-2.6.8-1 too.
No module ata_piix found for kernel 2.6.8.1, aborting.
no matter if I chooce it as module or * or without ??
lspci says
....
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
....
So I think I need that module but how??
In menuconfig
Device Drivers --> ATA/ATAPI/MFM/RLL support --->
< > Intel PIIXn chipsets support is this the problem entry ??
Current lsmod says
...
ata_piix 9348 0
...
after running make bzImage && make modules && make modules_install
it says
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.8.1; fi
what that means?
Like I before say Makefile's fourth line says .1 not -1 ( EXTRAVERSION = .1 )
so should I name bzImage vmlinuz-2.6.8.1 and also run initrd like i typed this message before....?
There is an alternative method, that won't be suitable for every environment - but as long as you are using an RPM based distro, you might look into taking advantage of your ability to compile and package your kernel with RPM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.