Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
devices:netgear_r6260_openwrt [2021/08/31 15:55] – Update nmrpflash dirs Sean Rhone | devices:netgear_r6260_openwrt [2022/06/11 19:20] – Sean Rhone |
---|
| |
* [[https://www.netgear.com/home/products/networking/wifi-routers/R6260.aspx|NETGEAR R6260]] | * [[https://www.netgear.com/home/products/networking/wifi-routers/R6260.aspx|NETGEAR R6260]] |
* [[https://openwrt.org|OpenWrt]] ((https://openwrt.org/toh/netgear/netgear_r6260)) | * [[https://openwrt.org|OpenWrt]] |
| * [[https://openwrt.org/toh/netgear/r6260|OpenWrt Device Page]] |
* [[https://openwrt.org/releases/snapshot|Snapshot]] | * [[https://openwrt.org/releases/snapshot|Snapshot]] |
| |
| |
* 2021/04/28: Dropping invalid packets (firewall) causes an Oculus Quest 2 to not load it's own store/home page | * 2021/04/28: Dropping invalid packets (firewall) causes an Oculus Quest 2 to not load it's own store/home page |
* 2021/04/28: Software Flow Offload causes speed tests on an Oculus Quest 2 to not work at all | |
* 2021/06/14: Enabling ''Use broadcast flag'' causes WAN not to work (Comcast/Xfinity) | * 2021/06/14: Enabling ''Use broadcast flag'' causes WAN not to work (Comcast/Xfinity) |
* 2021/06/29: Enabling ''802.11w Management Frame Protection'' on 2.4GHz caused a NC200 to not be able to connect | * 2021/06/29: Enabling ''802.11w Management Frame Protection'' on 2.4GHz caused a NC200 to not be able to connect |
| |
==== Links ==== | ==== Links ==== |
| |
| * ''ramips/mt7621'' |
| |
* [[https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img|factory.bin]] | * [[https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img|factory.bin]] |
* This downloads the latest ''sysupgrade.bin'' and installs it | * This downloads the latest ''sysupgrade.bin'' and installs it |
| |
ssh 'root'@'192.168.1.1' | ssh root@192.168.1.1 |
| |
rm -f '/tmp/sysupgrade.img' && sync && sysupgrade --force -n -v 'https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' | rm -f '/tmp/sysupgrade.img' && sync && sysupgrade --force -n -v 'https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' |
| |
rm -R ~/'.ssh' && ping '192.168.1.1' | rm -Rf ~/'.ssh' && ping '192.168.1.1' |
| |
==== SSL ==== | del %UserProfile%"\.ssh\known_hosts" && ping -t "192.168.1.1" |
| |
* When upgrading from older OpenWRT releases without SSL support | ===== Packages ===== |
| |
opkg update && opkg install libustream-wolfssl && sync && rm -f '/tmp/sysupgrade.img' && sync && sysupgrade --force -n -v 'https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' | * [[https://openwrt.org/docs/guide-user/luci/luci.essentials|LuCI]] ((snapshot images don't include LuCI, so it needs installed on **every** clean snapshot install)) |
| |
====== Packages ====== | ssh root@192.168.1.1 |
| |
* [[https://openwrt.org/docs/guide-user/luci/luci.essentials|LuCI]] ((snapshot images don't include LuCI, so it needs installed on **every** clean snapshot install)) | sync && passwd |
* ''nano'' is used to enable ''irqbalance'' | |
| |
ssh 'root'@'192.168.1.1' | opkg update && opkg install luci && sync |
| |
passwd | ====== LuCI ====== |
| |
opkg update && opkg install luci irqbalance nano && sync | * http://192.168.1.1 |
| |
====== irqbalance ====== | ===== DHCP ===== |
| |
nano '/etc/config/irqbalance' | * Network -> Interfaces -> LAN -> DHCP Server -> Limit |
| |
<code> | 48 |
option enabled '1'</code> | |
| |
====== LuCI ====== | ===== DNS ===== |
| |
* http://192.168.1.1 | ==== Notes ==== |
| |
===== Quad9 DNS ===== | * This advertises an upstream DNS server directly to clients instead of the router |
| * https://1.1.1.1/dns/ |
| * See [[notes:dns_servers|DNS servers]] for other DNS servers |
| |
* [[https://quad9.net/service/service-addresses-and-features#ecssec|Secured w/ECS]] | ==== IPv4 ==== |
* See [[notes:dns_servers|DNS servers]] for other DNS servers | |
| * Network -> Interfaces -> LAN -> DHCP Server -> Advanced Settings -> DHCP-Options |
| * :!: The ''6,'' is intentional (([[https://old.reddit.com/r/openwrt/comments/hr6xig/how_to_set_openwrt_to_use_1111_dns_for_example/fylsewz/?context=3|Reddit]], [[https://datatracker.ietf.org/doc/html/rfc2132#section-3.8|RFC 2132]])) |
| |
<code>2620:fe::11</code> | <code>6,1.1.1.1,1.0.0.1</code> |
<code>2620:fe::fe:11</code> | |
<code>9.9.9.11</code> | === IPs === |
<code>149.112.112.11</code> | |
| <code>1.1.1.1</code> |
| |
| <code>1.0.0.1</code> |
| |
| ==== IPv6 ==== |
| |
| * Network -> Interfaces -> LAN -> DHCP Server -> Advanced Settings -> IPv6 Settings -> Announced IPv6 DNS servers |
| |
| <code>2606:4700:4700::1111</code> |
| <code>2606:4700:4700::1001</code> |
| |
===== Wireless ===== | ===== Wireless ===== |
| |
==== 2.4GHz ==== | ==== 2.4GHz ==== |
| |
| * Advanced Settings -> [x] Disable Inactivity Polling |
| * Advanced Settings -> [ ] Disassociate On Low Acknowledgement |
| |
* Country Code: US | * Country Code: US |
* Channel: 11 | * Channel: 11 |
* Width: 40 MHz | * Width: 20 MHz |
* Encryption: WPA2-PSK CCMP AES | * Encryption: WPA2-PSK CCMP AES |
* :!: 802.11w Management Frame Protection: Disabled | |
| |
<code>The Crossroads (2.4GHz)</code> | <code>The Crossroads (2.4GHz)</code> |
| |
==== 5GHz ==== | ==== 5GHz ==== |
| |
| * :!: Advanced Settings -> [x] Disable Inactivity Polling |
| * :!: Advanced Settings -> [ ] Disassociate On Low Acknowledgement |
| * :!: These seem to fix 5GHz instability with a Chromecast |
| |
* Country Code: US | * Country Code: US |
* Width: 80 MHz | * Width: 80 MHz |
* Encryption: WPA2-PSK CCMP AES | * Encryption: WPA2-PSK CCMP AES |
* :!: 802.11w Management Frame Protection: Disabled | |
| |
<code>Highgate (5GHz)</code> | <code>Highgate (5GHz)</code> |
===== Firewall ===== | ===== Firewall ===== |
| |
* Forward ports ''80'' and ''443'' | ==== Webserver ==== |
| |
| * Oak |
| |
| <code>HTTP</code> |
| <code>80</code> |
| <code>HTTPS</code> |
| <code>443</code> |
| |
| ==== Steam Remote Play ==== |
| |
| * [[https://help.steampowered.com/en/faqs/view/0689-74B8-92AC-10F2|Steam Support]] |
| |
| === UDP === |
| |
| <code>Steam Remote Play (UDP)</code> |
| <code>27031</code> |
| <code>27036</code> |
| |
| === TCP === |
| |
| <code>Steam Remote Play (TCP)</code> |
| <code>27036</code> |
| <code>27037</code> |
| |
====== Recovery ====== | ====== Recovery ====== |
sudo ~/'Downloads/nmrpflash-0.9.16-linux/nmrpflash' -i 'enp6s0' -f ~/'Downloads/R6260-V1.1.0.84_1.0.1/R6260-V1.1.0.84_1.0.1.img' | sudo ~/'Downloads/nmrpflash-0.9.16-linux/nmrpflash' -i 'enp6s0' -f ~/'Downloads/R6260-V1.1.0.84_1.0.1/R6260-V1.1.0.84_1.0.1.img' |
| |
====== OpenWRT Compile ====== | |
| |
https://forum.openwrt.org/t/new-xiaomi-router-ac2100/48101/403 | |
| |
<code>dmesg | grep dma</code> | |
| |
https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/dts/mt7621_netgear_r6260.dts | |
| |
https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/dts/mt7621.dtsi | |
| |
sudo dnf install gcc gcc-c++ git perl-FindBin make patch perl-Thread-Queue ncurses-devel | |
| |
cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/openwrt/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://git.openwrt.org/openwrt/openwrt.git' ~/'Projects/openwrt/src' && sync | |
| |
cd ~/'Projects/openwrt/src' && ~/'Projects/openwrt/src/scripts/feeds' update -a | |
| |
cd ~/'Projects/openwrt/src' && ~/'Projects/openwrt/src/scripts/feeds' install -a | |
| |
cd ~/'Projects/openwrt/src' && make menuconfig | |
| |
nano '/home/espionage724/Projects/openwrt/src/target/linux/ramips/dts/mt7621.dtsi' | |
| |
gdma = enaled | |
dma = enabled | |
| |
| |
nano '/home/espionage724/Projects/openwrt/src/target/linux/ramips/dts/mt7621_netgear_r6260.dts' | |
| |
<code> | |
&gdma { | |
status = "okay"; | |
}; | |
| |
&hsdma { | |
status = "okay"; | |
};</code> | |
| |
menconfig -> kernel modules -> Other modules -> kmod-dma-ralink & kmod-hsdma-mtk | |
| |
nano '/home/espionage724/Projects/openwrt/src/target/linux/ramips/mt7621/config-5.4' | |
| |
<code>CONFIG_MTK_HSDMA=y</code> | |
| |
===== Lean ===== | |
| |
* https://github.com/coolsnowwolf/lede | |
* https://openwrt.org/docs/guide-developer/build-system/install-buildsystem | |
| |
sudo zypper install --no-recommends asciidoc bash bc binutils bzip2 fastjar flex gawk gcc gcc-c++ gettext-tools git git-core intltool libopenssl-devel libxslt-tools make mercurial ncurses-devel patch perl-ExtUtils-MakeMaker python-devel rsync sdcc unzip util-linux wget zlib-devel | |
| |
cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/lean-openwrt/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/coolsnowwolf/lede.git' ~/'Projects/lean-openwrt/src' && sync | |
| |
cd ~/'Projects/lean-openwrt/src' && ~/'Projects/lean-openwrt/src/scripts/feeds' update -a | |
| |
cd ~/'Projects/lean-openwrt/src' && ~/'Projects/lean-openwrt/src/scripts/feeds' install -a | |
| |
cd ~/'Projects/lean-openwrt/src' && make menuconfig | |
| |
* Target System: MediaTek Ralink MIPS | |
* Subtarget: MT7621 based boards | |
* Target Profile: NETGEAR R6260 | |
* :!: TODO: mt driver instead of mt76 | |
| |
cd ~/'Projects/lean-openwrt/src' && make -j8 download V=s && sync | |
| |
cd ~/'Projects/lean-openwrt/src' && make -j$(($(nproc) + 1)) V=s && sync | |
| |
gio open ~/'Projects/lean-openwrt/src/bin/targets/ramips/mt7621' | |
| |
==== Copy/Install to Router ==== | |
| |
scp ~/'Projects/lean-openwrt/src/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' 'root'@'192.168.1.1':'/tmp' | |
| |
ssh 'root'@'192.168.1.1' | |
| |
sysupgrade --force -n -v '/tmp/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin' | |
| |
ping '192.168.1.1' | |
| |
==== Post-install ==== | |
| |
**** | |
| |
opkg update && opkg install 'luci-i18n-base-en' | |