1
0
forked from dan/liminix

Make sure to load air_en8811h before bringing up eth0

to make the 2.5G ethernet port work
This commit is contained in:
Arnout Engelen 2024-12-31 12:43:13 +01:00
parent 16a1c5101d
commit 996cf4b472
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA

View File

@ -11,17 +11,19 @@
- 1024MB RAM - 1024MB RAM
- WLan hardware: Mediatek MT7976C - WLan hardware: Mediatek MT7976C
Status
======
- Only tested over TFTP so far.
- WiFi (2.4G and 5G) works.
- 2.5G ethernet port works.
Limitations Limitations
=========== ===========
* Only tested over TFTP so far. - nvme support untested
* 2.5G ethernet port does not work yet - I don't think the front LEDs work yet
mtk_soc_eth 15100000.ethernet eth0: validation of 2500base-x with support 00,00000000,00000000,000062e8 and advertisement 00,00000000,00000000,000062c0 failed: -EINVAL - adding `he_bss_color="128"` causes `Invalid argument` for hostap
* nvme support not added yet
* I don't think the front LEDs work yet
* wifi connection suffers 20%+ packet loss
* adding `he_bss_color="128"` causes `Invalid argument` for hostap
* have to manually `s6-svc -u run/service/...dhcpc` to get an IPv4 address
''; '';
system = { system = {
@ -585,10 +587,15 @@
hardware = hardware =
let let
openwrt = pkgs.openwrt; openwrt = pkgs.openwrt;
mac80211 = pkgs.kmodloader.override { phy = pkgs.kmodloader.override {
targets = [
"air_en8811h"
];
inherit (config.system.outputs) kernel;
};
mac80211 = pkgs.kmodloader.override {
targets = [ targets = [
"mt7915e" "mt7915e"
"air_en8811h"
"rtc-pcf8563" "rtc-pcf8563"
"nvme_core" "nvme_core"
"nvme" "nvme"
@ -659,7 +666,10 @@
let let
inherit (config.system.service.network) link; inherit (config.system.service.network) link;
in rec { in rec {
eth0 = link.build { ifname = "eth0"; }; eth0 = link.build {
ifname = "eth0";
dependencies = [ phy ];
};
eth1 = link.build { ifname = "eth1"; }; eth1 = link.build { ifname = "eth1"; };
wlan0 = link.build { wlan0 = link.build {