Open liamliamliam3 opened 1 year ago
Hi there: The patch about linking AMD RZ616 to MT7922 has been removed in the recent releases of Wifibox/Alpine becase it is considered to be part of the latest Linux versions that are supported, namely 6.1 and 6.5.
On the wifibox console
, can you see the mt7921e
kernel module or something similar loaded in the output of lsmod
? Have you tried to load it directly via modprobe mt7921e
?
Please note that #69 might be related.
Both Linux 6.1.54 and Linux 6.5.4 contain the patch so that should not be the cause of this type of card not recognized properly.
Please include the output of the ls -k
command from wifibox console
.
The module was not loaded on startup. I successfully loaded it to no change. ls -k returns no output.
lsmod (after loading mt7921e)
Module Size Used by Not tainted mt7921e 20480 0 mt7921_common 65536 1 mt7921e mt76_connac_lib 57344 2 mt7921e,mt7921_common mt76 65536 3 mt7921e,mt7921_common,mt76_connac_lib iptable_nat 16384 1 ip6table_nat 16384 1 ip6table_filter 16384 1 ip6_tables 24576 2 ip6table_nat,ip6table_filter ipv6 450560 12 [permanent]
ls -h /lib/firmware/mediatek/WIFI_*.bin
/lib/firmware/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
/lib/firmware/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
/lib/firmware/mediatek/WIFI_RAM_CODE_MT7922_1.bin
/lib/firmware/mediatek/WIFI_RAM_CODE_MT7961_1.bin
I am running the 6.1.54-LTS kernel currently.
That is strange that there is no output for lspci -k
. That means that there are no PCI devices visible on the guest at all. Mine is like that:
00:06.1 Class 0c03: 8086:9d2f
00:1f.0 Class 0601: 8086:7000
00:04.2 Class 0100: 1af4:1009 virtio-pci
00:04.0 Class 0100: 1af4:1001 virtio-pci
00:00.0 Class 0600: 1275:1275
00:04.3 Class 0100: 1af4:1009 virtio-pci
00:06.0 Class 0280: 8086:24f3 iwlwifi
00:04.1 Class 0100: 1af4:1009 virtio-pci
00:05.0 Class 0200: 8086:100f e1000
For example, besides the actual physical PCI devices that was configured for pass-through (which is the one with the iwlwifi
above), there are a plenty other virtual devices, such as hard disk, disk controller, or the Ethernet card. The dmesg
output attached to this ticket also suggests that these devices are present.
I'm sorry, I misunderstood and posted the output of the ls -k
command not lspci -k
.
This is the output today after a fresh reboot.
00:1f.0 Class 0601: 8086:7000 00:04.2 Class 0100: 1af4:1009 virtio-pci 00:04.0 Class 0100: 1af4:1001 virtio-pci 00:00.0 Class 0600: 1275:1275 00:04.3 Class 0100: 1af4:1009 virtio-pci 00:06.0 Class 0280: 14c3:0616 mt7921e 00:04.1 Class 0100: 1af4:1009 virtio-pci 00:05.0 Class 0200: 8086:100f e1000
Interesting enough wlan0 has populated under ip a
and rfkill
today. This was after a hard reboot this morning switching from my linux partition.
I am not sure if it was related to me loading the mt7921e module because the previous day I reset the guest with service wifibox reset guest
and nothing was detected after the VM rebooted, even after I reloaded the kernel module again.
Since the card was now detected on the guest I tried manually activating everything. The card comes up with ip link set wlan0 up
connects to the network with wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
and is given a proper IP with udhcpc -i wlan0
.
This process is not persistent across guest reboots.
On FreeBSD I have tried killing dhclient and restarting it manually with dhclient wifibox0
. It is assigned a 10.0.0.2 IP address but the laptop does not have internet connectivity tested with ping or attempting to load a webpage. I am not familiar with network bridging so I am wondering if I am messing up the manual configuration on alpine. I am also not sure why the device has suddenly appeared but is it misbehaving.
EDIT: After a subsequent system reboot the device has once again disappeared from alpine. I am running through every scenario so I can document how I get it to appear again. Afterwords I'll be studying up and reporting back with what manual configuration steps allow me to bridge the networks.
Oh, sorry, it was my fault. I originally wrote ls -k
while I meant lspci -k
.
Strange behaviors like that might indicate bugs in the lower layers, i.e. in bhyve
or the vmm
kernel module itself, or even with how the hardware is updated with various firmware when used from different operating systems.
If you experience problems, it is always good to check first if the wireless PCI device is visible for the guest. But that is usually not sufficient: for Intel-based cards (like mine) the firmware updates cannot always be applied. For example, after resume, if vmm
is not reloaded, the card basically goes away for the guest. That is probably because vmm
does not handle the suspend and resume events and it does not re-initialize the devices by itself.
Perhaps you should switch to a different recovery method, suspend_vmm
where the vmm
kernel module is unloaded before letting the computer to go to sleep and re-loaded on resume. However, it has not been discussed if this issue happens on boot, or across suspend/resume cycles. If that is about having Linux used before the warm reset, this might be an OS-level issue, like FreeBSD is not initializing the PCI device properly.
With regard to the network connectivity issue you mentioned, mind that getting an IP address for the wifibox0
interface is not enough by itself. There have to be a route configured as well. This is what you can check with netstat -nr
, where the default gateway should point towards the wifibox0
interface.
$ netstat -nr4
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.0.0.1 UGS wifibox0
10.0.0.0/24 link#3 U wifibox0
10.0.0.2 link#3 UHS lo0
127.0.0.1 link#2 UH lo0
Note that there 10.0.0.1
is the IP address of the eth0
interface on the guest. That works because of the bridging.
If that all is in order, you can continue with checking if the Internet connectivity from the guest itself is functional. On wifibox console
use the regular ping
command to tell that, for example. In case of problems, it is enough to say
service networking restart
to redo the network configuration. When doing so, you shall see messages, warnings, or errors to show how the guest is making progress.
The default networking configuration for the guest should just work if the 10.0.0.0/24
network is not already used on your FreeBSD host system. The only thing that needs to be filled out are the details of the wireless network (SSID, PSK etc).
Thank you so much for your in-depth responses. I am learning a lot about how all of this meshes together. I am happy to report that I am submitting this comment from a wifibox connection :). I am still unsure about why the card is only recognized sometimes. It was gone for quite sometime despite many reboots and tinkering. Today it popped up again and I have logged the dmesg from the host for clues.
This time it did not configure itself again. I had to manually bring up the interface and run wpa_supplicant. Oddly enough this time I could not get an IP with udhcpd like last time. I ran it in the foreground and it was complaining about the variable in the configuration file.'
udhcpd: bad address '%%DNS%%'
While I was going to edit the file I realized that dhcpcd was also an option so I re-set the networking service and manually killed all the udhcpd and wpa_supplicant PIDS. Then I ran wpa_supplicant once again and started dhcpcd. Boom, I had working Wi-Fi :).
This has been the first time it has worked for me at all. It is good to know to check into vmm itself if it starts giving me issues upon suspending and resuming the device.
I am unsure why last time udhcpd worked but then I had an issue with routing but now udhcpd does not work but everything works out of the box after configuration with dhcpcd. I have not edited any configuration file in between attempts. Thank you for telling me about netstat -nr4
, I will use it to figure out what is going on if it acts up again. Maybe these are just some quirks because I am using the RC4 build of FreeBSD and will get ironed out with the actual release.
In summary, I can attain a successful connection IF the device shows up in the guest and I manually run all commands to bring the interface up and use dhcpcd instead of udhcpd. I will keeping testing to find what is causing these problems.
If you guys want to add them or have them for when I get everything figured out and functioning as intended my specs are:
Thinkpad L15 Generation 3 AMD Ryzen 5 PRO 5675U AMD RZ616 (MT7922)
Thank you guys so much for the amazing software and all the help :) It really makes me so happy that I can use my favorite OS on my new laptop and not have to worry about a USB wireless dongle.
If you see error messages like udhcpd: bad address '%%DNS%%'
it means that, for some reason, the templating for the udhcpd.conf
file does not work properly. This is needed because by default, Wifibox provides the host with a set of static DNS servers (8.8.8.8
and 8.8.4.4
) while sometimes it is desired to pass through the information about the DNS servers received from the local DHCP server. The string %%DNS%%
is the place where they could be inserted in the udhcpd.conf
file. This does not go through as expected and the name %%DNS%%
remains unresolved.
This sounds like a bug. The quick and easy solution is to remove the %%DNS%%
text from the udhcpd.conf
file and it will not cause any more trouble.
The alternative to that, as you have also discovered, is to switch over to dhcpcd
. That is used for working with IPv6, but since it replaces udhcpd
completely, it can be a remedy for the hiccups with that service.
I just got back from a trip and have done some more testing and the only way I can get the interface to show up in alpine is a hot reboot from my linux partition. I went ahead and removed the %%DNS%%
string and now all I have to do once the guest launches is manually run dhcpcd wlan0
after connecting to my network.
I cannot seem to figure out why I need to reboot from another partition for the device to appear. Are there any logs or utilities I can use to deep dive into how the PCI device is attached to the guest in detail?
I have a hunch that whatever is causing the intermittent device appearances is also causing the need to manually connect to the network every time the guest is launched.
EDIT: I forgot to add, I have upgraded to 14.0-RELEASE
It would be useful to see why dhcpcd
in the guest should be started up manually. Could you please attach the contents of the /var/log/messages
file from the guest? This should hold the error messages for dhcpcd
. Perhaps something along the lines of the output of the following command:
grep -F dhcpcd /var/log/messages
Regarding the PCI device visibility, I do not have any firm hint at the moment. PCI pass-through is implemented through IOMMU (Intel VT-d, AMD-Vi) and maybe the vmm
kernel does not do a good job at initializing that properly. For example, the hw.vmm.iommu
set of sysctl
variable could be checked on the host:
sysctl hw.vmm.iommu
However, bhyve
should not be able to startup if IOMMU is not initialized.
@slothbearwrangler ping?
I have the same issues on FreeBSD Current with MT7922. I have not been able to get it to 'show up' in the wifibox console.
Here's all my info.. hoping it might help get this resolved. This is going to be a long post!!
---<<BOOT>>---
Copyright (c) 1992-2024 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 15.0-CURRENT #1 068c675ca: Sat Apr 13 20:34:19 CDT 2024
root@queenannesrevenge:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
FreeBSD clang version 18.1.3 (https://github.com/llvm/llvm-project.git llvmorg-18.1.3-0-gc13b7485b879)
VT(efifb): resolution 2560x1600
CPU: AMD Ryzen 5 7540U w/ Radeon(TM) 740M Graphics (3194.14-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0xa70f41 Family=0x19 Model=0x74 Stepping=1
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x7ef8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX>
Structured Extended Features=0xf1bf97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL>
Structured Extended Features2=0x405fde<AVX512VBMI,UMIP,PKU,OSPKE,AVX512VBMI2,GFNI,VAES,VPCLMULQDQ,AVX512VNNI,AVX512BITALG,AVX512VPOPCNTDQ,RDPID>
Structured Extended Features3=0x10000000<L1DFL>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
AMD Extended Feature Extensions ID EBX=0x791ef257<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SSBD>
SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
TSC: P-state invariant, performance statistics
real memory = 17179869184 (16384 MB)
avail memory = 15861641216 (15126 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <HPQOEM SLIC-MPC>
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 1 8 10 11 9 2 5 6 4 3 7
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0x58e1f000-0x58e1f017
smbios0: Version: 3.4
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <HPQOEM SLIC-MPC>
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.GPP0], AE_NOT_FOUND (20230628/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-372)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.GPP2], AE_NOT_FOUND (20230628/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-372)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.GPP2.WWAN], AE_NOT_FOUND (20230628/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-372)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.GP11], AE_NOT_FOUND (20230628/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-372)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.GP12], AE_NOT_FOUND (20230628/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-372)
AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 350
Event timer "HPET1" frequency 14318180 Hz quality 350
Event timer "HPET2" frequency 14318180 Hz quality 350
atrtc1: <AT realtime clock> on acpi0
atrtc1: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0xb> port 0x62,0x66,0x68,0x6c on acpi0
isab0: <ACPI Generic ISA bridge> on acpi0
isa0: <ISA bus> on isab0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
amdiommu0 at device 0.2 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 2.2 on pci0
pci1: <ACPI PCI bus> on pcib1
ppt0 mem 0x7f30800000-0x7f308fffff,0x60900000-0x60907fff at device 0.0 on pci1
pcib2: <PCI-PCI bridge> at device 2.3 on pci0
pcib3: <ACPI PCI-PCI bridge> at device 2.4 on pci0
pci2: <ACPI PCI bus> on pcib3
nvme0: <Generic NVMe Device> mem 0x60800000-0x60803fff at device 0.0 on pci2
pci0: <old, non-VGA display device> at device 3.2 (no driver attached)
pci0: <old, non-VGA display device> at device 3.3 (no driver attached)
pci0: <old, non-VGA display device> at device 3.4 (no driver attached)
pcib4: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci3: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> port 0x1000-0x10ff mem 0x7f20000000-0x7f2fffffff,0x60000000-0x601fffff,0x60500000-0x6057ffff at device 0.0 on pci3
hdac0: <ATI (0x1640) HDA Controller> mem 0x605c8000-0x605cbfff at device 0.1 on pci3
pci3: <encrypt/decrypt> at device 0.2 (no driver attached)
xhci0: <XHCI (generic) USB 3.0 controller> mem 0x60200000-0x602fffff at device 0.3 on pci3
xhci0: 64 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
xhci1: <XHCI (generic) USB 3.0 controller> mem 0x60300000-0x603fffff at device 0.4 on pci3
xhci1: 64 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pci3: <multimedia> at device 0.5 (no driver attached)
hdac1: <AMD Raven HDA Controller> mem 0x605c0000-0x605c7fff at device 0.6 on pci3
pcib5: <PCI-PCI bridge> at device 8.2 on pci0
pci4: <PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 8.3 on pci0
pci5: <ACPI PCI bus> on pcib6
xhci2: <XHCI (generic) USB 3.0 controller> mem 0x60600000-0x606fffff at device 0.3 on pci5
xhci2: 64 bytes context size, 64-bit DMA
usbus2 on xhci2
usbus2: 5.0Gbps Super Speed USB v3.0
xhci3: <XHCI (generic) USB 3.0 controller> mem 0x60700000-0x607fffff at device 0.4 on pci5
xhci3: 64 bytes context size, 64-bit DMA
usbus3 on xhci3
usbus3: 5.0Gbps Super Speed USB v3.0
isab1: <PCI-ISA bridge> at device 20.3 on pci0
device_attach: isab1 attach returned 6
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
acpi_tz2: <Thermal Zone> on acpi0
cpu0: <ACPI CPU> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
ivhd0: <AMD-Vi/IOMMU ivhd in mixed format> on acpi0
ivhd0: Unknown dev entry:0xf0
Variable size IVHD type 0xf0 not supported
ivhd0: Flag:b0<IotlbSup,Coherent>
ivhd0: Features(type:0x40) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd0: Extended features[31:0]:a2254afa<PPRSup,NXSup,GTSup,<b5>,IASup,GASup,PCSup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x1 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd0: Extended features[62:32]:246577ef<USSup,PprOvrflwEarlySup,PPRAutoRspSup,BlKStopMrkSup,PerfOptSup,MsiCapMmioSup,GIOSup,EPHSup,InvIotlbSup> Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd0: supported paging level:7, will use only: 4
ivhd0: device [0x3 - 0xfffe] config:0
ivhd0: device [0xff00 - 0xffff] config:0
ivhd0: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
atrtc0: Can't map interrupt.
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounter "TSC-low" frequency 1597000264 Hz quality 1000
Timecounters tick every 1.000 msec
ugen3.1: <AMD XHCI root HUB> at usbus3
ugen0.1: <AMD XHCI root HUB> at usbus0
uhub0 on usbus3
uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus3
ugen2.1: <AMD XHCI root HUB> at usbus2
uhub1 on usbus2
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2
uhub2 on usbus0
uhub2: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ugen1.1: <AMD XHCI root HUB> at usbus1
uhub3 on usbus1
uhub3: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
nvme0: Allocated 64MB host memory buffer
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
hdacc1: <Realtek ALC245 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC245 Audio Function Group> at nid 1 on hdacc1
pcm3: <Realtek ALC245 (Analog)> at nid 20 and 25 on hdaa1
pcm4: <Realtek ALC245 (Left Analog Headphones)> at nid 33 on hdaa1
nda0 at nvme0 bus 0 scbus0 target 0 lun 1
nda0: <SAMSUNG MZVL4512HBLU-00BH1 HPS3NHAV S6B5NF0W347011>
nda0: Serial Number S6B5NF0W347011
nda0: nvme version 1.4
nda0: 488386MB (1000215216 512 byte sectors)
isab1: <PCI-ISA bridge> at device 20.3 on pci0
device_attach: isab1 attach returned 6
Trying to mount root from zfs:zroot/ROOT/default []...
uhub3: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 7 ports with 7 removable, self powered
ugen1.2: <Quanta HP Wide Vision 5MP Camera> at usbus1
ugen0.2: <MediaTek Inc. WirelessDevice> at usbus0
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x15BF 0x103C:0x8C21 0xCA).
[drm] register mmio base: 0x60500000
[drm] register mmio size: 524288
[drm] add ip block number 0 <soc21_common>
[drm] add ip block number 1 <gmc_v11_0>
[drm] add ip block number 2 <ih_v6_0>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <smu>
[drm] add ip block number 5 <dm>
[drm] add ip block number 6 <gfx_v11_0>
[drm] add ip block number 7 <sdma_v6_0>
[drm] add ip block number 8 <vcn_v4_0>
[drm] add ip block number 9 <jpeg_v4_0>
[drm] add ip block number 10 <mes_v11_0>
drmn0: Fetched VBIOS from VFCT
amdgpu: ATOM BIOS: 113-PHXGENERIC-001
[drm] VCN(0) encode/decode are enabled in VM mode
drmn0: [drm] jpeg_v4_0_set_dec_ring_funcsgc_11_0_1_mes_2.bin: could not load binary firmware /boot/firmware/gc_11_0_1_mes_2.bin either
amdgpu/gc_11_0_1_mes_2.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_mes_2.bin either
amdgpu_gc_11_0_1_mes_2.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_mes_2.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_mes_2.bin'
gc_11_0_1_mes1.bin: could not load binary firmware /boot/firmware/gc_11_0_1_mes1.bin either
amdgpu/gc_11_0_1_mes1.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_mes1.bin either
amdgpu_gc_11_0_1_mes1.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_mes1.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_mes1.bin'
drmn0: Trusted Memory Zone (TMZ) feature enabled
drmn0: PCIE atomic ops is not supported
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 512M 0x0000008000000000 - 0x000000801FFFFFFF (512M used)
drmn0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[drm ERROR :amdgpu_bo_init] Unable to set WC memtype for the aperture base
[drm] Detected VRAM RAM=512M, BAR=512M
[drm] RAM width 256bits LPDDR5
[drm] amdgpu: 512M of VRAM memory ready
[drm] amdgpu: 7823M of GTT memory ready.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] PCIE GART of 512M enabled (table at 0x000000801FD00000).
psp_13_0_4_toc.bin: could not load binary firmware /boot/firmware/psp_13_0_4_toc.bin either
amdgpu/psp_13_0_4_toc.bin: could not load binary firmware /boot/firmware/amdgpu/psp_13_0_4_toc.bin either
amdgpu_psp_13_0_4_toc.bin: could not load binary firmware /boot/firmware/amdgpu_psp_13_0_4_toc.bin either
drmn0: successfully loaded firmware image 'amdgpu/psp_13_0_4_toc.bin'
psp_13_0_4_ta.bin: could not load binary firmware /boot/firmware/psp_13_0_4_ta.bin either
amdgpu/psp_13_0_4_ta.bin: could not load binary firmware /boot/firmware/amdgpu/psp_13_0_4_ta.bin either
amdgpu_psp_13_0_4_ta.bin: could not load binary firmware /boot/firmware/amdgpu_psp_13_0_4_ta.bin either
drmn0: successfully loaded firmware image 'amdgpu/psp_13_0_4_ta.bin'
drmn0: PSP runtime database doesn't exist
drmn0: PSP runtime database doesn't exist
dcn_3_1_4_dmcub.bin: could not load binary firmware /boot/firmware/dcn_3_1_4_dmcub.bin either
amdgpu/dcn_3_1_4_dmcub.bin: could not load binary firmware /boot/firmware/amdgpu/dcn_3_1_4_dmcub.bin either
amdgpu_dcn_3_1_4_dmcub.bin: could not load binary firmware /boot/firmware/amdgpu_dcn_3_1_4_dmcub.bin either
drmn0: successfully loaded firmware image 'amdgpu/dcn_3_1_4_dmcub.bin'
[drm] Loading DMUB firmware via PSP: version=0x08001B00
gc_11_0_1_imu.bin: could not load binary firmware /boot/firmware/gc_11_0_1_imu.bin either
amdgpu/gc_11_0_1_imu.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_imu.bin either
amdgpu_gc_11_0_1_imu.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_imu.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_imu.bin'
gc_11_0_1_pfp.bin: could not load binary firmware /boot/firmware/gc_11_0_1_pfp.bin either
amdgpu/gc_11_0_1_pfp.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_pfp.bin either
amdgpu_gc_11_0_1_pfp.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_pfp.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_pfp.bin'
gc_11_0_1_me.bin: could not load binary firmware /boot/firmware/gc_11_0_1_me.bin either
amdgpu/gc_11_0_1_me.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_me.bin either
amdgpu_gc_11_0_1_me.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_me.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_me.bin'
gc_11_0_1_rlc.bin: could not load binary firmware /boot/firmware/gc_11_0_1_rlc.bin either
amdgpu/gc_11_0_1_rlc.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_rlc.bin either
amdgpu_gc_11_0_1_rlc.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_rlc.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_rlc.bin'
gc_11_0_1_mec.bin: could not load binary firmware /boot/firmware/gc_11_0_1_mec.bin either
amdgpu/gc_11_0_1_mec.bin: could not load binary firmware /boot/firmware/amdgpu/gc_11_0_1_mec.bin either
amdgpu_gc_11_0_1_mec.bin: could not load binary firmware /boot/firmware/amdgpu_gc_11_0_1_mec.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_11_0_1_mec.bin'
sdma_6_0_1.bin: could not load binary firmware /boot/firmware/sdma_6_0_1.bin either
amdgpu/sdma_6_0_1.bin: could not load binary firmware /boot/firmware/amdgpu/sdma_6_0_1.bin either
amdgpu_sdma_6_0_1.bin: could not load binary firmware /boot/firmware/amdgpu_sdma_6_0_1.bin either
drmn0: successfully loaded firmware image 'amdgpu/sdma_6_0_1.bin'
vcn_4_0_2.bin: could not load binary firmware /boot/firmware/vcn_4_0_2.bin either
amdgpu/vcn_4_0_2.bin: could not load binary firmware /boot/firmware/amdgpu/vcn_4_0_2.bin either
amdgpu_vcn_4_0_2.bin: could not load binary firmware /boot/firmware/amdgpu_vcn_4_0_2.bin either
drmn0: successfully loaded firmware image 'amdgpu/vcn_4_0_2.bin'
[drm] Found VCN firmware Version ENC: 1.10 DEC: 5 VEP: 0 Revision: 0
drmn0: Will use PSP to load VCN firmware
[drm] max_doorbell_slices=255
[drm] reserve 0x4a00000 from 0x8010000000 for PSP TMR
drmn0: RAS: optional ras ta ucode is not available
drmn0: RAP: optional rap ta ucode is not available
drmn0: SECUREDISPLAY: securedisplay ta ucode is not available
drmn0: SMU is initialized successfully!
[drm] Display Core initialized with v3.2.207!
[drm] DMUB hardware initialized: version=0x08001B00
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
[drm] PSR support 1, DC PSR ver 1, sink PSR ver 4 DPCD caps 0x3a su_y_granularity 4
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus3: <Philips I2C bus> on lkpi_iic3
iic3: <I2C generic I/O> on iicbus3
lkpi_iic4: <LinuxKPI I2C> on drmn0
iicbus4: <Philips I2C bus> on lkpi_iic4
iic4: <I2C generic I/O> on iicbus4
lkpi_iic5: <LinuxKPI I2C> on drmn0
iicbus5: <Philips I2C bus> on lkpi_iic5
iic5: <I2C generic I/O> on iicbus5
lkpi_iic6: <LinuxKPI I2C> on drmn0
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
lkpi_iic7: <LinuxKPI I2C> on drmn0
iicbus7: <Philips I2C bus> on lkpi_iic7
iic7: <I2C generic I/O> on iicbus7
[drm] kiq ring mec 3 pipe 1 q 0
[drm] VCN decode and encode initialized successfully(under DPG Mode).
drmn0: [drm] jpeg_v4_0_hw_initdrmn0: SE 1, SH per SE 2, CU per SH 6, active_cu_number 4
drmn0: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
drmn0: ring comp_1.2.0 uses VM inv eng 6 on hub 0
drmn0: ring comp_1.3.0 uses VM inv eng 7 on hub 0
drmn0: ring comp_1.0.1 uses VM inv eng 8 on hub 0
drmn0: ring comp_1.1.1 uses VM inv eng 9 on hub 0
drmn0: ring comp_1.2.1 uses VM inv eng 10 on hub 0
drmn0: ring comp_1.3.1 uses VM inv eng 11 on hub 0
drmn0: ring sdma0 uses VM inv eng 12 on hub 0
drmn0: ring vcn_unified_0 uses VM inv eng 0 on hub 1
drmn0: ring jpeg_dec uses VM inv eng 1 on hub 1
drmn0: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[drm] ring gfx_32768.1.1 was added
[drm] ring compute_32768.2.2 was added
[drm] ring sdma_32768.3.3 was added
[drm] ring gfx_32768.1.1 test pass
[drm] ring gfx_32768.1.1 ib test pass
[drm] ring compute_32768.2.2 test pass
[drm] ring compute_32768.2.2 ib test pass
[drm] ring sdma_32768.3.3 test pass
[drm] ring sdma_32768.3.3 ib test pass
vgapci0: child drmn0 requested pci_get_powerstate
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
lkpi_iic8: <LinuxKPI I2C> on drm1
iicbus8: <Philips I2C bus> on lkpi_iic8
iic8: <I2C generic I/O> on iicbus8
lkpi_iic9: <LinuxKPI I2C> on drm3
iicbus9: <Philips I2C bus> on lkpi_iic9
iic9: <I2C generic I/O> on iicbus9
lkpi_iic10: <LinuxKPI I2C> on drm4
iicbus10: <Philips I2C bus> on lkpi_iic10
iic10: <I2C generic I/O> on iicbus10
lkpi_iic11: <LinuxKPI I2C> on drm5
iicbus11: <Philips I2C bus> on lkpi_iic11
iic11: <I2C generic I/O> on iicbus11
lkpi_iic12: <LinuxKPI I2C> on drm6
iicbus12: <Philips I2C bus> on lkpi_iic12
iic12: <I2C generic I/O> on iicbus12
lkpi_iic13: <LinuxKPI I2C> on drm7
iicbus13: <Philips I2C bus> on lkpi_iic13
iic13: <I2C generic I/O> on iicbus13
lkpi_iic14: <LinuxKPI I2C> on drm8
iicbus14: <Philips I2C bus> on lkpi_iic14
iic14: <I2C generic I/O> on iicbus14
[drm] Initialized amdgpu 3.49.0 20150101 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
[drm] DSC precompute is not needed.
start FB_INFO:
height=1600 width=2560 depth=32
pbase=0x0 vbase=0xfffffe014cda0000
name=drmn0 id=amdgpudrmfb flags=0x0 stride=10240
end FB_INFO
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
isab1: <PCI-ISA bridge> at device 20.3 on pci0
device_attach: isab1 attach returned 6
isab1: <PCI-ISA bridge> at device 20.3 on pci0
device_attach: isab1 attach returned 6
driver bug: Unable to set devclass (class: ppc devname: (unknown))
ig4iic0: <Designware I2C Controller> iomem 0xfedc5000-0xfedc5fff irq 6 on acpi0
iicbus15: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iicbus15: <unknown card> at addr 0x15
iic15: <I2C generic I/O> on iicbus15
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: Embedded MOF found
ACPI: \134_SB.AMW0.WQDD: 1 arguments were passed to a non-method ACPI object (Buffer) (20230628/nsarguments-361)
acpi_wmi1: <ACPI-WMI mapping> on acpi0
acpi_wmi1: Embedded MOF found
ACPI: \134_SB.WFDE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20230628/nsarguments-361)
acpi_wmi2: <ACPI-WMI mapping> on acpi0
acpi_wmi2: Embedded MOF found
ACPI: \134_SB.WFTE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20230628/nsarguments-361)
acpi_wmi3: <ACPI-WMI mapping> on acpi0
acpi_wmi3: Embedded MOF found
ACPI: \134_SB.CPWM.WQBB: 1 arguments were passed to a non-method ACPI object (Buffer) (20230628/nsarguments-361)
acpi_wmi4: <ACPI-WMI mapping> on acpi0
acpi_wmi4: Embedded MOF found
ACPI: \134_SB.WMID.WQAB: 1 arguments were passed to a non-method ACPI object (Buffer) (20230628/nsarguments-361)
driver bug: Unable to set devclass (class: ppc devname: (unknown))
bridge0: Ethernet address: 58:9c:fc:10:f0:76
bridge0: changing name to 'wifibox0'
tap0: Ethernet address: 58:9c:fc:10:ff:e4
tap0: promiscuous mode enabled
wifibox0: link state changed to DOWN
tap0: link state changed to UP
wifibox0: link state changed to UP
pci0:1:0:0: Transactions pending after FLR!
lo0: link state changed to UP
ubt0 on uhub2
ubt0: <MediaTek Inc. WirelessDevice, class 239/2, rev 2.10/1.00, addr 1> on usbus0
ubt1 on uhub2
ubt1: <MediaTek Inc. WirelessDevice, class 239/2, rev 2.10/1.00, addr 1> on usbus0
ubt1: ubt_attach:670: could not get two interfaces
device_attach: ubt1 attach returned 6
iichid0: <ELAN07D0:05 04F3:321A I2C HID device> at addr 0x15 on iicbus15
iichid0: Interrupt setup failed. Fallback to sampling
hidbus0: <HID bus> on iichid0
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout
hms0: <ELAN07D0:05 04F3:321A Mouse> on hidbus0
hms0: 2 buttons and [XY] coordinates ID=1
hmt0: <ELAN07D0:05 04F3:321A TouchPad> on hidbus0
hconf0: <ELAN07D0:05 04F3:321A Configuration> on hidbus0
hmt0: Multitouch touchpad with 0 external buttons, click-pad
hmt0: 5 contacts with [C] properties. Report range [0:0] - [3831:2424]
pkg info | grep wifibox
wifibox-alpine-mediatek-20240328 Wifibox guest based on Alpine Linux
wifibox-core-0.13.0 Wifibox core functionality
wifibox-mediatek-1.4.1 Wireless card driver via virtualized Linux
pciconf -lv
ppt0@pci0:1:0:0: class=0x028000 rev=0x02 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x14c3 subdevice=0x223c
vendor = 'MEDIATEK Corp.'
device = 'MT7922 802.11ax PCI Express Wireless Network Adapter'
class = network
cat /usr/local/etc/wifibox/wpa_supplicant/wpa_supplicant.conf
network={
ssid="mynet"
psk="mypass"
}
cat /usr/local/etc/wifibox/bhyve.conf
cpus=1
memory=128M
passthru=1/0/0
priority=50
cat /etc/rc.conf
defaultroute_delay="0"
# WIFIBOX
wifibox_enable="YES"
ifconfig_wifibox0="SYNCDHCP"
background_dhclient_wifibox0="YES"
cat /boot/loader.conf
# WIFIBOX
hw.vmm.amdvi.enable="1"
vmm_load="YES"
pptdevs="1/0/0"
within wifibox console, wifi device does not appear
wifibox:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:a0:98:8a:05:71 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 scope global eth0
valid_lft forever preferred_lft forever
inet6 fd00::ffff/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::2a0:98ff:fe8a:571/64 scope link
valid_lft forever preferred_lft forever
wifibox:~# lspci -k
00:1f.0 Class 0601: 8086:7000
00:04.2 Class 0100: 1af4:1009 virtio-pci
00:04.0 Class 0100: 1af4:1001 virtio-pci
00:00.0 Class 0600: 1275:1275
00:04.3 Class 0100: 1af4:1009 virtio-pci
00:04.1 Class 0100: 1af4:1009 virtio-pci
00:05.0 Class 0200: 8086:100f e1000
wifibox:~# cat /var/log/messages
Apr 19 17:04:48 wifibox syslog.info syslogd started: BusyBox v1.36.1
Apr 19 17:04:48 wifibox daemon.err /etc/init.d/wpa_supplicant[960]: Could not find a wireless interface
Apr 19 17:04:48 wifibox daemon.info supervise-daemon[963]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:48 wifibox daemon.info supervise-daemon[965]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:48 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 965, exited with return code 255
Apr 19 17:04:48 wifibox daemon.info dhcpcd[1065]: dhcpcd-10.0.6 starting
Apr 19 17:04:48 wifibox daemon.err dhcpcd[1068]: wlan0: interface not found
Apr 19 17:04:48 wifibox daemon.info dhcpcd[1068]: dhcpcd exited
Apr 19 17:04:48 wifibox daemon.err dhcpcd[1089]: dhcpcd is not running
Apr 19 17:04:48 wifibox daemon.info radvd[1126]: version 2.19 started
Apr 19 17:04:48 wifibox daemon.info supervise-daemon[1152]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru --
Apr 19 17:04:48 wifibox daemon.info supervise-daemon[1154]: Child command line: /sbin/uds_passthru
Apr 19 17:04:48 wifibox daemon.info : starting pid 1159, tty '': '/sbin/openrc default'
Apr 19 17:04:48 wifibox daemon.debug uds_passthru[1154]: Configuration: network=10.0.0.1:255.255.255.0, sockets=[path=/var/run/wpa_supplicant/wlan0,user=root,group=0,mode=770,port=1200 path=/var/run/wpa_supplicant/p2p-dev-wlan0,user=root,group=0,mode=770,port=1201]
Apr 19 17:04:48 wifibox daemon.warn uds_passthru[1154]: /var/run/wpa_supplicant/wlan0 is not available, skipping.
Apr 19 17:04:48 wifibox daemon.warn uds_passthru[1154]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Apr 19 17:04:48 wifibox daemon.info uds_passthru[1154]: Waiting for PID 1164 to stop.
Apr 19 17:04:48 wifibox cron.info crond[1211]: crond (busybox 1.36.1) started, log level 8
Apr 19 17:04:48 wifibox daemon.info udhcpd[1265]: started, v1.36.1
Apr 19 17:04:48 wifibox daemon.err udhcpd[1265]: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
Apr 19 17:04:48 wifibox daemon.info : starting pid 1272, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Apr 19 17:04:50 wifibox daemon.info supervise-daemon[1273]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:50 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 1273, exited with return code 255
Apr 19 17:04:52 wifibox daemon.info supervise-daemon[1275]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:52 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 1275, exited with return code 255
Apr 19 17:04:52 wifibox daemon.info udhcpd[1265]: sending OFFER to 10.0.0.2
Apr 19 17:04:54 wifibox daemon.info supervise-daemon[1277]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:54 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 1277, exited with return code 255
Apr 19 17:04:54 wifibox daemon.info udhcpd[1265]: sending ACK to 10.0.0.2
Apr 19 17:04:56 wifibox daemon.info supervise-daemon[1278]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:56 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 1278, exited with return code 255
Apr 19 17:04:58 wifibox daemon.info supervise-daemon[1280]: Child command line: /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf
Apr 19 17:04:58 wifibox daemon.warn supervise-daemon[964]: /sbin/wpa_supplicant, pid 1280, exited with return code 255
Apr 19 17:04:58 wifibox daemon.warn supervise-daemon[964]: respawned "/sbin/wpa_supplicant" too many times, exiting
Apr 19 17:15:00 wifibox cron.info crond[1211]: USER root pid 1288 cmd run-parts /etc/periodic/15min
Apr 19 17:22:30 wifibox auth.info login[1272]: root login on 'ttyS0'
Apr 19 17:30:00 wifibox cron.info crond[1211]: USER root pid 1295 cmd run-parts /etc/periodic/15min
wifibox:~# cat /var/log/dmesg
[ 0.000000] Linux version 6.6.22-1-lts (pgj@wifibox-dev) (gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, GNU ld (GNU Binutils) 2.41) #2-Alpine SMP Wed, 20 Mar 2024 09:03:11 +0000
[ 0.000000] Command line: console=ttyS0 BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz modules=squashfs root=/dev/vda rootfstype=squashfs clocksource=hpet tsc=unstable
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007ffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] APIC: Static calls initialized
[ 0.000000] SMBIOS 2.6 present.
[ 0.000000] DMI: FreeBSD BHYVE/BHYVE, BIOS 14.0 10/17/2021
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 3194.146 MHz processor
[ 0.000009] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000011] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000012] last_pfn = 0x8000 max_arch_pfn = 0x400000000
[ 0.000066] MTRRs disabled by BIOS
[ 0.000068] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.000590] Using GB pages for direct mapping
[ 0.000650] ACPI: Early table checksum verification disabled
[ 0.000656] ACPI: RSDP 0x00000000000F2490 000024 (v02 BHYVE )
[ 0.000663] ACPI: XSDT 0x00000000000F2440 00004C (v01 BHYVE BVXSDT 00000001 BASL 20220504)
[ 0.000669] ACPI: FACP 0x00000000000F24C0 000114 (v05 BHYVE BVFACP 00000001 BASL 20220504)
[ 0.000673] ACPI: DSDT 0x00000000000F2750 000A5C (v02 BHYVE BVDSDT 00000001 INTL 20230628)
[ 0.000676] ACPI: FACS 0x00000000000F26C0 000040
[ 0.000677] ACPI: FACS 0x00000000000F26C0 000040
[ 0.000678] ACPI: APIC 0x00000000000F25E0 00005A (v01 BHYVE BVAPIC 00000001 BASL 20220504)
[ 0.000680] ACPI: HPET 0x00000000000F2640 000038 (v01 BHYVE BVHPET 00000001 BASL 20220504)
[ 0.000681] ACPI: MCFG 0x00000000000F2680 00003C (v01 BHYVE BVMCFG 00000001 BASL 20220504)
[ 0.000683] ACPI: SPCR 0x00000000000F2700 000050 (v01 BHYVE BVSPCR 00000001 BASL 20220504)
[ 0.000684] ACPI: Reserving FACP table memory at [mem 0xf24c0-0xf25d3]
[ 0.000685] ACPI: Reserving DSDT table memory at [mem 0xf2750-0xf31ab]
[ 0.000686] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[ 0.000686] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[ 0.000687] ACPI: Reserving APIC table memory at [mem 0xf25e0-0xf2639]
[ 0.000687] ACPI: Reserving HPET table memory at [mem 0xf2640-0xf2677]
[ 0.000687] ACPI: Reserving MCFG table memory at [mem 0xf2680-0xf26bb]
[ 0.000687] ACPI: Reserving SPCR table memory at [mem 0xf2700-0xf274f]
[ 0.000724] system APIC only can use physical flat
[ 0.000731] APIC: Switched APIC routing to: physical flat
[ 0.000756] Zone ranges:
[ 0.000757] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000759] DMA32 [mem 0x0000000001000000-0x0000000007ffffff]
[ 0.000760] Normal empty
[ 0.000760] Movable zone start for each node
[ 0.000761] Early memory node ranges
[ 0.000761] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.000762] node 0: [mem 0x0000000000100000-0x0000000007ffffff]
[ 0.000763] Initmem setup node 0 [mem 0x0000000000001000-0x0000000007ffffff]
[ 0.000767] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000791] On node 0, zone DMA: 96 pages in unavailable ranges
[ 0.001268] ACPI: PM-Timer IO Port: 0x408
[ 0.001269] system APIC only can use physical flat
[ 0.001273] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[ 0.001301] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-31
[ 0.001304] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[ 0.001306] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[ 0.001309] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.001310] ACPI: HPET id: 0x80860701 base: 0xfed00000
[ 0.001312] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.001318] [mem 0x08000000-0xffffffff] available for PCI devices
[ 0.001320] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.003209] setup_percpu: NR_CPUS:64 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[ 0.003395] percpu: Embedded 43 pages/cpu s139176 r8192 d28760 u2097152
[ 0.003399] pcpu-alloc: s139176 r8192 d28760 u2097152 alloc=1*2097152
[ 0.003402] pcpu-alloc: [0] 0
[ 0.003411] Kernel command line: console=ttyS0 BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz modules=squashfs root=/dev/vda rootfstype=squashfs clocksource=hpet tsc=unstable
[ 0.003442] tsc: Marking TSC unstable due to boot parameter
[ 0.003444] Unknown kernel command line parameters "BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz modules=squashfs", will be passed to user space.
[ 0.003758] random: crng init done
[ 0.003771] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.003779] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.003789] Built 1 zonelists, mobility grouping on. Total pages: 32000
[ 0.003791] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.003871] Memory: 110920K/130684K available (8192K kernel code, 1342K rwdata, 1700K rodata, 944K init, 1544K bss, 19508K reserved, 0K cma-reserved)
[ 0.003891] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.003937] rcu: Hierarchical RCU implementation.
[ 0.003938] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.003940] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.003941] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.003946] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[ 0.004138] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.004397] Console: colour EGA 80x25
[ 0.004431] printk: console [ttyS0] enabled
[ 0.038142] ACPI: Core revision 20230628
[ 0.038506] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 113919999973 ns
[ 0.039144] APIC: Switch to symmetric I/O mode setup
[ 0.040884] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.046232] Calibrating delay loop (skipped), value calculated using timer frequency.. 6388.29 BogoMIPS (lpj=3194146)
[ 0.047234] Last level iTLB entries: 4KB 512, 2MB 512, 4MB 256
[ 0.047631] Last level dTLB entries: 4KB 3072, 2MB 3072, 4MB 1536, 1GB 0
[ 0.048086] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.048237] Spectre V2 : Mitigation: Enhanced / Automatic IBRS
[ 0.048631] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.049230] Speculative Store Bypass: Vulnerable
[ 0.049546] Speculative Return Stack Overflow: IBPB-extending microcode not applied!
[ 0.050230] Speculative Return Stack Overflow: WARNING: See https://kernel.org/doc/html/latest/admin-guide/hw-vuln/srso.html for mitigation options.
[ 0.050231] Speculative Return Stack Overflow: WARNING: kernel not compiled with CPU_SRSO.
[ 0.051803] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.052230] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.052641] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.053230] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask'
[ 0.053647] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256'
[ 0.054058] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256'
[ 0.054231] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.054632] x86/fpu: xstate_offset[5]: 832, xstate_sizes[5]: 64
[ 0.055230] x86/fpu: xstate_offset[6]: 896, xstate_sizes[6]: 512
[ 0.055630] x86/fpu: xstate_offset[7]: 1408, xstate_sizes[7]: 1024
[ 0.056031] x86/fpu: Enabled xstate features 0xe7, context size is 2432 bytes, using 'standard' format.
[ 0.059015] Freeing SMP alternatives memory: 20K
[ 0.059230] pid_max: default: 32768 minimum: 301
[ 0.059555] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.060035] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.162951] smpboot: CPU0: AMD Ryzen 5 7540U w/ Radeon(TM) 740M Graphics (family: 0x19, model: 0x74, stepping: 0x1)
[ 0.163230] Performance Events: PMU not available due to virtualization, using software events only.
[ 0.163247] signal: max sigframe size: 2960
[ 0.163540] rcu: Hierarchical SRCU implementation.
[ 0.163855] rcu: Max phase no-delay instances is 400.
[ 0.164273] smp: Bringing up secondary CPUs ...
[ 0.164572] smp: Brought up 1 node, 1 CPU
[ 0.164837] smpboot: Max logical packages: 1
[ 0.165232] smpboot: Total of 1 processors activated (6388.29 BogoMIPS)
[ 0.166382] devtmpfs: initialized
[ 0.166794] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.167234] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.167788] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.168308] thermal_sys: Registered thermal governor 'step_wise'
[ 0.168309] thermal_sys: Registered thermal governor 'user_space'
[ 0.168715] cpuidle: using governor menu
[ 0.169904] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[ 0.170231] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.170708] PCI: Using configuration type 1 for base access
[ 0.171230] PCI: Using configuration type 1 for extended access
[ 0.171739] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.172230] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.172711] ACPI: Added _OSI(Module Device)
[ 0.172987] ACPI: Added _OSI(Processor Device)
[ 0.173231] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.173539] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.174029] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.174405] ACPI: _OSC evaluated successfully for all CPUs
[ 0.174780] ACPI: Interpreter enabled
[ 0.175234] ACPI: PM: (supports S0 S5)
[ 0.175482] ACPI: Using IOAPIC for interrupt routing
[ 0.175820] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.176230] PCI: Using E820 reservations for host bridge windows
[ 0.176654] ACPI: Enabled 1 GPEs in block 00 to 07
[ 0.177799] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00])
[ 0.178234] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[ 0.178863] PCI host bridge to bus 0000:00
[ 0.179231] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.179683] pci_bus 0000:00: root bus resource [io 0x0d00-0x26bf window]
[ 0.180125] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xc02fffff window]
[ 0.180230] pci_bus 0000:00: root bus resource [mem 0x800000000-0x81fffffff window]
[ 0.180726] pci_bus 0000:00: root bus resource [bus 00]
[ 0.181372] pci 0000:00:00.0: [1275:1275] type 00 class 0x060000
[ 0.182466] pci 0000:00:04.0: [1af4:1001] type 00 class 0x010000
[ 0.182931] pci 0000:00:04.0: reg 0x10: [io 0x2600-0x267f]
[ 0.183266] pci 0000:00:04.0: reg 0x14: [mem 0xc0138000-0xc0139fff]
[ 0.184105] pci 0000:00:04.1: [1af4:1009] type 00 class 0x010000
[ 0.184303] pci 0000:00:04.1: reg 0x10: [io 0x2000-0x21ff]
[ 0.184702] pci 0000:00:04.1: reg 0x14: [mem 0xc013a000-0xc013bfff]
[ 0.185656] pci 0000:00:04.2: [1af4:1009] type 00 class 0x010000
[ 0.186301] pci 0000:00:04.2: reg 0x10: [io 0x2200-0x23ff]
[ 0.186702] pci 0000:00:04.2: reg 0x14: [mem 0xc013c000-0xc013dfff]
[ 0.187585] pci 0000:00:04.3: [1af4:1009] type 00 class 0x010000
[ 0.188054] pci 0000:00:04.3: reg 0x10: [io 0x2400-0x25ff]
[ 0.188267] pci 0000:00:04.3: reg 0x14: [mem 0xc013e000-0xc013ffff]
[ 0.189299] pci 0000:00:05.0: [8086:100f] type 00 class 0x020000
[ 0.189757] pci 0000:00:05.0: reg 0x10: [mem 0xc0100000-0xc011ffff]
[ 0.190199] pci 0000:00:05.0: reg 0x14: [mem 0xc0120000-0xc012ffff]
[ 0.190266] pci 0000:00:05.0: reg 0x18: [io 0x2680-0x2687]
[ 0.191366] pci 0000:00:1f.0: [8086:7000] type 00 class 0x060100
[ 0.192032] pci_bus 0000:00: on NUMA node 0
[ 0.192067] ACPI: PCI: Interrupt link LNKA configured for IRQ 5
[ 0.192263] ACPI: PCI: Interrupt link LNKB configured for IRQ 6
[ 0.192680] ACPI: PCI: Interrupt link LNKC configured for IRQ 7
[ 0.193260] ACPI: PCI: Interrupt link LNKD configured for IRQ 10
[ 0.193683] ACPI: PCI: Interrupt link LNKE configured for IRQ 11
[ 0.194100] ACPI: PCI: Interrupt link LNKF configured for IRQ 0
[ 0.194230] ACPI: PCI: Interrupt link LNKF disabled
[ 0.194577] ACPI: PCI: Interrupt link LNKG configured for IRQ 0
[ 0.195230] ACPI: PCI: Interrupt link LNKG disabled
[ 0.195577] ACPI: PCI: Interrupt link LNKH configured for IRQ 0
[ 0.195961] ACPI: PCI: Interrupt link LNKH disabled
[ 0.196312] pps_core: LinuxPPS API ver. 1 registered
[ 0.196638] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197232] PTP clock support registered
[ 0.197624] PCI: Using ACPI for IRQ routing
[ 0.197899] PCI: pci_cache_line_size set to 64 bytes
[ 0.197984] vgaarb: loaded
[ 0.198240] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.198645] hpet0: 8 comparators, 32-bit 16.777216 MHz counter
[ 0.200253] clocksource: Switched to clocksource hpet
[ 0.200663] pnp: PnP ACPI init
[ 0.200992] system 00:02: [io 0x04d0-0x04d1] has been reserved
[ 0.201387] system 00:02: [io 0x0400-0x0407] has been reserved
[ 0.201605] system 00:02: [mem 0xe0000000-0xefffffff] has been reserved
[ 0.202279] pnp: PnP ACPI: found 8 devices
[ 0.207630] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.208265] NET: Registered PF_INET protocol family
[ 0.208613] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.209186] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.209741] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.210269] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.210778] TCP bind hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.211281] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.211860] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.212472] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.213137] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.213833] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.214265] pci_bus 0000:00: resource 5 [io 0x0d00-0x26bf window]
[ 0.214677] pci_bus 0000:00: resource 6 [mem 0xc0000000-0xc02fffff window]
[ 0.215147] pci_bus 0000:00: resource 7 [mem 0x800000000-0x81fffffff window]
[ 0.215679] PCI: CLS 0 bytes, default 64
[ 0.216166] Initialise system trusted keyrings
[ 0.216892] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[ 0.217464] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.217849] 9p: Installing v9fs 9p2000 file system support
[ 0.222588] Key type asymmetric registered
[ 0.222864] Asymmetric key parser 'x509' registered
[ 0.223262] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 0.223766] ACPI: button: Power Button [PWRF]
[ 0.224150] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[ 0.224768] virtio-pci 0000:00:04.1: virtio_pci: leaving for legacy driver
[ 0.225513] virtio-pci 0000:00:04.2: virtio_pci: leaving for legacy driver
[ 0.226256] virtio-pci 0000:00:04.3: virtio_pci: leaving for legacy driver
[ 0.227232] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.227754] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.228409] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.229053] 00:05: ttyS2 at I/O 0x3e8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.229726] 00:06: ttyS3 at I/O 0x2e8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.230475] Non-volatile memory driver v1.3
[ 0.231280] loop: module loaded
[ 0.231521] virtio_blk virtio0: 1/0/0 default/read/poll queues
[ 0.232253] virtio_blk virtio0: [vda] 43976 512-byte logical blocks (22.5 MB/21.5 MiB)
[ 0.233858] e1000: Intel(R) PRO/1000 Network Driver
[ 0.234697] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.546398] e1000 0000:00:05.0 eth0: (PCI:33MHz:32-bit) 00:a0:98:8a:05:71
[ 0.546881] e1000 0000:00:05.0 eth0: Intel(R) PRO/1000 Network Connection
[ 0.547439] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 0.548109] i8042: Warning: Keylock active
[ 0.548981] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.549473] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.550880] rtc_cmos 00:07: registered as rtc0
[ 0.551373] rtc_cmos 00:07: alarms up to one day, y3k, 114 bytes nvram
[ 0.552166] Initializing XFRM netlink socket
[ 0.552576] NET: Registered PF_PACKET protocol family
[ 0.553057] 9pnet: Installing 9P2000 support
[ 0.554574] IPI shorthand broadcast: enabled
[ 0.558373] registered taskstats version 1
[ 0.558661] Loading compiled-in X.509 certificates
[ 0.559623] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.560594] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.561288] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.561975] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.562778] cfg80211: failed to load regulatory.db
[ 0.564253] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 0.564909] devtmpfs: mounted
[ 0.565404] Freeing unused kernel image (initmem) memory: 944K
[ 0.566124] Write protecting the kernel read-only data: 10240k
[ 0.566426] Freeing unused kernel image (rodata/data gap) memory: 348K
[ 0.566909] Run /sbin/init as init process
[ 0.567341] with arguments:
[ 0.567342] /sbin/init
[ 0.567343] with environment:
[ 0.567344] HOME=/
[ 0.567345] TERM=linux
[ 0.567346] BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz
[ 0.567346] modules=squashfs
[ 0.796080] NET: Registered PF_INET6 protocol family
[ 0.796311] Segment Routing with IPv6
[ 0.796315] In-situ OAM (IOAM) with IPv6
adding the module mt7921e doesn't seem to help
wifibox:~# modprobe mt7921e
wifibox:~# lsmod -k
Module Size Used by Not tainted
mt7921e 12288 0
mt7921_common 49152 1 mt7921e
mt792x_lib 32768 2 mt7921e,mt7921_common
mt76_connac_lib 61440 3 mt7921e,mt7921_common,mt792x_lib
mt76 69632 4 mt7921e,mt7921_common,mt792x_lib,mt76_connac_lib
iptable_nat 12288 1
ip6table_nat 12288 1
ip6table_filter 12288 0
ip6_tables 20480 2 ip6table_nat,ip6table_filter
ipv6 462848 12 [permanent]
wifibox:~# lspci -k
00:1f.0 Class 0601: 8086:7000
00:04.2 Class 0100: 1af4:1009 virtio-pci
00:04.0 Class 0100: 1af4:1001 virtio-pci
00:00.0 Class 0600: 1275:1275
00:04.3 Class 0100: 1af4:1009 virtio-pci
00:04.1 Class 0100: 1af4:1009 virtio-pci
00:05.0 Class 0200: 8086:100f e1000
@feurry based on your logs, the device does not work because it is not visible for the guest. In the output of lspci -k
, there shall be a line that starts with 00:06.0
and then has the respective device IDs for the wireless card. You can see an example of that above in https://github.com/pgj/freebsd-wifibox/issues/73#issuecomment-1806919482. As I wrote in https://github.com/pgj/freebsd-wifibox/issues/73#issuecomment-1807637566, this usually signals a problem with the FreeBSD base system, bhyve
and the vmm
kernel module.
Hello, I am not very familiar with the process for submitting requests like this so please forgive me if I am in the wrong section.
I am using a Thinkpad L15 Gen 3 with the AMD RZ616 (MediaTek MT7922) chipset running FreeBSD 14.0 RC4. The guest starts properly but there is no indication that Alpine is recognizing the card. It is invisible to ifconfig, iw and rfkill. I have verified that the required firmware for the 7922 is pulled into /lib/firmware/mediatek by the Mediatek configuration option when installing the port.
I am wondering if the issue is with the different PCI IDs for same chipset as mentioned at the end of the manual. Especially because the issues were with a MT7921.
Below is the output of pciconf -lv that is relevant to the card.
ppt0@pci0:6:0:0: class=0x028000 rev=0x00 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x17aa subdevice=0xe0c6 vendor = 'MEDIATEK Corp.' device = 'MT7922 802.11ax PCI Express Wireless Network Adapter' class = network
It is configured in bhyve.conf as 6/0/0. Attatched the dmesg log from the VM. Please let me know if I am doing something wrong.
Thanks in advance.
wifibox-alpine_dmesg.txt