Build for Netgear R7800

@spongioblast Does it let you downgrade to the original firmware version?
http://www.downloads.netgear.com/files/GDC/R7800/R7800-V1.0.0.28.zip
If it does, try flashing OpenWRT via the web interface from that version.
There are also other versions 1.0.1.x you could try.

Due to the modified NAND partitioning compared to OEM (or 17.01.x), flashing from OEM to OpenWrt requires tftp-pushbutton 'debricking'.

When did this change? I flashed 2 units in the last 6-10 months and did it via the stock web interface. Can't remember what stock firmware version they came with but I definitely went straight to a hnyman build right after the 1st power on.

Are there multiple hardware revisions out there for the R7800?

further refined by


both happened shortly before 18.06.0.

1 Like

But that's so long ago. I flashed via the web interface in the past 6 months.

I flashed R7800-V1.0.0.28 which works fine. Then I uploaded openwrt-18.06.5-ipq806x-netgear_r7800-squashfs-factory via the web interface, same problem.. I'll connect serial and report back, thanks.

1 Like

Alright, here is the serial out, there definitely seems to be some issue, thanks for the help:
openwrt-18.06.5-ipq806x-netgear_r7800-squashfs-factory

U-Boot 2012.07 [local,local] (Sep 03 2015 - 17:33:28)

U-boot 2012.07 dni1 V0.4 for DNI HW ID: 29764958 NOR flash 0MB; NAND flash 128MB; RAM 512MB; 1st Radio 4x4; 2nd Radio 4x4; Cascade
smem ram ptable found: ver: 0 len: 5
DRAM:  491 MiB
NAND:  SF: Unsupported manufacturer 00
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
128 MiB
MMC:   
*** Warning - bad CRC, using default environment

PCI0 Link Intialized
PCI1 Link Intialized
In:    serial
Out:   serial
Err:   serial
 131072 bytes read: OK
MMC Device 0 not found
cdp: get part failed for 0:HLOS
Net:   MAC1 addr:3c:37:86:2a:c8:f6
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init  done
MAC2 addr:3c:37:86:2a:c8:f5
eth0, eth1
Hit any key to stop autoboot:  2  1  0 
Mac2 unit failed
Mac1 unit failed

 nmrp server is stopped or failed !

Loading from device 0: nand0 (offset 0x1480000)
Skipping bad block 0x014a0000

** check kernel image **
   Verifying Checksum ... OK

** check rootfs image **
   Verifying Checksum ... OK
MMC Device 0 not found

Loading from nand0, offset 0x1480000
   Image Name:   ARM OpenWrt Linux-4.14.151
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2188793 Bytes = 2.1 MiB
   Load Address: 42208000
   Entry Point:  42208000
Skipping bad block 0x014a0000
Automatic boot of image at addr 0x44000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.151
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2188793 Bytes = 2.1 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
mtdparts variable not set, see 'help mtdparts'
no partitions defined

defaults:
mtdids  : nand0=msm_nand
mtdparts: none
info: "mtdparts" not set
Using machid 0x136c from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.151 (buildbot@62f0e5d67d46) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7897-9d401013fc)) #0 SMP Tue Nov 5 14:12:18 2019
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Netgear Nighthawk X4S R7800
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from 0xc09008dc with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29388 r8192 d23860 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line: 
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 477376K/491520K available (4912K kernel code, 162K rwdata, 760K rodata, 1024K init, 234K bss, 14144K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xde800000 - 0xff800000   ( 528 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xde000000   ( 480 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc07cc198   (5905 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a28840   ( 163 kB)
[    0.000000]        .bss : 0xc0a2a000 - 0xc0a64a98   ( 235 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000006] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000023] Switching to timer-based delay loop, resolution 160ns
[    0.000225] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000248] pid_max: default: 32768 minimum: 301
[    0.000371] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000388] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000955] CPU: Testing write buffer coherency: ok
[    0.001718] Setting up static identity map for 0x42300000 - 0x42300060
[    0.001874] Hierarchical SRCU implementation.
[    0.002600] smp: Bringing up secondary CPUs ...
[    0.004430] smp: Brought up 1 node, 2 CPUs
[    0.004448] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.004459] CPU: All CPU(s) started in SVC mode.
[    0.014959] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.015124] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015150] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.015264] pinctrl core: initialized pinctrl subsystem
[    0.016232] NET: Registered protocol family 16
[    0.016476] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017785] cpuidle: using governor ladder
[    0.017849] cpuidle: using governor menu
[    0.040563] msm_bus_fabric_init_driver
[    0.042079] usbcore: registered new interface driver usbfs
[    0.042155] usbcore: registered new interface driver hub
[    0.042241] usbcore: registered new device driver usb
[    0.042297] pps_core: LinuxPPS API ver. 1 registered
[    0.042309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.042342] PTP clock support registered
[    0.044008] clocksource: Switched to clocksource dg_timer
[    0.047188] NET: Registered protocol family 2
[    0.047776] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.047819] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.047876] TCP: Hash tables configured (established 4096 bind 4096)
[    0.047965] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.047991] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.048164] NET: Registered protocol family 1
[    0.049319] No memory allocated for crashlog
[    0.049582] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.054582] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.054598] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.061508] io scheduler noop registered
[    0.061528] io scheduler deadline registered (default)
[    0.063332] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda not found, using dummy regulator
[    0.063439] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_phy not found, using dummy regulator
[    0.063531] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_refclk not found, using dummy regulator
[    0.064436] OF: PCI: host bridge /soc/pci@1b500000 ranges:
[    0.064482] OF: PCI:    IO 0x0fe00000..0x0fefffff -> 0x0fe00000
[    0.064508] OF: PCI:   MEM 0x08000000..0x0fdfffff -> 0x08000000
[    0.172615] qcom-pcie 1b500000.pci: link up
[    0.172777] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.172800] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.172820] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfe00000-0xfefffff])
[    0.172836] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.173355] PCI: bus0: Fast back to back transfers disabled
[    0.175685] PCI: bus1: Fast back to back transfers disabled
[    0.175782] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.175806] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.175935] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.175960] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.176486] pcieport 0000:00:00.0: AER enabled with IRQ 35
[    0.177009] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda not found, using dummy regulator
[    0.177108] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_phy not found, using dummy regulator
[    0.177210] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_refclk not found, using dummy regulator
[    0.177972] OF: PCI: host bridge /soc/pci@1b700000 ranges:
[    0.178010] OF: PCI:    IO 0x31e00000..0x31efffff -> 0x31e00000
[    0.178034] OF: PCI:   MEM 0x2e000000..0x31dfffff -> 0x2e000000
[    0.287920] qcom-pcie 1b700000.pci: link up
[    0.288066] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.288085] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.288100] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.288558] PCI: bus0: Fast back to back transfers disabled
[    0.290896] PCI: bus1: Fast back to back transfers disabled
[    0.290982] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.291004] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.291135] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.291155] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.291626] pcieport 0001:00:00.0: AER enabled with IRQ 68
[    0.293970] L2 @ QSB rate. Forcing new rate.
[    0.294183] L2 @ 384000 KHz
[    0.294486] CPU0 @ 800000 KHz
[    0.294500] CPU1 @ QSB rate. Forcing new rate.
[    0.294628] CPU1 @ 384000 KHz
[    0.298486] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.300416] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.302969] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.303074] msm_serial 16340000.serial: uartclk = 7372800
[    0.303156] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 101, base_baud = 460800) is a MSM
[    0.303194] msm_serial: console setup on port #0
[    1.023121] console [ttyMSM0] enabled
[    1.027967] msm_serial: driver initialized
[    1.036544] loop: module loaded
[    1.038578] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xa1
[    1.038612] nand: Macronix MX30UF1G18AC
[    1.045178] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.048759] 8 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.056398] Creating 8 MTD partitions on "qcom_nand.0":
[    1.063156] 0x000000000000-0x000000c80000 : "qcadata"
[    1.073221] random: fast init done
[    1.090944] 0x000000c80000-0x000001180000 : "APPSBL"
[    1.100442] 0x000001180000-0x000001200000 : "APPSBLENV"
[    1.102079] 0x000001200000-0x000001340000 : "art"
[    1.107472] 0x000001340000-0x000001480000 : "artbak"
[    1.112245] 0x000001480000-0x000001880000 : "kernel"
[    1.122127] 0x000001880000-0x000007900000 : "ubi"
[    1.289637] 0x000007900000-0x000008000000 : "reserve"
[    1.303764] libphy: GPIO Bitbanged MDIO: probed
[    1.324991] switch0: Atheros AR8337 rev. 2 switch registered on gpio-0
[    2.185576] libphy: Fixed MDIO Bus: probed
[    2.187787] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    2.188881] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.195165] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    2.200114] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    2.206284] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    2.214179] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    2.221801] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    2.228832] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    2.236733] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    2.242476] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    2.249920] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.258278] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    2.265474] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.271554] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    2.276658] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    2.282669] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    2.290715] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    2.298275] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    2.305305] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    2.313132] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    2.319019] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    2.326392] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.333748] i2c /dev entries driver
[    2.342609] Calibration not found.
[    2.346143] Speed bin: 0
[    2.348368] PVS bin: 4
[    2.352373] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.353304] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.361066] sdhci: Secure Digital Host Controller Interface driver
[    2.367817] sdhci: Copyright(c) Pierre Ossman
[    2.373980] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.379997] NET: Registered protocol family 10
[    2.385557] Segment Routing with IPv6
[    2.388461] NET: Registered protocol family 17
[    2.392172] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.397259] 8021q: 802.1Q VLAN Support v1.8
[    2.409692] Registering SWP/SWPB emulation handler
[    2.425895] qcom_rpm 108000.rpm: RPM firmware 3.0.16777364
[    2.438008] s1a: supplied by regulator-dummy
[    2.438110] s1a: Bringing 0uV into 1050000-1050000uV
[    2.441596] s1b: supplied by regulator-dummy
[    2.446446] s1b: Bringing 0uV into 1050000-1050000uV
[    2.450778] s2a: supplied by regulator-dummy
[    2.455652] s2a: Bringing 0uV into 775000-775000uV
[    2.459982] s2b: supplied by regulator-dummy
[    2.464495] s2b: Bringing 0uV into 775000-775000uV
[    2.473589] UBI error: no valid UBI magic found inside mt⸮[    2.479930] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.479951] Please append a correct "root=" boot option; here are the available partitions:
[    2.486470] 1f00           12800 mtdblock0 
[    2.486475]  (driver?)
[    2.498705] 1f01            5120 mtdblock1 
[    2.498710]  (driver?)
[    2.505265] 1f02             512 mtdblock2 
[    2.505269]  (driver?)
[    2.511725] 1f03            1280 mtdblock3 
[    2.511729]  (driver?)
[    2.518292] 1f04            1280 mtdblock4 
[    2.518297]  (driver?)
[    2.524821] 1f05            4096 mtdblock5 
[    2.524825]  (driver?)
[    2.531256] 1f06           98816 mtdblock6 
[    2.531260]  (driver?)
[    2.537817] 1f07            7168 mtdblock7 
[    2.537822]  (driver?)
[    2.544345] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.546729] CPU1: stopping
[    2.554967] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.151 #0
[    2.557653] Hardware name: Generic DT based system
[    2.563827] Function entered at [<c030f1b8>] from [<c030b388>]
[    2.568510] Function entered at [<c030b388>] from [<c07b14d8>]
[    2.574325] Function entered at [<c07b14d8>] from [<c030e400>]
[    2.580138] Function entered at [<c030e400>] from [<c03014b8>]
[    2.585956] Function entered at [<c03014b8>] from [<c030bf8c>]
[    2.591771] Exception stack(0xdd461f80 to 0xdd461fc8)
[    2.597616] 1f80: 00000001 00000000 00000000 c0314f60 ffffe000 c0a03c74 c0a03c28 00000000
[    2.602740] 1fa0: 00000000 512f04d0 00000000 00000000 dd461fc8 dd461fd0 c03086ac c03086b0
[    2.610877] 1fc0: 60000013 ffffffff
[    2.619024] Function entered at [<c030bf8c>] from [<c03086b0>]
[    2.622327] Function entered at [<c03086b0>] from [<c034fd70>]
[    2.628229] Function entered at [<c034fd70>] from [<c03500b8>]
[    2.634044] Function entered at [<c03500b8>] from [<423017cc>]
[    2.639867] Rebooting in 1 seconds..

You might take your problem to the generic R7800 discussion thread, as it seems to have nothing to do specifically with my community build.

But some answers for you:
looking at the u-boot log, this part seems abnormal:

14a0000 would be from the early part of kernel partition, I think.
Might be that you have a flash problem that affects some kernels.

You also seem to have a different flash chip than me:

[ 1.038578] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xa1 
[ 1.038612] nand: Macronix MX30UF1G18AC 
[ 1.045178] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64

My own R7800:

[    1.037684] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xa1
[    1.037717] nand: Micron MT29F1G08ABBEAH4
[    1.044195] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
2 Likes

Thanks! I'll post make a new post, I originally tried to flash your FW =)

Link to new Post

My unit also has Macronix MX30UF1G18AC and it seems to work OK, but luckily I don't have any of the errors above.

Sorry for OT but my chip is:
nand: AMD/Spansion S34MS01G2
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64

Works fine...

Hi everyone, since I started using this firmware I noticed sudden disconnections, this happens during browsing or while watching streaming videos. Even with the latest stable firmware of 18.06 I haven't solved the problem. The clients with which it happens are mainly Samsung and Apple. Has anyone else had the same problem?

1 Like

Wired/wireless?
2.4/5GHz?
CT/old?
How often?

Hi, it occurs on WiFi 2.4 with the firmware owrt1806-r7902-05c858ff6a-20191109, for example yesterday happened about 6 times before I restarted the router, but today it has not happened yet, I can not figure out what triggers the error.

Just did a build with Wireguard enabled. Only took one hour total from start to finish with a wireguard connection -- Wireguard works amazingly well. Extremely simple to setup on Luci (as compared to openVPN at least).

Just wish the default builds had it built in. Either way, thanks a ton! The build scripts are very well done and worked fine on Ubuntu 19.10.

1 Like

Just trying this build - all flashed fine and working great so far :ok_hand:.

There very much appear to be two different hardware revisions...I have two R7800's that were Made in China that I have had running Kong's DD-WRT and just bought another R7800 recently that was Made in Thailand and was unable to install DD-WRT on it after trying all different methods (including many tries at tftp) . However, was eventually able to get stock OpenWRT installed on the newer Made in Thailand R7800...so here I am! Maybe something about what DD-WRT needs in the RAM that OpenWRT doesn't?

This should really belong in a more appropriate thread, Netgear R7800 exploration (IPQ8065, QCA9984) - For Developers, for the reasons that it isn't specific to hnyman's OpenWRT build.

2 Likes

Just asking for recommendations on the procedure to swap from Kongs 12/12 build to the latest @hnyman version - is it Kong->stock->Hnyman or as simple as Kong->Hnyam with configuration resets in-between.

Kong to Hynman is fine and you don't have to reset settings. I keep going back and forth between the builds and never reset settings.

1 Like