R6260 [Beginner] Installation

I read the Docs repeatedly. From what I could understand, the documentation advised flashing my R620 with the 'Installation URL' found on the bottom of this page:

As explained in the docs I installed the file with 'factory' in the filename (http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-netgear_r6260-squashfs-factory.img). The install was successful but apparently this did not include a GUI. So I was able to get into the router via ssh and I attempted to perform opkg update and attempted to install luci but all I kept getting was various Download errors and timeouts.

I looked around the site for answers and I stumbled upon this post: [SOLVED] Beginner: Installing 19.07 on Netgear R6260
where the original author is advised to install the version r6350 stable snapshot on the R6260. So I proceeded to do just that instead of fussing with the version that I had already flashed to my router. And it bricked my device. I spent almost 2 days trying to get it to flash and I finally got the original Netgear firmware onto it using nmrpflash.

Can I kindly ask for help figuring out which package/file to install on my Netgear R6260? Any help would be greatly appreciated. I have learned a lot, but I am still not a pro like a lot of the folks here. So some patience would be super!

The image you linked above is correct.

Which errors did you get exactly?

As for the errors I received executing

opkg update
opkg install luci

that was days ago and many hours have since past while trying to un-brick my device. I will have to try it all again and report back. I guess if that is in fact the correct image I will give this another go.

Thank you!

I flashed my R6260 with the factory image referenced above for a second time. I can ssh into the device successfully, however when I attempt to execute opkg update only some of the dependencies are successful. I have tried a few times only to end up with some items failing to download. On my last attempt, this is the 'Collected errors' output:

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.sig, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

I can get the opkg update to sometimes run with only one download error:

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

And if I do a wget on that file it will download but I get an error like this:

wget https://downloads.openwrt.org/snapshots/packages/mipsel_24k
c/luci/Packages.gz
Downloading 'https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz'
Connecting to 168.119.138.211:443
Writing to 'Packages.gz'
Cannot open output file: File exists

I see many people here have similar issues and the only advice is to check Network configuration or DNS, etc. I can't do a thing about my Internet - I just have an Ethernet cable running right from my R6260 directly to a LAN on my Altice modem and the Altice modem cannot be configured beyond some basic settings via a web portal.

I have no idea how to get around these issues.

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall

cat /etc/config/network:

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option packet_steering '1'
	option ula_prefix 'fd9a:1f25:0e01::/48'

config interface 'lan'
	option type 'bridge'
	option ifname 'lan1 lan2 lan3 lan4'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option ifname 'wan'
	option proto 'dhcp'

config interface 'wan6'
	option ifname 'wan'
	option proto 'dhcpv6'

cat /etc/config/wireless:

config wifi-device 'radio0'
	option type 'mac80211'
	option channel '11'
	option hwmode '11g'
	option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
	option htmode 'HT20'
	option disabled '1'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'OpenWrt'
	option encryption 'none'

config wifi-device 'radio1'
	option type 'mac80211'
	option channel '36'
	option hwmode '11a'
	option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
	option htmode 'VHT80'
	option disabled '1'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'OpenWrt'
	option encryption 'none'

cat /etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option nonwildcard '1'
	option localservice '1'
	option ednspacket_max '1232'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv6 'server'
	option ra 'server'
	option ra_slaac '1'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

cat /etc/config/firewall:

config defaults
	option syn_flood	1
	option input		ACCEPT
	option output		ACCEPT
	option forward		REJECT
# Uncomment this line to disable ipv6 rules
#	option disable_ipv6	1

config zone
	option name		lan
	list   network		'lan'
	option input		ACCEPT
	option output		ACCEPT
	option forward		ACCEPT

config zone
	option name		wan
	list   network		'wan'
	list   network		'wan6'
	option input		REJECT
	option output		ACCEPT
	option forward		REJECT
	option masq		1
	option mtu_fix		1

config forwarding
	option src		lan
	option dest		wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
	option name		Allow-DHCP-Renew
	option src		wan
	option proto		udp
	option dest_port	68
	option target		ACCEPT
	option family		ipv4

# Allow IPv4 ping
config rule
	option name		Allow-Ping
	option src		wan
	option proto		icmp
	option icmp_type	echo-request
	option family		ipv4
	option target		ACCEPT

config rule
	option name		Allow-IGMP
	option src		wan
	option proto		igmp
	option family		ipv4
	option target		ACCEPT

# Allow DHCPv6 replies
# see https://dev.openwrt.org/ticket/10381
config rule
	option name		Allow-DHCPv6
	option src		wan
	option proto		udp
	option src_ip		fc00::/6
	option dest_ip		fc00::/6
	option dest_port	546
	option family		ipv6
	option target		ACCEPT

config rule
	option name		Allow-MLD
	option src		wan
	option proto		icmp
	option src_ip		fe80::/10
	list icmp_type		'130/0'
	list icmp_type		'131/0'
	list icmp_type		'132/0'
	list icmp_type		'143/0'
	option family		ipv6
	option target		ACCEPT

# Allow essential incoming IPv6 ICMP traffic
config rule
	option name		Allow-ICMPv6-Input
	option src		wan
	option proto	icmp
	list icmp_type		echo-request
	list icmp_type		echo-reply
	list icmp_type		destination-unreachable
	list icmp_type		packet-too-big
	list icmp_type		time-exceeded
	list icmp_type		bad-header
	list icmp_type		unknown-header-type
	list icmp_type		router-solicitation
	list icmp_type		neighbour-solicitation
	list icmp_type		router-advertisement
	list icmp_type		neighbour-advertisement
	option limit		1000/sec
	option family		ipv6
	option target		ACCEPT

