LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-09-2004, 04:54 PM   #1
Bigg Mike
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
Arrow Compiling Modules for 2.6.6 kernel!


As my first post ever, I will reqest insight into compiling the 2.6.6 kernel.
It probably doesn't matter, but my distro is Slackware Linux 9.1
I am a relative newbie, and I probably should have gotten more expierience building kernels before I took on 2.6, but I cannot regret the past.

I did everything that I was told to do.
I downloaded source and tarballed it in /usr/src/
I cd linux-2.6.6
#make mrproper
#make clean
#make menuconfig
I screw around in menuconfig, being shure to check "load modules at startup"
#make bzImage
after a short while outputs
"blah blah bzImage is ready."
#make modules
after about 10 seconds, outputs only 3 lines of text:

make[1]: 'arch/i386/kernel/asm-offsets.s' is up to date.
Building modules, stage 2.
MODPOST

#make modules_install
4 lines in 5 seconds this time:
INSTALL drivers/net/dummy.ko
INSTALL drivers/char/drm/radeon.ko
INSTALL drivers/char/agp/via-agp.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.6; fi

everything after that goes smoothly so LILO actively boots my new kernel.

The Kicker here: 2.6.6 boots fine, but is pretty useless given that lsmod reveals no modules ever loaded.

What's going on here?
 
Old 06-09-2004, 05:08 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
kernel 2.6 compiling slightly differs from 2.4 series.
the procedure is
make xconfig or menuconfig (i strongly suggest xconfig)
make bzImage
make modules
make modules_install

"make mrproper" is not necessary at the first compiling attempt. Use only if you did a previous attempt to compile the kernel from the same sources.

Basically the number of steps necessary to compile the kernel have been reduced.

If you did a Slack full installation you have everything necessary to properly compile the new series of kernels.
Ciao
 
Old 06-09-2004, 05:42 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You don't need to do make bzImage and make modules with a 2.6 kernel

cd /usr/src/linux
make mrproper
cp /path/to/config .config # copy in an old .config to start from
make menuconfig
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz #copy the new kernel where your bootloader can find it
cp System.map /boot

...and god bless all who sail in her.
 
Old 06-09-2004, 06:04 PM   #4
Bigg Mike
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 17

Original Poster
Rep: Reputation: 0
I tried everything that you said. There is no change. The kernel compiles fine. It is just that I don't think that my modules are compiling and here are my reasons:
1) Compiling all the modules, according to other references, should take far longer than 10 seconds
2) Whenever it boots up, it has loaded no modules unless I modprobe.
 
Old 06-09-2004, 06:38 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
Quote:
2) Whenever it boots up, it has loaded no modules unless I modprobe
Well it must have built your modules then, because if you can modprobe them without an error then they obviously exist.
 
Old 06-09-2004, 06:59 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Did you tick the option to automatically load modules on the Loadable module support menu
[*] Automatic kernel module loading
 
Old 06-09-2004, 08:43 PM   #7
Bigg Mike
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 17

Original Poster
Rep: Reputation: 0
I made careful sure to have that checked the first time, but I made careful sure again with no avail.

Update: Modprobe only seems to work with the 3 it listed during compilation:
dummy
via_agp
radeon

It cannot find any other modules

These modules are probably from my screwing around trying every known method of getting DRI to work. There must be a file with these listed in some directory
 
Old 06-09-2004, 08:45 PM   #8
Bigg Mike
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 17

Original Poster
Rep: Reputation: 0
A sign that maybe I should just start over with a fresh install of Slackware.
 
Old 06-09-2004, 08:49 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
Quote:
A sign that maybe I should just start over with a fresh install of Slackware.
Whoa man! No need for that, just recompile the kernel and make sure you select all the modules you need this time.
 
Old 06-09-2004, 09:04 PM   #10
Bigg Mike
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 17

Original Poster
Rep: Reputation: 0
HA! I'll do a fresh install anyway! There is nothing there that I will miss.
 
  


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
compiling kernel modules axr0284 Programming 2 11-26-2005 03:08 PM
compiling installing kernel modules Wordan Linux - Software 3 11-02-2005 07:22 AM
Modules in Kernel Compiling SlackwareInAZ Slackware 1 07-29-2005 05:10 AM
need some help in Compiling Kernel modules bharat83 Suse/Novell 1 01-07-2005 07:21 AM
Compiling kernel modules? jrjarrett Linux - Software 0 09-09-2003 10:24 AM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration