LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel Compile Guide for 2.6.0 (https://www.linuxquestions.org/questions/slackware-14/kernel-compile-guide-for-2-6-0-a-127095/)

ghostwalker 02-19-2004 07:56 AM

In lilo.conf change vga=? to vga=773

sneak 02-19-2004 08:25 AM

it already is.
also tried changing it to: vga = normal, same results.

c0rderr0y 02-19-2004 09:38 AM

hey bashrc2 thanks and what do u mean run lilo again before restarting sorry im a n00b

bashrc2 02-19-2004 06:14 PM

just type "lilo" to run lilo

then you will see if lilo is working properly without any error.

if it has an error, then you have to fix it and run lilo again until you get no errors.

[root@slackware /usr/src]# lilo
Added Slackware-9.1 *
Added Failsafe
Added Windows-XP
Added RedHat-9

that is a sample of lilo without error... have a nice day :)

casimir 02-19-2004 06:37 PM

does this work with 2.6.3 ??

c0rderr0y 02-19-2004 06:39 PM

okay thanks i will try this out (trying it for the 1000th time hahahaah)

bashrc2 02-19-2004 07:38 PM

sneak
 
check page 2...

are you using nvidia? if so, dont install nvidia instead install vesa only and nothing else.

try agpgart = M

also under the "device drivers" "graphics support"

support framebuffer = y
and framebuffer console support = y <-- not Module

then follow steps in page 2

good luck

ekoome 02-20-2004 12:44 AM

removing custom Kernel
 
How does one remove a custom kernel. I have installed 2.6.2 but want to upgrade to 2.6.3. (SLACK9.1)


Eric

snocked 02-20-2004 01:00 AM

Quote:

Originally posted by c0rderr0y
i've gotten everything to work perfectly except the last step make install the last few lines say:

Added Linux
Fatal: Duplicate Label "Linux"
make[1]: *** [install] Error 1
make: *** [install] Error 2

then when i restart it boots up my old kernel

Same problem here. Both labels are still only booting 2.4.22 kernel though.

I ran lilo after making the changes and no lilo errors.

Vincent_Vega 02-24-2004 02:05 AM

What are your entries for lilo? That error seems self-explanatory but I assume you don't have two "Linux" labels in your lilo.

DaOne 02-24-2004 11:36 AM

Quote:

Originally posted by snocked
Same problem here. Both labels are still only booting 2.4.22 kernel though.

I ran lilo after making the changes and no lilo errors.

Strange...

Where is Lilo installed? MBR, /root, etc. Are you using any other boot loaders such as Windows, etc.?

bashrc2 02-25-2004 11:26 PM

maybe your using grub? haha just kidding
you probably didnt copy bzImage or didnt config lilo correctly, I assume this is your lilo settings:
# new compile kernel
image = /boot/vmlinuz
root = /dev/hda1
label = linux
# old kernel
image = /boot/vmlinuz
root = /dev/hda1
label = linux

either you have 2 "label=linux" or 2 "image = /boot/vmlinuz"

anyway try this:

cd to /usr/src/linux or /usr/src/linux-2.6.3
cp arch/i386/boot/bzImage /boot/bzImage-2.6.3
cp System.map /boot/System.map
cd /boot
cp vmlinuz vmlinuz-2.4.bak
rm -f vmlinuz
ln -s bzImage-2.6.3 vmlinuz

then edit lilo.conf

# kernel 2.6.3
image = /boot/vmlinuz
root = /dev/hdax # /dev/hdax <-- change x to the number of the root partition
Label = linux-2.6.3
read-only

# old kernel 2.4.22
image = /boot/vmlinuz-2.4.bak
root = /dev/hdax # same as above
label = linux-2.4.22
read-only

then save and exit
run lilo
if you get no errors then reboot

*it took me 28 tries to compile 2.6.2 and only 1 try for 2.6.3. try all possible solutions maybe you forgot to "make mrproper", or maybe you forgot to "rm -Rf linux" before you "ln -s linux2.6 linux"*

Bebo 02-26-2004 01:21 AM

To avoid forgetting compile steps, I've written a script that does (almost) everything for me :) It's 234 lines in all it's niceness - anyone care to see it?

EDIT: Bah, no need to answer that - I'll post a link to it later today (don't have time now), instead of posting the whole script here.


Bebo 02-26-2004 09:39 AM

OK, here is my kernel compile script. It makes my life a bit easier :)

sneak 02-27-2004 04:57 AM

Re: sneak
 
Quote:

Originally posted by bashrc2
check page 2...

are you using nvidia? if so, dont install nvidia instead install vesa only and nothing else.

try agpgart = M

also under the "device drivers" "graphics support"

support framebuffer = y
and framebuffer console support = y <-- not Module

then follow steps in page 2

good luck

yeah I should have read more first, got it working now though. thx

whats the difference betwean make bzImage and just make btw, is image faster?


All times are GMT -5. The time now is 08:30 PM.