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:44]
root
software:freebsd:wifi_owrt [2022/06/28 18:46]
root
Line 1: Line 1:
-For peoples who want to use linux WiFi drivers on FreeBSD with minimum support overhead :)+====== OpenWRT as FreeBSD WiFi driver ======
  
-This "how-to" (draft) describes how to use OpenWRT as driver with web GUI for WiFi adapters. +For peoples who want to use Linux WiFi drivers on FreeBSD with minimum support overhead :)\\ 
-No more pain with slow speed, no strange wpa_supplicant gui tools :)+\\ 
 +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 upgrades WiFi speed from 
-media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11a 
-to 866Mbps on my notebook with intel 8265. 
  
- +===== Resources required ===== 
-Resourses required: +  256 Mb ram 
-256 Mb ram +  128 Mb on hard drive 
-128 Mb on hard drive +  IOMMU support 
-IOMMU support +  FreeBSD AMD64
-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 38: 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 52: 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 70: 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 75: 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 85: 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 93: 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