mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
70c12d26ca
This adds support for the Netgear Nighthawk Pro Gaming XR500. It is the successor to the Netgear Nighthawk R7800 and shares almost identical hardware to that device. The stock firmware is a heavily modified version of OpenWRT. Specifications: SoC: Qualcomm Atheros IPQ8065 RAM: 512 MB Storage: 256 MiB NAND Flash Wireless: 2x Qualcomm Atheros QCA9984 Ethernet: 2x 1000/100/10 dedicated interfaces Switch: 5x 1000/100/10 external ports USB: 2x 3.0 ports More information: Manufacturer page: https://www.netgear.com/gaming/xr500/ Almost identical to Netgear R7800 Differences (r7800 > xr500): Flash: 128MiB > 256MiB Removed esata swapped leds: usb1 (gpio 7 > 8) usb2 (gpio 8 > 26) guest/esata (gpio 26 > 7) MAC addresses: On the OEM firmware, the mac addresses are: WAN: *:50 art 0x6 LAN: *:4f art 0x0 (label) 2G: *:4f art 0x0 5G: *:51 art 0xc Installation: Install via Web Interface (preferred): Utilize openwrt-ipq806x-netgear_xr500-squashfs-factory.img Install via TFTP recovery: 1.Turn off the power, push and hold the reset button (in a hole on backside) with a pin 2.Turn on the power and wait till power led starts flashing white (after it first flashes orange for a while) 3.Release the reset button and tftp the factory img in binary mode. The power led will stop flashing if you succeeded in transferring the image, and the router reboots rather quickly with the new firmware. 4.Try to ping the router (ping 192.168.1.1). If does not respond, then tftp will not work either. Uploading the firmware image with a TFTP client $ tftp 192.168.1.1 bin put openwrt-ipq806x-netgear_xr500-squashfs-factory.img Note: The end of the last partition is at 0xee00000. This was chosen by the initial author, but nobody was able to tell why this particular arbitrary size was chosen. Since it's not leaving too much empty space and it's the only issue left, let's just keep it for now. Based on work by Adam Hnat <adamhnat@gmail.com> ref: https://github.com/openwrt/openwrt/pull/3215 Signed-off-by: Peter Geis <pgwipeout@gmail.com> [squash commits, move common LEDs to DTSI, remove SPDX on old files, minor whitespace cleanup, commit message facelift, add MAC address overview, add Notes, fix MAC addresses, use generic name for partition nodes in DTS] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
67 lines
1.3 KiB
Bash
67 lines
1.3 KiB
Bash
PART_NAME=firmware
|
|
REQUIRE_IMAGE_METADATA=1
|
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv'
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
|
|
|
platform_check_image() {
|
|
return 0;
|
|
}
|
|
|
|
platform_do_upgrade() {
|
|
case "$(board_name)" in
|
|
askey,rt4230w-rev6 |\
|
|
compex,wpq864|\
|
|
netgear,d7800 |\
|
|
netgear,r7500 |\
|
|
netgear,r7500v2 |\
|
|
netgear,r7800 |\
|
|
netgear,xr500 |\
|
|
qcom,ipq8064-ap148 |\
|
|
qcom,ipq8064-ap161)
|
|
nand_do_upgrade "$1"
|
|
;;
|
|
asrock,g10)
|
|
asrock_upgrade_prepare
|
|
nand_do_upgrade "$1"
|
|
;;
|
|
buffalo,wxr-2533dhp)
|
|
buffalo_upgrade_prepare_ubi
|
|
CI_ROOTPART="ubi_rootfs"
|
|
nand_do_upgrade "$1"
|
|
;;
|
|
edgecore,ecw5410)
|
|
part="$(awk -F 'ubi.mtd=' '{printf $2}' /proc/cmdline | sed -e 's/ .*$//')"
|
|
if [ "$part" = "rootfs1" ]; then
|
|
fw_setenv active 2 || exit 1
|
|
CI_UBIPART="rootfs2"
|
|
else
|
|
fw_setenv active 1 || exit 1
|
|
CI_UBIPART="rootfs1"
|
|
fi
|
|
nand_do_upgrade "$1"
|
|
;;
|
|
linksys,ea7500-v1 |\
|
|
linksys,ea8500)
|
|
platform_do_upgrade_linksys "$1"
|
|
;;
|
|
tplink,ad7200 |\
|
|
tplink,c2600)
|
|
PART_NAME="os-image:rootfs"
|
|
MTD_CONFIG_ARGS="-s 0x200000"
|
|
default_do_upgrade "$1"
|
|
;;
|
|
tplink,vr2600v)
|
|
PART_NAME="kernel:rootfs"
|
|
MTD_CONFIG_ARGS="-s 0x200000"
|
|
default_do_upgrade "$1"
|
|
;;
|
|
zyxel,nbg6817)
|
|
zyxel_do_upgrade "$1"
|
|
;;
|
|
*)
|
|
default_do_upgrade "$1"
|
|
;;
|
|
esac
|
|
}
|