Dump Tally Counter Command

Discussion in 'UDOO X86' started by Snakebyte, Jun 25, 2018.

  1. Snakebyte

    Snakebyte Member

    Joined:
    Mar 19, 2018
    Messages:
    90
    Likes Received:
    9
    I've gotten the RealTek 8111G ethernet chip working with the unsupported OS I am porting to the Udoo board, by following an earlier driver framework (for the 8169 chip) in the OS, and FreeBSD's if_re.c driver (no black box byte code). However, I have run into an issue with trying to get the statistics for the ethernet chip, using the Dump Tally Counters Command (DTCC). I see that the officially supported BSD-licensed driver by RealTek (complete with black box byte code) does not appear to read this register. Instead, there are only a few counters incremented manually at the time of the issue.

    Has anyone printed out ethernet statistics when using the Udoo boards? Can you please post them so that I could review them against the code, to see if there is any internal, on-board counting?

    Thank you.
     
  2. Snakebyte

    Snakebyte Member

    Joined:
    Mar 19, 2018
    Messages:
    90
    Likes Received:
    9
    I ended up not reading the DTCC in the driver and it works great now. Bill Paul, the original author of the if_rl and if_re drivers for FreeBSD, pointed me to his stash of RealTek documentation, when they still published the docs:

    https://people.freebsd.org/~wpaul/RealTek/

    The 8169 doc discusses the DTCC register. Don't use it with the 8111G chip on the Udoo x86 boards.

    I posted the driver code at http://www.dialectronics.com/Minix
     
    waltervl likes this.

Share This Page