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

Milan Obuch <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On Thu, 13 Nov 2025 11:49:19 -0800
Shiro <[email protected]> wrote:

> >> 
> >> 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.  
> 
> Thanks for the prompt reply.
> I can create a kernel without cgem, mii, and axe (USB Ethernet),
> loaded as modules.  But it’s not helpful, the mii module is needed by
> USB, so it loads automatically… I’m making some progress with the
> in-kernel Phy code…
> 

That's right... I used serial console when I worked on something
network related, so I can unload both cgem and mii modules. I think it
is possible somehow create smaller kld with only some mii phy drivers,
but I did not try that.

Regards,
Milan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.