!RjBlCIbsLDzHBIzmaA:nixos.org

NixOS on ARM

986 Members
NixOS on ARM — Support: AArch64 is supported and cached; armv6 and armv7 are best effort, without any official cache. — Documentation: https://wiki.nixos.org/wiki/NixOS_on_ARM — Community build box: https://github.com/nix-community/aarch64-build-box → build box status: https://status.nixos.org/grafana/d/5LANB9pZk/per-instance-metrics?orgId=1&refresh=30s&var-instance=147.75.77.190 —238 Servers

Load older messages


SenderMessageTime
29 May 2025
@matthewcroughan:defenestrate.itmatthewcroughanI'm not sure under what circumstances this bin file will be used by this name12:33:29
@matthewcroughan:defenestrate.itmatthewcroughan
static char *mt7996_eeprom_name(struct mt7996_dev *dev)
{
	switch (mt76_chip(&dev->mt76)) {
	case MT7992_DEVICE_ID:
		switch (dev->var.type) {
		case MT7992_VAR_TYPE_23:
			if (dev->var.fem == MT7996_FEM_INT)
				return MT7992_EEPROM_DEFAULT_23_INT;
			return MT7992_EEPROM_DEFAULT_23;
		case MT7992_VAR_TYPE_44:
		default:
			if (dev->var.fem == MT7996_FEM_INT)
				return MT7992_EEPROM_DEFAULT_INT;
			if (dev->var.fem == MT7996_FEM_MIX)
				return MT7992_EEPROM_DEFAULT_MIX;
			return MT7992_EEPROM_DEFAULT;
		}
	case MT7990_DEVICE_ID:
		if (dev->var.fem == MT7996_FEM_INT)
			return MT7990_EEPROM_DEFAULT_INT;
		return MT7990_EEPROM_DEFAULT;
	case MT7996_DEVICE_ID:
	default:
		switch (dev->var.type) {
		case MT7996_VAR_TYPE_233:
			if (dev->var.fem == MT7996_FEM_INT)
				return MT7996_EEPROM_DEFAULT_233_INT;
			return MT7996_EEPROM_DEFAULT_233;
		case MT7996_VAR_TYPE_444:
		default:
			if (dev->var.fem == MT7996_FEM_INT)
				return MT7996_EEPROM_DEFAULT_INT;
			return MT7996_EEPROM_DEFAULT;
		}
	}
}
12:33:47
@matthewcroughan:defenestrate.itmatthewcroughanI guess it just uses this if it's 7996 at all12:34:28
@matthewcroughan:defenestrate.itmatthewcroughanTheir google drive filename is interesting12:35:08
@matthewcroughan:defenestrate.itmatthewcroughan Eagle_MT7976C_MT7977iA_2i3i3i_6G_TSSI_OFF_TC_ON_Test_mode_20240116_V04.bin 12:35:11
@emilazy:matrix.orgemilymy guess from glancing very briefly at code is that it is unconditionally used as firmware, but the txpower calibration data from the device is preferred over the defaults in the firmware.12:35:17
@matthewcroughan:defenestrate.itmatthewcroughanSo they have access to the board files in Eagle I guess12:35:21
@emilazy:matrix.orgemily(for obvious reasons, but that's what causes the issue when your data is busted)12:35:27
@matthewcroughan:defenestrate.itmatthewcroughanAnd I guess those bytes you're seeing as turning TSSI off and TC on12:35:36
@emilazy:matrix.orgemilyisn't Eagle the codename of the Filogic stuff?12:35:45
@matthewcroughan:defenestrate.itmatthewcroughanand enabling test mode?12:35:45
@matthewcroughan:defenestrate.itmatthewcroughanmay be, but it's also a cad package isn't it12:36:02
@emilazy:matrix.orgemilyis that based on the offsets the kernel driver loks at?12:36:06
@emilazy:matrix.orgemily* is that based on the offsets the kernel driver looks at?12:36:07
@emilazy:matrix.orgemilyoh12:36:11
@emilazy:matrix.orgemilyit's based on the filename12:36:15
@matthewcroughan:defenestrate.itmatthewcroughanI can try this firmware alongside the txpower fix to see if there's a difference12:36:21
@emilazy:matrix.orgemilyI do not think we can conclude that – it may be that that's the specific configuration they pick regardless of version.12:36:25
@emilazy:matrix.orgemilyi.e., Filogic sends them a bunch of firmware with various configurations and they picked that one.12:37:12
@emilazy:matrix.orgemilyMediaTek rather. whatever.12:37:19
@matthewcroughan:defenestrate.itmatthewcroughanI tried to get WED working quite unsuccessfully btw12:37:37
@matthewcroughan:defenestrate.itmatthewcroughan
    mt7996-firmware = final.runCommand "mt7996-firmware" { } ''
      mkdir -p $out/lib/firmware/mediatek
      cp -rv ${final.bpi-r4.mt76} $out/lib/firmware/mediatek/mt7996
      cp -rv ${./mt7988_wo_0.bin} $out/lib/firmware/mediatek/mt7988_wo_0.bin
      cp -rv ${./mt7988_wo_1.bin} $out/lib/firmware/mediatek/mt7988_wo_1.bin
      cp -rv ${./mt7988_wo_2.bin} $out/lib/firmware/mediatek/mt7988_wo_2.bin
      ls -lah $out/lib/firmware/mediatek/mt7996
    '';

12:37:45
@matthewcroughan:defenestrate.itmatthewcroughan
mt7996-firmware = final.runCommand "mt7996-firmware" { } ''
      mkdir -p $out/lib/firmware/mediatek
      cp -rv ${final.bpi-r4.mt76} $out/lib/firmware/mediatek/mt7996
      cp -rv ${./mt7988_wo_0.bin} $out/lib/firmware/mediatek/mt7988_wo_0.bin
      cp -rv ${./mt7988_wo_1.bin} $out/lib/firmware/mediatek/mt7988_wo_1.bin
      cp -rv ${./mt7988_wo_2.bin} $out/lib/firmware/mediatek/mt7988_wo_2.bin
      ls -lah $out/lib/firmware/mediatek/mt7996
    ';
12:37:47
@matthewcroughan:defenestrate.itmatthewcroughanRedacted or Malformed Event12:38:09
@matthewcroughan:defenestrate.itmatthewcroughanRedacted or Malformed Event12:38:21
@matthewcroughan:defenestrate.itmatthewcroughanRedacted or Malformed Event12:38:47
@matthewcroughan:defenestrate.itmatthewcroughanRedacted or Malformed Event12:41:20
@matthewcroughan:defenestrate.itmatthewcroughanRedacted or Malformed Event13:04:17
@emilazy:matrix.orgemilythis is happening again :/13:10:20
@emilazy:matrix.orgemily

a few minutes after some

[53464.014645] Virtual device eth0 asks to queue packet!
[54556.087872] Virtual device eth0 asks to queue packet!
[54556.092961] Virtual device eth0 asks to queue packet!
[54782.344423] Virtual device eth0 asks to queue packet!
13:10:39

Show newer messages


Back to Room ListRoom Version: 6