LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-10-2005, 12:18 PM   #1
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Rep: Reputation: 15
Compiled kernel 2.6.12 - Some problems


Hi. I'm using Slackware 10.0. The original version came with kernel 2.4.26, and I just finished compiling kernel 2.6.12 and adding to lilo and starting the new slack.
There are a few problems though. I can't remember the exact messages during booting, but the two that caused trouble were:
Something about adding a fast USB device, tried addresses 2, 3, 4 and 5 before it fails and goes to the next task.
And something about using udev dynamic device system or something, that takes ~5 minutes to load.
Anything I can do about this? It's my first kernel compile, so I was a little giving with the stuff that should be loaded in the kernel, and not module, so I might have gone overboard with some things >_<

EDIT: I also have no internet access, and "lsmod" as root returns no modules loaded.

Last edited by RayQ; 07-10-2005 at 12:32 PM.
 
Old 07-10-2005, 12:47 PM   #2
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Dont worry, you will recompile a few times before you get it just right....

for starters:

make sure you have the udev package installed, and that you

set the options in
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not set

also make sure you have a directory /SYS in the root directory of your file system

as for the modules, did you compile everything into the kernel? if so, you will not see any modules, or maybe you forgot the step make modules && make modules_install ?

good luck

tobyl
 
Old 07-10-2005, 12:53 PM   #3
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
Hi tobyl,

Where would I find the file with
Quote:
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
?
I do have /sys in this computer, I think it was there already, at least I didnt make it during the install >_>
I followed these instructions.
It was strange, because make_modules and make_install both took less than 10 seconds in total, while the bzImage took around 15 minutes, and the HOWTO said the former would take longer.

Also, another problem, ALSA dies, couldn't get the exact error messages, but it said xx_xxxxx_xx and xx_xxxxxx_xxx was missing, ALSA: FATAL was the starter of the sentence.
 
Old 07-10-2005, 01:04 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
The file is ...../linux-2.6.12.2/.config

Is your /etc/rc.d/rc.udev executable ?
Is your /etc/rc.d/rc.hotplug executable ?
(do ls -l on those files and see if it is like : -rwxr-xr-x)
 
Old 07-10-2005, 01:09 PM   #5
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
-rwxr-xr-x 1 root root 1511 2005-04-03 13:10 rc.hotplug
-rwxr-xr-x 1 root root 1396 2004-06-14 03:59 rc.udev

And by ........./ do you mean /usr/src/linux-2.6.12/?
 
Old 07-10-2005, 01:12 PM   #6
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
okay, lets start.


Im used to use make menuconfig (not make xconfig or make gconfig), you dont need to have everything compiled in the kernel. If you havent any module in lsmod its probably that you compiled everything in the kernel, im not here to say how to connect in the internet (its not what you' re asking) so I will assume you did everything to check if its a config problem or module problem. If so, you may have not compiled the right Module for you Ethernet card chipset. This is the same for your snd card.

you can use some commands to help help you find the right module:
#lspci
#cat /proc/pci
#dmesg

okay. Now to find those lines you can try #grep -in <argument to search> /usr/src/linux/.config
Try this, with the lines that you want to ask to see if they are with Y or if they are Not set.
(dont include the =y in the argument string to search)
 
Old 07-10-2005, 01:14 PM   #7
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
I had done a dmesg | grep "Ether" and got this:
eth0: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller, 00:07:E9:94:B5:A8, IRQ 11.
 
Old 07-10-2005, 02:09 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
From the output of /sbin/ifconfig -a, at the second line
for eth0, do you see an IP (inet addr) ?
 
Old 07-10-2005, 02:25 PM   #9
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
sorry I should have made myself more clear. The .config file as keefaz (listen to this guy, he's always right on the money) says, is in the directory linux-2.6.12 from which you ran your'make'commands. most likely you were in /usr/src as most people compile their kernels here. The file is generated after you have gone through the menu options with xconfig or menuconfig etc., and you can use it to check what options you chose.

You compiled most stuff directly into the kernel, hence the short time it took at the modules stage. I would recommend reading the help that goes with each option as you make your choices. Many will be exactly the same as from your older kernel.I like using as many modules as I can get away with, but others prefer a more 'monolithic' kernel.

by the way, please check that /etc/fstab has something like

sysfs /sys sysfs defaults 0 0

in it, tobyl
 
Old 07-10-2005, 02:36 PM   #10
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
It doesn't have that, should I add it?

Also, I re-recompiled it just now, did everything exactly how it was before this new kernel, and still no dice >_< lsmod returns no modules. I used to have /etc/rc.d/rc.modules, now it talked about /etc/modprobe.conf (which used to be empty), might this be important?
 
Old 07-10-2005, 02:40 PM   #11
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
did you install the modules ?
does " modprobe -l " return anything.

egag
 
Old 07-10-2005, 02:45 PM   #12
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
yes, put it in.

modprobe.conf replaces modules.conf

/etc/rc.d/rc.modules should still exist, I believe, although hotplug handles most of the module loading now.
 
Old 07-10-2005, 02:55 PM   #13
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
Yep, around 1000 lines of modules @_@
Ok, I'll add it in. After adding it to fstab, reboot?
 
Old 07-10-2005, 02:57 PM   #14
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
yup
 
Old 07-10-2005, 03:16 PM   #15
RayQ
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
Gackt, now it says a the superblock or something is corrupted >.< It gave me a e2fsck -v -y hda2 but it just outputs the same thing. I also tried -b 8193 (I think that was the number) and it says the same message again XP
keefaz, nope, not eth0, only lo.
 
  


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
problems booting compiled 2.6.11 kernel monkeyman2000 Debian 7 05-28-2005 07:16 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 08:41 AM
problems with compiled kernel masood_gandhi Linux - Newbie 4 12-30-2004 12:04 PM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM
Compiled Kernel>little problems Akshito Linux - Software 0 08-18-2003 02:20 AM

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

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