LinuxQuestions.org
Review your favorite Linux distribution.
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 09-17-2005, 10:33 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
kernel compilation error : in "make modules_install"


Hello all,
i'm trying to upgrade my 2.4.x to 2.6.x ( on slackware 10.0)
i've experience of compiling 2.4.x to 2.4.x.

so the final steps were..........

make bzImage
make modules
make modules_install ( now here its showing error )

last lines of "make modules"
.........
LD [M] net/sched/sch_prio.ko
CC net/sched/sch_red.mod.o
LD [M] net/sched/sch_red.ko
CC net/sched/sch_sfq.mod.o
LD [M] net/sched/sch_sfq.ko
CC net/sched/sch_tbf.mod.o
LD [M] net/sched/sch_tbf.ko
CC net/sched/sch_teql.mod.o
LD [M] net/sched/sch_teql.ko
CC net/sunrpc/sunrpc.mod.o
LD [M] net/sunrpc/sunrpc.ko
CC sound/soundcore.mod.o
LD [M] sound/soundcore.ko

root@bond:/usr/src/linux# make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
...............


i used the "config" from the second cd of slackware 10.0.
inside somewhere in "testing" folder.


A person asked me this

Code:
Did you upgrade your module-init-tools?
It's necessary if you go from 2.4 to 2.6
the version for it is :
Code:
root@bond:/home/bond# depmod -V
module-init-tools 3.0
root@bond:/home/bond#
so i don't think i need to upgrade it.....

now experimently i tried to upgrade witheut loading any "config"
everything worked fine in that case...

so what could be the problem.........any problem with that "config"???

if required......i can post that "config" too.

regards
 
Old 09-17-2005, 10:44 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Did you run "make oldconfig" after copying in your old .config but before compiling anything?

Slackware has been 2.6 ready since 9.1 I think so you don't need to upgrade modutils.
 
Old 09-17-2005, 10:56 AM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by david_ross
Did you run "make oldconfig" after copying in your old .config but before compiling anything?

Slackware has been 2.6 ready since 9.1 I think so you don't need to upgrade modutils.
i never did "make oldconfig" even when i compiled 2.4.x to 2.4.x
what i used to do was to load the old ".config' after "make xconfig" ( i.e when the new window appears )
today again i did the same thing.

regards
 
Old 09-17-2005, 11:06 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try these steps:
cd /usr/src/linux
make clean
make mrproper
cp /path/to/oldconfig .config
make oldconfig
make

This should clean your source directory, update the configuration and compile the kernel and modules.

After that, try "make modules_install" and see if it works this time.
 
Old 09-18-2005, 02:26 AM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
hello there,
summary of what i was trying.......

in /usr/src/linux/

make clean
make mrproper
make xconfig ............ here i loaded the "config" file found in second cd of slackware
vi Makefile
make bzImage
make modules
make modules_install.

now here in last step "make modules_install" i was getting the following error

Code:
root@bond:/usr/src/linux# make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
...............
while searching for it on net......i got this this

i too found a "space" on that line........so removed that

tried again the whole procedure of compilation.....

this time everything worked fine.

#cp /usr/src/linux/arch/i386/boot/bzImage /boot/slack/vmlinuz-2.6.9slack
#cp /usr/src/linux/System.map /boot/slack/System.map-2.6.9slack

#ln -s /boot/slack/vmlinuz-2.6.9slack /boot/slack/vmlinuz
#ln -s /boot/slack/System.map-2.6.9slack /boot/slack/System.map

#vi /etc/lilo.conf

partial entries of my lilo.conf
Code:
# End LILO global section
# Linux bootable partition config begins

image = /boot/slack/vmlinuz
  root = /dev/hda8
  label = slack
  read-only


image = /boot/vmlinuz
  root = /dev/hda8
  label = Slackware
  read-only
#/sbin/lilo
#reboot

but for my gr8 disappointment.......i get the following error

Code:
kernel panic-no syncing: VFS: Unable to mount root fs on unknown-block(3,8)
what should i do now.????

regards
 
Old 06-11-2013, 08:15 AM   #6
maddycheema
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
i have same issues

i get the following error on make modules_install:


[root@localhost linux-3.9.5]# make modules_install
INSTALL arch/x86/crypto/aes-i586.ko
Can't read private key
make[1]: *** [arch/x86/crypto/aes-i586.ko] Error 2
make: *** [_modinst_] Error 2
[root@localhost linux-3.9.5]#

please reply if someone has solution

i am using RHEL 6

Last edited by maddycheema; 06-11-2013 at 08:16 AM. Reason: forgot to mention something
 
  


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
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 10:16 AM
WARNING message when "make modules_install" wakjoko Linux - Hardware 3 01-29-2005 08:39 AM
modinst error when "make modules_install", kernel 2.4.22 kc00l Slackware 7 01-23-2004 03:28 PM
Kernel compilation "make dep" error lord_clarence Red Hat 3 10-17-2003 10:41 AM
2.6 test6 "make modules_install" problem yocompia Slackware 2 10-06-2003 04:56 AM


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