Sure. I need to properly document return to stock instructions anyhow.
- Get a firmware from Netgear's site.
- Extract the tar within and then extract the img within the tar (7zip can handle tar on Windows)
- Rename the img to C0A80064.img (optional, you can pass tftpboot a filename later instead)
- Plug the router into the PC and give your network adapter an address of 192.168.0.10
- Use tftpd or similar to serve the image file's directory.
- From UART interrupt U-Boot and issue the following commands:
tftpboot
imgaddr=$fileaddr
source $imgaddr:script
- You should see the following once it finishes
crc32+ Flashing ubi: [ done ]
- Issue a 'reset'
- If it's not booting into stock firmware, use the boot_count trigger to force a partition swap and see if it boots. If not, repeat the above post-swap.
It wouldn't be terribly difficult (I have it implemented but not in a format that would be accepted to the main project) to make custom builds that incorporate a similar u-boot flasher script so that one could tftp flash openwrt without booting a ram image first. Maybe something I'll consider if there's a real need for it.