[SDBUG] read/write mii regs in FreeBSD
J. Cordaro
oradrocyaj at yahoo.com
Sun Dec 9 17:39:01 PST 2007
To respond to my own message, in case anyone else runs
across this in the future,
There is nothing like ethtool in *BSD. The way I got
around this was to go into ciphy.c where it reads and
branches based on phy model, and add code to read mii
regs 0-31 and print them.
I did a make buildkernel and make install kernel and
rebooted.
Then, when I loaded the driver the status registers
would print out.
Then I used dmesg > mii_data.txt to save it to a text
file.
This works but the problem is if you want to turn on a
bit for example, you have to rebuild the kernel. I'm
sure there is a better way to do this, if you have any
ideas please let me know.
-Jay
--- "J. Cordaro" <oradrocyaj at yahoo.com> wrote:
> Guys,
>
> My yahoo mail sux, sorry if this is a duplicate.
> I am trying to read/write mii registers in BSD. This
> is simple in linux, I just use ethtool.
>
> I need more than what ifconfig can provide, I think.
>
> I need to monitor the status of the autoneg
> registers.
> I am having an interop issue with a machine. I
> want
> to see what this machine's autoneg status register
> says after I plug a cable in. I would like to do
> this
> without wiping out the machine and loading linux.
>
> regards,
> Jay Cordaro
>
>
>
>
____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> _______________________________________________
> SDBUG mailing list
> SDBUG at sdbug.org
> http://lists.sdbug.org/mailman/listinfo/sdbug
>
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the SDBUG
mailing list