User Tools

Site Tools


devices:netgear_r6260_openwrt

This is an old revision of the document!


Information

  • NETGEAR R6260 1)
  • OpenWrt 2) 3)

Notes

  • Stock firmware reports d(149)+p(153)+d(157)+d(161) for 5GHz channels with 153 selected and 11(P)+7(S) for 2.4GHz with 11 selected

Snapshot

sysupgrade

  • This downloads the latest sysupgrade.bin directly and installs it
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'
ping '192.168.1.1'

Date Check

Download

OpenWRT

  • ramips/mt7621
rm -f '/tmp/netgear_r6260-sysupgrade-snapshot.bin' && wget -O '/tmp/netgear_r6260-sysupgrade-snapshot.bin' 'https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-sysupgrade.bin'

SSL Support

  • :!: If wget fails because of missing SSL support, run this
opkg update && opkg install 'libustream-mbedtls'

Install

  • -n doesn't save old config
  • --force forces the flash
  • -v more verbose
ssh 'root'@'192.168.1.1'
sysupgrade --force -n -v '/tmp/netgear_r6260-sysupgrade-snapshot.bin'

LuCI

ssh 'root'@'192.168.1.1'
opkg update && opkg install 'luci'

Configure

Quad9 DNS

2620:fe::fe
2620:fe::9
9.9.9.9
149.112.112.112

Wireless

2.4GHz

  • Country Code: US
  • [ ] Allow legacy 802.11b rates
  • Channel: 11 4)
  • Width: 40 MHz
  • Encryption: WPA2-PSK CCMP AES
The Crossroads (2.4GHz)

5GHz

  • Country Code: US
  • [ ] Allow legacy 802.11b rates
  • Channel: 149 5)
  • Width: 80 MHz 6)
  • Encryption: WPA2-PSK CCMP AES
Highgate (5GHz)
Notes
  • Quest 2 should be 866.7 Mbit/s on both speeds

Firewall

  • :!: Software and Hardware flow offloading may cause issues; this needs debugged further
  • :!: Software and Hardware flow offloading may not offer any benefit on a 30Mbps ISP

Diagnostics

dmesg | grep 'recovery'
dmesg | grep 'dma'

Recovery

nmrpflash

  • :!: The 2020/11/07 OpenWRT snapshot factory image for R6260 had filesystem-related errors
  • :!: Installing the factory image on-top of stock NETGEAR firmware, and then using the sysupgrade command works fine
  • :!: If using this, use the factory OpenWRT images
sudo ln -sv 'libpcap.so.1' '/usr/lib64/libpcap.so.0.8'
sudo ~/'Downloads/nmrpflash-0.9.15-rc3-linux/nmrpflash' -L
sudo ~/'Downloads/nmrpflash-0.9.15-rc3-linux/nmrpflash' -i 'enp5s0' -f ~/'Downloads/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img'
sudo ~/'Downloads/nmrpflash-0.9.15-rc3-linux/nmrpflash' -i 'enp5s0' -f ~/'Downloads/R6260_V1.1.0.78_1.0.1/R6260_V1.1.0.78_1.0.1.img'

OpenWRT Compile

https://forum.openwrt.org/t/new-xiaomi-router-ac2100/48101/403

dmesg | grep dma

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' 
&gdma {
    status = "okay";
};

&hsdma {
    status = "okay";
};

menconfig → kernel modules → Other modules → kmod-dma-ralink & kmod-hsdma-mtk

nano '/home/espionage724/Projects/openwrt/src/target/linux/ramips/mt7621/config-5.4' 
CONFIG_MTK_HSDMA=y

Lean

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'
4)
Kitchen is 1 @ 20Mhz, Living Room is 6 @ 20Hz
5)
Kitchen is 165 @ 20Mhz, Living Room is 36 @ 80Hz
6)
160 MHz had issues; it's either incompatible with the SoC, driver-side issues, or channel selection-related
/var/www/wiki/data/attic/devices/netgear_r6260_openwrt.1610363567.txt.gz · Last modified: 2021/01/11 06:12 by Sean Rhone