# Allow essential forwarded IPv6 ICMP traffic
config rule
	option name		Allow-ICMPv6-Forward
	option src		wan
	option dest		*
	option proto		icmp
	list icmp_type		echo-request
	list icmp_type		echo-reply
	list icmp_type		destination-unreachable
	list icmp_type		packet-too-big
	list icmp_type		time-exceeded
	list icmp_type		bad-header
	list icmp_type		unknown-header-type
	option limit		1000/sec
	option family		ipv6
	option target		ACCEPT

config rule
	option name		Allow-IPSec-ESP
	option src		wan
	option dest		lan
	option proto		esp
	option target		ACCEPT

config rule
	option name		Allow-ISAKMP
	option src		wan
	option dest		lan
	option dest_port	500
	option proto		udp
	option target		ACCEPT

# allow interoperability with traceroute classic
# note that traceroute uses a fixed port range, and depends on getting
# back ICMP Unreachables.  if we're operating in DROP mode, it won't
# work so we explicitly REJECT packets on these ports.
config rule
	option name		Support-UDP-Traceroute
	option src		wan
	option dest_port	33434:33689
	option proto		udp
	option family		ipv4
	option target		REJECT
	option enabled		false

# include a file with users custom iptables rules
config include
	option path /etc/firewall.user

I think I may be slowly understanding what is going on here, and my cable modem is using the same IP as my OpenWRT setup device. Without Luci installed I don't know how to change the IP using ssh. If maybe you can confirm this is the possible issue and explain how to change the IP?

# uci set network.lan.ipaddr="192.168.2.1"
# uci commit network

This will set it to 192.168.2.1 (and your clients will receive 192.168.2.x IP addresses). Reboot after you ran the commands and reconnect.

Thank you very much for that. The IP was the reason for wget failing. I was able to run

opkg update
opkg install luci

But now I get the following response in the browser after reboot:

/usr/lib/lua/luci/dispatcher.lua:725: No valid theme found
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:725: in function 'init_template_engine'
	/usr/lib/lua/luci/dispatcher.lua:849: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

Do you have a theme installed? E.g.

# opkg list-installed|grep theme
luci-theme-bootstrap - git-21.008.63257-bc121a5

I guess I don't - I only did the opkg install luci

So there is no default theme to get you up and running in the install?

I think there should be, and a dependency to match, but you can fix whatever went wrong rather easily by just pulling in a theme, and maybe restarting uhttpd, if necessary.

May I ask - just how to locate a theme and 'pull it in' and restart uhttpd?

Yes - I am green. : )

As with most commands on Linux, opkg --help will show you the possible arguments. For available packages, filter on theme:

# opkg list|grep theme

Then just install the package (you know how), and for the HTTP server restart:

# service uhttpd restart

1 Like

Thank you! :blush:

Looks like I have hit the wall again. No matter what theme I try to install using opkg install I get the following error:

root@OpenWrt:~# opkg install luci-theme-material
Unknown package 'luci-theme-material'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for luci-theme-material found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package luci-theme-material.

Additional context:

root@OpenWrt:~# opkg list|grep theme
luci - git-20.074.84698-ead5e81 - Standard OpenWrt set including full admin with ppp support and the default Bootstrap theme
luci-nginx - git-20.161.73418-219f0ce - Standard OpenWrt set including full admin with ppp support and the default Bootstrap theme
luci-theme-bootstrap - git-20.363.32570-6ffd159 - Bootstrap Theme (default)
luci-theme-freifunk-generic - git-19.157.76835-ac16b4a - Freifunk Generic Theme
luci-theme-material - git-20.304.74050-01cefed - Material Theme
luci-theme-openwrt - git-20.229.69577-258e74c - LuCI OpenWrt.org theme
luci-theme-openwrt-2020 - git-20.229.69577-258e74c - LuCI modern OpenWrt theme
root@OpenWrt:~# opkg install luci-theme-bootstrap
Unknown package 'luci-theme-bootstrap'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for luci-theme-bootstrap found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package luci-theme-bootstrap.

The architectures of the following files should match:

# cat /etc/opkg/distfeeds.conf 
# egrep "DISTRIB_ARCH|DISTRIB_TARGET" /etc/openwrt_release

E.g. for me the second commands shows the following, and that matches the URLs in /etc/opkg/distfeeds.conf

# egrep "DISTRIB_ARCH|DISTRIB_TARGET" /etc/openwrt_release 
DISTRIB_TARGET='octeon/generic'
DISTRIB_ARCH='mips64_octeonplus'

Okay, mine do not match - and I have made no modifications to the image or packages that I have installed. Except for changing the LAN IP as described above it is a straight installation.

My URL's are:

src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base
src/gz openwrt_kmods https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/5.4.91-1-6b0e6ccfc1a63ac8682d721effce8201
src/gz openwrt_freifunk https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/freifunk
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing
src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony

# egrep "DISTRIB_ARCH|DISTRIB_TARGET" /etc/openwrt_release returns:

DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'

I guess I need to make some edits? Or install a different firmware image?