151

Odp: zyxell NSA325 V2

Operacja sie udała :-) ale pacjent zmarł:

insmod mtd-rw.ko i_want_a_brick=1

 [   66.651595] mtd-rw: mtd0: setting writeable flag

root@NSA310:/tmp# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete 

root@NSA310Wyspowa:/tmp# nandwrite /dev/mtd0 u-boot.kwb
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 2 (No such file or directory)

root@NSA310Wyspowa:/tmp# nandwrite -p /dev/mtd0 u-boot.kwb
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
root@NSA310Wyspowa:/tmp# 

Jutro podepnę się kabelkiem i dam znać co się wydarzyło

152

Odp: zyxell NSA325 V2

Czemu wgrałeś w formacie kwboota?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

153

Odp: zyxell NSA325 V2

Gdyż @bobafetthotmail napisal:
"use the uboot file called "u-boot.kwb". The other two don't work, I don't know why. "
W tym linku co go przytoczyłem. Ale pobawię się tym i dam znać.

154

Odp: zyxell NSA325 V2

Spróbowałem wszystkie 3 (kwb, bin, img)  i to samo za każdym razem. Przez kwboot poszło ale i tak issue jest dalej :-)
Logi dla zainteresowanych (jako recovery użyłem uboot od 325 bo akurat taki byl pod reka ). Ta sama pamięć USB była włożona w obu przypadkach
Zostawilem juz ten uboot do z nand czyta OK

U-Boot 2019.07 (Sep 16 2019 - 14:01:42 +0000)
ZyXEL NSA310 1-Bay Power Media Server

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
NAND:  128 MiB
MMC:   
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA310> usb reset
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008c80
 ERROR: NOT USB_CONFIG_DESC 60
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80008c80
2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
NSA310> 


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> usb reset
resetting 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
NSA325> fatload usb 0 0x1000000 uboot_nsa310_2019.07.kwb
reading uboot_nsa310_2019.07.kwb
654604 bytes read in 125 ms (5 MiB/s)
NSA325> nand erase 0x00000 0x100000

NAND erase: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 -- 100% complete.
OK
NSA325> nand write 0x1000000 0x00000 0x100000

NAND write: device 0 offset 0x0, size 0x100000
 1048576 bytes written: OK
NSA325> reset
resetting ...


U-Boot 2019.07 (Sep 16 2019 - 14:01:42 +0000)
ZyXEL NSA310 1-Bay Power Media Server

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
NAND:  128 MiB
MMC:   
Loading Environment from NAND... *** Warning - bad CRC, using default environment

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> 
NSA310> 

U-Boot 2019.07 (Sep 16 2019 - 14:01:42 +0000)
ZyXEL NSA310 1-Bay Power Media Server

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
NAND:  128 MiB
MMC:   
Loading Environment from NAND... *** Warning - bad CRC, using default environment

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 
ubi0: attaching mtd3
ubi0: scanning is finished
ubi0: attached mtd3 (name "ubi", size 126 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 1009, bad PEBs: 5, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 9/6, WL threshold: 4096, image sequence number: 603085179
ubi0: available PEBs: 0, total reserved PEBs: 1009, PEBs reserved for bad PEB handling: 15
No size specified -> Using max size (2322432)
Read 2322432 bytes from volume kernel to 00800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-4.14.143
   Created:      2019-09-18   8:51:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2238938 Bytes = 2.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.143 (kofec@E5420Mint) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10494-e05310b9b8)) #0 Mon Sep 16 08:11:59 2019
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA310b

155

Odp: zyxell NSA325 V2

Cześć, wgrałem openwrt-22.03.2-kirkwood-zyxel_nsa325-squashfs-factory, NAS jest pusty co polecicie dograć by fajnie chodził, rozbudować RAID, FTP, www etc. To co NAS powinien mieć?
PS Mam 2 dyski 1Tb wsadzone obecnie nie są widoczne zbudowany rajd 1 na oryginalnym sofcie.

156

Odp: zyxell NSA325 V2

Więc zainstaluj to co chcesz - raid, ftp, www. To jest twoja decyzja co zainstalujesz i czego będziesz używał.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

157

Odp: zyxell NSA325 V2

Instalowałem, chętnie bym usłyszał opinie doświadczonych użytkowników co najlepiej chodzi na tym sprzęcie, już kilka razy odnowa wgrywałem od nowa system, bo próbuje sprawdzić, chyba pozostanie mi powrót do oryginału bo tego nas nie potrafię okiełznać.

158

Odp: zyxell NSA325 V2

No niestety jest więc zabawy ale też prawie nieograniczone możliwości. Ja np.mam domoticz - automatyka domowa. Wireguard połączone 3 x NSA310 w różnych lokalizacjach i synchronizują się ze sobą - rsync. Czasem rozłącza wireguard i tu mam zaprzęgniętego watchcat.

159

Odp: zyxell NSA325 V2

I mam jeszcze repozytorium git'a z interfejsem www

160 (edytowany przez Cezary 2022-12-15 09:15:26)

Odp: zyxell NSA325 V2

Router/nas jak każdy inny. Wymienianie co można zrobić - to są praktycznie nieograniczone możliwości, mały wycinek tego: https://eko.one.pl/?p=openwrt-features

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.