depmod -a: *** Unresolved symbols in /lib/ ....
Hello guy's. I just recompiled my kernel. Because I only needed some drivers to get build in to my kernel, I only did: "make mrproper", "make xconfig", "make dep", "make clean" and "make bzImage". So no "make modules" or "make modules install".
When I do "depmod -a" I get "depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/net/dummy.o". What can I do about this? |
make moules
make modules_install |
If all you did was change modules, then *I think* you could just get away with not creating a new kernel, but would still need make dep... make modules and make modules_install just not make bzImage.
However if you are adding things into the kernel, not just modules then I do think you need to whole process, as McLeodnine just said. Cool |
Okey, pleace don't mind my very stupid question. It was quite late at night. Pleace tell me it (asking things that you should of known) happens to every one .... right? :(
|
Schatoor, did you move drivers that had been modules into the
kernel? If so, then you need to remove the old modules from lib/modules/.... An easy way to do this (though it takes a while) is: Code:
cd /usr/src/linux you HAVE to do it. MasterC, you are correct, if you just want to build modules, you can do a: Code:
make (x|menu)config |
Thanks for your reply moses. I needed to build some drivers in to the kernel. But I had'nt compiled them as modules as well. So the modules that I had in the first place are unchanged.It's just that I forgot to compile things in the first time round.
Any, to my susrprise, the problem is still there after I did "make modules" and "make modules install" "make modules" went fine. But when I wanted to do "make modules install" it asked me if I wanted to make boot disks, which I didn't. Then it complained that there was no lilo on /dev/hda, which is correct. There is no lilo on the mbr, I know that. Any way, it went down with an error. So I tried again, this time making the boot disks. Which worked in some much that there was no error. But after all this, depmod is still complaining. |
No, no, no. . . You have to do:
Code:
make modules_install |
Whups, forgot that. I will try as soon as I get the chance.
But wait, so what does "make modules install" do? It did somthing. |
make modules install
would be the same as running make modules && make install The make install is what failed. It tries to install the new kernel and add it to your lilo config. |
Which in this situation is probably a good thing since you are having problems currently, so it didn't overwrite your old config's and such.
And I wasn't aware that you could do that Mik, thanks for the tip. Cool |
I hope you guy's don't think i'm stupid now. God, i'm not a newbie any more so these crewups are really imberacing
BTW, make modules_install did the trick |
I don't think you are stupid. Have you seen some of my questions lately? I think by now I should be able to write an Oreilly book, but I'm still on picture books :D
(Simpson's quote): "It's all relative, I mean, is Moe that ugly, is Homer that bald, is Barney that fat stupid and drunk?" (Ok, so it's not completely accurate, I can't find a wav to help me out right now ;) ) :D Anyway, it's all learning, we are all at LQ to learn, and luckily there are those here who also know ALOT and can help us to learn when we make these kinds of mistakes. :) Cool |
All times are GMT -5. The time now is 03:12 AM. |