9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ray Amberg <ramberg@cs.ucr.edu>
To: 9fans@cse.psu.edu
Subject: [9fans] ethernet detection problems
Date: Thu, 24 Nov 2005 20:57:20 -0800	[thread overview]
Message-ID: <Pine.LNX.4.63.0511241946190.29829@eon.cs.ucr.edu> (raw)

Hello everyone,

Sorry if this is going outside the thread.  I finally got time to attempt 
the fixes to the ethernet detection problems for the Sis900 and the WPC-11 
wireless ethernet cards.  Still, no luck.  Here's my log of events (it was 
my first kernel recompile, so not sure if I did everything right):

1. Added the lines of code to ether83815.c, as described in Cox's message
below, and saved.
2. Compiled the kernel with the following commands:
 	% cd /sys/src/9/pc
 	% mk 'CONF=pc'
 	[many lines of compiling here omitted.  A file 9pc created]
 	% cp 9pc /386
 	% 9fat:
 	% cp 9pc /n/9fat/my9pc
3. Edited plan9.ini and changed the bootfile to point to my9pc. Also made 
sure that plan9.ini defined ether0 to 83815, and included the ea=address 
flag.
4. Restarted computer

At the boot, it found my9pc and loaded it, but a couple of things were 
different.  First, there was no longer an option to boot 'local', only 
'tcp' or 'il'.  I attempted tcp, but I received an error about 
/net/ether0 not existing, then a panic, and a cpu0: exit.

After fixing plan9.ini to boot the original kernel image, I attempted the 
same process with the etherwavelan.c file, and changing plan9.ini to define 
ether0=wavelan essid=myid, recompiling again, but the results were the 
same.

On request, here is the output of the 'net' portions of the 'pci' command:
 	[...]
 	0.4.0:	net  02.00.00 1039/0900   5 0:00009801 256 1:e5000000 4096
 	0.8.0:	net  02.80.00 14e4/4301   5 0:e4800000 8192
 	[...]

I will try Benevento's suggestion to use the driver located at 
http://pages.cpsc.ucalgary.ca/~mirtchov/lanlp9/sis900/ethersis.c , but in 
the meantime this is where I am.  Any suggestions would be appreciated. 
Thanks again for the previous responses.

Ray

Russ Cox wrote:
> For the SIS900, try applying the following changes to
> /sys/src/9/pc/ether83815.c and then recompile the
> kernel, copy it to 9fat, and boot it.
>
> % diff -c /n/dump/2005/1106/sys/src/9/pc/ether83815.c 
/sys/src/9/pc/ether83815.c
> /n/dump/2005/1106/sys/src/9/pc/ether83815.c:81,86 -
> /sys/src/9/pc/ether83815.c:81,87
>
>   enum {        /* Variants */
>     Nat83815  = (0x0020<<16)|0x100B,
> +   Sis900 = (0x0630<<16)|0x1039, /* untested */
>   };
>
>   typedef struct Ctlr Ctlr;
> /n/dump/2005/1106/sys/src/9/pc/ether83815.c:841,846 -
> /sys/src/9/pc/ether83815.c:842,848
>         continue;
>
>       case Nat83815:
> +     case Sis900:
>         break;
>       }
>
> %
>
> Similarly, the following patch may make your WPC-11 start
> working (if not, please send us the "net" lines that get
> printed by the "pci" command).
>
> % diff -c /n/dump/2005/1106/sys/src/9/pc/etherwavelan.c
> /sys/src/9/pc/etherwavelan.c
> /n/dump/2005/1106/sys/src/9/pc/etherwavelan.c:87,92 -
> /sys/src/9/pc/etherwavelan.c:87,93
>     int did;
>   } wavelanpci[] = {
>     0x1260, 0x3873, /* Intersil Prism2.5 */
> +   0x1737, 0x0019, /* Linksys WPC-11 untested */
>   };
>
>   static Ctlr *ctlrhead, *ctlrtail;
> %
>
> Russ
>



             reply	other threads:[~2005-11-25  4:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-25  4:57 Ray Amberg [this message]
2005-11-25  6:00 ` Federico Benavento
2005-11-25 17:35   ` jmk
2005-11-25 13:57 ` Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2005-11-28  1:29 YAMANASHI Takeshi
2005-11-28  1:42 ` Russ Cox
2005-11-06  6:41 Ray Amberg
2005-11-06 14:42 ` Russ Cox
2005-11-07 10:45   ` Charles Forsyth
2005-11-06 21:22 ` Federico Benavento

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=Pine.LNX.4.63.0511241946190.29829@eon.cs.ucr.edu \
    --to=ramberg@cs.ucr.edu \
    --cc=9fans@cse.psu.edu \
    /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).