LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-08-2013, 08:41 PM   #1
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Rep: Reputation: 2
Chapter 8.3 compiling the kernel problem


Hello again everyone.

I am working in LFS 7.1, and came across the following issue after configuring the kernel and attempting to make the modules:

Code:
root:/sources/linux-3.2.6# make modules_install
  INSTALL arch/x86/kernel/test_nx.ko
  INSTALL drivers/hid/hid-logitech-dj.ko
  INSTALL drivers/scsi/scsi_wait_scan.ko
  INSTALL net/netfilter/xt_mark.ko
  DEPMOD  3.2.6
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
After doing a bit of research, it seems like there is an issue with where the depmod link is pointing, or the link is not being read properly. I went back and double checked the Kmod install I did previously, and all of the links seemed to be intact.

I'm not sure how to proceed...

The link to the codemonkey website above is quite old, but that is where I got the idea to check the depmod link from the install for Kmod.

Here is the output from the first command, 'make':

Code:
root:/sources/linux-3.2.6# make
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready  (#1)
  Building modules, stage 2.
  MODPOST 4 modules
 
Old 01-09-2013, 01:18 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Does the make modules_install step stop or do you get a warning only and does it continue?

Do check to see if the modules are created (this directory: /lib/modules/3.2.6/). If the modules are there I would continue.
 
Old 01-09-2013, 05:04 AM   #3
McZ
Member
 
Registered: Aug 2012
Posts: 46

Rep: Reputation: Disabled
Quote:
Originally Posted by engineer View Post
Hello again everyone.

I am working in LFS 7.1, and came across the following issue after configuring the kernel and attempting to make the modules:

Code:
root:/sources/linux-3.2.6# make modules_install
  INSTALL arch/x86/kernel/test_nx.ko
  INSTALL drivers/hid/hid-logitech-dj.ko
  INSTALL drivers/scsi/scsi_wait_scan.ko
  INSTALL net/netfilter/xt_mark.ko
  DEPMOD  3.2.6
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
...

I had that error when I built the kernel once. And from what I found out there is no error in the build process just a warning that the kernel may not be able to load the modules due to missing module-init-tools compatibility.

if the symlinks created after kmod is built are correct, it can be some library problem. Can you run depmod -a? if not can you run ldd /sbin/depmod to see if there is any missing library?
 
Old 01-09-2013, 05:07 PM   #4
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by druuna View Post
Does the make modules_install step stop or do you get a warning only and does it continue?

Do check to see if the modules are created (this directory: /lib/modules/3.2.6/). If the modules are there I would continue.
Well, the post I made from the output was all that was displayed after running the make modules_install command, then it returned me to the command line. I'm not sure if it finished, since that is the last module that ran. I do know that I didn't change very many things (maybe it was only 4) in the kernel configuration GUI (I had no idea what most of the items meant), so I suppose it's very possible that they did install.

I'll check the directory you gave and see if the modules are in there, and if they are, I'll proceed. By the way, is there a way to see which modules should be getting installed based upon what I selected in the GUI, or should I have remembered them or written them down or something (for future information).

Thank you.
 
Old 01-10-2013, 08:40 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by engineer View Post
By the way, is there a way to see which modules should be getting installed based upon what I selected in the GUI, or should I have remembered them or written them down or something (for future information).
The easiest way would probably be a grepping for the module token in the created .config file:
Code:
# all the individual module entries
grep "=m" .config

# amount of module entries
grep -c "=m" .config
I'm not entirely sure if an individual module is build for every entry, but it should give you a reasonable ballpark figure.
 
  


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
[SOLVED] Glibc not compiling in Chapter 6.9 corbis_demon Linux From Scratch 4 08-06-2010 08:44 AM
LFS 6.0 Chapter 6: compiling glibc problem Sakur Linux From Scratch 3 08-13-2005 11:39 PM
kernel problem in chapter 8.3 Soltar Linux From Scratch 1 07-24-2005 03:35 PM
compiling kernel chapter 8.3 ..urgent sharmashikha Linux From Scratch 1 06-21-2005 03:11 AM
Chapter 6: Kernel Headers Problem Obi Perrin Linux From Scratch 8 01-08-2003 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:56 PM.

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