netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bob Wirka <bobwirka@rtcworks.com>
Cc: netdev@oss.sgi.com, linux-net@vger.kernel.org
Subject: Re: NFS and Network Driver Question
Date: Tue, 19 Oct 2004 13:03:16 -0500	[thread overview]
Message-ID: <417556E4.4090406@rtcworks.com> (raw)
In-Reply-To: <41704198.8000206@rtcworks.com>

Please disregard my last post, I believe the problem is solved. Thanks 
again to all, especially Thomas Graf.

The essential things to learn from this exercise are:

1. A network driver compiled into the kernel must have an initialization 
function that allocates the 'net_device' structure and passes this to 
the kernel through the 'register_netdev()' call. You can reuse the 
module-version initialization function; rename it and prefix it's 
declaration with 'static __init'.

2. Add the 'module_init( init_fcn )' macro after the initialization 
function. This will cause the kernel to execute that code when booting.

Onward and upward.

Bob Wirka
Realtime Control Works

Bob Wirka wrote:

> Hello,
>
> I'm trying to build a kernel that mounts a NFS root file system. This 
> is an embedded system; it uses an SMSC LAN91C111 network chip that is 
> hardwired to I/O addres 0x300 and IRQ 5. I've been using the driver 
> (as supplied by SMSC) as a module, and it works fine. Now I'm trying 
> to incorporate it into the kernel build so that I can mount an NFS 
> file system when the system boots.
>
> I've added the source code to the kernel tree, and modified the 
> Makefile(s) and Config.in files so that the driver <<appears>> to be 
> compiled into the kernel. The kernel will load, but the chip is not 
> initialized and the NFS fails.
>
> Since I don't know how to pass the io address and irq number to the 
> kernel, I've hard-coded them into the driver's init function (which I 
> don't see being called).
>
> If someone could point me in the right direction, I'd appreciate it.
>
> Thank you,
>
> Bob Wirka
> Realtime Control Works
>
>

  reply	other threads:[~2004-10-19 18:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 21:31 NFS and Network Driver Question Bob Wirka
2004-10-19 18:03 ` Bob Wirka [this message]
2004-10-20  0:19 ` Bob Wirka
2004-10-20  0:54   ` Michael Richardson
2004-10-20 15:47     ` Bob Wirka
2004-10-20 15:58   ` Stephen Hemminger
2004-10-20 16:03     ` Bob Wirka
2004-10-21 15:09     ` Bob Wirka
2004-10-21 15:50       ` Bob Wirka
2004-10-21 16:17       ` Henrik Nordstrom

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=417556E4.4090406@rtcworks.com \
    --to=bobwirka@rtcworks.com \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    /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;
as well as URLs for NNTP newsgroup(s).