I added in an entry for the wac510 in your hotplug.d/ieee80211/10_fix_wifi_mac file and it seems to work, but I need to check it for sure by flashing OpenWrt onto this device permanently.
I tried the sysupgrade method and I've soft-bricked it. I can get into uboot, but it can't find anything to boot and just gets stuck in a reboot loop.
I know I need to tftpboot the kernel/rootfs into RAM and then copy it into flash, but I've no idea which memory locations to use.
Here's the output from sysupgrade and uboot:
root@OpenWrt:/tmp# sysupgrade -v openwrt-ipq806x-netgear_wac510-squashfs-nand-sy
supgrade.bin
Cannot save config while running from ramdisk.
Commencing upgrade. All shell sessions will be closed now.
Watchdog handover: fd=3
watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... dnsmasq netifd ubusd hostapd hostapd [ 795.393185] device wlan0 left promiscuous mode
[ 795.393542] br-lan: port 2(wlan0) entered disabled state
[ 795.413247] device wlan1 left promiscuous mode
[ 795.413574] br-lan: port 3(wlan1) entered disabled state
[ 795.444506] ath10k_ahb a000000.wifi: peer-unmap-event: unknown peer id 1
logd [ 795.469027] ath10k_ahb a800000.wifi: peer-unmap-event: unknown peer id 1
odhcpd ntpd
Sending KILL to remaining processes ...
Performing system upgrade...
[ 800.672550] ubi0: attaching mtd9
[ 805.712145] ubi0: scanning is finished
[ 805.778826] ubi0: attached mtd9 (name "rootfs", size 56 MiB)
[ 805.778865] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 805.783607] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 805.790246] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 805.797123] ubi0: good PEBs: 448, bad PEBs: 0, corrupted PEBs: 0
[ 805.803888] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 805.810126] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1011195579
[ 805.817179] ubi0: available PEBs: 194, total reserved PEBs: 254, PEBs reserved for bad PEB handling: 20
[ 805.826487] ubi0: background thread "ubi_bgt0d" started, PID 2373
UBI device number 0, total 448 LEBs (56885248 bytes, 54.2 MiB), available 194 LEBs (24633344 bytes, 23.5 MiB), LEB size 126976 bytes)
Volume ID 0, size 22 LEBs (2793472 bytes, 2.7 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 2, size 20 LEBs (2539520 bytes, 2.4 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 22982656
Volume ID 3, size 181 LEBs (22982656 bytes, 21.9 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
[ 813.133834] spi_qup 78b5000.spi: unexpected irq 00000000 00000000 00000d40
[ 824.210016] spi_qup 78b5000.spi: unexpected irq 00000000 00000000 00000d40
[ 824.257219] spi_qup 78b5000.spi: unexpected irq 00000000 00000000 00000d40
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B - 261 - PBL, Start
B - 1339 - bootable_media_detect_entry, Start
B - 1679 - bootable_media_detect_success, Start
B - 1693 - elf_loader_entry, Start
B - 5076 - auth_hash_seg_entry, Start
B - 7223 - auth_hash_seg_exit, Start
B - 573341 - elf_segs_hash_verify_entry, Start
B - 688998 - PBL, End
B - 689023 - SBL1, Start
B - 777397 - pm_device_init, Start
D - 6 - pm_device_init, Delta
B - 778910 - boot_flash_init, Start
D - 63410 - boot_flash_init, Delta
B - 846511 - boot_config_data_table_init, Start
D - 3846 - boot_config_data_table_init, Delta - (419 Bytes)
B - 853736 - clock_init, Start
D - 7562 - clock_init, Delta
B - 865819 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:1,Subtype:0
B - 869307 - sbl1_ddr_set_params, Start
B - 874293 - cpr_init, Start
D - 2 - cpr_init, Delta
B - 878785 - Pre_DDR_clock_init, Start
D - 4 - Pre_DDR_clock_init, Delta
D - 13146 - sbl1_ddr_set_params, Delta
B - 892485 - pm_driver_init, Start
D - 2 - pm_driver_init, Delta
B - 962832 - sbl1_wait_for_ddr_training, Start
D - 29 - sbl1_wait_for_ddr_training, Delta
B - 978657 - Image Load, Start
D - 134954 - QSEE Image Loaded, Delta - (262104 Bytes)
B - 1114105 - Image Load, Start
D - 1443 - SEC Image Loaded, Delta - (2048 Bytes)
B - 1124469 - Image Load, Start
D - 213684 - APPSBL Image Loaded, Delta - (436880 Bytes)
B - 1338576 - QSEE Execution, Start
D - 58 - QSEE Execution, Delta
B - 1344753 - SBL1, End
D - 657840 - SBL1, Delta
S - Flash Throughput, 2004 KB/s (701451 Bytes, 349937 us)
S - DDR Frequency, 537 MHz
U-Boot 2012.07-V1.2.0.0 [local,local] (Oct 26 2016 - 02:39:01)
smem ram ptable found: ver: 1 len: 3
DRAM: 256 MiB
machid : 0x8010100
NAND: spi_nand: spi_nand_flash_probe SF NAND ID 0:ef:aa:21
SF: Detected W25N01GV with page size 2 KiB, total 128 MiB
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x200000
130 MiB
MMC:
In: serial
Out: serial
Err: serial
Product ID: WAC510
machid: 8010100
flash_type: 0
Net: MAC0 addr:a0:40:a0:7b:b7:6f
PHY ID1: 0x4d
PHY ID2: 0xd0b2
ipq40xx_ess_sw_init done
eth0
Hit any key to stop autoboot: 0
Saving Environment to NAND...
Erasing Nand...
Erasing at 0xef000 -- 100% complete.
Writing to Nand... done
Boot count=1
Creating 1 MTD partitions on "nand1":
0x000000000000-0x000003800000 : "mtd=0"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd2 to ubi0
UBI: MTD device name: "mtd=0"
UBI: MTD device size: 56 MiB
UBI: number of good PEBs: 448
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 4
UBI: available PEBs: 16
UBI: total number of reserved PEBs: 432
UBI: number of PEBs reserved for bad PEB handling: 4
UBI: max/mean erase counter: 2/0
Read 0 bytes from volume kernel to 84000000
No size specified -> Using max size (2793472)
Config not availabale
bootipq failed!!
resetting ...
Tim