Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Am running Fedora core 3, Kernel 2.6.9-1667. Want to upgrade to Kernel 2.6.17.
The Errors that i get are after i run make_modules install are the following:
a) Cant find /lib/modules/2.6.17
b) mkinitrd failed Error 1....
What am i missing here?
The commands am using are as follows
a) tar xvjf linux-2.6.17.tar.bz2 (To Unpack Kernel)
b) cd /usr/src/linux-2.6.17
c) make menuconfig
d) make_modules_install (Errors Occuring at this phase)
Thanx for any help, that will point in the right direction.
Hi tinkster
i also run the make command. its only that i forgot to include it here.
what else could i be missing, or should i do to have my new kernel up and running.
I'm confused as to how/why "make modules_install" should be complaining
about missing modules, or failing on mkinitrd ... are you sure your list
up there is complete?
I got the commands correct this time. I was missing the (_) on the make modules_install command. Everything works out fine and mkinitrd completes successfully.
Howeever upon rebooting the box, i get the follwing error message.
Error loading policy...
Kernel panic error. Attempting to Kill init
I cant log into my new 2.6.17 Kernel.
What am i missing here?
I did the following sequence and ended successfully booting mine
go to /usr/src/<ur-linux-src>/
1. make menuconfig
2. make bzImage
3. make modules
4. make modules_install
5. mkinitrd /boot/initrd-2.6.17.img 2.6.17
6. From /usr/src/<kernel-src>/linux directory, copy the kernel and System.map file to /boot
7. Add the following to grub (i have grub) (the second line depends on the partition u r in)
title Test Kernel (2.6.17)
root (hd0,1)
kernel /boot/bzImage-2.6.17 ro root=LABEL=/
initrd /boot/initrd-2.6.17.img
Hi Joe,
Thanx for the direction. I will run the commands as per your instruction and see the results.
One Question though, i read that the 2.6 kernel dont need the following commands
a) make modules
b) make bzImage
The make modules_install seems to create the necessary files and kernel image.
What's the right direction? The Kernel errors seem to be a big issue with most users.
That's correct - 2.6 doesn't require those two steps.
The make creates the files, make modules_install merely
copies them across to /lib/modules/<VERSION>
Can you remember the lines before the policy and the kernel
panic, how much output (and what) is there beforehand? As a
guide to avoiding these things: did you copy the .config file
of your current to the new kernel source directory? It always
helps to use the existing (working) kernel as a template.
{Error Loading Module Policy.}
The Kernel is uncompressed succesfully. What .config am i supposed to copy, and where is it located and where do i paste it???
after a frantic search for a solution to the Kernel Error, on compiliation i realize a couple of things.
a) typo's are bad (even a simple underscore can result in sleepless nights.. so make sure you type the command correctly)
b) linux is such a powerfull system only if u can use it well
now i finally manage to get my new kernel 2.6.17 to work. Solution was to pass the following kernel option
enforcing=0
finanlly i log in to my new kernel and my 3-Com card finally work.
one thing though is that my SElinux is disabled. So my solution is half baked as i have something else that is entiely broken, my SElinux.
Thanx for the help, especailly to Tink for pointing me to the right direction.
after a frantic search for a solution to the Kernel Error, on compiliation i realize a couple of things.
a) typo's are bad (even a simple underscore can result in sleepless nights.. so make sure you type the command correctly)
b) linux is such a powerfull system only if u can use it well
now i finally manage to get my new kernel 2.6.17 to work. Solution was to pass the following kernel option
enforcing=0
finanlly i log in to my new kernel and my 3-Com card finally work.
one thing though is that my SElinux is disabled. So my solution is half baked as i have something else that is entiely broken, my SElinux.
Thanx for the help, especailly to Tink for pointing me to the right direction.
{Error Loading Module Policy.}
The Kernel is uncompressed succesfully. What .config am i supposed to copy, and where is it located and where do i paste it???
Thanx
Commonly it will live in /boot, with the kernel and the System.map.
Look for a file called config-<kernel-version> (or similar) and copy
it to the root of your new kernels source-tree as .config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.