Kernel compile
I was wondering that when you do menuconfig and select everything you want. What should you save the file as> Does it matter? Thanks for the help. The Linux book does not mention what to save it as.
|
Re: Kernel compile
you can save it as anything and anywhere you want. :) i think it defaults to saving itself in the current directory as .config (moving whatever .config is there to .config.old), but i don't think it matters as long as you remember where you saved it for when you want to load it again to reconfigure.
|
So what ever you name it has nothing about what you put into lilo
|
Ok I went ahead and complied everything edited my lilo.conf and I am unable to boot new kernel. Any ideas
|
maybe you could post your recompile method, i.e., the exact steps you took.
as far as i know, the .config file just tells the kernel how to compile (or, what to compile into the kernel). it doesn't really have anything to do with lilo. one question (sorry if it's a dumb one): did you run lilo after you edited the lilo.conf? i'm just asking b/c sometimes i forget to and then can't figure out what i did wrong. :p |
Ok I installed in the source.
then I made myself root # make mrproper # make menuconfig # make dep # make clean # make bzImage # make modules # mv /vmlinuz /vmlinuz.old # mv /boot/System.map /boot/System.map.old # cp System.map /boot/System.map Then I edited lilo.conf to -> image = /boot/vmlinuz root = /dev/hda3 label = Slackware read-only image = /boot/vmlinuz.old root = /dev/hda3 label = Slackware.old read-only Saved my changes and typed lilo it updated them and I then rebooted When I select the Slackware. old my computer restarts itself. But that is what I tried and unable to get loaded. |
When you select Slackware.old it reboots? Wierd.
|
doesn't moving vmlinuz to vmlinuz.old just rewrite the old kernel? i use DaOne's "change lilo first method" (with make/make install after make bzImage) but maybe that's why you can't boot the new one but only the old? what replaces vmlinuz after you move it?
(btw, you forgot to list make modules_install after make modules, but i'm guessing you did that.) >edit: oh, the computer *reboots* when you select slackware.old? that is weird. can you boot any kernel at all? if you can, immediately rename it vmlinuz_safe, then add that to lilo. then no matter what you do, you'll always be able to boot vmlinuz_safe, at least. you won't have to worry about vmlinuz.old getting rewritten with bumped versions. |
I followed the instructions on slackware site. I tried DaOne's way and that does not work either. But I will try again. If you have any advice it would be very helpful thank you
|
the first time i tried it, i rewrote my good kernel with a messed up one, and then had to recompile a bare.i kernel to start over. :p that might be your best option, though, if you can't get anything else to work. LMK and i'll try to help walk you through it. just don't give up, it's not really hard, it's just that the files get messed up sometime and you just have to get everything sorted out. :)
|
I've just done 2.4.22 on Slack9 - there might be something you can take here?
extract source cd into source directory via symlink make xconfig make dep make clean make bzImage make modules make modules_install cp System.map /boot/System.map-2.4.22 cp arch/i386/boot/bzImage /boot/bzImage-2.4.22 gedit /etc/lilo.conf copy previous Slack stanza - change image directive to image=/boot/bzImage-2.4.22 change label to what you want save as root /sbin/lilo |
Ok I just finished the modules_install. Now what do I have to do? And I wont give up
|
Ok I was doing what Skyline posted but I rebooted before trying to type lilo to update it and the new kernel loaded. I am going to finish what I was suppose to do and see if I get the same results. I will let you guys know
|
Ok it worked. One last question. I used swaret to get the kernel-source for the 2.4.22. Does anyone know the website. I went to kernel.org and downloaded that but when I unzip it it goes into home directory. How do I get it to unzip into /usr/src/
|
If youve got an extracted source directory in your home directory simply move it to /usr/src as root user in a shell:
mv /home/JROCK/linux-2.4.22 /usr/src (substitute JROCK for your username etc.) |
All times are GMT -5. The time now is 09:26 AM. |