I'm trying to install openwrt on Netgear PGZNG1-1ADNAS.
Original FW + uboot vars
What i did:
What i expected:
i expected factory.bin which would contain kernel + zeroes up to 4mb + squashfs + overlay + ubi metadata which i could write directly onto 0x80000 and which will create loadable 4mb kernel partition + separate split mtd which will contain rootfs + overlay + nand metadata
then i will boot kernel from 0x80000: nand read 0x81000000 0x80000 0x00400000 && bootm 0x81000000 and then kernel will pick up mtd partition + overlay according to
Sorry for flooding. I know noone really interesting in this weird device, but just in case i'm going to leave this for future generations. I'm not ready to polish it enough to contribute to upstream, mostly due to unusual gpio config - i failed to find the right module for gpio and i have very low interest in this.
My goal was to use it as torrent box, but single thread cpu isn't enough for this, it's a way too slow.
reboot to uboot and double check that your layout is same as my mtdparts=ath-nand:256k(u-boot),256k(u-boot-env),2m(uImage),80m(rootfs),2m(uImage2),80m(rootfs_bak),20m(config),71m(storage),384k(dummy),128k(caldata) https://paste2.org/6JvHv3KI
ar7240> setenv console_mode 1
Drop onto stock fw failsafe with f+entrer when will be prompted.
Setup network and drop nand dump elsewhere via network. You'll have to insmod something; ifconfig ; nanddump | telnet or something similar
build the fw and make it available over tftp://192.168.1.10/openwrt-ath79-nand-netgear_pgzng1-1adnas-squashfs-factory.bin
IT IS IMPORTANT TO DOUBLE CHECK YOUR LAYOUT THIS STEP MAY ERASE YOUR BOOTLOADER
From uboot run: tftp 0x81000000 openwrt-ath79-nand-netgear_pgzng1-1adnas-squashfs-factory.bin && nand erase 0x80000 0x0a400000 && nand write $fileaddr 0x80000 $filesize && nand read 0x81000000 0x80000 0x00400000 && bootm 0x81000000
this will erase stock FW and backup FW.
Run to boot new FW by default: setenv bootcmd "nand read 0x81000000 0x80000 0x00400000 && bootm 0x81000000"