I’m trying to make work mt7622 onboard ethernet with nixos default kernel. Since it doesn’t have mtk-eth
I compile it separately as module. However, after system boots I don’t see eth0
.
I have entry in device tree for onboard ethernet:
[root@nixos:~]# ls /sys/firmware/devicetree/base/ethernet@1b100000/
'#address-cells' interrupts mediatek,ethsys reg
clock-names mac@0 mediatek,sgmiisys '#size-cells'
clocks mac@1 name status
compatible mdio-bus power-domains
and this entry is compatible with mediatek,mt7622-eth
:
[root@nixos:~]# cat /sys/firmware/devicetree/base/ethernet@1b100000/compatible
mediatek,mt7622-ethmediatek,mt2701-ethsyscon
I have a module that claims that it compatible with mediatek,mt7622-eth
:
[root@nixos:~]# lsmod | grep mtk_eth
mtk_eth 69632 0
dsa_core 98304 1 mtk_eth
[root@nixos:~]# modinfo mtk_eth
filename: /run/current-system/kernel-modules/lib/modules/5.15.3/extra/mtk_eth.ko.xz
description: Ethernet driver for MediaTek SoC
author: John Crispin <[email protected]>
license: GPL
alias: of:N*T*Cralink,rt5350-ethC*
alias: of:N*T*Cralink,rt5350-eth
alias: of:N*T*Cmediatek,mt7629-ethC*
alias: of:N*T*Cmediatek,mt7629-eth
alias: of:N*T*Cmediatek,mt7623-ethC*
alias: of:N*T*Cmediatek,mt7623-eth
alias: of:N*T*Cmediatek,mt7622-ethC*
alias: of:N*T*Cmediatek,mt7622-eth
alias: of:N*T*Cmediatek,mt7621-ethC*
alias: of:N*T*Cmediatek,mt7621-eth
alias: of:N*T*Cmediatek,mt2701-ethC*
alias: of:N*T*Cmediatek,mt2701-eth
depends: dsa_core
name: mtk_eth
vermagic: 5.15.3 SMP mod_unload aarch64
parm: msg_level:Message level (-1=defaults,0=none,...,16=all) (int)
But I didn’t see any network interfaces created:
[root@nixos:~]# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
[root@nixos:~]# ls /sys/devices/platform/1b100000.ethernet/
driver_override
modalias
of_node
power
subsystem
supplier:platform:10006000.power-controller
supplier:platform:10209000.apmixedsys
supplier:platform:10210000.topckgen
supplier:platform:10211000.pinctrl
supplier:platform:1b000000.syscon
supplier:platform:1b128000.sgmiisys
uevent
waiting_for_supplier
What did I miss?