Re: Missing (kernel) modules

2002-06-05 Thread Glen Lee Edwards

Joris wrote:


I have Woody installed with the 2.2-20 kernel.  I apt-get installed the
2.4.18 kernel for both k7 and i686.  Both installed ok, but both hung on
boot, stating that the root file system couldn't be mounted.



this is because those kernel images use initial ramdisks (initrd) as root
file system, to be able to loading modules (ie reiserfs, xfs) before
mounting and chrooting to your actual /. This is the only way to boot
from say reiserfs root partitions without having support baked in the
kernel.



I will concede that I might have made a mistake.  But lilo accepted the 
lilo.conf I had set up, which included initrd=/boot/initrd.img.  I'm 
open to suggestions as to what I might have done differently.  Right at 
the moment I'm not 100% convinced that the problem is on my end.  I was 
able to install the 2.4.18-k6 dpkg kernel on my other box using the same 
method.  However, I can't get any dpkg kernel to boot properly on my K7 
box.  Both boxes required an initrd=[/boot]/initrd.img line.



As an
experiment, I downloaded the latest stable kernel from kernel.org and
compiled it.  It compiled and installed fine, and boots fine, except
that it's missing many of the modules I need, including all of the
network modules I need for my nics.  I've gone completely through the
kernel configuration several times.  They just aren't there.  But
they're included in all the dpkgs I've installed.  What am I missing?
Is there another source for modules other than the kernel tar ball?



i would recommend using debianized sources and the kernel packager:
# apt-get install kernel-source-2.4.18 kernel-package fakeroot
(now login as normal user, after adding him to group 'src')
# cd /usr/src
(move kernel.org sources out of the way)
# tar -xvjf kernel-source-2.4.18.tar.bz2
# ln -s kernel-source-2.4.18 linux
# cd linux
# make xconfig
# fakeroot (time) make-kpkg --revision=glen.0.1 kernel_image



Cool.  I'll keep this letter and try that next time.  



now installing your new kernel (as root, of course) is as easy as
# dpkg -i /usr/src/kernel-image-2.4.18_glen.0.1_i386.deb

Before, I always used 'make menuconfig' but I have noticed some options
are only available in xconfig (ie activating lpp patch). It can help you
too, because it doesn't actually hide the options that are not available.
That way you can find out more easily which option to use to enable the
nics (Network Device Support -> Ethernet (10/100 Mbit) -> manufacturer ->
chipset)



Bingo.  I neglected to click on the Ethernet (10/100 Mbit) option.  That 
did the trick.




just my 2 eurocents,



Which solved my problem.

Thanks!

Glen


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Missing (kernel) modules

2002-06-05 Thread Glen Lee Edwards

Peter Whysall wrote:


on Wed, Jun 05, 2002, Glen Lee Edwards ([EMAIL PROTECTED]) wrote:

I have Woody installed with the 2.2-20 kernel.  I apt-get installed the 
2.4.18 kernel for both k7 and i686.  Both installed ok, but both hung on 
boot, stating that the root file system couldn't be mounted.  As an 
experiment, I downloaded the latest stable kernel from kernel.org and 
compiled it.  It compiled and installed fine, and boots fine, except 
that it's missing many of the modules I need, including all of the 
network modules I need for my nics.  I've gone completely through the 
kernel configuration several times.  They just aren't there.  But 
they're included in all the dpkgs I've installed.  What am I missing? 
Is there another source for modules other than the kernel tar ball?




I suspect that it's not a module problem per se but rather the fact that
the pre-built kernels use an initial ramdisk (initrd) and you haven't
added an "initrd=/initrd.img" parameter to the appropriate line in
lilo.conf.

IIRC you need to put this parameter on the "image" line like so:

image=/vmlinuz initrd=/initrd.img

Of course, I reserve the right to be wrong but this is what fixed a
similar error for me.



Peter,

I did add in the initrd line.  To get lilo to take it I had to use 
initrd=/boot/initrd.img.  I didn't write down the exact error message, 
but it stated something like: "Can't mount root file system on 3.0" or 
something like that.  It might have been "3:0".   I had root=/dev/hda1 
in lilo.conf.


