Re: FreeBSD on Zynq (Cortex-A9), new Phy for cgem0?

From: Milan Obuch <freebsd-arm_at_dino.sk>
Date: Wed, 12 Nov 2025 19:32:22 UTC
On Wed, 12 Nov 2025 11:18:08 -0800
Shiro <rt9f.3141@gmail.com> wrote:

> Hello,
> 
> I’m running 14.3 on a Zynq 7020 with excellent results so far and
> hope to continue to use 15.+ on this platform.
> 
> The problem I now face is to support a new Phy on cgem0. Rather than
> modify - test - rebuild - reboot the kernel, I’d like to develop and
> debug cgem0+Phy as a KLD (using USB-Eth in the meantime). My platform
> is nearly identical to ZEDBOARD.
> 
> How do I modify the build so that cgem0 (with Phys) is built as a
> KLD? My thinking is I’d be able to modify, load, test/debug, unload
> the KLD faster. Am I missing anything?

No need to build it as single KLD, just build a cgem KLD and let it
load PHY kld. I need to investigate what I tested in some past, but it
was something like this. Also, all bits necessary to build it this way
should be already in place.

Regards,
Milan