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 04-02-2010, 09:28 PM   #1
Unit03
LQ Newbie
 
Registered: Apr 2010
Location: Poland
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
MODPOST 0 modules while compiling kernel


First of all, hello world and everybody.

Since the polish Slackware forum couldn't help me with this issue i've had for pretty long time, i decided to take chances here. It may, or may not be Slackware-related (didn't try another distro for serious usage since hell of time), so sorry if it turns out more general problem and i'm posting it here.

It may sound a little noob-like at first glance, but believe me I'm not doing it for the first time Straight to the point. After successful compilation of bare kernel (bzImage), modules are just not being made. When
Code:
make modules
all i got is
Code:
  Building modules, stage 2.
  MODPOST 0 modules
Enable loadable module support=y, and variety of features are checked as =m. A lot of messages at bzImage compilation are
Code:
CC [M] sth
so i presume, that "something" is happening to code, from which .ko files would be compiled, but... after all the process, there are just no .ko files. :| So then
Code:
# make modules_install
installs only /lib/firmware part, leaving /lib/modules/{kernel name}/kernel empty.

Here's what i've tried:
  • compilation as ordinary user or root, at /usr/src, /home, /root
  • on ext3 or reiserfs filesystems
  • compilation of a couple of kernel versions between, and including, 2.6.24.2 (yes, that problem is that old :/ ) - 2.6.33
  • downloaded from kernel.org and that from slackware packages
  • with default slackware .config files, and with simply make menuconfig and save (without making any changes)
  • using some slackBuild from slackbuilds.net
  • different slackware versions (12.2, 13.0, and -current now)
  • windows-style "format c:", i mean, dd if=/dev/zero of=/dev/sdaX, and reinstall of Slackware
  • what's more, it was happening on my old pc, and now on new notebook

Nothing of that helped. But if it will help, i will repeat whatever is needed from that list above.

All I have googled about that is this https://forums.gentoo.org/viewtopic-...0-start-0.html.

I see two options, either i'm ommiting something that obvious that i can't see it, or it is some strange vortex of black energy that forms above me during kernel compilation process, inducing some mystical bug that affects only few doomed ones, including me, and causes "no you will not have your modules hahaha".

Second last thing i want to do is not using modules at all (compiling everyting into kernel) (cause the last thing is abandon Slackware for other distro), so... if you have any, and i mean "any", idea, how to track this down, i would be very grateful.
 
Old 04-02-2010, 10:06 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Not sure what the problem is but here are some things to try.

Back up your .config file and then change into the kernel source directory then run the following commands

Code:
make mrproper
cp /path/to/config-backup .config 
make prepare
make scripts
make && make modules_install
 
Old 04-03-2010, 02:48 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Are any modules actually enabled in your config?
Try using simply 'make' instead of 'make bzImage' + 'make modules'.
 
Old 04-03-2010, 05:38 AM   #4
Unit03
LQ Newbie
 
Registered: Apr 2010
Location: Poland
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gnashley View Post
Are any modules actually enabled in your config?
Yes, a lot of.

Quote:
Originally Posted by gnashley View Post
Try using simply 'make' instead of 'make bzImage' + 'make modules'.
That's what i'm doing, 'make' + 'make modules' too, despite it's redundant.

Quote:
Originally Posted by mRgOBLIN View Post
Not sure what the problem is but here are some things to try.

Back up your .config file and then change into the kernel source directory then run the following commands

Code:
make mrproper
cp /path/to/config-backup .config 
make prepare
make scripts
make && make modules_install
I've tried 'mrproper', i didn't use 'prepare' and 'scripts' (cause they are run as a part of 'make', am i right?) but i'll try that one more time.

[edit]

Haven't helped...

Code:
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 0 modules
Once again, .o files are being compiled ("CC [M] foo/bar/baz.o" messages), but no .ko files in /lib/modules after modules_install Although, firmware are built and installed just fine.

Last edited by Unit03; 04-03-2010 at 11:53 AM.
 
  


Reply

Tags
kernel, modules



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
kernel modpost mismatch Undeadzz Linux - Software 0 02-03-2009 09:50 PM
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Góes Slackware - Installation 2 04-15-2007 08:42 PM
Compiling kernel modules andrugene Linux - Kernel 21 07-11-2006 12:17 AM
need some help in Compiling Kernel modules bharat83 SUSE / openSUSE 1 01-07-2005 07:21 AM
Compiling kernel modules? jrjarrett Linux - Software 0 09-09-2003 10:24 AM

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

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