Compiling a new kernel

Compiling a new kernel

Post by Horst Knoblo » Wed, 18 Mar 1998 04:00:00




        Bob Archambault writes:
[...]

Quote:> The problem comes when I try to
> compile a new kernel so Linux is tailored to MY system (as the book
> recommends). The kernel SEEMS to compile ok, with no errors, but
> when I try to boot with the new kernel, after the line about:

> Updating module dependencies...

> I get about 12 lines of:

> ***Unresolved symbols in module /lib/modules.......(different module names)

It seems that your kernel does not fit to your modules,
may be you should try the following:

root# make modules modules_install

bye, Horst

--
Horst Knobloch                   "Night people don't get sunburns"


 
 
 

Compiling a new kernel

Post by Kevin Dal » Fri, 20 Mar 1998 04:00:00


Try removing (or more safely, moving) the 2.0.30 (or 31 or 32 or whichever)
directory out from under /lib/modules before doing the make modules
modules_install.  The modules_install will re-create the directory corresponding
to whichever kernel rev you are MAKEing back under /lib/modules, containing only
the modules that your kernel references.  This should eliminate those unresolved
symbol errors.  If you added any modules that are not distributed with the kernel
(PCMCIA is a good example) you will need to re-make those from source after your
new kernel is up and running.

Cheers,

kjd



>         Bob Archambault writes:
> [...]
> > The problem comes when I try to
> > compile a new kernel so Linux is tailored to MY system (as the book
> > recommends). The kernel SEEMS to compile ok, with no errors, but
> > when I try to boot with the new kernel, after the line about:

> > Updating module dependencies...

> > I get about 12 lines of:

> > ***Unresolved symbols in module /lib/modules.......(different module names)


 
 
 

Compiling a new kernel

Post by Andy Johnso » Sat, 21 Mar 1998 04:00:00



> I am a newcomer to Linux, who is having a difficult time with a weird problem.
> I have spent the last week digging through FAQs, HOWTOs, READMEs and
> Linux Web sites, as well as trying to figure it out myself, and I am at the end
> of my rope here. Perhaps one of you good people might help me.

> I bought the book, "LINUX Configuration & Installation" 3rd Edition, which
> comes with CD-ROMs that have Slackware 3.3 on them. This includes
> Linux 2.0.30. Now, following much of the advice in the book, I have it
> installed and working seemingly well. The problem comes when I try to
> compile a new kernel so Linux is tailored to MY system (as the book
> recommends). The kernel SEEMS to compile ok, with no errors, but
> when I try to boot with the new kernel, after the line about:

> Updating module dependencies...

> I get about 12 lines of:

> ***Unresolved symbols in module /lib/modules.......(different module names)

> Also, it won't recognize my printer port, and gives the error:

> lp: unable to get major 6
> Initialization of lp failed

Sounds like you didn't run 'make modules' after 'make install'. W/O this step, your
kernel modules weren't compiled, and your kernel is looking for them.
 
 
 

1. compile new kernel => compile new iptables ?

just installed a new kernel and iptable stopped working.
I get the following error:

# iptables  -F FORWARD
iptables v1.2.4: can't initialize iptables table `filter': Module is wrong
version
Perhaps iptables or your kernel needs to be upgraded.

having kernel2.4.16 and iptables 1.2.4.  I check googles and the
netfilter-docs and the postings in googles says that this is, if iptables
wasnt compiled against the recent kernel and the netfilter-install needs
the kernel-sources in every step.

somehow this doesnt make sense to me. The netfilter-modules are included
with the kernel-sources and therefore change at every new kernel, but why
should I be forced to compile a new iptables-binary ever time I update my
kernel ?

thnx,
peter

--
peter pilsl

http://www.goldfisch.at

2. Help! RH50 module dependencies?

3. kernel panic on a 2.2.5 kernel new compile

4. Additional nfs mounts on diskless machine lock nfs server

5. Problems Compiling New Kernel w/ Slackware's version of 1.2 kernel

6. 7.2 NIS server w/Solaris clients

7. compiling ANY new kernel gives "Kernel Panic"...HELP!

8. Kernel Panic! Plenty of RAM 16megs-Help!

9. Compile software on new kernel for old kernel

10. Kernel panic after compiling new kernel... help!

11. Help to boot new kernel with grub -delited the old kernel before tried the new one

12. SLIP/PPP -->new kernel-->new compiler-->new make

13. New: typo in ipmi_devintf.c causes kernel compile to fail