Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-mips@linux-mips.org
Subject: Re: configuring 2 ethernet ports
Date: Fri, 24 Oct 2003 16:40:12 +0200	[thread overview]
Message-ID: <20031024144012.GF12395@lug-owl.de> (raw)
In-Reply-To: <Pine.GSO.4.44.0310240931350.17395-100000@ares.mmc.atmel.com>

[-- Attachment #1: Type: text/plain, Size: 2593 bytes --]

On Fri, 2003-10-24 09:41:23 -0400, David Kesselring <dkesselr@mmc.atmel.com>
wrote in message <Pine.GSO.4.44.0310240931350.17395-100000@ares.mmc.atmel.com>:
> On Fri, 24 Oct 2003, Jan-Benedict Glaw wrote:
> > On Fri, 2003-10-24 09:11:26 -0400, David Kesselring <dkesselr@mmc.atmel.com>
> > wrote in message <Pine.GSO.4.44.0310240905590.17395-100000@ares.mmc.atmel.com>:
> > > /etc/sysconfig/network-scripts/ifcfg-eth1. After boot, when I look at
> > > /proc/pci it looks like the system detected the card fine but ifconfig
> > > only shows eth0 (the builtin port). How is the pci id linked to a
> > > particular driver? What else do I need to do? I've scoured google but have
> >
> > In 2.4.x, drivers tend to only have internal knowledge on which hardware
> > they work. So you need to give some 'alias eth1 wlanmodulename' in your
> > /etc/modules.conf file.
> >
> I am using 2.4. Why does eth1 need a modules.conf file and eth0 doesn't. I

This is the case if you've compiled the driver for eth0 directly into
the kernel. Then, it'll automatically be started and userspace got an
interface to configure.

If it isn't directly compiled in, you've to give it a chance to figure
out the correct driver, eg. by a module.conf "alias" line or by a simple
modprobe somewhere...

> do not have loadable modules configured for my kernel. Do I have to? I
> don't even have a current modules.conf file.

You don't *need* to have modules. ...but then, you need to have the
correct driver compiled in. If it's already compiled in, then it
apparently doesn't recognize the card. In this case, the PCI table
inside the module's code is missing the PCI vendor/device ID.

> I also checked /etc/sysconfig/hwconf. This has the pci listing for my card
> but does not recognize the vendor or id. I did add an entry in the kernel
> source pci_ids.h for my card.

That's not enough. By doing this, you tell the *readers* of this header
file that there's a new vendor or device. That doesn't tell the
*drivers* that they've got a new supported device. So if you compiled-in
the correct driver and 'ifconfig -a' doesn't show it, then it seems that
the (correct) driver incorrectly doesn't know your device IDs. Add those
to the driver's PCI ID table.

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-10-24 14:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24 13:11 configuring 2 ethernet ports David Kesselring
2003-10-24 13:18 ` Jan-Benedict Glaw
2003-10-24 13:41   ` David Kesselring
2003-10-24 14:40     ` Jan-Benedict Glaw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031024144012.GF12395@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox