LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel compilation error : in "make modules_install" (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-compilation-error-in-make-modules_install-364194/)

b0nd 09-17-2005 09:33 AM

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

david_ross 09-17-2005 09:44 AM

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.

b0nd 09-17-2005 09:56 AM

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

david_ross 09-17-2005 10:06 AM

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.

b0nd 09-18-2005 01:26 AM

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

maddycheema 06-11-2013 07:15 AM

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

kernel_baba 05-27-2015 01:53 PM

make modules
 
my dear friend use sudo make modules_install


All times are GMT -5. The time now is 10:38 PM.