User Tools

Site Tools


devices:netgear_r6260_openwrt

This is an old revision of the document!


Information

  • NETGEAR R6260 1)
  • OpenWrt 2) 3)

Snapshot

sysupgrade

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

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
  • Width: 40 MHz
  • Encryption: WPA2-PSK CCMP AES
The Crossroads (2.4GHz)

5GHz

  • Country Code: US
  • [ ] Allow legacy 802.11b rates
  • Channel: auto 4)
  • Width: 80 MHz 5)
  • 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

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 '/home/espionage724/Downloads/nmrpflash-0.9.14-linux/nmrpflash' -L
sudo '/home/espionage724/Downloads/nmrpflash-0.9.14-linux/nmrpflash' -i enp6s0 -f ~/'Downloads/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img'
sudo '/home/espionage724/Downloads/nmrpflash-0.9.14-linux/nmrpflash' -i enp6s0 -f ~/'Downloads/R6260-V1.1.0.76_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
/var/www/wiki/data/attic/devices/netgear_r6260_openwrt.1605555784.txt.gz · Last modified: 2020/11/16 14:43 by Sean Rhone