verilog-ethernet icon indicating copy to clipboard operation
verilog-ethernet copied to clipboard

Linux Device Driver Support

Open Yuan-Mao opened this issue 4 years ago • 9 comments

Hi,

Is there any Linux driver support for your Ethernet MAC?

Thanks!

Yuan-Mao avatar Oct 13 '21 17:10 Yuan-Mao

What do you mean? It's a MAC, it doesn't really need a driver, at least as far as I am aware.

alexforencich avatar Oct 13 '21 20:10 alexforencich

For example has it ever been used in Linux before? Just want to cross comparing between different Ethernet device drivers for Linux in order to better understand how drivers for Ethernet are usually done in Linux.

Yuan-Mao avatar Oct 14 '21 04:10 Yuan-Mao

Oh, you want a whole NIC in that case. Take a look at https://github.com/corundum/corundum .

alexforencich avatar Oct 14 '21 04:10 alexforencich

But if you want to look at other device drivers, the place to go is here: https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet

alexforencich avatar Oct 14 '21 04:10 alexforencich

Got it. Thanks for the links!

Yuan-Mao avatar Oct 14 '21 04:10 Yuan-Mao

Hello, sorry to hijack this older issue but I have a similar question; I'm playing around with the 10Gbe MAC/phy on a zynq SoC. In principle I could just hook the TX/RX fifos to a DMA and have "raw" access to the link from the ARM CPU (running linux), but I'm trying to figure out how much work would be required to have actual net interface.

I imagine that I would need to write at least a net kernel driver (that is going to look similar to one of the modules in net/ethernet/xilinx). But I'm wondering if some work has already been done somewhere, maybe even in the form of very a generic net driver?

GbGp avatar Jul 27 '23 07:07 GbGp

Take a look at: https://github.com/corundum/corundum

alexforencich avatar Jul 27 '23 07:07 alexforencich

Oh, I already read that but I didn't realize that some work on an axi interface was already in progress (after a quick search I can see https://github.com/corundum/corundum/pull/98 for example). I will study that repo more in dept. Thanks!

GbGp avatar Jul 27 '23 09:07 GbGp

Yep, it's reasonably well-supported on Zynq devices; there are targets for petalinux and/or ubuntu on the ZCU102, ZCU106, and KR260.

alexforencich avatar Jul 27 '23 09:07 alexforencich