Site Tools


software:freebsd:wifi_owrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
software:freebsd:wifi_owrt [2022/05/18 14:45]
root
software:freebsd:wifi_owrt [2022/06/28 18:46]
root
Line 1: Line 1:
-====== FreeBSD WiFi using OpenWRT as driver ======+====== OpenWRT as FreeBSD WiFi driver ======
  
-For peoples who want to use linux WiFi drivers on FreeBSD with minimum support overhead :)+For peoples who want to use Linux WiFi drivers on FreeBSD with minimum support overhead :)\\ 
 +\\ 
 +This how-to describes how to use OpenWRT as driver with WebUI for WiFi adapters. 
 +No more pain with slow speed, no strange wpa_supplicant gui tools. \\ 
 +\\ 
 +This upgrades WiFi speed from "36Mbps mode 11a" to 866Mbps on my notebook with intel 8265.\\
  
-This "how-to" (draft) describes how to use OpenWRT as driver with web GUI for WiFi adapters. 
-No more pain with slow speed, no strange wpa_supplicant gui tools :) 
  
-This upgrades WiFi speed from +===== Resources required ===== 
-media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11a +  256 Mb ram 
-to 866Mbps on my notebook with intel 8265. +  128 Mb on hard drive 
- +  IOMMU support 
- +  FreeBSD AMD64
-Resourses required: +
-256 Mb ram +
-128 Mb on hard drive +
-IOMMU support +
-FreeBSD AMD64+
  
  
 1. Download EFI based build. 1. Download EFI based build.
 WWW: https://openwrt.org/docs/guide-developer/uefi-bootable-image WWW: https://openwrt.org/docs/guide-developer/uefi-bootable-image
 +<code>
 cd /root/ cd /root/
 fetch https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-squashfs-combined-efi.img.gz fetch https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-squashfs-combined-efi.img.gz
 gunzip openwrt-x86-64-generic-squashfs-combined-efi.img.gz gunzip openwrt-x86-64-generic-squashfs-combined-efi.img.gz
 +</code>
  
  
-2. Install sysutils/bhyve-firmware from ports. +2. Configure system:
-CSM not required. +
-Patch required to build port (last attached): +
-https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211074 +
- +
- +
-3. Configure system:+
 WWW: WWW:
 https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html
Line 40: Line 34:
  
 /etc/rc.conf: /etc/rc.conf:
 +<code>
 kld_list="nmdm vmm" kld_list="nmdm vmm"
 cloned_interfaces="tap0" cloned_interfaces="tap0"
 ifconfig_tap0_name="wifi0" ifconfig_tap0_name="wifi0"
-ifconfig_wifi0="DHCP up"+ifconfig_wifi0="inet 192.0.2.1 netmask 255.255.255.0 up"
 ifconfig_wifi0_ipv6="inet6 accept_rtadv auto_linklocal -ifdisabled" ifconfig_wifi0_ipv6="inet6 accept_rtadv auto_linklocal -ifdisabled"
 +</code>
  
  
 /boot/loader.conf /boot/loader.conf
 +<code>
 # bhyve PCI device passthru. # bhyve PCI device passthru.
 # "1/0/0" - PCI dev ident, see: pciconf -lv # "1/0/0" - PCI dev ident, see: pciconf -lv
Line 54: Line 51:
 # For AMD systems # For AMD systems
 hw.vmm.amdvi.enable="1" hw.vmm.amdvi.enable="1"
 +</code>
  
  
-4. Start OpenWRT +3. Start OpenWRT 
 +<code>
 /usr/sbin/bhyvectl --destroy --vm=owrt /usr/sbin/bhyvectl --destroy --vm=owrt
 /usr/sbin/bhyve \ /usr/sbin/bhyve \
Line 72: Line 70:
  -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \  -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
  owrt  owrt
 +</code>
  
 To disable output remove: "-l com1,stdio" To disable output remove: "-l com1,stdio"
Line 77: Line 76:
  
  
-5. Configure OpenWRT:+4. Configure OpenWRT: 
 +<code>
 uci set network.lan.ipaddr='172.16.0.49' uci set network.lan.ipaddr='172.16.0.49'
 uci set network.lan.netmask='255.255.255.0' uci set network.lan.netmask='255.255.255.0'
Line 87: Line 87:
 opkg update opkg update
 opkg install luci opkg install luci
 +</code>
 +
  
 Now web GUI can be used to install wpad*, hostapd*, WiFi driver and other staff. Now web GUI can be used to install wpad*, hostapd*, WiFi driver and other staff.
Line 95: Line 97:
  
  
-{{tag>software freebsd net netgraph wifi openwrt mysoft}}+{{tag>software freebsd net netgraph wifi openwrt howto}}
software/freebsd/wifi_owrt.txt · Last modified: 2022/06/29 01:33 by root