Hi all,
I have tried to restore Zyxel NSA320 stock uboot and env using files and instructions from here https://archlinuxarm.org/forum/viewtopic.php?f=23&t=6532#p36346 but while writing to and I always get the following error:
$this->bbcode_second_pass_code('', '
nandwrite -oa /dev/mtd0 /mnt/nsa320_uboot.ndi
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
Writing data to block 7 at offset 0xe0000
libmtd: error!: MEMWRITE ioctl failed for eraseblock 7 (mtd0)
error 22 (Invalid argument)
nandwrite: error!: /dev/mtd0: MTD write failure
error 22 (Invalid argument)
nandwrite: error!: Data was only partially written due to error
error 22 (Invalid argument)
')
I am using nandwrite from a Debian Buster installation: does anyone have any idea what I am doing wrong?
Thanx for your help.
Paolo