litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
553 stars 174 forks source link

There is no ethphy in kcu105, only ethmac. #244

Closed benoit1995 closed 2 years ago

benoit1995 commented 2 years ago

I successfully downloaded the kernel (https://github.com/litex-hub/linux-on-litex-vexriscv/issues/164) to kcu105 using tftp, but I don't see eth0 after using ifconfig -a, only Io and sit0 exist. image I checked . /build/kcu105/kcu105.dts, found no mac0 node, then in litex/tools/litex_json2dts.py I found that if I want to generate a mac0 node, I need both ethphy and ethmac. if "ethphy" in d["csr_bases"] and "ethmac" in d["csr_bases"]: I found that when enabling the ethernet of kcu105 in make.py, it only generates ethmac but not ethphy. image image Why does this situation arise? Is it because kcu105 is using sfp instead of rj45? Looking forward to your reply.

Benoit.

enjoy-digital commented 2 years ago

Thanks @benoit1995 for the feedback. The 1000 BASE X PHY used on the KCU105 is indeed a bit different and currently does not have CSRs. I'll look at this soon.

enjoy-digital commented 2 years ago

Sorry for the delay, this is fixed by https://github.com/enjoy-digital/liteeth/commit/4cd0a99187677553078fcefbf78eb15863b6ed61.