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

Re: kernel internals network driver question..



hi,

> The device shows up in dmesg and is able to read the MAC addr etc:
> 
> url0 at uhub1 port 2
> url0: Linksys Linksys USB LAN Adapter, rev 1.10/1.00, addr 3
> url0: Ethernet address 00:10:60:c2:9b:71
> urlphy0 at url0 phy 0: Realtek RTL8150L internal media interface
> urlphy0:
> 
> Note the last line is empty when it should be printing out something
> like:
> 
> ukphy0: OUI 0x000895, model 0x0021, rev. 11

  if you look at mii_phy_add_media(), in OpenBSD doesn't print anything.
  therefore, that's ok. what you see in ukphy is done in the attach routine,
which urlphy does not have (judging for the diffs you provided).
  i will say, remove this line from urlphy:

	printf("%s: ", sc->mii_dev.dv_xname);

> Could this be the problem? Not setting the correct PHY/MII flags?
> 
> The interface appears in my interface list, and the kernel knows about
> the media options it supports. This is where the fun starts with
> ifconfig(8):

  are you using a recent kernel but an old ifconfig?
  it may be they're out of sync.
 
> The patch (68Kbytes) at http://www.ackley.net/~jason/obsd-rtl8150.patch
> includes the changes to sys to make this work. This does not include man
> pages for url(4) or urlphy(4) just yet..

  what are you waiting for? :)
 
> With the above patch there are some changes that take place elsewhere,
> such as net/if_ethersubr.c and netinet/if_ether.h .
> 
> These changes are to bring in the ether_crc32_le() and ether_crc32_be()
> functions from NetBSD into if_ethersubr.c .

  there are plans to move it to if_ethersubr.c. i'm not sure why it has
not happened yet, but it will prolly be done soon.

  f.-