[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Intel NIC Driver

s. keeling wrote:
> Incoming from John Graves:
> > At 01:56 PM 5/17/2004 -0500, you wrote:
> > > Use Windows or Knoppix to download the kernel image file and any 
> > >associated dependencies (painfully tedious) from www.debian.org/Debian 
> > >Packages. You'll want a kernel image file that matches your requirements, 
> > >like "kernel-image-2.4.26-1-686", etc. Then install them with something 
> > >like "dpkg -i *deb".
> >
> > I am a raw beginner in a lot of this. so please accept my questions for 
> > what they are.  This is a server but it is not live.  It sits on my test 
> > bench so I can start to learn what is needed in this environment.  I do 
> > have a partition with Winserver in it but can blow away anything else.

If networking is up with knoppix then you can use it to download the
rest of the bits that you need.  Here is one way.  But down below I
show a wget which may be harder but simpler to describe.  So read both
and do one of them.

  mkdir -p /mnt/target
  mount /dev/whatever /mnt/target
  chroot /mnt/target /bin/bash
  echo deb http://http.us.debian.org/debian/ woody-proposed-updates main non-free contrib >> /etc/apt/sources.list
  apt-get update
  apt-get install -d --print-uris -qq kernel-image-2.4.24-2-686-smp

Will return something like this:

  'http://http.us.debian.org/debian/pool/main/k/kernel-image-2.4.24-i386/kernel-image-2.4.24-2-686-smp_2.4.24-2woody.1_i386.deb' kernel-image-2.4.24-2-686-smp_2.4.24-2woody.1_i386.deb 11176288 1be9f9a920ddf7edab15a408f036805f

Turn that into a downloadable path with a few shell commands.

  apt-get install -d --print-uris -qq kernel-image-2.4.24-2-686-smp \
    | awk '{print$1}' | xargs -l wget

That effectively downloads the kernel to the new machine in a chroot
area.  The advantage of this method is that it pulls down all of the
dependencies that are needed in the case that more than one is
needed.  It is harder if there is only one thing to do.  But easier if
there are many things that need to get downloaded.

Then reboot to the new machine.  Install the .debs that are

  dpkg -i *.deb

The reason I don't go ahead and install them under knoppix is that the
ide-scsi module which knoppix currently loads interferes with writing
the MBR by lilo.  I have not figured out how to avoid knoppix loading
that module.  Anyone have an answer for that?  So better to avoid that
step and do it under the native machine to avoid that problem.  Of
course you can install everything under knoppix and just say 'no' to
the lilo step from the kernel postinstall script.  Then reboot and run
'lilo -v' manually later.  That would of course be fine too.  Many
ways to get to the same place.

[To the grub advocates, since we are bootstrapping from woody grub is
not installed yet and running grub-install has the same problem.]

> > I can't seem to find what/where I need to upgrade the kernal I
> > have (2.2.0) to 2.4.whatever.  Where do I find the kernel image
> > file, and the modules needed to support my network card (e1000)?
>    i) "apt-cache show kernel-image-2.4.18-1-686" says:
>       Filename: pool/updates/main/k/kernel-image-2.4.18-1-i386/kernel-image-2.4.18-1-686_2.4.18-13.1_i386.deb
>       You might try http://mirrors.kernel.org/debian/ to get at that.
>       There's probably better ways, but that's a start.
>   ii) Sorry, I've no experience with e1000 nics.  See lists.debian.org
>       and flip through the debian-users archive.

For the e1000 you will need 2.4.19 or later.  Or add the module
yourself to 2.4.18 but moving to a newer kernel is probably a better
answer.  In which case I would use 2.4.24 from proposed updates.  It
is from Herbert Xu and so should be as good as any Debian kernel.

  wget http://http.us.debian.org/pool/main/k/kernel-image-2.4.24-i386/kernel-image-2.4.24-2-686-smp_2.4.24-2woody.1_i386.deb

I believe that should install on woody without needing anything other
dependencies to be filled.  So should be good.  But if you find you
need another package consider the more complicated process that I
described above.

That is a tuned kernel for 686 and most things are compiled as
modules.  So to get the e1000 driver installed make sure you have
'e1000' in /etc/modules.

  modprobe i1000
  echo e1000 >> /etc/modules
  /etc/init.d/networking restart

Check /etc/network/interfaces in the case of problems.


Attachment: pgpWbXG7YazQ1.pgp
Description: PGP signature

Reply to: