LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-22-2005, 11:45 PM   #1
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Rep: Reputation: 30
2.6 Kernel Compile


I'm following this guide, but I have a couple questions:

1) What's the difference between compiling something into the kernel or as a module? Is one better than the other? Is one supposed to be used for certain aspects?

2) Is that a good guide? The only thing I've changed is instead of compiling in /usr/src I compiled into a different directory.

This is my first kernel compile so my main concern is with the include or module option.
 
Old 05-22-2005, 11:53 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
1) Let's talk about the kernel as a file. In Linux you compile the kernel into a file, you can, include support for things directly into that file (built-in) or split them in separate files (modules).
Not all things can go as modules, usually device drivers go as modules.
There's not such advantage in nowadays systems if you put them as built-in or modules, but it's always a good practice (and this makes a good system) to include support for the stuff you actually use as built-in, the thing that you might use as modules, and not compile things you won't touch.
Of course, the less things a kernel has the faster, but you may need to recompile it if you need to add something.

2) I haven't read it but as seeing it's from Slackbook project, I'm pretty sure it will be good
 
Old 05-23-2005, 09:45 AM   #3
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Thanks for the information, going to try the compile right now .
 
Old 05-23-2005, 12:26 PM   #4
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Just finished the compile and rebooted. I have 1 problem though .

The problem is I have no internet connection when booting into the new kernel. I'm guessing I'm missing something when I compiled, but not sure what.

Any idea of what I could of missed as I'm clueless ?

Since I missed an option or two, do I have to reconfigure the whole kernel or did it save the configuration?

Also how do I boot back into the old kernel? I tried changing the lilo.conf, but everytime I reboot it doesn't do what I tell it to.

I changed tried changing the default boot from Linux to Linux.old, but it still boots Linux. I tried changing the timeout so I can choose which one to boot, but it gives me no option and just boots Linux.
 
Old 05-23-2005, 12:44 PM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Check if your card is recognized, type ifconfig and see if you see it there. Also if you compiled your card driver as module, is it loaded?
The configuration is the .config file, note it's a "hidden" file, you can see it with ls -a and it's under the kernel source directory (/usr/src/linux-X.X.XX). So if you didn't deleted that file, you can simply run: make menuconfig or make xconfig and edit it.
To able to choose between kernels, you need at least these options in lilo.conf:
prompt
timeout = 100

By the way, I forgot to say in the other post, that critical drivers like the filesystem of your root directory is recommended to be compiled directly into your kernel or it won't be able to mount your root disk (you could use a init ram disk, but it's a more difficult task and not necessary).

Last edited by gbonvehi; 05-23-2005 at 12:52 PM.
 
Old 05-23-2005, 03:42 PM   #6
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 100
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
delay = 0
default = Linux.old
image = /boot/vmlinuz
  root = /dev/hda2
  label = Linux
  read-only
image = /boot/vmlinuz.old
  root = /dev/hda2
  label = Linux.old
  read-only
# Linux bootable partition config ends
I have the options in the lilo.conf, but it still doesn't give me any options. Weird thing is, when rebooting the computer at the intial lilo screen it shows the "Linux" and "Linux.old", but under that it shows in text my two options are "Linux" and "Windows". I never had any Windows OS for months, I installed Slack when there was no Windows. There is also no "Windows" option in the lilo.conf . . . I think that could be my problem, since those are the only two options and "Windows" is not viable it just boots into the 2.6 kernel.

Code:
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8825 (8.6 Kb)  TX bytes:8825 (8.6 Kb)
From the ifconfig output it doesn't look like the card is recognized. I noticed inet addr was 127.0.0.1 so I tried reconfuring it, but it didn't change anything with the ifconfig output.

Sorry I couldn't upload the files onto an FTP and link them. My family's Windows machine has no FTP client so I had to post the files as code .

My main concern right now is to get back into the 2.4 kernel so I can try recompiling the 2.6 kernel and try to get the card to work.
 
Old 05-23-2005, 03:49 PM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
could you post the output from 'lspci'?
 
Old 05-23-2005, 03:56 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try removing (or putting a # in front): delay=0
It seems your card is not detected and/or the correct module is not loaded.

Last edited by gbonvehi; 05-23-2005 at 03:59 PM.
 
Old 05-23-2005, 03:57 PM   #9
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Code:
lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] SiS 645xx (rev 11)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS]: Unknown device 0003
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO] (rev 25)
00:02.1 SMBus: Silicon Integrated Systems [SiS]: Unknown device 0016
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R350 [Radeon 9800]
01:00.1 Display controller: ATI Technologies Inc Radeon R350 [Radeon 9800] (Secondary)
From that I can see my card "00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)".

Also I was looking around with the lilo.conf and noticed the /boot/bood_message.txt was the one saying "Linux" and "Windows" as my two options, so I'm sure that isn't the problem about it not giving me a choice at boot.
 
Old 05-23-2005, 04:00 PM   #10
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Well for your network connection you'd need to compile in:

Device Drivers > Networking Support > Ethernet (10 or 100mbit) > SiS 900/7016 PCI Fast Ethernet Adapter support

As for the booting issue, did you run '/sbin/lilo' after editing /etc/lilo.conf?
(This updates/reinstalls Lilo with your changes)

Last edited by mdarby; 05-23-2005 at 04:02 PM.
 
Old 05-23-2005, 04:00 PM   #11
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by gbonvehi
Try removing (or putting a # in front): delay=0
Just did that, same thing . . . Another thing I just noticed:

When looking at lilo when the computer boots it states " timeout: -:-" . . . I have 100 specified in the config, though it reads it as 0 :S.

Thanks for all the help so far guys .
 
Old 05-23-2005, 04:03 PM   #12
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You need to compile the sis900 driver for it, note that if it's compiled into the kernel it won't be seen with lsmod.
Edit: mdarby pointed you in the right direction.

As for lilo, try running lilo with -v -v -v parameters (it will display more information, maybe you can spot something with that).
You could also try a new configuration generated with liloconf, sometimes starting again solves the problem.

Last edited by gbonvehi; 05-23-2005 at 04:06 PM.
 
Old 05-23-2005, 04:04 PM   #13
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Alright I'm recompiling the kernel right now. Looks like I didn't have my card compiled in or compiled as a module. Hopefully this will work, we'll see in 5 minutes.

If this works I won't have to figure out the lilo problem lol
 
Old 05-23-2005, 04:16 PM   #14
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Thank-you guys so much the sound and lilo is working .

I think the reason I didn't compile in the ethernet card was by accident. The card above it was checked, I might of checked the wrong one.

As for the lilo, it was because I wasn't running /sbin/lilo to update lilo.

Thanks a lot guys .

Though not that important I have another question:

When I boot I get "FATAL" errors concering OSS support. I didn't compile in OSS, and I don't plan to. Is there anyway to remove OSS from the boot?
 
Old 05-23-2005, 04:24 PM   #15
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
i think you'll need the oss-emulation modules.
to get them, just check them as modules, and make & install the modules.

egag
 
  


Reply



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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

All times are GMT -5. The time now is 06:41 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