Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2024 15:06:10 +0000
From:      John F Carr <jfc@mit.edu>
To:        "freebsd-riscv@freebsd.org" <freebsd-riscv@FreeBSD.org>
Subject:   JH7110 dwc MAC support
Message-ID:  <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu>

next in thread | raw e-mail | index | archive | help
I am trying to run FreeBSD on the Star64 SBC with JH7110 SOC.

Has anybody gotten the ethernet driver working on this chip?
It's a DesignWare MAC according to the device tree so if_dwc.c
should be the starting point.  The driver does not work
simply by changing the "compatible" string.  It can't find
the PHY because all the register reads come back 0.  The
only documentation I can find is the Linux driver source code.
I can try updating register offsets and command bit patterns
to match what the Linux driver does with "snps,dwmac-5.20".

I loaded the LUA loader and FreeBSD kernel over the network
so all the boot code is happy with the MAC+PHY combination.
It's the kernel that doesn't work.

John Carr




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E28ED97-DD4B-40AA-91FB-DB3982042265>