Re: FreeBSD on Zynq (Cortex-A9), new Phy for cgem0?
- In reply to: Shiro : "Re: FreeBSD on Zynq (Cortex-A9), new Phy for cgem0?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Nov 2025 20:23:14 UTC
On Thu, 13 Nov 2025 11:49:19 -0800 Shiro <rt9f.3141@gmail.com> 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