LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-07-2006, 04:32 PM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Rep: Reputation: 30
kernel upgrade - make modules_install = unresolved symbols


Please help!

I am trying to upgrade a linux kernel for the first time. (Well second time, first time I forgot to include any modules.)

My computer is Mandrake MultiNetwork firewall, which is RPM based, and uses kernel 2.4.18-8. I have downloaded the kernel sources from www.kernel.org, and the version is 2.4.31.

I have done the following with good results.

1. Copy my old config file, from working system, to the new kernel dir.
2. make clean, make mrproper
3. make menuconfig (added a few options)
4. nohup make bzImage
5. nohup make modules
6. make modules_install

The end of the output of above looked like this:

Code:
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.31-customerc.040706; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.31-customerc.040706/kernel/crypto/autoload.o
depmod:         crypto_alg_lookup
depmod: *** Unresolved symbols in /lib/modules/2.4.31-customerc.040706/kernel/crypto/proc.o
depmod:         crypto_alg_sem
depmod:         crypto_alg_list
depmod: *** Unresolved symbols in /lib/modules/2.4.31-customerc.040706/kernel/drivers/mtd/maps/sc520cdp.o
depmod:         mtd_concat_destroy_Rsmp_8739cf4e
depmod:         mtd_concat_create_Rsmp_5f22e6e1
make: *** [_modinst_post] Error 1
I looked on Google to see what it means and it said that this error happens if the modules were compiled by another kernel. But I don't know how to fix the error or get past it. This is a production server and it is still running fine under 2.4.18-8, I'd like to keep the old kernel as well in case anything happens.

Any help appreciated, thanks!
 
Old 04-07-2006, 06:43 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
You can use the old .config file if you want to, but, to compile for the new kernel, you MUST edit the Makefile to change the kernel version number. Otherwise, it will just recompile the kernel version listed therein.
 
Old 04-08-2006, 05:35 PM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
Does
Code:
make oldconfig
do any good?
 
Old 04-10-2006, 07:42 AM   #4
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
bigrigdriver:

I had edited the Makefile and changed the EXTRAVERSION variable. Is this what you mean? I seem to have forgotten to mention a few steps I did.

...
3. "make menuconfig"
3.1 "make dep"
3.2 "vi Makefile" - changed EXTRAVERSION
4. nohup make bzImage
...

Kaz2100

At which step would I do "make oldconfig"? (Wondering if I have to re-do any steps)

Thanks!
 
Old 04-10-2006, 07:50 AM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
I read in This post: http://www.linuxquestions.org/questi...ad.php?t=38001 that it is possible my compilation is using the wrong (libraries/headers/includes/whatever) located in /usr/include/linux and /usr/include/asm. How can I make my module compile using the correct version? (And how can I tell which version is being used?)
 
Old 04-10-2006, 11:05 AM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
At step #1.

Copy .config file to new dierctory, then "make oldconfig", check README file.
 
Old 04-10-2006, 11:10 AM   #7
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
kaz2100, I have done "make oldconfig" followed by "make dep" "make bzImage" "make modules" and finally "make modules_install". Make oldconfig asked me about whether to install cryptographic and I said NO. It did get rid of the crypto errors, now my make modules_install output looks like:

Code:
depmod: *** Unresolved symbols in /lib/modules/2.4.31-customerc.040706/kernel/drivers/mtd/maps/sc520cdp.o
depmod:         mtd_concat_destroy_Rsmp_8739cf4e
depmod:         mtd_concat_create_Rsmp_5f22e6e1
make: *** [_modinst_post] Error 1
Only one more error to go! Thanks for any help.
 
Old 04-10-2006, 01:23 PM   #8
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
try
Code:
make clean; make dep; make; make modules; make modules_install; make bzImage
I think, if I remember correct, with 2.4 kernels, that the command line above rebuilds modules directory completely.
 
Old 04-11-2006, 07:43 AM   #9
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
Thanks for your help.

I have solved the problem by re-compiling the kernel (make menuconfig) and DE-selecting "Memory Technology Device support (MTD)" then re-doing all the steps as originally posted.

I hope this can help someone!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel incompatible and unresolved symbols bluejob Linux - Software 0 12-03-2004 12:23 AM
kernel compiling: unresolved symbols hotel-lima Linux - Newbie 0 06-12-2004 10:40 AM
unresolved symbols after kernel compile disciple061 Linux - General 2 01-29-2004 12:55 PM
Make Modules_install unresolved symbols jimdaworm Linux - Newbie 2 11-15-2003 11:28 AM
Nvidia + kernel 2.4.20 = unresolved symbols? Dipp Linux - General 3 12-12-2002 09:55 AM


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