Mailing List Archive

Missing modules after kernel upgrade
Hello all,

I finally got around to updating my kernel to 2.6.20-gentoo-r5 today, but have
run into a snag. I did the usual 'make vmlinux && make modules_install' as
per the guide, copied vmlinux to /boot, edited yaboot.conf, ran 'ybin -v' and
rebooted. Everything seemed good until it started failing on load for
everything I built as a module. A little strange...

OK, so I have a look at my modules:

# ls /lib/modules/2.6.20-gentoo-r5/
build modules.alias modules.dep modules.inputmap modules.ofmap
modules.seriomap modules.usbmap
kernel modules.ccwmap modules.ieee1394map modules.isapnpmap modules.pcimap
modules.symbols source

looks good...
# ls /lib/modules/2.6.20-gentoo-r5/kernel
#

Waaahhh? There's nothing there?

I tried to install them again, thinking I messed up:
# make modules_install
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map
2.6.20-gentoo-r5; fi

Nothing...

So where did my modules go? I can assure you all that I *configured* them:
# grep "=m" .config | head -n5
CONFIG_NF_CONNTRACK_ENABLED=m
CONFIG_NF_CONNTRACK=m
CONFIG_NF_CONNTRACK_FTP=m
CONFIG_NF_CONNTRACK_IRC=m
CONFIG_NF_CONNTRACK_TFTP=m
# grep "=m" .config | wc -l
72

Does anyone know what I've done wrong here? This is sort of bizarre. I re-read
the kernel's README, but 'make modules_install' is still valid. As I say,
kernel is 2.6.20-gentoo-r5 (gentoo-sources), machine is a Powermac G5, 64-bit
userland, what else do you need to know? Just ask...

Thanks for consideration,
-d

--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user@gentoo.org mailing list
Re: Missing modules after kernel upgrade [ In reply to ]
> So where did my modules go?

Well, this is a new height in user stupidity. I was browsing through the
archives and found a message to this list from *me* that says:

> First of all, when building the kernel the guide says to use "make
> vmlinux && make modules_install" so I faithfully followed the instructions.
> This built me a kernel with no modules for some reason. So I built a new one
> in the fashion I am accustomed to: I did "make && make modules_install".
> This time my modules were made, and I copied vmlinux to /boot.

So I have my answer. It raises another question though: Am I the only one who
has modules go AWOL when doing "make vmlinux && make modules_install". If so,
why? If not, should I be filing a bug against the docs?

What's up with that?

-d

PS: I'm blaming my stupidity on the fact it was about a year ago I built my
last kernel on PPC...
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user@gentoo.org mailing list
Re: Missing modules after kernel upgrade [ In reply to ]
Hi,
On Sun, May 20, 2007 at 09:23:36PM -0600, darren kirby wrote:
> So I have my answer. It raises another question though: Am I the only one who
> has modules go AWOL when doing "make vmlinux && make modules_install". If so,
> why? If not, should I be filing a bug against the docs?

Which document are you refering to? The current docs seem to be in
favour of
# make && make modules_install [1]
already, just saw make vmlinux in some really old handbooks. Perhaps
you are still using an outdated version?

HTH & cheers,
Wernfried

[1] http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?full=1
Code Listing 14

--
Wernfried Haas (amne) - amne (at) gentoo.org
http://forums.gentoo.org || http://www.gentoo.org/proj/en/proctors/
forum-mods (at) gentoo.org || proctors (at) gentoo.org
#gentoo-forums || #gentoo-proctors (freenode)
Re: Missing modules after kernel upgrade [ In reply to ]
quoth the Wernfried Haas:
> Hi,
>
> On Sun, May 20, 2007 at 09:23:36PM -0600, darren kirby wrote:
> > So I have my answer. It raises another question though: Am I the only one
> > who has modules go AWOL when doing "make vmlinux && make
> > modules_install". If so, why? If not, should I be filing a bug against
> > the docs?
>
> Which document are you refering to? The current docs seem to be in
> favour of
> # make && make modules_install [1]
> already, just saw make vmlinux in some really old handbooks. Perhaps
> you are still using an outdated version?

I thought I was going crazy (I searched through all the handbooks), but it
has 'make vmlinux' in the PPC64 2007.0 guide [1] Code Listing 9. I'll check
for a relevant doc bug.

> HTH & cheers,
> Wernfried

Thanks!
-d

[1]
http://www.gentoo.org/doc/en/handbook/2007.0/handbook-ppc64.xml?part=1&chap=7
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user@gentoo.org mailing list
Re: Missing modules after kernel upgrade [ In reply to ]
Hi

On Sun, May 20, 2007 at 09:23:36PM -0600, darren kirby wrote:
> So I have my answer. It raises another question though: Am I the only one who
> has modules go AWOL when doing "make vmlinux && make modules_install". If so,
> why?

Most proably the "modules" target isn't a dependency of vmlinux. "make
vmlinux modules && make modules_install" should do it if you want
(untested). However, "make && make modules_install" makes sure
everything needed is built.

Greets,
Michael

--
Gentoo Linux developer, http://hansmi.ch/, http://forkbomb.ch/
Re: Missing modules after kernel upgrade [ In reply to ]
quoth the Michael Hanselmann:
> Hi
>
> On Sun, May 20, 2007 at 09:23:36PM -0600, darren kirby wrote:
> > So I have my answer. It raises another question though: Am I the only one
> > who has modules go AWOL when doing "make vmlinux && make
> > modules_install". If so, why?
>
> Most proably the "modules" target isn't a dependency of vmlinux. "make
> vmlinux modules && make modules_install" should do it if you want
> (untested). However, "make && make modules_install" makes sure
> everything needed is built.

Thanks. Got it sorted. It seems it was just the 2007.0 PPC64 handbook that was
affected. I reported the bug, and it is already fixed:
http://bugs.gentoo.org/show_bug.cgi?id=179332

> Greets,
> Michael

Cheers,
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user@gentoo.org mailing list