Udało się przywrócić u-boota, i postępuje zgodnie z instrukcją z
https://openwrt.org/toh/zyxel/nsa310bNSA310> usb reset (Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
NSA310> fatload usb 0 0x1000000 u-boot.kwb reading u-boot.kwb
621348 bytes read in 51 ms (11.6 MiB/s)
NSA310> nand erase.chip
NAND erase.chip: device 0 whole chip
Skipping bad block at 0x00040000
Skipping bad block at 0x00060000
Skipping bad block at 0x02860000
Erasing at 0x7fe0000 -- 100% complete.
OK
NSA310> nand write 0x1000000 0x00000 0x100000
NAND write: device 0 offset 0x0, size 0x100000
Skip bad block 0x00040000
Skip bad block 0x00060000
1048576 bytes written: OK
NSA310> reset
resetting ...
U-Boot 2018.03 (Jun 27 2018 - 06:41:13 +0000)
ZyXEL NSA310 1-Bay Power Media Server
SoC: Kirkwood 88F6281_A1
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
MMC:
Loading Environment from NAND... *** Warning - bad CRC, using default environmen t
Failed (-5)
In: serial
Out: serial
Err: serial
Net: egiga0
Error: egiga0 address not set.
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 0
NSA310> setenv mtdparts 'mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env) ,0x7ec0000(ubi)'
NSA310> setenv bootcmd 'run setenv bootargs; ubi part ubi; ubi read 0x800000 ker nel; bootm 0x800000'
NSA310> saveenv
Saving Environment to NAND... Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK
OK
NSA310> reset
resetting ...
Na tym kroku nie dochodzi do resetu i wisi wszystko.
Jak go sam zresetuje to zero odpowiedzi i od nowa wgrywanie u-boota.
Co robie źle?
EDIT:
Ok, trzeba było zrobić jeszcze
nand scrub 0x0 0x80000
I poszło. Openwrt wgrane

EDIT2:
Liczyłem, że na OpenWrt złapie adres jak należy widac sie przeliczyłem z tą zmianą
[ 12.510646] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
BusyBox v1.28.3 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 18.06.1, r7258-5eb055306f
-----------------------------------------------------
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 50:67:F0:69:2A:CC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 50:67:F0:69:2A:CC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1088 (1.0 KiB) TX bytes:1088 (1.0 KiB)