LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-15-2003, 02:25 PM   #1
ganesh_maillist
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Angry make modules_install don't make any modules in /lib/modules


hello all gurus

I tried it with kernel redhat -9 ( I am not remembering kernel version 2.4.2 I suppose )
And kernel 2.4.19, kernel version 2.4.18 and same error happen
i am trying to compile a new-kernel image(nothing exta added)
from source from readhat-7.3 ( kernel version 2.4.18) make sequance
make mrproper
make xconfig
make dep
make bzimage
make modules
make modules_install <---<< ERROR ERROR ERROR

[root@linux-7_3 linux-2.4]# make -i modules_install
make -C kernel modules_install
make[1]: Entering directory `/usr/src/linux-2.4.18-3/kernel'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/kernel'
make -C drivers modules_install
……………………………………..
…………. Lot of it ………………..
…………………………………….
make[1]: Entering directory `/usr/src/linux-2.4.18-3/arch/i386/lib'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/arch/i386/lib'
cd /lib/modules/2.4.18-3-pppoe; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.18-3-pppoe; fi
[root@linux-7_3 linux-2.4]#
-----------------------------------------------------------------------------
when I look @ the /lib/modules/linux-coustom/ the directory structure was in-complete and no modules were loded

after a long patience, I tried to understand what make file is doing,
in /usr/src/linux/Makefile will reference to other make files like /usr/src/linux/kernel/makefile etc
and all make file include /usr/src/Rules.mk
after studying it for a while I found that ALL_MOBJS is the variable on which every thing will depend, and modules will be copied if this variable gets defined properly @run time which is defined as below in /usr/src/Rules.mk
#
# A rule to make modules
#
ALL_MOBJS = $(filter-out $(obj-y), $(obj-m))
Obj-y
Obj-m are inturn run time variable
So in summery $(filter-out $(obj-y), $(obj-m)) was expanded to be NULL as Obj-y == Obj-m always ( I debuged it by putting log messages )

For a time factor I redefined above to
#
# A rule to make modules
#
#ALL_MOBJS = $(filter-out $(obj-y), $(obj-m))
ALL_MOBJS = $(obj-m)

And run
make modules_install

And the /sbin/depmode –a command in serept file /usr/src/Rules.mk showed fallowing lenthy errors
-----------------------------------------------------------------------
make modules_install
……………………………………..
……… modules copied here …………
……………………………………….
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.18-3-pppoe; fi
depmod: cannot read ELF header from /lib/modules/2.4.18-3-pppoe/kernel/drivers/media/radio.o
depmod: cannot read ELF header from /lib/modules/2.4.18-3-pppoe/kernel/drivers/media/video.o
depmod: *** Unresolved symbols in /lib/modules/2.4.18-3-pppoe/kernel/arch/i386/kernel/dmi_scan.o
depmod: pm_kbd_request_override
depmod: pci_bridge_force_restore
depmod: noautodma
depmod: *** Unresolved symbols in /lib/modules/2.4.18-3-pppoe/kernel/arch/i386/kernel/entry.o
depmod: sys_sgetmask
depmod: sys_signal
------- lot of it --------------
depmod: sys_ssetmask
depmod: sys_getrusage
depmod: *** Unresolved symbols in /lib/modules/2.4.18-3-pppoe/kernel/arch/i386/kernel/ioport.o
depmod: init_tss
depmod: *** Unresolved symbols in /lib/modules/2.4.18-3-pppoe/kernel/arch/i386/kernel/irq.o
depmod: init_tss
depmod: rand_initialize_irq
depmod: *** Unresolved symbols in /lib/modules/2.4.18-3-pppoe/kernel/arch/i386/kernel/nmi.o
…………………………….
…….. lot of it…………….
……………………………
I avoided error by
make –i modules install
And most of the modules did got installed ( not all modules got installed ) with the last ERROR messages off course .

Now I could able to boot my system at least
But the bzImage not even able to uncompress fully

I need help regarding same
1> why make module_install not working
2> is there any precaution to be taken before building
 
Old 09-15-2003, 02:45 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
follow this guide and see if your missing anything....i see you didn't do make clean, so that may pose a problem...
 
  


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
Look the output of: make dep && make clean bzImage modules modules_install Hell-Shooter Linux - General 2 06-05-2004 06:05 AM
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 07:49 PM
Slack9 - no PPP (can't open dependencies file /lib/modules/2.4.18/modules.dep) bluehz Slackware 1 05-04-2003 03:32 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 02:40 AM


All times are GMT -5. The time now is 05:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration