Trying to install snapshot for NBG6716 result in reboot loop

@slh I have recovered this way and was able to re-update to 18.06.2, but snapshots are still not working.

Between the kernel changes to resolve the recent CVE and some issues being worked through relative to libjson-c, I'd wait a couple days on snapshots. This is one of the very, very few times that master has had "bootability" issues over the last couple years. Actually, I can't remember another time in the last couple years.

1 Like

@jeff Is there an older snapshot that I could try somewhere? And is there anyone else affected by the recent snapshot, from the same family of products lets say?

@lleachii I did use sysupgrade at first, through the luci web interface.

If you have a build environment up and running, you could build from an earlier commit.

(It's OK to respond to multiple posts in a single post.)

2 Likes

@jeff see this topic please, apparently my router is one that needs to be ported to ath79 :

Now I have no idea how to do this!

What's your level of confidence reading C code (not necessarily writing it), availability of a serial connection to your device, and tolerance for testing things?

With luck "all" you'll have to do is adapt a DTS to describe the device to the kernel.

I'll look at it in a bit (in the middle of some testing and merging here) to take a guess as to how hard it might be, but here are a couple references. The first is the learning process the early adopters went through. The second describes some of the references I found helpful when learning about DTS files myself.

https://openwrt.org/docs/guide-developer/defining-firmware-partitions (Really about DTS, in general now)


https://openwrt.org/toh/zyxel/zyxel_nbg6716

The hardware is very similar to the TP-Link TL-WDR7500, but with a large NAND flash

The Hynix H27U2G8F2CTR-BC listed on that page is parallel NAND, and I don't know if there is any support for it yet on the ath79 platform. Having been working on serial NAND on that platform ("SPI NAND"), I know that there aren't any boards running on the ath79 NAND target on master quite yet.

Best guess is somewhere between "hard" (a lot of groundbreaking work, but platform drivers for parallel NAND and your chip available) and "very hard" (requiring submissions and acceptance to upstream Linux).

@jeff I am sorry for not taking action on this for awhile. Waiting was actually a good thing, 19.07.0-rc1 came out. Now I got the new kernel version and I am able to get proper speed (tested 400 Mbps in download, perfect for me). I have seen this version has some issues to be fixed. I also noticed a bunch of errors from the serial connections. I have yet to take a capture.

I noticed that snapshots are still not updated, even if 19.07 exists. Is there anything I can do to help? To be honest, I still need to catch up to understand your last post correctly. I got some school background in C programming but I feel rusty! I am willing to invest some time in this though to prevent good routers to end up in the trash. Thanks for all your time!

here is the capture for 19.07.0-rc1



U-Boot 2009.11 (May 25 2015 - 13:40:13)

EMG2926 - Scorpion 1.0
DRAM:  32bit ddr2 256 MB
Flash: 16 MB
*** Warning *** : PCIe WLAN Module not found !!!
Net:   Max resets limit reached exiting...
eth0, eth1
NAND:  Hynix NAND 128MiB 3,3V 8-bit [128MB]


ZyXEL zloader v2.21 (May 25 2015 - 14:13:21)
Multiboot clinent version: 1.2
could not establish link on eth0
eth_init failed!

Hit any key to stop autoboot:  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  3  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  0
### JFFS2 loading '/boot/vmlinux.lzma.uImage' to 0x80400000
Scanning JFFS2 FS: '/boot/vmlinux.lzma.uImage' found, done
Loading file: done
### JFFS2 load complete: 1685081 bytes loaded to 0x80400000
## Booting kernel from Legacy Image at 80400000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.151
   Created:      2019-11-05  23:26:40 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1685017 Bytes =  1.6 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.14.151 (builder@buildhost) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10649-c4fdb377a2)) #0 Tue Nov 5 23:26:40 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from 0x8053a740 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line:  board=NBG6716 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubi) mem=256M ethaddr=B8:EC:A3:32:C5:04 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 254052K/262144K available (4250K kernel code, 181K rwdata, 528K rodata, 216K init, 212K bss, 8092K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[    0.000007] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[    0.008294] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.074984] pid_max: default: 32768 minimum: 301
[    0.080077] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.087115] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.096467] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106962] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114397] NET: Registered protocol family 16
[    0.120255] MIPS: machine is Zyxel NBG6716
[    0.169388] ar724x-pci ar724x-pci.0: PCIe link is down
[    0.174857] registering PCI controller with io_map_base unset
[    0.181100] registering PCI controller with io_map_base unset
[    0.670611] PCI host bridge to bus 0000:00
[    0.675011] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    0.682326] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.688260] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.695479] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.704040] PCI host bridge to bus 0000:01
[    0.708400] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[    0.715730] pci_bus 0000:01: root bus resource [io  0x0001]
[    0.721653] pci_bus 0000:01: root bus resource [??? 0x00000000 flags 0x0]
[    0.728879] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[    0.737705] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.745522] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.755991] clocksource: Switched to clocksource MIPS
[    0.762215] NET: Registered protocol family 2
[    0.767606] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.775039] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.781861] TCP: Hash tables configured (established 2048 bind 2048)
[    0.788746] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.794975] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.801867] NET: Registered protocol family 1
[    0.808888] Crashlog allocated RAM at address 0x3f00000
[    0.815484] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.826510] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.832714] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.851516] io scheduler noop registered
[    0.855689] io scheduler deadline registered (default)
[    0.861536] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.870056] console [ttyS0] disabled
[    0.893931] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.903122] console [ttyS0] enabled
[    0.903122] console [ttyS0] enabled
[    0.910548] bootconsole [early0] disabled
[    0.910548] bootconsole [early0] disabled
[    0.924214] m25p80 spi0.0: found mx25l3205d, expected m25p80
[    0.930517] m25p80 spi0.0: mx25l3205d (4096 Kbytes)
[    0.935490] 4 cmdlinepart partitions found on MTD device spi0.0
[    0.941528] Creating 4 MTD partitions on "spi0.0":
[    0.946411] 0x000000000000-0x000000040000 : "u-boot"
[    0.952833] 0x000000040000-0x000000050000 : "env"
[    0.958713] 0x000000050000-0x000000060000 : "RFdata"
[    0.965373] 0x000000060000-0x000000400000 : "nbu"
[    0.972234] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.978719] nand: Hynix NAND 128MiB 3,3V 8-bit
[    0.983226] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.991184] Scanning device for bad blocks
[    0.995568] Bad eraseblock 2 at 0x000000040000
[    1.003067] random: fast init done
[    1.088934] 5 cmdlinepart partitions found on MTD device ar934x-nfc
[    1.095290] Creating 5 MTD partitions on "ar934x-nfc":
[    1.100537] 0x000000000000-0x000000200000 : "zyxel_rfsd"
[    1.107031] 0x000000200000-0x000000400000 : "romd"
[    1.113473] 0x000000400000-0x000000500000 : "header"
[    1.119602] 0x000000500000-0x000000700000 : "kernel"
[    1.126287] 0x000000700000-0x000008000000 : "ubi"
[    1.133178] libphy: Fixed MDIO Bus: probed
[    1.144780] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[    1.836210] libphy: ag71xx_mdio: probed
[    2.467401] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.478654] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    3.107532] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii
[    3.115624] NET: Registered protocol family 10
[    3.124480] Segment Routing with IPv6
[    3.128320] NET: Registered protocol family 17
[    3.132864] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.146445] 8021q: 802.1Q VLAN Support v1.8
[    3.153787] UBI: auto-attach mtd8
[    3.157209] ubi0: attaching mtd8
[    4.838778] random: crng init done
[    4.998987] ubi0: scanning is finished
[    5.021968] ubi0: attached mtd8 (name "ubi", size 121 MiB)
[    5.027578] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.034551] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.041450] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.048520] ubi0: good PEBs: 968, bad PEBs: 0, corrupted PEBs: 0
[    5.054606] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.061942] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 906489619
[    5.071128] ubi0: available PEBs: 0, total reserved PEBs: 968, PEBs reserved for bad PEB handling: 20
[    5.080529] ubi0: background thread "ubi_bgt0d" started, PID 369
[    5.087971] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.093539] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.100639] hctosys: unable to open rtc device (rtc0)
[    5.113186] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.121226] Freeing unused kernel memory: 216K
[    5.125734] This architecture does not have kernel memory protection.
[    5.672471] init: Console is alive
[    5.676162] init: - watchdog -
[    6.524646] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.569855] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.587590] init: - preinit -
[    7.475489] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.517441] eth0: link up (1000Mbps/Full duplex)
[    8.522268] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.711043] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 427
[   10.865822] UBIFS (ubi0:1): recovery needed
[   11.124539] UBIFS (ubi0:1): recovery completed
[   11.129160] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.137125] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.147199] UBIFS (ubi0:1): FS size: 115548160 bytes (110 MiB, 910 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[   11.157966] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.164680] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 482E9DCD-B64D-479E-9891-8DD290B0F7E9, small LPT model
[   11.183851] mount_root: switching to ubifs overlay
[   11.222981] urandom-seed: Seeding with /etc/urandom.seed
[   11.337475] eth0: link down
[   11.350463] procd: - early -
[   11.353479] procd: - watchdog -
[   11.973183] procd: - watchdog -
[   11.976695] procd: - ubus -
[   12.085367] procd: - init -
Please press Enter to activate this console.
[   12.905341] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.980521] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.000120] i2c /dev entries driver
[   13.006958] Loading modules backported from Linux version v4.19.79-0-gdafd634415a7
[   13.014635] Backport generated by backports.git v4.19.79-1-0-g0c303298
[   13.034330] urngd: v1.0.0 started.
[   13.039765] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.062340] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   13.160634] xt_time: kernel timezone is -0000
[   13.370220] PPP generic driver version 2.4.2
[   13.386767] NET: Registered protocol family 24
[   13.422442] pci 0000:01:00.0: using irq 41 for pin 1
[   13.427524] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x3c.
[   13.436691] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[   13.442606] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   13.720934] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:01:00.0.txt failed with error -2
[   13.731644] ath10k_pci 0000:01:00.0: Falling back to user helper
[   13.905614] firmware ath10k!fwcfg-pci-0000:01:00.0.txt: firmware_loading_store: map pages failed
[   13.914812] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[   13.925691] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.066618] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[   14.078289] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-5.bin failed with error -2
[   14.089448] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.229910] firmware ath10k!QCA988X!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   14.239525] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-2.bin failed with error -2
[   14.250673] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.391694] firmware ath10k!QCA988X!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   14.401317] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   14.412197] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.553291] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   14.562646] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[   14.573527] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.715281] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[   14.724640] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[   14.735519] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.876540] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[   14.885858] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
[   14.896742] ath10k_pci 0000:01:00.0: Falling back to user helper
[   15.037789] firmware ath10k!QCA988X!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[   15.050792] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   15.060190] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   15.072601] ath10k_pci 0000:01:00.0: firmware ver 10.1-ct-8x-__fW-022-64cc8007 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT crc32 156478f0
[   15.183112] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   15.193753] ath10k_pci 0000:01:00.0: Falling back to user helper
[   15.272007] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   15.303216] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   16.239773] ath10k_pci 0000:01:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   16.257234] ath10k_pci 0000:01:00.0: wmi print 'P 128 V 8 T 410'
[   16.263529] ath10k_pci 0000:01:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   16.271679] ath10k_pci 0000:01:00.0: wmi print 'alloc rem: 20904 iram: 26072'
[   16.339777] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   16.352585] ath10k_pci 0000:01:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   16.566691] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[   16.628739] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.101513] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.129128] br-lan: port 1(eth0.1) entered blocking state
[   27.134609] br-lan: port 1(eth0.1) entered disabled state
[   27.140388] device eth0.1 entered promiscuous mode
[   27.145254] device eth0 entered promiscuous mode
[   27.198646] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.254406] eth1: link up (1000Mbps/Full duplex)
[   28.118026] eth0: link up (1000Mbps/Full duplex)
[   28.122851] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.156220] br-lan: port 1(eth0.1) entered blocking state
[   28.161703] br-lan: port 1(eth0.1) entered forwarding state
[   28.214272] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.0-rc1, r10649-c4fdb377a2
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# 

ar71xx is dead and, as I recall, is “source only” on master.

Also, 19.07 is a branch from June, as I recall, and is over 1000 commits behind master.

There is a parallel NAND driver on ath79 you can look at. I don’t recall if your device has been enabled yet. That kind of work only happens on master.

Edit: Yes, ZyXEL NBG6716 is on ath79 on master

1 Like

I found a few commits here :
https://git.openwrt.org/?p=openwrt%2Fopenwrt.git&a=search&h=refs%2Fheads%2Fmaster&st=commit&s=nbg6716

I was still looking in ar71xx instead of ath79, now I see nbg6716!! I'll give the new snapshots a try soon :smiley:

I am starting to worry about writing on NAND too much though, I've been over flashing this poor thing.

@jeff I tried updating to ath79, but I got the reboot problem again. Found this info on one of the commit :
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=99835e09992bb411519fda1f8d16a6d07df7f598

I also took a look inside my unit to see what kind of NAND chip I have. It is a H27U1G8F2B. So 128MB. For future reference, here are the specs :
http://natisbad.org/NAS/refs/Hynix_NAND_128Mo_H27U1G8F2BT.pdf

I tried to follow the update procedure in the commit but I was not successful. It says :

Attention: Kernel partition size has been enlarged to 4MB.
To switch, you must update to latest ar71xx-nand snapshort and flash the
sysupgrade-4M-Kernel.bin:

zcat openwrt-ath79-nand-zyxel_nbg6716-squashfs-sysupgrade-4M-Kernel.bin | mtd -r -e ubi write - firmware; reboot -f

First, the ar71 snapshots have not been updated since june 7th, which is what started this whole thing. I still get in a reboot loop, which prevent me to go any further.

I also tried using the latest releases, and the release candidate. That lead me to the second problem, the zcat command in the commit does not work. I tried tweaking it, but without luck.

Here is a capture of /proc/mtd for 19.07.0-rc1 :
root@OpenWrt:/# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "env"
mtd2: 00010000 00010000 "RFdata"
mtd3: 003a0000 00010000 "nbu"
mtd4: 00200000 00020000 "zyxel_rfsd"
mtd5: 00200000 00020000 "romd"
mtd6: 00100000 00020000 "header"
mtd7: 00200000 00020000 "kernel"
mtd8: 07900000 00020000 "ubi"

and with the original firmware (after recovery using tftp) :
root@NBG6716:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "env"
mtd2: 00010000 00010000 "RFdata"
mtd3: 003a0000 00010000 "nbu"
mtd4: 00200000 00020000 "rootfs_data"
mtd5: 00200000 00020000 "romd"
mtd6: 00100000 00020000 "header"
mtd7: 01e00000 00020000 "rootfs"
mtd8: 00100000 00020000 "header1"
mtd9: 01e00000 00020000 "rootfs1"
mtd10: 00200000 00020000 "bu1"
mtd11: 03c00000 00020000 "bu2"

my question is how do I write that -4M-Kernel file and on what mtd#? I tried kernel and ubi, without success.

Also in the commit, there is a place where he mention to go into uboot. Do I have to change something there?

Hi!

If you're stuck in the boot loop, try to flash the ath79 ras image via tftp to the device. This should help.
In some upgrades I had a problem with the ubi partition, it needed to be reset/cleared.

The ath79 version of NBG6716 only supports 128MB flash. With bigger chips the first 128MB will be used - should be enough. This is a difference to the ar71xx version where all was used.

Kind regards,

André

2 Likes

@avalentin It did it!!! In the past I tried with other bin files via tftp, but for some reasons it didn't work prior to flashing the original bin file from ZyXEL. So I was under the false impression that tftp only work for this one.

Btw, thanks a lot for porting this device! :smiley:

I fixed the ras image generation with ath79 and NBG6716 :grin:

Have fun,

André

1 Like

Off topic, so please feel free to start a thread on this to follow up.

While it may not be accepted into project code, it may be the case that setting the “last” partition size for 256 MB flash will just result in a “partition extends beyond flash” warning when the kernel initializes the MTD partitions on 128 MB device. I’ve seen that when I was off by a little (2 MB over) so might be worth exploring.

I have two of these and want to help testing too. Do I need to flash the original Zyxel firmware first and then the 4Mb image or can I use the full ath79 image directly?

What worked for me was flashing via tftp the openwrt-ath79-nand-zyxel_nbg6716-squashfs-factory.bin that was renamed to ras.bin. I had flashed the original firmware prior to that, but this may not be necessary. Let me know how it goes! Oh and if you succeed, check my new post, you may ran in this issue too :

1 Like

Thanks! I will wait for the hostapd fix before testing ath79. I too use (multiple) virtual interfaces...
@avalentin, thank you for adding ath79 support to the NBG6716!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.