Regarding the missing modules, when I searched through the dpkg 
installs, /lib/modules// had all the modules I need: sis, 
eeproXX, etc.  After compiling my own kernel, /lib/modules/kernel>/ had only a skeleton number of modules, none of which worked on 
my ethernic cards.  sis, sis900, eeproXX, etc., weren't there.


Glen





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Missing (kernel) modules

2002-06-05 Thread Joris
> I have Woody installed with the 2.2-20 kernel.  I apt-get installed the
> 2.4.18 kernel for both k7 and i686.  Both installed ok, but both hung on
> boot, stating that the root file system couldn't be mounted.

this is because those kernel images use initial ramdisks (initrd) as root
file system, to be able to loading modules (ie reiserfs, xfs) before
mounting and chrooting to your actual /. This is the only way to boot
from say reiserfs root partitions without having support baked in the
kernel.

>  As an
> experiment, I downloaded the latest stable kernel from kernel.org and
> compiled it.  It compiled and installed fine, and boots fine, except
> that it's missing many of the modules I need, including all of the
> network modules I need for my nics.  I've gone completely through the
> kernel configuration several times.  They just aren't there.  But
> they're included in all the dpkgs I've installed.  What am I missing?
>  Is there another source for modules other than the kernel tar ball?

i would recommend using debianized sources and the kernel packager:
# apt-get install kernel-source-2.4.18 kernel-package fakeroot
(now login as normal user, after adding him to group 'src')
# cd /usr/src
(move kernel.org sources out of the way)
# tar -xvjf kernel-source-2.4.18.tar.bz2
# ln -s kernel-source-2.4.18 linux
# cd linux
# make xconfig
# fakeroot (time) make-kpkg --revision=glen.0.1 kernel_image

now installing your new kernel (as root, of course) is as easy as
# dpkg -i /usr/src/kernel-image-2.4.18_glen.0.1_i386.deb

Before, I always used 'make menuconfig' but I have noticed some options
are only available in xconfig (ie activating lpp patch). It can help you
too, because it doesn't actually hide the options that are not available.
That way you can find out more easily which option to use to enable the
nics (Network Device Support -> Ethernet (10/100 Mbit) -> manufacturer ->
chipset)

just my 2 eurocents,

Joris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Missing (kernel) modules

2002-06-05 Thread Peter Whysall
on Wed, Jun 05, 2002, Glen Lee Edwards ([EMAIL PROTECTED]) wrote:
> I have Woody installed with the 2.2-20 kernel.  I apt-get installed the 
> 2.4.18 kernel for both k7 and i686.  Both installed ok, but both hung on 
> boot, stating that the root file system couldn't be mounted.  As an 
> experiment, I downloaded the latest stable kernel from kernel.org and 
> compiled it.  It compiled and installed fine, and boots fine, except 
> that it's missing many of the modules I need, including all of the 
> network modules I need for my nics.  I've gone completely through the 
> kernel configuration several times.  They just aren't there.  But 
> they're included in all the dpkgs I've installed.  What am I missing? 
> Is there another source for modules other than the kernel tar ball?

I suspect that it's not a module problem per se but rather the fact that
the pre-built kernels use an initial ramdisk (initrd) and you haven't
added an "initrd=/initrd.img" parameter to the appropriate line in
lilo.conf.

IIRC you need to put this parameter on the "image" line like so:

image=/vmlinuz initrd=/initrd.img

Of course, I reserve the right to be wrong but this is what fixed a
similar error for me.

Take care,

Peter.

-- 
Peter Whysall
[EMAIL PROTECTED]
The TLD in my email address is sdrawkcab.
Debian GNU/Linux 3.0 sid -- kernel 2.4.18


pgprS5Qv0nGxY.pgp
Description: PGP signature


Missing (kernel) modules

2002-06-05 Thread Glen Lee Edwards
I have Woody installed with the 2.2-20 kernel.  I apt-get installed the 
2.4.18 kernel for both k7 and i686.  Both installed ok, but both hung on 
boot, stating that the root file system couldn't be mounted.  As an 
experiment, I downloaded the latest stable kernel from kernel.org and 
compiled it.  It compiled and installed fine, and boots fine, except 
that it's missing many of the modules I need, including all of the 
network modules I need for my nics.  I've gone completely through the 
kernel configuration several times.  They just aren't there.  But 
they're included in all the dpkgs I've installed.  What am I missing? 
Is there another source for modules other than the kernel tar ball?


Glen


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]