LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-31-2003, 10:49 AM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
how to compile and install 2.6.0??


ok.. im a retard.. I know there is probably 15000 threads about updating a kernel.. im a linux newb.. and I want to try my hands at upgrading a kernel...

Can someone point me to either a thread.. or a website that explains this as easily as possible.. I dont need the details of what i am doing.. or what make does.. etc... Just the commands i need and what order they need to happen in.. and what needs to be done first... ???

I checked out DaOne's thread.. will that work when compiling 2.6.0???

thanks:trey
 
Old 12-31-2003, 11:13 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Remember when using older compiling guides that make dep is no longer needed for 2.6 - Da Ones and Dr Ozz's are both worth checking out though...

some simplified steps

unpack the source to /usr/src

remove any existing "linux" symlink to an old tree - make a new symlink to your new tree and cd into it - then

(you can get other steps from Da Ones/Ozz's guide)

make mrproper
make xconfig
make clean
make bzImage
make modules
make modules_install

cp System.map /boot/System.map-2.6.0

cp arch/i386/boot/bzImage /boot/bzImage-2.6.0

then finally edit lilo.conf

kedit /etc/lilo.conf

Copy the previous entry for your distro then change 2 things the image path and the label name save it - then

/sbin/lilo

then reboot




Last edited by Skyline; 12-31-2003 at 11:26 AM.
 
Old 12-31-2003, 11:35 AM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
sweet.. I am doing that tonight.. Its my new years resolution to use Kernel 2.6.0 (im a geek )

thanks:trey
 
Old 12-31-2003, 11:39 AM   #4
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
trey,

Here is another thread I posted for 2.6. Basically, Skyline has it all spelled out for you, and you may want to stick with that. Or, you can combine methods or whatever works best for you. Either way, the end result is the same and your New Years Resolution is near.

http://www.linuxquestions.org/questi...hreadid=127095
 
Old 12-31-2003, 02:45 PM   #5
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
DaOne,
thanks for your great compiling guides. Last night I followed the steps you laid out and it worked great except for the fact that I didn't get to see any messages during boot (I think I found a post on fixing that) and two other problems - no sound and no ethernet.
I'm planning on recompiling (for the practice I guess). Two questions for you - since I've edited my lilo.conf already, can I just leave it and compile over top of the one I did last night? Secondly, if I end up with no ethernet, is there a way to track down the problem, or is there a way to have my current settings transfer into the new kernel?

Thanks for your help and your informative (educational) threads.

Happy New Year!
brian
 
Old 12-31-2003, 04:44 PM   #6
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by Vincent_Vega
DaOne,
thanks for your great compiling guides. Last night I followed the steps you laid out and it worked great except for the fact that I didn't get to see any messages during boot (I think I found a post on fixing that) and two other problems - no sound and no ethernet.
I'm planning on recompiling (for the practice I guess). Two questions for you - since I've edited my lilo.conf already, can I just leave it and compile over top of the one I did last night? Secondly, if I end up with no ethernet, is there a way to track down the problem, or is there a way to have my current settings transfer into the new kernel?

Thanks for your help and your informative (educational) threads.

Happy New Year!
brian
Happy New Year to you also!!!

Now, assuming that you are fixing the "no messages during boot" issue, what sound card and ethernet adapter are you using?

Lilo.conf...here goes...everytime you run make install (assuming this is how you do it), the vmlinuz.old is deleted, vmlinuz becomes vmlinuz.old, and the newly compiled kernel becomes vmlinuz. Make sense?

So...you run make install...

new kernel image becomes vmlinuz
existing vmlinuz becomes vmlinuz.old
existing vmlinuz goes bye bye.

IF you have a working kernel, you can copy the .config to the 2.6 source tree and when you run makemenuconfig, it will start with what you have already. Now that doesn't mean that the proper modules will be loaded...and as a matter of fact, that may be the only issue here. So besides your sound card type and ethernet adapter type, also please post the output of lsmod here. We'll go from there.
 
Old 12-31-2003, 05:28 PM   #7
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Ok, that all makes sense I think. So if I want to keep the .old kernel (2.4.22) I can rename it to something else and edit the lilo.conf? What about system.map - should I do anything there? I want to keep that kernel until I get a working 2.6.0 so replacing the current vmlinuz.old would ruin that plan for me.
I'll post the other info about my sound/ethernet/lsmod a little later on when I get to that computer. And if you've got a fix handy for the blank boot screen, feel free to tell me about it as I haven't tried anything yet. Thanks!
 
Old 12-31-2003, 06:04 PM   #8
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Here is something that I like to do...

Add entries in lilo.conf as you did for the .old kernel, and call it .safe

Then take the existing working kernel you have for 2.4.22, and copy it. The following is assuming that your vmlinuz.old kernel image is actually your 2.4.22 working kernel image.

cd /boot
cp vmlinuz.old vmlinuz.safe
cp System.old System.safe
/sbin/lilo

Now you'll have 3 entries in Lilo...
Linux
Linux-Old
Linux-Safe

You can then boot to Linux-Safe and it will never be affected or removed when you install the newly compiled kernels.
 
Old 12-31-2003, 06:12 PM   #9
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Also, here are some relevant parts of my config so that you can compare for your blank boot screen issue...

Graphics support
#
CONFIG_FB=y
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_VGA16=m
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_MATROX is not set
CONFIG_FB_RADEON=m
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
CONFIG_FB_VIRTUAL=m

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_PCI_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y


HTH...
 
Old 12-31-2003, 06:28 PM   #10
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
I guess instead of copying the System.old to System.safe, I should copy the target to the System.old link and create a new link?
 
Old 12-31-2003, 06:43 PM   #11
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
I would leave the links as is, and just create the new files by copying them. Keeps things clean and simple.
 
Old 12-31-2003, 06:54 PM   #12
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
OK, I copied that and just created a totally new System-ide..... file not using the link. I see now!
 
Old 01-01-2004, 08:09 AM   #13
Raptor Ramjet
Member
 
Registered: Apr 2003
Location: Under a rock
Distribution: Slackware "current" - Praise "Bob" !!!!
Posts: 92

Rep: Reputation: 15
Hello,

I too am an idiot newbie who's trying to compile a 2.6 kernel and, as I destoyed my system last time, I'm rather nervous about the whole process

Anyway, I've followed the advice in this thread (whilst also referencing DaOnes original kernel compiling guide) and whilst I've managed to backup my current kernel (so at least I can still boot from it) my newly compiled 2.6 kernel fails to boot with the following messages:

VFS: Cannot open root device "7201" or unknown-block (114,1)
Please append a correct "root=" boot option
Kernel Panic: VFS: unable to mount root fs on unknown-block (114,1)

At this point I should mention that my system is running from a RAID-1 array connected to a Highpoint 372 controller and when running "make xconfig" I made sure to specify that HPT372 support should be compiled directly into the kernel.

One thing I was wondering though is, once I've copied the new bzImage and System.map files into /boot should I update the "vmlinuz" and "system" symlinks ?

So if anyone has any ideas what I could try next I'd be most grateful ? It would perhaps be a help if I could somehow take a copy of the boot up messages from the unsuccesful boot but I'm not sure how to do this (as I get a kernel panic I obviously can't dmesg into a file...)

Any advice gratefully received as I would like to try this fancy new kernel !
 
Old 01-01-2004, 11:42 AM   #14
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
DaOne,
I've got some info here. For sound I've got Crystal Sound Fusion; for Ethernet I've got Realtek RTL8139/810x Family Fast Eth NIC.

lsmod:
apm
nfsd
exportfd
ipv6
usbmouse
hid
usblp
uhci_hdc
ohci_hcd
ehci_hcd
usbcore
ide_scsi
smbfs
coda
3c59x
ne2k_pci
8390
crc32
agpgart

Let me know what you think when you get a chance. If I check the lsmod for my other kernel (which has a lot more than that I think) and just modprobe the drivers, will things work?
Here's a question that might help me more in the long run - how do I figure out what driver my devices need without just asking someone else? Is there something I can do to figure this out alone?

Thanks very much for all of your help.
 
Old 01-01-2004, 01:48 PM   #15
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
For sound, I think it's cs46xx...
For ethernet...8139too.
Try to modprobe these and see if they load. Keep in mind that some module names have changed with 2.6.0.

You can remove the following module...

3c59x (this is for 3Com cards)

Not sure about some of the other modules. I usually just google it and see what I can find as far as modules and what they are for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't install g++ so I can't compile and install any programs musicmaniac414 Linux - Software 12 02-06-2008 09:31 PM
How do i compile and install a program?? crash_override_me Linux - Software 2 08-31-2005 07:47 AM
How do you compile/configure/install sonofamre Linux - Newbie 1 08-22-2005 09:32 AM
what compile programs to install? provkitir Debian 7 12-29-2004 09:33 AM
How to compile+install? menvem Mandriva 3 09-29-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration