Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Realtek 8852BE wifi card? #54

Open
Elimelech opened this issue Mar 19, 2023 · 49 comments
Open

support Realtek 8852BE wifi card? #54

Elimelech opened this issue Mar 19, 2023 · 49 comments
Assignees
Labels
wifibox-alpine Issue related to the Alpine Linux-based VM image

Comments

@Elimelech
Copy link

freebsd-wifibox support Realtek 8852BE wifi card?

@pgj pgj added the wifibox-alpine Issue related to the Alpine Linux-based VM image label Mar 19, 2023
@pgj
Copy link
Owner

pgj commented Mar 19, 2023

Hi @Elimelech: Have you tried the rtw89 driver? It has been ported to the Alpine-based Wifibox image and it is enabled by default. What did you try exactly and what did you get?

@pgj pgj self-assigned this Mar 19, 2023
@Elimelech
Copy link
Author

I haven’t tried it yet, but I didn’t find my card in the wifibox list, so I asked a question about support

@pgj
Copy link
Owner

pgj commented Mar 19, 2023

Do you mean the table under "Compatibility"? That listing only contains the configurations that were confirmed to be working. But the actual range of supported device is potentially wider. The wifibox-alpine(5) manual page has to full list of theoretically supported cards. It mentions Realtek 8852AE, but according to the GitHub page of rtw89, 8852BE should be working -- but I cannot test it myself.

@Elimelech
Copy link
Author

Tell me, for wifibox to work, do I need to install the linux base-c7 package?

@pgj
Copy link
Owner

pgj commented Mar 21, 2023

No, Wifibox does not need the linux-base-c7 package, only the linux64 kernel module. You can simply use the wifibox or the wifibox-rtw89 package from the latest branch. Alternatively, you can install Wifibox via the freebsd-wifibox-port GitHub repository.

@Elimelech
Copy link
Author

Elimelech commented Mar 22, 2023

I decided to try,


# pkg install wifibox-rtw89 wifibox-alpine-rtw89
# pkg install sysutils/bhyve+
# pkg install gtar patchelf squashfs-tools-ng
# pkg install grub2-bhyve socat

wifibox_enable="YES" in rc.conf
hw.vmm.amdvi.enable=1 in loader.conf
ifconfig_wifibox0="SYNCDHCP" in rc.conf
# kldload linux64

but it gives an error:

... WARNING: No bhyve PPT device could be found
... WARNING: No passthru device is configured.

what and where I did not specify in the settings?

pciconf -v -l:
none0@pci0:1:0:0: class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec device=0xb852 subvendor=0x103c subdevice=0x88e3
vendor = "Realtek Demiconductor Co., Ltd
class = network

How to load linux64 module on system boot?

@pgj
Copy link
Owner

pgj commented Mar 23, 2023

A linux64 kernel module is only needed for building the wifibox-alpine port. If you were able to install Wifibox from binary package, you do not have to deal with loading linux64 on boot.

You can learn more about the missing configuration setting from the files in the $LOCALBASE/etc/wifibox (where $LOCALBASE is /usr/local usually) directory. For this specific set of warnings, consult bhyve.conf where the passthru parameter has to be changed accordingly, which is 1/0/0 in your case.

@Elimelech
Copy link
Author

Elimelech commented Mar 23, 2023

passthru="1/0/0" in bhyve.conf

on startup it says:
pci1 (network) on device 0.0 (no driver attached)

@pgj
Copy link
Owner

pgj commented Mar 24, 2023

You should not be looking at the FreeBSD kernel logs but that of Wifibox. It is expected that the kernel will eventually lose control of the device as bhyve takes it over for managing it from the VM. That is the essence of the technique that Wifibox employs to make the card working.

For the relevant Wifibox messages, please check /var/run/wifibox/appliance/log/dmesg and /var/run/wifibox/appliance/log/messages. Mind that WPA Supplicant on the VM shall also be configured to be able to connect to the wireless networks. Though if the UNIX Domain Socket (UDS) passthrough is activated, you can do that interactively via wpa_cli or wpa_gui from the host.

@Elimelech
Copy link
Author

Elimelech commented Mar 24, 2023

var/run/wifibox/appliance/log/dmesg:

[    0.000000] Linux version 5.15.93-0-lts (pgj@wifibox-dev) (gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, GNU ld (GNU Binutils) 2.39) #1-Alpine Sun, 12 Feb 2023 23:12:48 +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] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] signal: max sigframe size: 1360
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fffe] usable
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007ffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.6 present.
[    0.000000] DMI: FreeBSD BHYVE/BHYVE, BIOS 13.0 11/10/2020
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 1996.357 MHz processor
[    0.000005] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000007] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000008] last_pfn = 0x8000 max_arch_pfn = 0x400000000
[    0.000056] Disabled
[    0.000056] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.000070] CPU MTRRs all blank - virtualized system.
[    0.000071] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC  
[    0.000075] Using GB pages for direct mapping
[    0.000107] ACPI: Early table checksum verification disabled
[    0.000109] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE )
[    0.000112] ACPI: XSDT 0x00000000000F2470 00004C (v01 BHYVE  BVXSDT   00000001 BASL 20220504)
[    0.000114] ACPI: FACP 0x00000000000F24C0 000114 (v05 BHYVE  BVFACP   00000001 BASL 20220504)
[    0.000117] ACPI: DSDT 0x00000000000F2750 000A5C (v02 BHYVE  BVDSDT   00000001 INTL 20201113)
[    0.000118] ACPI: FACS 0x00000000000F26C0 000040
[    0.000120] ACPI: FACS 0x00000000000F26C0 000040
[    0.000121] ACPI: APIC 0x00000000000F25E0 00005A (v01 BHYVE  BVAPIC   00000001 BASL 20220504)
[    0.000122] ACPI: HPET 0x00000000000F2640 000038 (v01 BHYVE  BVHPET   00000001 BASL 20220504)
[    0.000124] ACPI: MCFG 0x00000000000F2680 00003C (v01 BHYVE  BVMCFG   00000001 BASL 20220504)
[    0.000125] ACPI: SPCR 0x00000000000F2700 000050 (v01 BHYVE  BVSPCR   00000001 BASL 20220504)
[    0.000126] ACPI: Reserving FACP table memory at [mem 0xf24c0-0xf25d3]
[    0.000127] ACPI: Reserving DSDT table memory at [mem 0xf2750-0xf31ab]
[    0.000128] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[    0.000128] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[    0.000129] ACPI: Reserving APIC table memory at [mem 0xf25e0-0xf2639]
[    0.000129] ACPI: Reserving HPET table memory at [mem 0xf2640-0xf2677]
[    0.000130] ACPI: Reserving MCFG table memory at [mem 0xf2680-0xf26bb]
[    0.000130] ACPI: Reserving SPCR table memory at [mem 0xf2700-0xf274f]
[    0.000140] system APIC only can use physical flat
[    0.000141] Setting APIC routing to physical flat.
[    0.000155] Zone ranges:
[    0.000156]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000157]   DMA32    [mem 0x0000000001000000-0x0000000007ffffff]
[    0.000158]   Normal   empty
[    0.000159] Movable zone start for each node
[    0.000160] Early memory node ranges
[    0.000160]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000162]   node   0: [mem 0x0000000000100000-0x0000000007ffffff]
[    0.000162] Initmem setup node 0 [mem 0x0000000000001000-0x0000000007ffffff]
[    0.000165] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000187] On node 0, zone DMA: 97 pages in unavailable ranges
[    0.000703] ACPI: PM-Timer IO Port: 0x408
[    0.000704] system APIC only can use physical flat
[    0.000706] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000728] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-31
[    0.000730] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000731] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000733] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.000734] ACPI: HPET id: 0x80860701 base: 0xfed00000
[    0.000735] ACPI: SPCR: SPCR table version 1
[    0.000737] ACPI: SPCR: console: uart,io,0x3f8,115200
[    0.000741] [mem 0x08000000-0xffffffff] available for PCI devices
[    0.000742] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.002110] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.002112] pcpu-alloc: [0] 0 
[    0.002117] Built 1 zonelists, mobility grouping on.  Total pages: 32000
[    0.002119] 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.002132] tsc: Marking TSC unstable due to boot parameter
[    0.002134] Unknown kernel command line parameters "BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz modules=squashfs", will be passed to user space.
[    0.002146] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.002154] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002161] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.002276] Memory: 108968K/130680K available (8193K kernel code, 1465K rwdata, 1568K rodata, 724K init, 1796K bss, 21452K reserved, 0K cma-reserved)
[    0.002291] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.002314] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[    0.002552] Console: colour EGA 80x25
[    0.033895] printk: console [ttyS0] enabled
[    0.034166] ACPI: Core revision 20210730
[    0.034491] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 113919999973 ns
[    0.035088] APIC: Switch to symmetric I/O mode setup
[    0.036552] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.041149] Calibrating delay loop (skipped), value calculated using timer frequency.. 3992.71 BogoMIPS (lpj=1996357)
[    0.041817] pid_max: default: 32768 minimum: 301
[    0.042118] LSM: Security Framework initializing
[    0.042160] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.042617] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.043335] Last level iTLB entries: 4KB 512, 2MB 512, 4MB 256
[    0.043707] Last level dTLB entries: 4KB 2048, 2MB 2048, 4MB 1024, 1GB 0
[    0.044149] CPU: AMD Ryzen 7 5825U with Radeon Graphics (family: 0x19, model: 0x50, stepping: 0x0)
[    0.044715] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.045149] Spectre V2 : Kernel not compiled with retpoline; no mitigation available!
[    0.045149] Spectre V2 : Vulnerable
[    0.046148] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.046668] Speculative Store Bypass: Vulnerable
[    0.047302] Performance Events: PMU not available due to virtualization, using software events only.
[    0.150015] devtmpfs: initialized
[    0.150148] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.150148] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.150407] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.150829] thermal_sys: Registered thermal governor 'step_wise'
[    0.150830] thermal_sys: Registered thermal governor 'user_space'
[    0.151150] cpuidle: using governor menu
[    0.152567] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.153045] ACPI: bus type PCI registered
[    0.153149] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.153583] PCI: Using configuration type 1 for base access
[    0.153940] PCI: Using configuration type 1 for extended access
[    0.154413] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.155372] ACPI: Added _OSI(Module Device)
[    0.155642] ACPI: Added _OSI(Processor Device)
[    0.155927] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.156148] ACPI: Added _OSI(Processor Aggregator Device)
[    0.156492] ACPI: Added _OSI(Linux-Dell-Video)
[    0.156776] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.157148] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.157632] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.158283] ACPI: Interpreter enabled
[    0.158521] ACPI: PM: (supports S0 S5)
[    0.158763] ACPI: Using IOAPIC for interrupt routing
[    0.159087] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.159176] ACPI: Enabled 1 GPEs in block 00 to 07
[    0.160579] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00])
[    0.160958] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[    0.161171] PCI host bridge to bus 0000:00
[    0.161434] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.162149] pci_bus 0000:00: root bus resource [io  0x0d00-0x1fff window]
[    0.162578] pci_bus 0000:00: root bus resource [io  0x2000-0x27bf window]
[    0.163007] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xc02fffff window]
[    0.163148] pci_bus 0000:00: root bus resource [mem 0x800000000-0x81fffffff window]
[    0.163632] pci_bus 0000:00: root bus resource [bus 00]
[    0.164286] pci 0000:00:00.0: [1275:1275] type 00 class 0x060000
[    0.165361] pci 0000:00:04.0: [1af4:1001] type 00 class 0x010000
[    0.165814] pci 0000:00:04.0: reg 0x10: [io  0x2700-0x277f]
[    0.166186] pci 0000:00:04.0: reg 0x14: [mem 0xc0130000-0xc0131fff]
[    0.167022] pci 0000:00:04.1: [1af4:1009] type 00 class 0x010000
[    0.167219] pci 0000:00:04.1: reg 0x10: [io  0x2000-0x21ff]
[    0.167611] pci 0000:00:04.1: reg 0x14: [mem 0xc0132000-0xc0133fff]
[    0.168589] pci 0000:00:04.2: [1af4:1009] type 00 class 0x010000
[    0.169193] pci 0000:00:04.2: reg 0x10: [io  0x2200-0x23ff]
[    0.169585] pci 0000:00:04.2: reg 0x14: [mem 0xc0134000-0xc0135fff]
[    0.170428] pci 0000:00:04.3: [1af4:1009] type 00 class 0x010000
[    0.170879] pci 0000:00:04.3: reg 0x10: [io  0x2400-0x25ff]
[    0.171186] pci 0000:00:04.3: reg 0x14: [mem 0xc0136000-0xc0137fff]
[    0.172013] pci 0000:00:05.0: [8086:100f] type 00 class 0x020000
[    0.172217] pci 0000:00:05.0: reg 0x10: [mem 0xc0100000-0xc011ffff]
[    0.172651] pci 0000:00:05.0: reg 0x14: [mem 0xc0120000-0xc012ffff]
[    0.173185] pci 0000:00:05.0: reg 0x18: [io  0x2780-0x2787]
[    0.174191] pci 0000:00:06.0: [10ec:b852] type 00 class 0x028000
[    0.174664] pci 0000:00:06.0: reg 0x10: [io  0x2600-0x26ff]
[    0.175128] pci 0000:00:06.0: reg 0x18: [mem 0xc0000000-0xc00fffff 64bit]
[    0.175520] pci 0000:00:06.0: PME# supported from D0 D3hot D3cold
[    0.176435] pci 0000:00:1f.0: [8086:7000] type 00 class 0x060100
[    0.177273] pci_bus 0000:00: on NUMA node 0
[    0.177316] ACPI: PCI: Interrupt link LNKA configured for IRQ 5
[    0.177733] ACPI: PCI: Interrupt link LNKB configured for IRQ 6
[    0.178155] ACPI: PCI: Interrupt link LNKC configured for IRQ 7
[    0.178569] ACPI: PCI: Interrupt link LNKD configured for IRQ 10
[    0.178988] ACPI: PCI: Interrupt link LNKE configured for IRQ 11
[    0.179181] ACPI: PCI: Interrupt link LNKF configured for IRQ 0
[    0.179556] ACPI: PCI: Interrupt link LNKF disabled
[    0.179900] ACPI: PCI: Interrupt link LNKG configured for IRQ 0
[    0.180148] ACPI: PCI: Interrupt link LNKG disabled
[    0.180490] ACPI: PCI: Interrupt link LNKH configured for IRQ 0
[    0.181149] ACPI: PCI: Interrupt link LNKH disabled
[    0.181515] vgaarb: loaded
[    0.181700] pps_core: LinuxPPS API ver. 1 registered
[    0.182019] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.182150] PTP clock support registered
[    0.182449] NetLabel: Initializing
[    0.183148] NetLabel:  domain hash size = 128
[    0.183426] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.183792] NetLabel:  unlabeled traffic allowed by default
[    0.184156] PCI: Using ACPI for IRQ routing
[    0.184426] PCI: pci_cache_line_size set to 64 bytes
[    0.184521] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[    0.184915] hpet0: 8 comparators, 32-bit 16.777216 MHz counter
[    0.187154] clocksource: Switched to clocksource hpet
[    0.187493] pnp: PnP ACPI init
[    0.187812] system 00:02: [io  0x04d0-0x04d1] has been reserved
[    0.188216] system 00:02: [io  0x0400-0x0407] has been reserved
[    0.188592] system 00:02: [mem 0xe0000000-0xefffffff] has been reserved
[    0.189041] pnp: PnP ACPI: found 8 devices
[    0.194163] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.194746] NET: Registered PF_INET protocol family
[    0.195091] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.195614] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.196143] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.196648] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.197133] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.197597] TCP: Hash tables configured (established 1024 bind 1024)
[    0.198007] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.198438] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.198900] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.199359] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    0.199753] pci_bus 0000:00: resource 5 [io  0x0d00-0x1fff window]
[    0.200144] pci_bus 0000:00: resource 6 [io  0x2000-0x27bf window]
[    0.200551] pci_bus 0000:00: resource 7 [mem 0xc0000000-0xc02fffff window]
[    0.200987] pci_bus 0000:00: resource 8 [mem 0x800000000-0x81fffffff window]
[    0.201507] pci 0000:00:1f.0: Activating ISA DMA hang workarounds
[    0.201902] PCI: CLS 64 bytes, default 64
[    0.202266] Initialise system trusted keyrings
[    0.202774] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    0.203518] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.203898] 9p: Installing v9fs 9p2000 file system support
[    0.211454] Key type asymmetric registered
[    0.211719] Asymmetric key parser 'x509' registered
[    0.212141] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    0.212627] ACPI: button: Power Button [PWRF]
[    0.213156] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[    0.213735] virtio-pci 0000:00:04.1: virtio_pci: leaving for legacy driver
[    0.214303] virtio-pci 0000:00:04.2: virtio_pci: leaving for legacy driver
[    0.214850] virtio-pci 0000:00:04.3: virtio_pci: leaving for legacy driver
[    0.215427] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.215894] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.216562] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.217119] 00:05: ttyS2 at I/O 0x3e8 (irq = 4, base_baud = 115200) is a 16550A
[    0.217691] 00:06: ttyS3 at I/O 0x2e8 (irq = 3, base_baud = 115200) is a 16550A
[    0.218385] Non-volatile memory driver v1.3
[    0.219126] loop: module loaded
[    0.219600] virtio_blk virtio0: [vda] 192024 512-byte logical blocks (98.3 MB/93.8 MiB)
[    0.221047] e1000: Intel(R) PRO/1000 Network Driver
[    0.221379] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.529636] e1000 0000:00:05.0 eth0: (PCI:33MHz:32-bit) 00:a0:98:8a:05:71
[    0.530070] e1000 0000:00:05.0 eth0: Intel(R) PRO/1000 Network Connection
[    0.530601] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.531233] i8042: Warning: Keylock active
[    0.531924] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.532304] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.532962] rtc_cmos 00:07: registered as rtc0
[    0.533308] rtc_cmos 00:07: alarms up to one day, y3k, 114 bytes nvram
[    0.533833] Initializing XFRM netlink socket
[    0.534136] NET: Registered PF_INET6 protocol family
[    0.534644] Segment Routing with IPv6
[    0.534897] In-situ OAM (IOAM) with IPv6
[    0.535169] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.535629] NET: Registered PF_PACKET protocol family
[    0.535963] 9pnet: Installing 9P2000 support
[    0.537012] registered taskstats version 1
[    0.537294] Loading compiled-in X.509 certificates
[    0.537661] printk: console [netcon0] enabled
[    0.537942] netconsole: network logging started
[    0.538313] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    0.538977] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    0.539576] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.540127] cfg80211: failed to load regulatory.db
[    0.541365] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    0.542157] devtmpfs: mounted
[    0.542430] Freeing unused kernel image (initmem) memory: 724K
[    0.542803] Write protecting the kernel read-only data: 12288k
[    0.543462] Freeing unused kernel image (text/rodata gap) memory: 2044K
[    0.543934] Freeing unused kernel image (rodata/data gap) memory: 480K
[    0.544368] Run /sbin/init as init process
[    0.544633]   with arguments:
[    0.544633]     /sbin/init
[    0.544633]   with environment:
[    0.544634]     HOME=/
[    0.544634]     TERM=linux
[    0.544634]     BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz
[    0.544635]     modules=squashfs
[    0.726835] rtw89core: loading out-of-tree module taints kernel.
[    0.741484] rtw89_8852be 0000:00:06.0: can't derive routing for PCI INT A
[    0.741486] rtw89_8852be 0000:00:06.0: PCI INT A: not connected
[    0.766653] rtw89_8852be 0000:00:06.0: Firmware version 0.27.32.1, cmd version 0, type 1
[    0.766655] rtw89_8852be 0000:00:06.0: Firmware version 0.27.32.1, cmd version 0, type 3
[    1.043865] rtw89_8852be 0000:00:06.0: chip rfe_type is 1

and /var/run/wifibox/appliance/log/messages:

Mar 24 13:43:13 wifibox syslog.info syslogd started: BusyBox v1.35.0
Mar 24 13:43:13 wifibox daemon.info supervise-daemon[785]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Mar 24 13:43:13 wifibox daemon.info supervise-daemon[789]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Mar 24 13:43:19 wifibox daemon.info supervise-daemon[947]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Mar 24 13:43:19 wifibox daemon.info supervise-daemon[951]: Child command line: /sbin/uds_passthru 
Mar 24 13:43:19 wifibox daemon.info : starting pid 954, tty '': '/sbin/openrc default'
Mar 24 13:43:19 wifibox daemon.debug uds_passthru[951]: 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]
Mar 24 13:43:19 wifibox daemon.info uds_passthru[951]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.LGejkc/tmp.oGiNcL)
Mar 24 13:43:19 wifibox daemon.warn uds_passthru[951]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Mar 24 13:43:19 wifibox daemon.info uds_passthru[951]: Waiting for PID 964 to stop.
Mar 24 13:43:19 wifibox cron.info crond[1011]: crond (busybox 1.35.0) started, log level 8
Mar 24 13:43:19 wifibox daemon.info udhcpd[1064]: started, v1.35.0
Mar 24 13:43:19 wifibox daemon.err udhcpd[1064]: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
Mar 24 13:43:19 wifibox daemon.info : starting pid 1071, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'

@Elimelech
Copy link
Author

Elimelech commented Mar 24, 2023

For some reason on reboot the the wifibox0 interface fails to get an IP from DHCP, seems to be because the interface doesn’t exist before the bhyve VM is started, work around until I find a solution:

Edit `/etc/rc.local’:

/sbin/dhclient wifibox0

Reboot, all should be good

P.S. i.e. without this line /sbin/dhclient wifibox0 in /etc/rc.local Internet does not start when the system boots.

@pgj
Copy link
Owner

pgj commented Mar 25, 2023

Okay, so can we say that Wifibox works with your wireless card? If you share the details of your configuration with me, I can add it to the Compatibility table, see the columns for the required set of information.

Regarding DHCP, note that there might be some extra rc.conf(5) configuration options added to make it the IP address assignment faster and asynchronous (so the boot process is not blocked):

wifibox_enable="YES"
ifconfig_wifibox0="SYNCDHCP"
background_dhclient_wifibox0="YES"
defaultroute_delay="0"

Alternatively, you can choose to have static IP address and routing:

wifibox_enable="YES"
defaultrouter="10.0.0.1"
ifconfig_wifibox0="inet 10.0.0.2/24"

@Elimelech
Copy link
Author

Elimelech commented Mar 25, 2023

I tried to substitute different values, but it doesn't work:
wifibox_enable="YES"
ifconfig_wifibox0="SYNCDHCP"
background_dhclient_wifibox0="YES"
defaultroute_delay="0"

also this doesn't work:
wifibox_enable="YES"
defaultrouter="10.0.0.1"
ifconfig_wifibox0="inet 10.0.0.2/24"

Works only if there is /etc/rc.local file: /sbin/dhclient wifibox0

Wifibox works with my wireless card.
My configuration:
CPU: AMD Ryzen 7 5825U with Radeon Graphics
Wireless NIC: Realtek RTL8852BE WiFi 6 802.11ax PCIe Adapter
Model: HP Laptop 15s-eq3636nz
FreeBSD: FreeBSD F3ja 13.2-RC3 FreeBSD 13.2-RC3 releng/13.2-n254599-d9bf9d73203f GENERIC amd64

@pgj
Copy link
Owner

pgj commented Mar 25, 2023

Thanks for the configuration data and the confirmation!

Regarding the issue with dhclient(8), it should not be called for the static IP and route configuration at all. The wifibox0 interface is virtual bridged interface but it should be working like any another. Do you see any warning or error messages on the host related to its configuration? I will try to get a 13.2-RC3 installed and test Wifibox with that.

@Elimelech
Copy link
Author

Elimelech commented Mar 25, 2023

everything works, but dhcp and wifibox0 are not friendly. :(

2023-03-25T18:07:39+0200 DEBUG Program started as /usr/local/sbin/wifibox, with arguments: start
2023-03-25T18:07:39+0200 INFO  Begin: wifibox start
2023-03-25T18:07:39+0200 DEBUG start=GN
2023-03-25T18:07:39+0200 INFO  Creating bridge interface: wifibox0
2023-03-25T18:07:39+0200 DEBUG [ifconfig] wifibox0
2023-03-25T18:07:39+0200 INFO  Linking tap interface to wifibox0: tap0
2023-03-25T18:07:39+0200 INFO  vmm.ko is expected at path: /boot/kernel/vmm.ko
2023-03-25T18:07:39+0200 INFO  vmm.ko is found at path: /boot/kernel/vmm.ko
2023-03-25T18:07:39+0200 DEBUG assert loaded: kmod=vmm, kmod_file=/boot/kernel/vmm.ko
2023-03-25T18:07:39+0200 DEBUG assert hardware support present: iommu=1, amdvi=1
2023-03-25T18:07:39+0200 DEBUG Backends reported by bhyve:
2023-03-25T18:07:39+0200 DEBUG [bhyve] ahci
2023-03-25T18:07:39+0200 DEBUG [bhyve] ahci-hd
2023-03-25T18:07:39+0200 DEBUG [bhyve] ahci-cd
2023-03-25T18:07:39+0200 DEBUG [bhyve] e1000
2023-03-25T18:07:39+0200 DEBUG [bhyve] dummy
2023-03-25T18:07:39+0200 DEBUG [bhyve] hda
2023-03-25T18:07:39+0200 DEBUG [bhyve] fbuf
2023-03-25T18:07:39+0200 DEBUG [bhyve] amd_hostbridge
2023-03-25T18:07:39+0200 DEBUG [bhyve] hostbridge
2023-03-25T18:07:39+0200 DEBUG [bhyve] lpc
2023-03-25T18:07:39+0200 DEBUG [bhyve] nvme
2023-03-25T18:07:39+0200 DEBUG [bhyve] passthru
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-9p
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-blk
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-console
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-input
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-net
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-rnd
2023-03-25T18:07:39+0200 DEBUG [bhyve] virtio-scsi
2023-03-25T18:07:39+0200 DEBUG [bhyve] uart
2023-03-25T18:07:39+0200 DEBUG [bhyve] xhci
2023-03-25T18:07:39+0200 INFO  Waiting for bhyve to start up
2023-03-25T18:07:39+0200 DEBUG Program started as /usr/local/sbin/wifibox, with arguments: _manage_vm
2023-03-25T18:07:39+0200 DEBUG assert daemonized: parent=daemon
2023-03-25T18:07:39+0200 INFO  VM manager launched
2023-03-25T18:07:39+0200 INFO  Gathering necessary configuration files for launching the guest
2023-03-25T18:07:39+0200 INFO  Pulling bhyve options from configuration file
2023-03-25T18:07:39+0200 DEBUG cpus=1, memory=356M, passthru=1/0/0, console=no
2023-03-25T18:07:39+0200 INFO  Guest console is not configured to use
2023-03-25T18:07:39+0200 INFO  Passthru device is configured: 1/0/0
2023-03-25T18:07:39+0200 INFO  PPT driver is configured for pci1:0:0 device
2023-03-25T18:07:39+0200 INFO  tap interface is configured: tap0
2023-03-25T18:07:39+0200 INFO  Launching guest wifibox from /usr/local/share/wifibox with grub-bhyve
2023-03-25T18:07:39+0200 INFO  Application config is found at /usr/local/etc/wifibox/wpa_supplicant
2023-03-25T18:07:39+0200 INFO  Application config will be mounted writeable
2023-03-25T18:07:39+0200 DEBUG Devices: virtio-blk,/usr/local/share/wifibox/disk.img virtio-9p,config=/usr/local/etc/wifibox/appliance,ro virtio-9p,var=/var/run/wifibox/appliance virtio-9p,app_config=/usr/local/etc/wifibox/wpa_supplicant
2023-03-25T18:07:39+0200 DEBUG Arguments:  -S -M 356M -r host  -d /usr/local/share/wifibox wifibox
2023-03-25T18:07:39+0200 INFO  Launching guest wifibox from /usr/local/share/wifibox with bhyve
2023-03-25T18:07:39+0200 DEBUG Arguments:  -c 1 -m 356M -AHP -u -S  -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/usr/local/share/wifibox/disk.img -s 4:1,virtio-9p,config=/usr/local/etc/wifibox/appliance,ro -s 4:2,virtio-9p,var=/var/run/wifibox/appliance -s 4:3,virtio-9p,app_config=/usr/local/etc/wifibox/wpa_supplicant -s 5:0,e1000,tap0 -s 6:0,passthru,1/0/0 wifibox
2023-03-25T18:07:39+0200 DEBUG [bhyve] wrmsr to register 0xc0011029(0x3) on vcpu 0
2023-03-25T18:07:39+0200 DEBUG [bhyve] rdmsr to register 0xc00000e9 on vcpu 0
2023-03-25T18:07:40+0200 INFO  Guest wifibox has started up
2023-03-25T18:07:40+0200 INFO  Guest is managed by PID 58031
2023-03-25T18:07:40+0200 INFO  Bringing up Unix Domain Socket pass-through
2023-03-25T18:07:40+0200 INFO  Found guest IP address: 10.0.0.1
2023-03-25T18:07:40+0200 INFO  Configured 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]
2023-03-25T18:07:40+0200 INFO  Hooking up 10.0.0.1:1200 as /var/run/wpa_supplicant/wlan0 (root:0@770)
2023-03-25T18:07:40+0200 INFO  Hooking up 10.0.0.1:1201 as /var/run/wpa_supplicant/p2p-dev-wlan0 (root:0@770)
2023-03-25T18:07:40+0200 INFO  End: wifibox start

@pgj
Copy link
Owner

pgj commented Mar 27, 2023

I have tried Wifibox with FreeBSD 13.2-RC5, and DHCP worked for me. It would be curious to understand how your configuration is different from the standard one and what the actual problem is.

After applying the previously suggested rc.conf(5) settings what does ifconfig wifibox0 say? What is the output of netstat -rn4? Can the situation be fixed by service netif restart wifibox0? Note that it may take a while to get an IP address via DHCP.

@Elimelech
Copy link
Author

I have nothing new in the settings, everything is according to the instructions, standard.

root@F3ja:/usr/home/luba # ifconfig wifibox0
wifibox0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ab:12
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
root@F3ja:/usr/home/luba # netstat -rn4
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
127.0.0.1          link#1             UHS         lo0

Restarting the service netif restart wifibox0 does nothing. There is no internet.

root@F3ja:/usr/home/luba # service netif restart wifibox0
dhclient not running? (check /var/run/dhclient/dhclient.wifibox0.pid).
Stopping Network: wifibox0.
wifibox0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ab:12
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
Starting dhclient.
Starting Network: wifibox0.
wifibox0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ab:12
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>

@pgj
Copy link
Owner

pgj commented Mar 28, 2023

Okay. Could you please try disabling the background dhclient(8), that is, applying only the following settings to /etc/rc.conf?

ifconfig_wifibox0="SYNCDHCP"

Then post output of the following command, please:

# service netif restart wifibox0

This way we could see what dhclient(8) does when called like this. Similarly, it might make sense to include the udhcpd(8) logs at the same time to see if there is something going wrong on that side. Please post the output of this command:

# fgrep udhcpd /var/run/wifibox/appliance/log/messages

@Elimelech
Copy link
Author

Elimelech commented Mar 29, 2023

Removed background dhclient, but
there was no internet after the system was started.

after command # service netif restart wifibox0

root@F3ja:/usr/home/luba # service netif restart wifibox0
dhclient not running? (check /var/run/dhclient/dhclient.wifibox0.pid).
Stopping Network: wifibox0.
wifibox0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ab:12
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
Starting dhclient.
DHCPREQUEST on wifibox0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.1
bound to 10.0.0.2 -- renewal in 432000 seconds.
Starting Network: wifibox0.
wifibox0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ab:12
        inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>

the Internet appeared.
Log output:

Mar 29 07:57:24 wifibox syslog.info syslogd started: BusyBox v1.35.0
Mar 29 07:57:24 wifibox daemon.info supervise-daemon[785]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Mar 29 07:57:24 wifibox daemon.info supervise-daemon[789]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Mar 29 07:57:30 wifibox daemon.info supervise-daemon[947]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Mar 29 07:57:30 wifibox daemon.info supervise-daemon[951]: Child command line: /sbin/uds_passthru 
Mar 29 07:57:30 wifibox daemon.info : starting pid 954, tty '': '/sbin/openrc default'
Mar 29 07:57:30 wifibox daemon.debug uds_passthru[951]: 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]
Mar 29 07:57:30 wifibox daemon.info uds_passthru[951]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.CEMiNb/tmp.GdPKnc)
Mar 29 07:57:30 wifibox daemon.warn uds_passthru[951]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Mar 29 07:57:30 wifibox daemon.info uds_passthru[951]: Waiting for PID 964 to stop.
Mar 29 07:57:30 wifibox cron.info crond[1011]: crond (busybox 1.35.0) started, log level 8
Mar 29 07:57:30 wifibox daemon.info udhcpd[1064]: started, v1.35.0
Mar 29 07:57:30 wifibox daemon.err udhcpd[1064]: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
Mar 29 07:57:30 wifibox daemon.info : starting pid 1071, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Mar 29 07:57:35 wifibox daemon.info udhcpd[1064]: sending OFFER to 10.0.0.2
Mar 29 07:57:37 wifibox daemon.info udhcpd[1064]: sending ACK to 10.0.0.2
Mar 29 08:00:00 wifibox cron.info crond[1011]: USER root pid 1080 cmd run-parts /etc/periodic/15min
Mar 29 08:00:00 wifibox cron.info crond[1011]: USER root pid 1081 cmd run-parts /etc/periodic/hourly
Mar 29 08:01:32 wifibox daemon.info udhcpd[1064]: sending ACK to 10.0.0.2

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

Apparently the problem is with the boot process. I am not sure if this is Wifibox-specific, but we can still keep running the investigation because it may bring some important conclusions.

It might be interesting to see what the dmesg -a command says on the FreeBSD host, and if there is anything interesting gets logged in /var/log/messages during boot. I believe there must be error message present if the wifibox0 networking interface could not be configured properly.

@Elimelech
Copy link
Author

there is nothing suspicious.

But my setup in the form of /etc/rc.local':/sbin/dhclient wifibox0
doesn't work very well.
sometimes the connection drops.... :(

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

I would be still interested to see what your FreeBSD system logs on boot. Could you please share with me the dmesg -a output from the FreeBSD host? You can redact all the private information from there, although I do not think there will be much.

Regarding the connection issues: it is hard to say anything without any specific detail. There may be many reasons for that. The guest image contains many tools for troubleshooting, though. Couple of examples:

  • You can start wpa_supplicant(8) in the foreground and watch the messages:

    # service wpa_supplicant stop
    # wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
  • You can use iw to learn about the other details related to the connection:

    # iw wlan0 info

@Elimelech
Copy link
Author

Looks like the "iw" command is not found on your system. This command is used to configure wireless network interfaces in Linux.

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

Yes, you are right. These commands are meant to be executed on the Wifibox guest which is a Linux system.

@Elimelech
Copy link
Author

Elimelech commented Apr 1, 2023

FreeBSD 13.2 RC5

Apr  1 21:29:45 F3ja syslogd: kernel boot file is /boot/kernel/kernel
Apr  1 21:29:45 F3ja kernel: ---<<BOOT>>---
Apr  1 21:29:45 F3ja kernel: Copyright (c) 1992-2021 The FreeBSD Project.
Apr  1 21:29:45 F3ja kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Apr  1 21:29:45 F3ja kernel: 	The Regents of the University of California. All rights reserved.
Apr  1 21:29:45 F3ja kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
Apr  1 21:29:45 F3ja kernel: FreeBSD 13.2-RC5 releng/13.2-n254613-0386b9bd6cda GENERIC amd64
Apr  1 21:29:45 F3ja kernel: FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Apr  1 21:29:45 F3ja kernel: VT(efifb): resolution 1920x1080
Apr  1 21:29:45 F3ja kernel: CPU: AMD Ryzen 7 5825U with Radeon Graphics          (1996.32-MHz K8-class CPU)
Apr  1 21:29:45 F3ja kernel:   Origin="AuthenticAMD"  Id=0xa50f00  Family=0x19  Model=0x50  Stepping=0
Apr  1 21:29:45 F3ja kernel:   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>
Apr  1 21:29:45 F3ja kernel:   Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
Apr  1 21:29:45 F3ja kernel:   AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
Apr  1 21:29:45 F3ja kernel:   AMD Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX>
Apr  1 21:29:45 F3ja kernel:   Structured Extended Features=0x219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
Apr  1 21:29:45 F3ja kernel:   Structured Extended Features2=0x40069c<UMIP,PKU,OSPKE,VAES,VPCLMULQDQ,RDPID>
Apr  1 21:29:45 F3ja kernel:   Structured Extended Features3=0x10<FSRM>
Apr  1 21:29:45 F3ja kernel:   XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
Apr  1 21:29:45 F3ja kernel:   AMD Extended Feature Extensions ID EBX=0x191ef657<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SSBD>
Apr  1 21:29:45 F3ja kernel:   SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
Apr  1 21:29:45 F3ja kernel:   TSC: P-state invariant, performance statistics
Apr  1 21:29:45 F3ja kernel: real memory  = 17179869184 (16384 MB)
Apr  1 21:29:45 F3ja kernel: avail memory = 15919493120 (15182 MB)
Apr  1 21:29:45 F3ja kernel: Event timer "LAPIC" quality 600
Apr  1 21:29:45 F3ja kernel: ACPI APIC Table: <HPQOEM 89FC    >
Apr  1 21:29:45 F3ja kernel: FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
Apr  1 21:29:45 F3ja kernel: FreeBSD/SMP: 1 package(s) x 8 core(s) x 2 hardware threads
Apr  1 21:29:45 F3ja kernel: random: registering fast source Intel Secure Key RNG
Apr  1 21:29:45 F3ja kernel: random: fast provider: "Intel Secure Key RNG"
Apr  1 21:29:45 F3ja kernel: random: unblocking device.
Apr  1 21:29:45 F3ja kernel: ioapic0 <Version 2.1> irqs 0-23
Apr  1 21:29:45 F3ja kernel: ioapic1 <Version 2.1> irqs 24-55
Apr  1 21:29:45 F3ja kernel: Launching APs: 1 2 11 15 6 12 5 9 10 3 14 13 7 4 8
Apr  1 21:29:45 F3ja kernel: random: entropy device external interface
Apr  1 21:29:45 F3ja kernel: kbd1 at kbdmux0
Apr  1 21:29:45 F3ja kernel: efirtc0: <EFI Realtime Clock>
Apr  1 21:29:45 F3ja kernel: efirtc0: registered as a time-of-day clock, resolution 1.000000s
Apr  1 21:29:45 F3ja kernel: smbios0: <System Management BIOS> at iomem 0xbc560000-0xbc56001e
Apr  1 21:29:45 F3ja kernel: smbios0: Version: 3.3, BCD Revision: 3.3
Apr  1 21:29:45 F3ja kernel: aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
Apr  1 21:29:45 F3ja kernel: acpi0: <HPQOEM SLIC-MPC>
Apr  1 21:29:45 F3ja kernel: Firmware Error (ACPI): Could not resolve symbol [\_SB.PCI0.28**.EC0], AE_NOT_FOUND (20201113/dswload2-315)
Apr  1 21:29:45 F3ja kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20201113/psobject-372)
Apr  1 21:29:45 F3ja kernel: AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0
Apr  1 21:29:45 F3ja kernel: attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Apr  1 21:29:45 F3ja kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Apr  1 21:29:45 F3ja kernel: Event timer "i8254" frequency 1193182 Hz quality 100
Apr  1 21:29:45 F3ja kernel: atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
Apr  1 21:29:45 F3ja kernel: atrtc0: registered as a time-of-day clock, resolution 1.000000s
Apr  1 21:29:45 F3ja kernel: Event timer "RTC" frequency 32768 Hz quality 0
Apr  1 21:29:45 F3ja kernel: hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Apr  1 21:29:45 F3ja kernel: Timecounter "HPET" frequency 14318180 Hz quality 950
Apr  1 21:29:45 F3ja kernel: Event timer "HPET" frequency 14318180 Hz quality 350
Apr  1 21:29:45 F3ja kernel: Event timer "HPET1" frequency 14318180 Hz quality 350
Apr  1 21:29:45 F3ja kernel: Event timer "HPET2" frequency 14318180 Hz quality 350
Apr  1 21:29:45 F3ja kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
Apr  1 21:29:45 F3ja kernel: acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
Apr  1 21:29:45 F3ja kernel: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
Apr  1 21:29:45 F3ja kernel: pci0: <ACPI PCI bus> on pcib0
Apr  1 21:29:45 F3ja kernel: amdsmn0: <AMD Family 19h System Management Network> on hostb0
Apr  1 21:29:45 F3ja kernel: amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb0
Apr  1 21:29:45 F3ja kernel: amdtemp0: Unrecognized Family 19h Model: 50h
Apr  1 21:29:45 F3ja kernel: amdiommu0 at device 0.2 on pci0
Apr  1 21:29:45 F3ja kernel: pcib1: <ACPI PCI-PCI bridge> at device 2.2 on pci0
Apr  1 21:29:45 F3ja kernel: pcib1: failed to allocate initial I/O port window: 0xf000-0xffff
Apr  1 21:29:45 F3ja kernel: pci1: <ACPI PCI bus> on pcib1
Apr  1 21:29:45 F3ja kernel: pci1: <network> at device 0.0 (no driver attached)
Apr  1 21:29:45 F3ja kernel: pcib2: <ACPI PCI-PCI bridge> at device 2.4 on pci0
Apr  1 21:29:45 F3ja kernel: pci2: <ACPI PCI bus> on pcib2
Apr  1 21:29:45 F3ja kernel: nvme0: <Generic NVMe Device> mem 0xfce00000-0xfce03fff,0xfce05000-0xfce05fff,0xfce04000-0xfce04fff at device 0.0 on pci2
Apr  1 21:29:45 F3ja kernel: pcib3: <ACPI PCI-PCI bridge> at device 8.1 on pci0
Apr  1 21:29:45 F3ja kernel: pci3: <ACPI PCI bus> on pcib3
Apr  1 21:29:45 F3ja kernel: vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xd0000000-0xdfffffff,0xe0000000-0xe01fffff,0xfcd00000-0xfcd7ffff at device 0.0 on pci3
Apr  1 21:29:45 F3ja kernel: acpi_video0: <ACPI video extension> on vgapci0
Apr  1 21:29:45 F3ja kernel: hdac0: <ATI (0x1637) HDA Controller> mem 0xfcdc8000-0xfcdcbfff at device 0.1 on pci3
Apr  1 21:29:45 F3ja kernel: pci3: <encrypt/decrypt> at device 0.2 (no driver attached)
Apr  1 21:29:45 F3ja kernel: xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfcb00000-0xfcbfffff at device 0.3 on pci3
Apr  1 21:29:45 F3ja kernel: xhci0: 64 bytes context size, 64-bit DMA
Apr  1 21:29:45 F3ja kernel: usbus0 on xhci0
Apr  1 21:29:45 F3ja kernel: usbus0: 5.0Gbps Super Speed USB v3.0
Apr  1 21:29:45 F3ja kernel: xhci1: <XHCI (generic) USB 3.0 controller> mem 0xfca00000-0xfcafffff at device 0.4 on pci3
Apr  1 21:29:45 F3ja kernel: xhci1: 64 bytes context size, 64-bit DMA
Apr  1 21:29:45 F3ja kernel: usbus1 on xhci1
Apr  1 21:29:45 F3ja kernel: usbus1: 5.0Gbps Super Speed USB v3.0
Apr  1 21:29:45 F3ja kernel: pci3: <multimedia> at device 0.5 (no driver attached)
Apr  1 21:29:45 F3ja kernel: hdac1: <AMD Raven HDA Controller> mem 0xfcdc0000-0xfcdc7fff at device 0.6 on pci3
Apr  1 21:29:45 F3ja kernel: isab0: <PCI-ISA bridge> at device 20.3 on pci0
Apr  1 21:29:45 F3ja kernel: isa0: <ISA bus> on isab0
Apr  1 21:29:45 F3ja kernel: acpi_button0: <Power Button> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_syscontainer0: <System Container> on acpi0
Apr  1 21:29:45 F3ja kernel: battery0: <ACPI Control Method Battery> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_acad0: <AC Adapter> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_lid0: <Control Method Lid Switch> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_tz0: <Thermal Zone> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_tz0: _CRT value is absurd, ignored (255.1C)
Apr  1 21:29:45 F3ja kernel: cpu0: <ACPI CPU> on acpi0
Apr  1 21:29:45 F3ja kernel: atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
Apr  1 21:29:45 F3ja kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Apr  1 21:29:45 F3ja kernel: kbd0 at atkbd0
Apr  1 21:29:45 F3ja kernel: atkbd0: [GIANT-LOCKED]
Apr  1 21:29:45 F3ja kernel: ivhd0: <AMD-Vi/IOMMU ivhd in mixed format> on acpi0
Apr  1 21:29:45 F3ja kernel: ivhd0: Unknown dev entry:0xf0
Apr  1 21:29:45 F3ja kernel: Variable size IVHD type 0xf0 not supported
Apr  1 21:29:45 F3ja kernel: ivhd0: Flag:b0<IotlbSup,Coherent>
Apr  1 21:29:45 F3ja kernel: ivhd0: Features(type:0x40) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
Apr  1 21:29:45 F3ja kernel: ivhd0: Extended features[31:0]:22254ade<PPRSup,<b2>,NXSup,GTSup,IASup,GASup,PCSup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x1 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
Apr  1 21:29:45 F3ja kernel: ivhd0: Extended features[62:32]:206d73ef<USSup,PprOvrflwEarlySup,PPRAutoRspSup,BlKStopMrkSup,PerfOptSup,MsiCapMmioSup,GIOSup,EPHSup,AttrFWSup,InvIotlbSup> Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x0
Apr  1 21:29:45 F3ja kernel: ivhd0: supported paging level:7, will use only: 4
Apr  1 21:29:45 F3ja kernel: ivhd0: device [0x8 - 0xfffe] config:0
Apr  1 21:29:45 F3ja kernel: ivhd0: device [0xff00 - 0xffff] config:0
Apr  1 21:29:45 F3ja kernel: ivhd0: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
Apr  1 21:29:45 F3ja kernel: hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Apr  1 21:29:45 F3ja kernel: Timecounter "TSC" frequency 1996249397 Hz quality 1000
Apr  1 21:29:45 F3ja kernel: Timecounters tick every 1.000 msec
Apr  1 21:29:45 F3ja kernel: ZFS filesystem version: 5
Apr  1 21:29:45 F3ja kernel: ZFS storage pool version: features support (5000)
Apr  1 21:29:45 F3ja kernel: [nl_generic] genl_register_family: Registered family nlctrl id 16
Apr  1 21:29:45 F3ja kernel: [nl_generic] genl_register_cmds: Adding cmd GETFAMILY(3) to family nlctrl
Apr  1 21:29:45 F3ja kernel: ugen1.1: <AMD XHCI root HUB> at usbus1
Apr  1 21:29:45 F3ja kernel: ugen0.1: <AMD XHCI root HUB> at usbus0
Apr  1 21:29:45 F3ja kernel: uhub0 on usbus1
Apr  1 21:29:45 F3ja kernel: uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
Apr  1 21:29:45 F3ja kernel: uhub1 on usbus0
Apr  1 21:29:45 F3ja kernel: uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
Apr  1 21:29:45 F3ja kernel: acpi_tz0: _CRT value is absurd, ignored (255.1C)
Apr  1 21:29:45 F3ja kernel: nvd0: <SK hynix BC711 HFM512GD3JX013N> NVMe namespace
Apr  1 21:29:45 F3ja kernel: nvd0: 488386MB (1000215216 512 byte sectors)
Apr  1 21:29:45 F3ja kernel: hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
Apr  1 21:29:45 F3ja kernel: hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
Apr  1 21:29:45 F3ja kernel: pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
Apr  1 21:29:45 F3ja kernel: hdacc1: <Realtek ALC236 HDA CODEC> at cad 0 on hdac1
Apr  1 21:29:45 F3ja kernel: hdaa1: <Realtek ALC236 Audio Function Group> at nid 1 on hdacc1
Apr  1 21:29:45 F3ja kernel: pcm1: <Realtek ALC236 (Analog)> at nid 20 and 25 on hdaa1
Apr  1 21:29:45 F3ja kernel: pcm2: <Realtek ALC236 (Right Analog Headphones)> at nid 33 on hdaa1
Apr  1 21:29:45 F3ja kernel: Trying to mount root from zfs:zroot/ROOT/default []...
Apr  1 21:29:45 F3ja kernel: uhub0: 6 ports with 6 removable, self powered
Apr  1 21:29:45 F3ja kernel: uhub1: 6 ports with 6 removable, self powered
Apr  1 21:29:45 F3ja kernel: [drm] amdgpu kernel modesetting enabled.
Apr  1 21:29:45 F3ja kernel: drmn0: <drmn> on vgapci0
Apr  1 21:29:45 F3ja kernel: vgapci0: child drmn0 requested pci_enable_io
Apr  1 21:29:45 F3ja syslogd: last message repeated 1 times
Apr  1 21:29:45 F3ja kernel: [drm] initializing kernel modesetting (RENOIR 0x1002:0x15E7 0x103C:0x89FC 0xC1).
Apr  1 21:29:45 F3ja kernel: drmn0: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
Apr  1 21:29:45 F3ja kernel: [drm] register mmio base: 0xFCD00000
Apr  1 21:29:45 F3ja kernel: [drm] register mmio size: 524288
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 0 <soc15_common>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 1 <gmc_v9_0>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 2 <vega10_ih>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 3 <psp>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 4 <smu>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 5 <gfx_v9_0>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 6 <sdma_v4_0>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 7 <dm>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 8 <vcn_v2_0>
Apr  1 21:29:45 F3ja kernel: [drm] add ip block number 9 <jpeg_v2_0>
Apr  1 21:29:45 F3ja kernel: drmn0: Fetched VBIOS from VFCT
Apr  1 21:29:45 F3ja kernel: amdgpu: ATOM BIOS: 113-BARCELO-004
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_sdma.bin'
Apr  1 21:29:45 F3ja kernel: [drm] VCN decode is enabled in VM mode
Apr  1 21:29:45 F3ja kernel: [drm] VCN encode is enabled in VM mode
Apr  1 21:29:45 F3ja kernel: [drm] JPEG decode is enabled in VM mode
Apr  1 21:29:45 F3ja kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Apr  1 21:29:45 F3ja kernel: drmn0: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
Apr  1 21:29:45 F3ja kernel: drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
Apr  1 21:29:45 F3ja kernel: drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
Apr  1 21:29:45 F3ja kernel: [drm] Detected VRAM RAM=512M, BAR=512M
Apr  1 21:29:45 F3ja kernel: [drm] RAM width 128bits DDR4
Apr  1 21:29:45 F3ja kernel: [TTM] Zone  kernel: Available graphics memory: 8020676 KiB
Apr  1 21:29:45 F3ja kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
Apr  1 21:29:45 F3ja kernel: [TTM] Initializing pool allocator
Apr  1 21:29:45 F3ja kernel: [drm] amdgpu: 512M of VRAM memory ready
Apr  1 21:29:45 F3ja kernel: [drm] amdgpu: 3072M of GTT memory ready.
Apr  1 21:29:45 F3ja kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Apr  1 21:29:45 F3ja kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_asd.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_pfp.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_me.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_ce.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_rlc.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_mec.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_mec2.bin'
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_dmcub.bin'
Apr  1 21:29:45 F3ja kernel: [drm] Loading DMUB firmware via PSP: version=0x01010024
Apr  1 21:29:45 F3ja kernel: drmn0: successfully loaded firmware image 'amdgpu/green_sardine_vcn.bin'
Apr  1 21:29:45 F3ja kernel: [drm] Found VCN firmware Version ENC: 1.19 DEC: 5 VEP: 0 Revision: 0
Apr  1 21:29:45 F3ja kernel: drmn0: Will use PSP to load VCN firmware
Apr  1 21:29:45 F3ja kernel: [drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
Apr  1 21:29:45 F3ja kernel: ugen0.2: <Logitech Logitech USB Optical Mouse> at usbus0
Apr  1 21:29:45 F3ja kernel: drmn0: SMU is initialized successfully!
Apr  1 21:29:45 F3ja kernel: [drm] kiq ring mec 2 pipe 1 q 0
Apr  1 21:29:45 F3ja kernel: [drm] Display Core initialized with v3.2.104!
Apr  1 21:29:45 F3ja kernel: [drm] DMUB hardware initialized: version=0x01010024
Apr  1 21:29:45 F3ja kernel: ugen1.2: <ELAN ELAN:ARM-M4> at usbus1
Apr  1 21:29:45 F3ja kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
Apr  1 21:29:45 F3ja kernel: [drm] JPEG decode initialized successfully.
Apr  1 21:29:45 F3ja kernel: drmn0: SE 1, SH per SE 1, CU per SH 8, active_cu_number 8
Apr  1 21:29:45 F3ja kernel: [drm] fb mappable at 0x420CD1000
Apr  1 21:29:45 F3ja kernel: [drm] vram apper at 0x420000000
Apr  1 21:29:45 F3ja kernel: [drm] size 8294400
Apr  1 21:29:45 F3ja kernel: [drm] fb depth is 24
Apr  1 21:29:45 F3ja kernel: [drm]    pitch is 7680
Apr  1 21:29:45 F3ja kernel: VT: Replacing driver "efifb" with new "fb".
Apr  1 21:29:45 F3ja kernel: start FB_INFO:
Apr  1 21:29:45 F3ja kernel: type=11 height=1080 width=1920 depth=32
Apr  1 21:29:45 F3ja kernel: pbase=0x420cd1000 vbase=0xfffff80420cd1000
Apr  1 21:29:45 F3ja kernel: name=drmn0 flags=0x0 stride=7680 bpp=32
Apr  1 21:29:45 F3ja kernel: end FB_INFO
Apr  1 21:29:45 F3ja kernel: drmn0: ring gfx uses VM inv eng 0 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Apr  1 21:29:45 F3ja kernel: drmn0: ring sdma0 uses VM inv eng 0 on hub 1
Apr  1 21:29:45 F3ja kernel: drmn0: ring vcn_dec uses VM inv eng 1 on hub 1
Apr  1 21:29:45 F3ja kernel: drmn0: ring vcn_enc0 uses VM inv eng 4 on hub 1
Apr  1 21:29:45 F3ja kernel: drmn0: ring vcn_enc1 uses VM inv eng 5 on hub 1
Apr  1 21:29:45 F3ja kernel: drmn0: ring jpeg_dec uses VM inv eng 6 on hub 1
Apr  1 21:29:45 F3ja kernel: vgapci0: child drmn0 requested pci_get_powerstate
Apr  1 21:29:45 F3ja kernel: sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
Apr  1 21:29:45 F3ja kernel: [drm] Initialized amdgpu 3.40.0 20150101 for drmn0 on minor 0
Apr  1 21:29:45 F3ja kernel: intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
Apr  1 21:29:45 F3ja kernel: smbus0: <System Management Bus> on intsmb0
Apr  1 21:29:45 F3ja kernel: acpi_wmi0: <ACPI-WMI mapping> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_wmi0: Embedded MOF found
Apr  1 21:29:45 F3ja kernel: ACPI: \AOD.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
Apr  1 21:29:45 F3ja kernel: driver bug: Unable to set devclass (class: ppc devname: (unknown))
Apr  1 21:29:45 F3ja kernel: ig4iic0: <Designware I2C Controller> iomem 0xfedc2000-0xfedc2fff irq 10 on acpi0
Apr  1 21:29:45 F3ja kernel: iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
Apr  1 21:29:45 F3ja kernel: ig4iic1: <Designware I2C Controller> iomem 0xfedc5000-0xfedc5fff irq 6 on acpi0
Apr  1 21:29:45 F3ja kernel: iicbus1: <Philips I2C bus (ACPI-hinted)> on ig4iic1
Apr  1 21:29:45 F3ja kernel: iicbus1: <unknown card> at addr 0x15
Apr  1 21:29:45 F3ja kernel: acpi_wmi1: <ACPI-WMI mapping> on acpi0
Apr  1 21:29:45 F3ja kernel: acpi_wmi1: Embedded MOF found
Apr  1 21:29:45 F3ja kernel: ACPI: \_SB.WMID.WQAB: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
Apr  1 21:29:45 F3ja kernel: driver bug: Unable to set devclass (class: ppc devname: (unknown))
Apr  1 21:29:45 F3ja kernel: bridge0: Ethernet address: 58:9c:fc:10:ab:12
Apr  1 21:29:45 F3ja kernel: bridge0: changing name to 'wifibox0'
Apr  1 21:29:45 F3ja kernel: tap0: Ethernet address: 58:9c:fc:10:ff:a0
Apr  1 21:29:45 F3ja kernel: tap0: promiscuous mode enabled
Apr  1 21:29:45 F3ja kernel: wifibox0: link state changed to DOWN
Apr  1 21:29:45 F3ja kernel: ppt0 port 0x1000-0x10ff mem 0xfcf00000-0xfcffffff at device 0.0 on pci1
Apr  1 21:29:45 F3ja kernel: tap0: link state changed to UP
Apr  1 21:29:45 F3ja kernel: wifibox0: link state changed to UP
Apr  1 21:29:45 F3ja kernel: ugen0.3: <DMWCR0AG4GETYT HP TrueVision HD Camera> at usbus0
Apr  1 21:29:45 F3ja kernel: ugen0.4: <Realtek Bluetooth Radio> at usbus0
Apr  1 21:29:45 F3ja kernel: lo0: link state changed to UP
Apr  1 21:29:45 F3ja kernel: ums0 on uhub1
Apr  1 21:29:45 F3ja kernel: ums0: <Logitech Logitech USB Optical Mouse, class 0/0, rev 2.00/43.00, addr 1> on usbus0
Apr  1 21:29:45 F3ja kernel: ums0: 8 buttons and [XYZT] coordinates ID=0
Apr  1 21:29:45 F3ja kernel: iichid0: <ELAN078E:01 04F3:30FD I2C HID device> at addr 0x15 on iicbus1
Apr  1 21:29:45 F3ja kernel: iichid0: Interrupt setup failed. Fallback to sampling
Apr  1 21:29:45 F3ja kernel: hidbus0: <HID bus> on iichid0
Apr  1 21:29:45 F3ja kernel: ubt0 on uhub1
Apr  1 21:29:45 F3ja kernel: ubt0: <Bluetooth Radio> on usbus0
Apr  1 21:29:45 F3ja kernel: hms0: <ELAN078E:01 04F3:30FD Mouse> on hidbus0
Apr  1 21:29:45 F3ja kernel: hms0: 2 buttons and [XY] coordinates ID=1
Apr  1 21:29:45 F3ja kernel: hmt0: <ELAN078E:01 04F3:30FD TouchPad> on hidbus0
Apr  1 21:29:45 F3ja kernel: hconf0: <ELAN078E:01 04F3:30FD Configuration> on hidbus0
Apr  1 21:29:45 F3ja kernel: hmt0: Multitouch touchpad with 0 external buttons, click-pad

@Elimelech
Copy link
Author

How are these games used in the guest system?
they just don't start!

root@F3ja:/usr/home/luba # wpa_supplicant -c /etc/wpa_supplicant.conf -iwlan0
Successfully initialized wpa_supplicant
wlan0: Failed to initialize driver interface
wlan0: CTRL-EVENT-DSCP-POLICY clear_all

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

First enable the console in the bhyve.conf file. Then restart wifibox and then you can use the wifibox console command to enter the guest. There is only one user, root with a blank password.

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

Could you please send me the output for the following command on the FreeBSD host?

# fgrep dhclient /var/log/messages

@Elimelech
Copy link
Author

When there is no connection, it shows nothing in the logs for this command

And this is when there is a connection:

# fgrep dhclient /var/log/messages
Mar 31 02:15:47 F3ja dhclient[42000]: New IP Address (wifibox0): 10.0.0.2
Mar 31 02:15:47 F3ja dhclient[43392]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 02:15:47 F3ja dhclient[44996]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 02:15:47 F3ja dhclient[46065]: New Routers (wifibox0): 10.0.0.1
Mar 31 02:19:51 F3ja dhclient[37077]: receive_packet failed on wifibox0: Device not configured
Mar 31 02:19:51 F3ja dhclient[37077]: ioctl(SIOCGIFFLAGS) on wifibox0: Operation not permitted
Mar 31 02:19:51 F3ja dhclient[37077]: Interface wifibox0 no longer appears valid.
Mar 31 02:19:51 F3ja dhclient[37077]: No live interfaces to poll on - exiting.
Mar 31 02:19:51 F3ja dhclient[37077]: exiting.
Mar 31 02:19:51 F3ja dhclient[37077]: connection closed
Mar 31 02:19:51 F3ja dhclient[37077]: exiting.
Mar 31 10:03:50 F3ja dhclient[31088]: New IP Address (wifibox0): 10.0.0.2
Mar 31 10:03:50 F3ja dhclient[31577]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 10:03:50 F3ja dhclient[31914]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 10:03:50 F3ja dhclient[32503]: New Routers (wifibox0): 10.0.0.1
Mar 31 10:07:59 F3ja dhclient[54138]: dhclient already running, pid: 36727.
Mar 31 10:07:59 F3ja dhclient[54138]: exiting.
Mar 31 10:08:06 F3ja dhclient[30024]: connection closed
Mar 31 10:08:06 F3ja dhclient[30024]: exiting.
Mar 31 10:08:07 F3ja dhclient[58080]: New IP Address (wifibox0): 10.0.0.2
Mar 31 10:08:07 F3ja dhclient[59383]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 10:08:07 F3ja dhclient[60622]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 10:08:07 F3ja dhclient[61498]: New Routers (wifibox0): 10.0.0.1
Mar 31 12:49:29 F3ja dhclient[56825]: receive_packet failed on wifibox0: Device not configured
Mar 31 12:49:29 F3ja dhclient[56825]: ioctl(SIOCGIFFLAGS) on wifibox0: Operation not permitted
Mar 31 12:49:29 F3ja dhclient[56825]: Interface wifibox0 no longer appears valid.
Mar 31 12:49:29 F3ja dhclient[56825]: No live interfaces to poll on - exiting.
Mar 31 12:49:29 F3ja dhclient[56825]: exiting.
Mar 31 12:49:29 F3ja dhclient[56825]: connection closed
Mar 31 12:49:29 F3ja dhclient[56825]: exiting.
Mar 31 18:09:24 F3ja dhclient[33735]: New IP Address (wifibox0): 10.0.0.2
Mar 31 18:09:24 F3ja dhclient[35375]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 18:09:24 F3ja dhclient[36880]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 18:09:24 F3ja dhclient[38392]: New Routers (wifibox0): 10.0.0.1
Mar 31 18:13:51 F3ja dhclient[8604]: dhclient already running, pid: 57984.
Mar 31 18:13:51 F3ja dhclient[8604]: exiting.
Mar 31 18:13:58 F3ja dhclient[28712]: connection closed
Mar 31 18:13:58 F3ja dhclient[28712]: exiting.
Mar 31 18:13:59 F3ja dhclient[14068]: New IP Address (wifibox0): 10.0.0.2
Mar 31 18:13:59 F3ja dhclient[15550]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 18:13:59 F3ja dhclient[16637]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 18:13:59 F3ja dhclient[18016]: New Routers (wifibox0): 10.0.0.1
Mar 31 18:50:07 F3ja dhclient[41790]: dhclient already running, pid: 21771.
Mar 31 18:50:07 F3ja dhclient[41790]: exiting.
Mar 31 18:50:13 F3ja dhclient[10741]: connection closed
Mar 31 18:50:13 F3ja dhclient[10741]: exiting.
Mar 31 18:50:14 F3ja dhclient[46431]: New IP Address (wifibox0): 10.0.0.2
Mar 31 18:50:14 F3ja dhclient[47417]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 18:50:14 F3ja dhclient[49100]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 18:50:14 F3ja dhclient[50135]: New Routers (wifibox0): 10.0.0.1
Mar 31 18:52:16 F3ja dhclient[25158]: dhclient already running, pid: 53288.
Mar 31 18:52:16 F3ja dhclient[25158]: exiting.
Mar 31 18:52:22 F3ja dhclient[43373]: connection closed
Mar 31 18:52:22 F3ja dhclient[43373]: exiting.
Mar 31 18:52:26 F3ja dhclient[31761]: New IP Address (wifibox0): 10.0.0.2
Mar 31 18:52:26 F3ja dhclient[33557]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 18:52:26 F3ja dhclient[34673]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 18:52:26 F3ja dhclient[36192]: New Routers (wifibox0): 10.0.0.1
Mar 31 20:15:35 F3ja dhclient[64794]: New IP Address (wifibox0): 10.0.0.2
Mar 31 20:15:35 F3ja dhclient[65388]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 20:15:35 F3ja dhclient[65893]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 20:15:35 F3ja dhclient[66309]: New Routers (wifibox0): 10.0.0.1
Mar 31 21:29:31 F3ja dhclient[33633]: dhclient already running, pid: 71210.
Mar 31 21:29:31 F3ja dhclient[33633]: exiting.
Mar 31 21:29:37 F3ja dhclient[63270]: connection closed
Mar 31 21:29:37 F3ja dhclient[63270]: exiting.
Mar 31 21:29:38 F3ja dhclient[38744]: New IP Address (wifibox0): 10.0.0.2
Mar 31 21:29:38 F3ja dhclient[39680]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 21:29:38 F3ja dhclient[40545]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 21:29:38 F3ja dhclient[42293]: New Routers (wifibox0): 10.0.0.1
Mar 31 21:36:09 F3ja dhclient[65917]: dhclient already running, pid: 46445.
Mar 31 21:36:09 F3ja dhclient[65917]: exiting.
Mar 31 21:36:19 F3ja dhclient[36076]: connection closed
Mar 31 21:36:19 F3ja dhclient[36076]: exiting.
Mar 31 21:36:21 F3ja dhclient[70507]: New IP Address (wifibox0): 10.0.0.2
Mar 31 21:36:21 F3ja dhclient[71225]: New Subnet Mask (wifibox0): 255.255.255.0
Mar 31 21:36:21 F3ja dhclient[71953]: New Broadcast Address (wifibox0): 10.0.0.255
Mar 31 21:36:21 F3ja dhclient[73542]: New Routers (wifibox0): 10.0.0.1
Apr  1 01:11:33 F3ja dhclient[68167]: receive_packet failed on wifibox0: Device not configured
Apr  1 01:11:33 F3ja dhclient[68167]: ioctl(SIOCGIFFLAGS) on wifibox0: Operation not permitted
Apr  1 01:11:33 F3ja dhclient[68167]: Interface wifibox0 no longer appears valid.
Apr  1 01:11:33 F3ja dhclient[68167]: No live interfaces to poll on - exiting.
Apr  1 01:11:33 F3ja dhclient[68167]: exiting.
Apr  1 01:11:33 F3ja dhclient[68167]: connection closed
Apr  1 01:11:33 F3ja dhclient[68167]: exiting.
Apr  1 09:13:16 F3ja dhclient[34330]: New IP Address (wifibox0): 10.0.0.2
Apr  1 09:13:16 F3ja dhclient[34876]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 09:13:16 F3ja dhclient[35667]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 09:13:16 F3ja dhclient[36115]: New Routers (wifibox0): 10.0.0.1
Apr  1 09:40:09 F3ja dhclient[17767]: New IP Address (wifibox0): 10.0.0.2
Apr  1 09:40:09 F3ja dhclient[19930]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 09:40:09 F3ja dhclient[21284]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 09:40:09 F3ja dhclient[22502]: New Routers (wifibox0): 10.0.0.1
Apr  1 09:44:51 F3ja dhclient[21484]: dhclient already running, pid: 39751.
Apr  1 09:44:51 F3ja dhclient[21484]: exiting.
Apr  1 09:44:57 F3ja dhclient[13784]: connection closed
Apr  1 09:44:57 F3ja dhclient[13784]: exiting.
Apr  1 09:44:59 F3ja dhclient[23444]: New IP Address (wifibox0): 10.0.0.2
Apr  1 09:44:59 F3ja dhclient[24298]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 09:44:59 F3ja dhclient[24941]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 09:44:59 F3ja dhclient[25865]: New Routers (wifibox0): 10.0.0.1
Apr  1 10:19:24 F3ja dhclient[21925]: receive_packet failed on wifibox0: Device not configured
Apr  1 10:19:24 F3ja dhclient[21925]: ioctl(SIOCGIFFLAGS) on wifibox0: Operation not permitted
Apr  1 10:19:24 F3ja dhclient[21925]: Interface wifibox0 no longer appears valid.
Apr  1 10:19:24 F3ja dhclient[21925]: No live interfaces to poll on - exiting.
Apr  1 10:19:24 F3ja dhclient[21925]: exiting.
Apr  1 10:19:24 F3ja dhclient[21925]: connection closed
Apr  1 10:19:24 F3ja dhclient[21925]: exiting.
Apr  1 18:08:07 F3ja dhclient[66367]: New IP Address (wifibox0): 10.0.0.2
Apr  1 18:08:07 F3ja dhclient[66883]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 18:08:07 F3ja dhclient[67209]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 18:08:07 F3ja dhclient[67757]: New Routers (wifibox0): 10.0.0.1
Apr  1 18:11:26 F3ja dhclient[79369]: dhclient already running, pid: 71828.
Apr  1 18:11:26 F3ja dhclient[79369]: exiting.
Apr  1 18:11:33 F3ja dhclient[64952]: connection closed
Apr  1 18:11:33 F3ja dhclient[64952]: exiting.
Apr  1 18:11:35 F3ja dhclient[83859]: New IP Address (wifibox0): 10.0.0.2
Apr  1 18:11:35 F3ja dhclient[84501]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 18:11:35 F3ja dhclient[85276]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 18:11:35 F3ja dhclient[86405]: New Routers (wifibox0): 10.0.0.1
Apr  1 20:19:37 F3ja dhclient[24710]: dhclient already running, pid: 89072.
Apr  1 20:19:37 F3ja dhclient[24710]: exiting.
Apr  1 20:19:43 F3ja dhclient[81677]: connection closed
Apr  1 20:19:43 F3ja dhclient[81677]: exiting.
Apr  1 20:19:45 F3ja dhclient[26905]: New IP Address (wifibox0): 10.0.0.2
Apr  1 20:19:45 F3ja dhclient[27671]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 20:19:45 F3ja dhclient[28564]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 20:19:45 F3ja dhclient[29352]: New Routers (wifibox0): 10.0.0.1
Apr  1 21:02:29 F3ja dhclient[25494]: receive_packet failed on wifibox0: Device not configured
Apr  1 21:02:29 F3ja dhclient[25494]: ioctl(SIOCGIFFLAGS) on wifibox0: Operation not permitted
Apr  1 21:02:29 F3ja dhclient[25494]: Interface wifibox0 no longer appears valid.
Apr  1 21:02:29 F3ja dhclient[25494]: No live interfaces to poll on - exiting.
Apr  1 21:02:29 F3ja dhclient[25494]: exiting.
Apr  1 21:02:29 F3ja dhclient[25494]: connection closed
Apr  1 21:02:29 F3ja dhclient[25494]: exiting.
Apr  1 21:06:57 F3ja dhclient[13461]: New IP Address (wifibox0): 10.0.0.2
Apr  1 21:06:57 F3ja dhclient[14505]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 21:06:57 F3ja dhclient[15958]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 21:06:57 F3ja dhclient[17070]: New Routers (wifibox0): 10.0.0.1
Apr  1 21:10:14 F3ja dhclient[88457]: dhclient already running, pid: 29479.
Apr  1 21:10:14 F3ja dhclient[88457]: exiting.
Apr  1 21:10:27 F3ja dhclient[10641]: connection closed
Apr  1 21:10:27 F3ja dhclient[10641]: exiting.
Apr  1 21:10:28 F3ja dhclient[93490]: New IP Address (wifibox0): 10.0.0.2
Apr  1 21:10:28 F3ja dhclient[94198]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 21:10:28 F3ja dhclient[94841]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 21:10:28 F3ja dhclient[96431]: New Routers (wifibox0): 10.0.0.1
Apr  1 21:15:13 F3ja dhclient[66475]: New IP Address (wifibox0): 10.0.0.2
Apr  1 21:15:13 F3ja dhclient[68585]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 21:15:13 F3ja dhclient[71118]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 21:15:13 F3ja dhclient[71381]: New Routers (wifibox0): 10.0.0.1
Apr  1 21:21:18 F3ja dhclient[61427]: My address (10.0.0.2) was deleted, dhclient exiting
Apr  1 21:21:18 F3ja dhclient[61427]: connection closed
Apr  1 21:21:18 F3ja dhclient[61427]: exiting.
Apr  1 21:23:21 F3ja dhclient[58196]: New IP Address (wifibox0): 10.0.0.2
Apr  1 21:23:21 F3ja dhclient[60825]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 21:23:21 F3ja dhclient[62777]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 21:23:21 F3ja dhclient[65642]: New Routers (wifibox0): 10.0.0.1
Apr  1 21:30:55 F3ja dhclient[63939]: New IP Address (wifibox0): 10.0.0.2
Apr  1 21:30:55 F3ja dhclient[65258]: New Subnet Mask (wifibox0): 255.255.255.0
Apr  1 21:30:55 F3ja dhclient[65975]: New Broadcast Address (wifibox0): 10.0.0.255
Apr  1 21:30:55 F3ja dhclient[67042]: New Routers (wifibox0): 10.0.0.1

@pgj
Copy link
Owner

pgj commented Apr 1, 2023

All right. I have dug up some further ways of investigation. Please run both of them on the FreeBSD host system and share the output. First probe:

$ service -re

Second probe:

$ sh
$ . /etc/rc.conf
$ . /etc/rc.subr
$ . /etc/network.subr
$ _ifconfig_getargs wifibox0

@Elimelech
Copy link
Author

root@F3ja:/usr/home/luba # service -re
/etc/rc.d/hostid
/etc/rc.d/zpool
/etc/rc.d/zpoolreguid
/etc/rc.d/zvol
/etc/rc.d/hostid_save
/etc/rc.d/zfsbe
/etc/rc.d/zfs
/etc/rc.d/cleanvar
/etc/rc.d/rctl
/etc/rc.d/kldxref
/etc/rc.d/ip6addrctl
/etc/rc.d/mixer
/usr/local/etc/rc.d/wifibox
/etc/rc.d/devmatch
/etc/rc.d/netif
/etc/rc.d/devd
/etc/rc.d/resolv
/etc/rc.d/ipfw
/etc/rc.d/os-release
/etc/rc.d/newsyslog
/etc/rc.d/cleartmp
/etc/rc.d/dmesg
/etc/rc.d/virecover
/etc/rc.d/motd
/etc/rc.d/gptboot
/etc/rc.d/syslogd
/etc/rc.d/savecore
/etc/rc.d/nscd
/usr/local/etc/rc.d/powerdxx
/usr/local/etc/rc.d/dbus
/usr/local/etc/rc.d/openvpn
/usr/local/etc/rc.d/dsbmd
/etc/rc.d/cron
/usr/local/etc/rc.d/sddm
/etc/rc.d/bgfsck

@Elimelech
Copy link
Author

$ sh
$ . /etc/rc.conf
$ . /etc/rc.subr
$ . /etc/network.subr
$ _ifconfig_getargs wifibox0

these commands did not understand how to execute and do both from the superuser or from a simple user?

@pgj
Copy link
Owner

pgj commented Apr 2, 2023

The . (dot) is what is called source in bash: it will instruct the current shell to read and interpret the given file. Since the rc(8) system in FreeBSD is implemented as a set of shell scripts, in a similar manner, what I requested from you is to load the relevant part of the code into your current shell session and run one of the shell functions that is responsible for determining if dhclient(8) should be launched for the given networking interface.

This way I can see if the rc(8) configuration is sufficient to say that dhclient(8) is needed. For the reference, you can find the _ifconfig_getargs shell function in the source code to see what it exactly does. (Nothing serious, it is a tiny one.)

That said, it is completely fine to run these series of commands as a regular user. Perhaps the only important part there is to launch a Bourne shell and there run the commands. But if you just follow the instructions, the sh command will automatically start a new shell session and rest will be interpreted as part of that.

@Elimelech
Copy link
Author

Elimelech commented Apr 2, 2023

I ran these commands but didn't notice anything...

luba@F3ja:/usr/home/luba $ sh / . /etc/rc.conf
luba@F3ja:/usr/home/luba $ sh /  ./etc/rc.subr
luba@F3ja:/usr/home/luba $ sh / . /etc/network.subr
luba@F3ja:/usr/home/luba $ sh / _ifconfig_getargs wifibox0


@pgj
Copy link
Owner

pgj commented Apr 2, 2023

What are those sh / prefixes? Are they part of the prompt?

@Elimelech
Copy link
Author

luba@F3ja:/usr/home/luba $ echo $0
/bin/sh

@pgj
Copy link
Owner

pgj commented Apr 2, 2023

Okay, so if there is no output from the last command (the call of the _ifconfig_getargs shell function) it means that the wifibox0 interface is not configured properly in /etc/rc.conf. In case of proper configuration, you should get something like that:

$ _ifconfig_getargs wifibox0
SYNCDHCP

which may come from the following line in /etc/rc.conf:

ifconfig_wifibox0="SYNCDHCP"

Without this (or any other DHCP-related string), dhclient(8) will not start at boot.

@Elimelech
Copy link
Author

Didn't understand your answer. I have ifconfig_wifibox0="SYNCDHCP" in etc/rc.conf

@pgj
Copy link
Owner

pgj commented Apr 2, 2023

Then you must have done something wrong with the execution of the commands. But until I cannot see that _ifconfig_getargs works as expected, I assume that the problem is there.

@Elimelech
Copy link
Author

Elimelech commented Aug 18, 2023

And what data should I provide you to understand the problem. My wi-fi connection is interrupted from time to time (every minutes).

@pgj
Copy link
Owner

pgj commented Aug 19, 2023

What version of wifibox-alpine do you use?

@Elimelech
Copy link
Author

root@F3ja:/usr/home/luba # pkg info wifibox-alpine
wifibox-alpine-20230326
Name           : wifibox-alpine
Version        : 20230326
Installed on   : Mon Aug  7 17:53:19 2023 EEST
Origin         : net/wifibox-alpine
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : net
Licenses       : BSD2CLAUSE
Maintainer     : pali.gabor@gmail.com
WWW            : https://github.com/pgj/freebsd-wifibox-alpine
Comment        : Wifibox guest based on Alpine Linux
Options        :
        APP_HOSTAPD    : off
        APP_WPA_SUPPLICANT: on
        COMP_GZIP      : off
        COMP_LZ4       : off
        COMP_LZO       : off
        COMP_XZ        : on
        COMP_ZSTD      : off
        FW_ATH10K      : on
        FW_ATH11K      : on
        FW_ATMEL       : off
        FW_B43         : off
        FW_B43LEGACY   : off
        FW_BRCM        : on
        FW_IPW2100     : off
        FW_IPW2200     : off
        FW_IWL3945     : off
        FW_IWL4965     : off
        FW_IWLWIFI     : on
        FW_MARVELL     : on
        FW_MEDIATEK    : on
        FW_RT61        : on
        FW_RTLWIFI     : on
        FW_RTW88       : on
        FW_RTW89       : on
        FW_TI          : off
        UDS_PASSTHRU   : on
        XX_DRIVER_WL   : off
        XX_FORWARDING  : off
        XX_MDNS        : off
        XX_TCPDUMP     : off
Annotations    :
        FreeBSD_version: 1302001
        flavor         : default
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 100MiB
Description    :
The implementation of the Wifibox embedded wireless router is based on
the use of a Linux-based guest operating system which can communicate
with the host's wireless network card on behalf of the host.  In order
to meet the requirements, this has to be a system with a low resource
footprint and easy to manage.  This is derived from Alpine Linux,
which is an actively maintained, security-oriented, lightweight
distribution, based on musl libc and BusyBox.

WWW: https://github.com/pgj/freebsd-wifibox-alpine

@pgj
Copy link
Owner

pgj commented Aug 21, 2023

I have recently started to experiment with upgrades (to e.g. Linux 6.1) and certain features (such as us making it possible to use Linux 6.4) in the dev branch of the pgj/freebsd-wifibox-port repository. You can try it if you would like to, and report back with the experiences.

@Elimelech
Copy link
Author

I start testing...

@Elimelech
Copy link
Author

Unfortunately, no changes so far. Communication drops out from time to time

@Elimelech
Copy link
Author

[    0.000000] Linux version 6.4.11-0-edge (pgj@wifibox-dev) (gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, GNU ld (GNU Binutils) 2.40) #1-Alpine Sat, 19 Aug 2023 23:34:16 +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-0x000000000f8fffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.6 present.
[    0.000000] DMI: FreeBSD BHYVE/BHYVE, BIOS 13.0 11/10/2020
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 1996.066 MHz processor
[    0.000004] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000006] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000007] last_pfn = 0xf900 max_arch_pfn = 0x400000000
[    0.000056] MTRRs disabled by BIOS
[    0.000057] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[    0.000220] Using GB pages for direct mapping
[    0.000283] ACPI: Early table checksum verification disabled
[    0.000286] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE )
[    0.000289] ACPI: XSDT 0x00000000000F2470 00004C (v01 BHYVE  BVXSDT   00000001 BASL 20220504)
[    0.000293] ACPI: FACP 0x00000000000F24C0 000114 (v05 BHYVE  BVFACP   00000001 BASL 20220504)
[    0.000296] ACPI: DSDT 0x00000000000F2750 000A5C (v02 BHYVE  BVDSDT   00000001 INTL 20201113)
[    0.000297] ACPI: FACS 0x00000000000F26C0 000040
[    0.000298] ACPI: FACS 0x00000000000F26C0 000040
[    0.000299] ACPI: APIC 0x00000000000F25E0 00005A (v01 BHYVE  BVAPIC   00000001 BASL 20220504)
[    0.000300] ACPI: HPET 0x00000000000F2640 000038 (v01 BHYVE  BVHPET   00000001 BASL 20220504)
[    0.000302] ACPI: MCFG 0x00000000000F2680 00003C (v01 BHYVE  BVMCFG   00000001 BASL 20220504)
[    0.000303] ACPI: SPCR 0x00000000000F2700 000050 (v01 BHYVE  BVSPCR   00000001 BASL 20220504)
[    0.000304] ACPI: Reserving FACP table memory at [mem 0xf24c0-0xf25d3]
[    0.000305] ACPI: Reserving DSDT table memory at [mem 0xf2750-0xf31ab]
[    0.000305] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[    0.000306] ACPI: Reserving FACS table memory at [mem 0xf26c0-0xf26ff]
[    0.000306] ACPI: Reserving APIC table memory at [mem 0xf25e0-0xf2639]
[    0.000306] ACPI: Reserving HPET table memory at [mem 0xf2640-0xf2677]
[    0.000307] ACPI: Reserving MCFG table memory at [mem 0xf2680-0xf26bb]
[    0.000307] ACPI: Reserving SPCR table memory at [mem 0xf2700-0xf274f]
[    0.000327] system APIC only can use physical flat
[    0.000328] Setting APIC routing to physical flat.
[    0.000342] Zone ranges:
[    0.000342]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000343]   DMA32    [mem 0x0000000001000000-0x000000000f8fffff]
[    0.000344]   Normal   empty
[    0.000345] Movable zone start for each node
[    0.000346] Early memory node ranges
[    0.000346]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000347]   node   0: [mem 0x0000000000100000-0x000000000f8fffff]
[    0.000347] Initmem setup node 0 [mem 0x0000000000001000-0x000000000f8fffff]
[    0.000350] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000361] On node 0, zone DMA: 96 pages in unavailable ranges
[    0.000527] On node 0, zone DMA32: 1792 pages in unavailable ranges
[    0.000878] ACPI: PM-Timer IO Port: 0x408
[    0.000878] system APIC only can use physical flat
[    0.000880] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000903] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-31
[    0.000904] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000905] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000907] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.000908] ACPI: HPET id: 0x80860701 base: 0xfed00000
[    0.000914] [mem 0x0f900000-0xffffffff] available for PCI devices
[    0.000915] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.002509] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.002510] pcpu-alloc: [0] 0 
[    0.002513] 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.002533] tsc: Marking TSC unstable due to boot parameter
[    0.002534] Unknown kernel command line parameters "BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz modules=squashfs", will be passed to user space.
[    0.002559] random: crng init done
[    0.002571] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.002579] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.002585] Built 1 zonelists, mobility grouping on.  Total pages: 62492
[    0.002586] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.002733] Memory: 232724K/254588K available (8192K kernel code, 1453K rwdata, 1668K rodata, 756K init, 1720K bss, 21608K reserved, 0K cma-reserved)
[    0.002747] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.002771] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[    0.003078] Console: colour EGA 80x25
[    0.003103] printk: console [ttyS0] enabled
[    0.032760] ACPI: Core revision 20230331
[    0.033104] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 113919999973 ns
[    0.033726] APIC: Switch to symmetric I/O mode setup
[    0.035327] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.039792] Calibrating delay loop (skipped), value calculated using timer frequency.. 3992.13 BogoMIPS (lpj=1996066)
[    0.040604] Last level iTLB entries: 4KB 512, 2MB 512, 4MB 256
[    0.040789] Last level dTLB entries: 4KB 2048, 2MB 2048, 4MB 1024, 1GB 0
[    0.041227] CPU: AMD Ryzen 7 5825U with Radeon Graphics (family: 0x19, model: 0x50, stepping: 0x0)
[    0.041790] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.042348] Spectre V2 : Kernel not compiled with retpoline; no mitigation available!
[    0.042348] Spectre V2 : Vulnerable
[    0.043023] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.043789] Speculative Store Bypass: Vulnerable
[    0.044128] Speculative Return Stack Overflow: IBPB-extending microcode not applied!
[    0.044633] Speculative Return Stack Overflow: WARNING: See https://kernel.org/doc/html/latest/admin-guide/hw-vuln/srso.html for mitigation options.
[    0.044634] Speculative Return Stack Overflow: WARNING: kernel not compiled with CPU_SRSO.
[    0.045803] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.046280] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.046789] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.047189] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.047789] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.048612] pid_max: default: 32768 minimum: 301
[    0.048801] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.049286] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.049922] Performance Events: PMU not available due to virtualization, using software events only.
[    0.050539] signal: max sigframe size: 1360
[    0.153112] devtmpfs: initialized
[    0.153386] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.153789] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.153826] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.154248] thermal_sys: Registered thermal governor 'step_wise'
[    0.154248] thermal_sys: Registered thermal governor 'user_space'
[    0.154791] cpuidle: using governor menu
[    0.156008] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.156488] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.156815] PCI: Using configuration type 1 for base access
[    0.157170] PCI: Using configuration type 1 for extended access
[    0.157612] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.157789] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.158224] ACPI: Added _OSI(Module Device)
[    0.158789] ACPI: Added _OSI(Processor Device)
[    0.159071] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.159371] ACPI: Added _OSI(Processor Aggregator Device)
[    0.159897] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.160441] ACPI: Interpreter enabled
[    0.160678] ACPI: PM: (supports S0 S5)
[    0.160789] ACPI: Using IOAPIC for interrupt routing
[    0.161109] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.161789] PCI: Using E820 reservations for host bridge windows
[    0.162194] ACPI: Enabled 1 GPEs in block 00 to 07
[    0.163043] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00])
[    0.163426] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[    0.163830] PCI host bridge to bus 0000:00
[    0.164124] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.164789] pci_bus 0000:00: root bus resource [io  0x0d00-0x27bf window]
[    0.165214] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xc02fffff window]
[    0.165682] pci_bus 0000:00: root bus resource [mem 0x800000000-0x81fffffff window]
[    0.165789] pci_bus 0000:00: root bus resource [bus 00]
[    0.166261] pci 0000:00:00.0: [1275:1275] type 00 class 0x060000
[    0.167219] pci 0000:00:04.0: [1af4:1001] type 00 class 0x010000
[    0.167861] pci 0000:00:04.0: reg 0x10: [io  0x2700-0x277f]
[    0.168256] pci 0000:00:04.0: reg 0x14: [mem 0xc0130000-0xc0131fff]
[    0.169180] pci 0000:00:04.1: [1af4:1009] type 00 class 0x010000
[    0.169632] pci 0000:00:04.1: reg 0x10: [io  0x2000-0x21ff]
[    0.169827] pci 0000:00:04.1: reg 0x14: [mem 0xc0132000-0xc0133fff]
[    0.170884] pci 0000:00:04.2: [1af4:1009] type 00 class 0x010000
[    0.171339] pci 0000:00:04.2: reg 0x10: [io  0x2200-0x23ff]
[    0.171732] pci 0000:00:04.2: reg 0x14: [mem 0xc0134000-0xc0135fff]
[    0.172234] pci 0000:00:04.3: [1af4:1009] type 00 class 0x010000
[    0.172859] pci 0000:00:04.3: reg 0x10: [io  0x2400-0x25ff]
[    0.173252] pci 0000:00:04.3: reg 0x14: [mem 0xc0136000-0xc0137fff]
[    0.174211] pci 0000:00:05.0: [8086:100f] type 00 class 0x020000
[    0.174655] pci 0000:00:05.0: reg 0x10: [mem 0xc0100000-0xc011ffff]
[    0.174825] pci 0000:00:05.0: reg 0x14: [mem 0xc0120000-0xc012ffff]
[    0.175255] pci 0000:00:05.0: reg 0x18: [io  0x2780-0x2787]
[    0.176186] pci 0000:00:06.0: [10ec:b852] type 00 class 0x028000
[    0.176654] pci 0000:00:06.0: reg 0x10: [io  0x2600-0x26ff]
[    0.176896] pci 0000:00:06.0: reg 0x18: [mem 0xc0000000-0xc00fffff 64bit]
[    0.178022] pci 0000:00:06.0: PME# supported from D0 D3hot D3cold
[    0.178683] pci 0000:00:1f.0: [8086:7000] type 00 class 0x060100
[    0.179067] pci_bus 0000:00: on NUMA node 0
[    0.179107] ACPI: PCI: Interrupt link LNKA configured for IRQ 5
[    0.179805] ACPI: PCI: Interrupt link LNKB configured for IRQ 6
[    0.180207] ACPI: PCI: Interrupt link LNKC configured for IRQ 7
[    0.180612] ACPI: PCI: Interrupt link LNKD configured for IRQ 10
[    0.180822] ACPI: PCI: Interrupt link LNKE configured for IRQ 11
[    0.181230] ACPI: PCI: Interrupt link LNKF configured for IRQ 0
[    0.181789] ACPI: PCI: Interrupt link LNKF disabled
[    0.182125] ACPI: PCI: Interrupt link LNKG configured for IRQ 0
[    0.182499] ACPI: PCI: Interrupt link LNKG disabled
[    0.182817] ACPI: PCI: Interrupt link LNKH configured for IRQ 0
[    0.183189] ACPI: PCI: Interrupt link LNKH disabled
[    0.183570] pps_core: LinuxPPS API ver. 1 registered
[    0.183789] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.184356] PTP clock support registered
[    0.184838] PCI: Using ACPI for IRQ routing
[    0.185105] PCI: pci_cache_line_size set to 64 bytes
[    0.185194] e820: reserve RAM buffer [mem 0x0f900000-0x0fffffff]
[    0.185202] vgaarb: loaded
[    0.185388] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[    0.185776] hpet0: 8 comparators, 32-bit 16.777216 MHz counter
[    0.187796] clocksource: Switched to clocksource hpet
[    0.188142] pnp: PnP ACPI init
[    0.188479] system 00:02: [io  0x04d0-0x04d1] has been reserved
[    0.188872] system 00:02: [io  0x0400-0x0407] has been reserved
[    0.189244] system 00:02: [mem 0xe0000000-0xefffffff] has been reserved
[    0.189689] pnp: PnP ACPI: found 8 devices
[    0.194818] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.195400] NET: Registered PF_INET protocol family
[    0.195726] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.196259] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.196806] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.197373] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.197892] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.198343] TCP: Hash tables configured (established 2048 bind 2048)
[    0.198752] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.199180] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.199626] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.200170] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    0.200563] pci_bus 0000:00: resource 5 [io  0x0d00-0x27bf window]
[    0.200970] pci_bus 0000:00: resource 6 [mem 0xc0000000-0xc02fffff window]
[    0.201402] pci_bus 0000:00: resource 7 [mem 0x800000000-0x81fffffff window]
[    0.201928] PCI: CLS 64 bytes, default 64
[    0.202268] Initialise system trusted keyrings
[    0.202713] workingset: timestamp_bits=62 max_order=16 bucket_order=0
[    0.203157] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.203532] 9p: Installing v9fs 9p2000 file system support
[    0.206063] Key type asymmetric registered
[    0.206322] Asymmetric key parser 'x509' registered
[    0.206664] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    0.207143] ACPI: button: Power Button [PWRF]
[    0.207499] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[    0.208039] virtio-pci 0000:00:04.1: virtio_pci: leaving for legacy driver
[    0.208547] virtio-pci 0000:00:04.2: virtio_pci: leaving for legacy driver
[    0.209073] virtio-pci 0000:00:04.3: virtio_pci: leaving for legacy driver
[    0.209762] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.210247] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.210786] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.211341] 00:05: ttyS2 at I/O 0x3e8 (irq = 4, base_baud = 115200) is a 16550A
[    0.211908] 00:06: ttyS3 at I/O 0x2e8 (irq = 3, base_baud = 115200) is a 16550A
[    0.212521] Non-volatile memory driver v1.3
[    0.213137] loop: module loaded
[    0.213367] virtio_blk virtio0: 1/0/0 default/read/poll queues
[    0.214143] virtio_blk virtio0: [vda] 208232 512-byte logical blocks (107 MB/102 MiB)
[    0.214861] e1000: Intel(R) PRO/1000 Network Driver
[    0.215172] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.523718] e1000 0000:00:05.0 eth0: (PCI:33MHz:32-bit) 00:a0:98:8a:05:71
[    0.524164] e1000 0000:00:05.0 eth0: Intel(R) PRO/1000 Network Connection
[    0.524617] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.525226] i8042: Warning: Keylock active
[    0.525937] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.526249] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.527038] rtc_cmos 00:07: registered as rtc0
[    0.527349] rtc_cmos 00:07: alarms up to one day, y3k, 114 bytes nvram
[    0.527818] Initializing XFRM netlink socket
[    0.528111] NET: Registered PF_INET6 protocol family
[    0.528570] Segment Routing with IPv6
[    0.528806] In-situ OAM (IOAM) with IPv6
[    0.529087] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.529509] NET: Registered PF_PACKET protocol family
[    0.529836] 9pnet: Installing 9P2000 support
[    0.532749] registered taskstats version 1
[    0.533029] Loading compiled-in X.509 certificates
[    0.533594] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    0.534246] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    0.534789] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.535103] cfg80211: failed to load regulatory.db
[    0.535578] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    0.536144] devtmpfs: mounted
[    0.536333] Freeing unused kernel image (initmem) memory: 756K
[    0.536531] Write protecting the kernel read-only data: 10240k
[    0.536786] Freeing unused kernel image (rodata/data gap) memory: 380K
[    0.537021] Run /sbin/init as init process
[    0.537160]   with arguments:
[    0.537160]     /sbin/init
[    0.537161]   with environment:
[    0.537161]     HOME=/
[    0.537161]     TERM=linux
[    0.537162]     BOOT_IMAGE=(host)/usr/local/share/wifibox/vmlinuz
[    0.537162]     modules=squashfs
[    0.698938] rtw89core: loading out-of-tree module taints kernel.
[    0.739563] rtw89_8852be 0000:00:06.0: loaded firmware rtw89/rtw8852b_fw-1.bin
[    0.739674] rtw89_8852be 0000:00:06.0: can't derive routing for PCI INT A
[    0.739675] rtw89_8852be 0000:00:06.0: PCI INT A: not connected
[    0.740523] rtw89_8852be 0000:00:06.0: Firmware version 0.29.29.1, cmd version 0, type 5
[    0.740526] rtw89_8852be 0000:00:06.0: Firmware version 0.29.29.1, cmd version 0, type 3
[    0.740530] rtw89_8852be 0000:00:06.0: MAC has already powered on
[    1.071842] rtw89_8852be 0000:00:06.0: chip rfe_type is 1
[    1.103309] ACPI: \: failed to evaluate _DSM e8c3a8d2-694b-004f-82bd-fe8607803aa7 (0x1001)

@Elimelech
Copy link
Author

Aug 22 13:25:24 wifibox syslog.info syslogd started: BusyBox v1.36.1
Aug 22 13:25:24 wifibox daemon.info supervise-daemon[873]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:25:24 wifibox daemon.info supervise-daemon[877]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:25:30 wifibox daemon.info supervise-daemon[1031]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Aug 22 13:25:30 wifibox daemon.info supervise-daemon[1035]: Child command line: /sbin/uds_passthru 
Aug 22 13:25:30 wifibox daemon.info : starting pid 1038, tty '': '/sbin/openrc default'
Aug 22 13:25:30 wifibox daemon.debug uds_passthru[1035]: 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]
Aug 22 13:25:30 wifibox daemon.info uds_passthru[1035]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.lFpgpB/tmp.hLnmAC)
Aug 22 13:25:30 wifibox daemon.warn uds_passthru[1035]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Aug 22 13:25:30 wifibox daemon.info uds_passthru[1035]: Waiting for PID 1048 to stop.
Aug 22 13:25:30 wifibox cron.info crond[1093]: crond (busybox 1.36.1) started, log level 8
Aug 22 13:25:30 wifibox daemon.info udhcpd[1147]: started, v1.36.1
Aug 22 13:25:30 wifibox daemon.err udhcpd[1147]: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
Aug 22 13:25:30 wifibox daemon.info : starting pid 1154, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Aug 22 13:25:33 wifibox daemon.info udhcpd[1147]: sending OFFER to 10.0.0.2
Aug 22 13:25:35 wifibox daemon.info udhcpd[1147]: sending ACK to 10.0.0.2
Aug 22 13:30:00 wifibox cron.info crond[1093]: USER root pid 1163 cmd run-parts /etc/periodic/15min
Aug 22 13:34:23 wifibox syslog.info syslogd started: BusyBox v1.36.1
Aug 22 13:34:23 wifibox daemon.info supervise-daemon[871]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:34:23 wifibox daemon.info supervise-daemon[875]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:34:29 wifibox daemon.info supervise-daemon[1029]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Aug 22 13:34:29 wifibox daemon.info supervise-daemon[1033]: Child command line: /sbin/uds_passthru 
Aug 22 13:34:29 wifibox daemon.info : starting pid 1036, tty '': '/sbin/openrc default'
Aug 22 13:34:29 wifibox daemon.debug uds_passthru[1033]: 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]
Aug 22 13:34:29 wifibox daemon.info uds_passthru[1033]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.ldKLKh/tmp.FlpiKh)
Aug 22 13:34:29 wifibox daemon.warn uds_passthru[1033]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Aug 22 13:34:29 wifibox daemon.info uds_passthru[1033]: Waiting for PID 1046 to stop.
Aug 22 13:34:29 wifibox cron.info crond[1091]: crond (busybox 1.36.1) started, log level 8
Aug 22 13:34:29 wifibox daemon.info udhcpd[1145]: started, v1.36.1
Aug 22 13:34:29 wifibox daemon.info : starting pid 1152, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Aug 22 13:34:33 wifibox daemon.info udhcpd[1145]: sending ACK to 10.0.0.2
Aug 22 13:36:23 wifibox syslog.info syslogd started: BusyBox v1.36.1
Aug 22 13:36:23 wifibox daemon.info supervise-daemon[871]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:36:23 wifibox daemon.info supervise-daemon[875]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:36:29 wifibox daemon.info supervise-daemon[1029]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Aug 22 13:36:29 wifibox daemon.info supervise-daemon[1033]: Child command line: /sbin/uds_passthru 
Aug 22 13:36:29 wifibox daemon.info : starting pid 1036, tty '': '/sbin/openrc default'
Aug 22 13:36:29 wifibox daemon.debug uds_passthru[1033]: 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]
Aug 22 13:36:29 wifibox daemon.info uds_passthru[1033]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.CKImgB/tmp.LMMKhB)
Aug 22 13:36:29 wifibox daemon.warn uds_passthru[1033]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Aug 22 13:36:29 wifibox daemon.info uds_passthru[1033]: Waiting for PID 1046 to stop.
Aug 22 13:36:29 wifibox cron.info crond[1091]: crond (busybox 1.36.1) started, log level 8
Aug 22 13:36:29 wifibox daemon.info udhcpd[1145]: started, v1.36.1
Aug 22 13:36:29 wifibox daemon.info : starting pid 1152, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Aug 22 13:36:31 wifibox daemon.info udhcpd[1145]: sending ACK to 10.0.0.2
Aug 22 13:37:23 wifibox syslog.info syslogd started: BusyBox v1.36.1
Aug 22 13:37:23 wifibox daemon.info supervise-daemon[871]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:37:23 wifibox daemon.info supervise-daemon[875]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:37:29 wifibox daemon.info supervise-daemon[1029]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Aug 22 13:37:29 wifibox daemon.info supervise-daemon[1033]: Child command line: /sbin/uds_passthru 
Aug 22 13:37:29 wifibox daemon.info : starting pid 1036, tty '': '/sbin/openrc default'
Aug 22 13:37:29 wifibox daemon.debug uds_passthru[1033]: 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]
Aug 22 13:37:29 wifibox daemon.info uds_passthru[1033]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.cEHpaB/tmp.nPjpbB)
Aug 22 13:37:29 wifibox daemon.warn uds_passthru[1033]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Aug 22 13:37:29 wifibox daemon.info uds_passthru[1033]: Waiting for PID 1046 to stop.
Aug 22 13:37:29 wifibox cron.info crond[1091]: crond (busybox 1.36.1) started, log level 8
Aug 22 13:37:29 wifibox daemon.info udhcpd[1145]: started, v1.36.1
Aug 22 13:37:29 wifibox daemon.info : starting pid 1152, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Aug 22 13:37:37 wifibox daemon.info udhcpd[1145]: sending OFFER to 10.0.0.2
Aug 22 13:37:39 wifibox daemon.info udhcpd[1145]: sending ACK to 10.0.0.2
Aug 22 13:40:28 wifibox syslog.info syslogd started: BusyBox v1.36.1
Aug 22 13:40:28 wifibox daemon.info supervise-daemon[871]: Supervisor command line: supervise-daemon wpa_supplicant --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/wpa_supplicant -- -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:40:28 wifibox daemon.info supervise-daemon[875]: Child command line: /sbin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
Aug 22 13:40:34 wifibox daemon.info supervise-daemon[1029]: Supervisor command line: supervise-daemon uds_passthru --start --respawn-delay 2 --respawn-max 5 --respawn-period 1800 /sbin/uds_passthru -- 
Aug 22 13:40:34 wifibox daemon.info supervise-daemon[1033]: Child command line: /sbin/uds_passthru 
Aug 22 13:40:34 wifibox daemon.info : starting pid 1036, tty '': '/sbin/openrc default'
Aug 22 13:40:34 wifibox daemon.debug uds_passthru[1033]: 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]
Aug 22 13:40:34 wifibox daemon.info uds_passthru[1033]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.jJcDFL/tmp.pdBAHL)
Aug 22 13:40:34 wifibox daemon.warn uds_passthru[1033]: /var/run/wpa_supplicant/p2p-dev-wlan0 is not available, skipping.
Aug 22 13:40:34 wifibox daemon.info uds_passthru[1033]: Waiting for PID 1046 to stop.
Aug 22 13:40:34 wifibox cron.info crond[1091]: crond (busybox 1.36.1) started, log level 8
Aug 22 13:40:34 wifibox daemon.info udhcpd[1145]: started, v1.36.1
Aug 22 13:40:34 wifibox daemon.info : starting pid 1152, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
Aug 22 13:40:36 wifibox daemon.info udhcpd[1145]: sending ACK to 10.0.0.2
Aug 22 13:45:00 wifibox cron.info crond[1091]: USER root pid 1161 cmd run-parts /etc/periodic/15min

@hotwa
Copy link

hotwa commented Nov 10, 2023

@pgj
Copy link
Owner

pgj commented Nov 10, 2023

@hotwa sorry, but I do not get what you meant by the link you posted. That one seems to be related to OpenWrt which is out of scope for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wifibox-alpine Issue related to the Alpine Linux-based VM image
Projects
None yet
Development

No branches or pull requests

3 participants