Netgear stora MS-2000 + OpenWrt 18.06.4

I find other kernel (openwrt-kirkwood-netgear_stora-initramfs-uImage). His size 4091kb

excellent,

then you should be able to install the larger image via SSH using sysupgrade.

How can I do it? Can you help?

Just I have access to the console until the first reboot.

DL the larger image from gdrive, unpack, and run the sysupgrade command from openwrts' prompt.

hm, network is not start?

root@OpenWrt:/# ifstatus lan
{
"up": false,
"pending": false,
"available": false,
"autostart": true,
"dynamic": false,
"proto": "static",
"device": "br-lan",
"data": {

},
"errors": [
{
"subsystem": "interface",
"code": "NO_DEVICE"
}
]
}

¯_(ツ)_/¯

What's the image you used, for ? MS2000 specifically ?
Is the NIC detected ?

Try putting the big gdrive image on an USB flash drive.

I think it's seagate goflexhome

Well, that might be the reason for failing the hw initialization.

may be... Where find correct image?...

Did you follow the instructions on the wiki exactly?

  1. We boot using kwboot, the u-boot.kwb file is in the archive that I uploaded.
# kwboot -b ./u-boot.kwb /dev/ttyUSB0 -p
  1. Writing u-boot to NAND
 tftp 0x0800000 u-boot.kwb
 nand erase 0x0 100000
 nand write 0x0800000 0x0 0x100000
  1. Downloading by tftp initramfs
tftpboot 0x800000 openwrt-kirkwood-netgear_stora-initramfs-uImage
bootm 0x800000 - -
  1. Boot into openwrt

  2. In openwrt, copy the main firmware file (openwrt-kirkwood-netgear_stora-squashfs-sysupgrade.bin) via scp to the /tmp folder and make a sysupgrade

sysupgrade -v /tmp/openwrt-kirkwood-netgear_stora-squashfs-sysupgrade.bin

Now, after rebooting, openwrt should always load correctly

Yes, all correctly. I boot in openwrt, but can't send bin file, network intrface don't up. But with your openwrt-kirkwood-netgear_stora-initramfs-uImage I have trouble - Image too large. I try with seagate image.

Well, it's not supported .... so..... nowhere ?

What you can do, is to transfer files via the serial port.
Using https://github.com/shane-kerr/AWK-base64decode
It's not ideal for larger files, but you could for instance
transfer the lrzsz then use that for transferring bigger
files.

There are quicker ways, depending on what your initramfs image is capable of,
or if you can install packages (by transferring them over serial port),

If I were in your shoes, I'd install regular linux (I think it's Debian) on the Stora instead.
It should be well documented over at Doozan, or using the link I posted earlier.

I see from the boot log, the network interface is being detected, the drivers are being loaded.

Show the output:

ifconfig

Also show the output of the:

cat /etc/config/network

Do you have a large file error at this stage?

tftpboot 0x800000 openwrt-kirkwood-netgear_stora-initramfs-uImage

Yes.

root@OpenWrt:/# ifconfig
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:1920 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1920 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:130560 (127.5 KiB)  TX bytes:130560 (127.5 KiB)

root@OpenWrt:/# cat /etc/config/network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fd0e:f9e3:d455::/48'

config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'dhcp'

config interface 'lan6'
option ifname 'br-lan'
option proto 'dhcpv6'

And I try install your bin file from flash disk. But system not work. Log:

root@OpenWrt:/# mount /dev/sda1 /mnt
[20122.620766] EXT4-fs (sda1): recovery complete
[20122.653886] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
root@OpenWrt:/# ls /mnt
lost+found
openwrt-kirkwood-netgear_stora-squashfs-sysupgrade.bin
root@OpenWrt:/# sysupgrade -v /mnt/openwrt-kirkwood-netgear_stora-squashfs-sysupgrade.bin
Image not in /tmp, copying...
Image metadata not found
Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware
Image check 'fwtool_check_image' failed.
root@OpenWrt:/# 
root@OpenWrt:/# sysupgrade -F /mnt/openwrt-kirkwood-netgear_stora-squashfs-sysup
Image not in /tmp, copying...
Image metadata not found
Image check 'fwtool_check_image' failed but --force given - will update anyway!
Cannot save config while running from ramdisk.
Commencing upgrade. All shell sessions will be closed now.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... ubusd logd rpcd dnsmasq netifd odhcpd uhttpd ntpd 
Sending KILL to remaining processes ... 
Performing system upgrade...
tar: short read
[20315.442967] ubi0: attaching mtd1
[20315.452527] ubi0 error: 0xc03d9f2c: bad VID header offset 2048, expected 512
[20315.459640] ubi0 error: 0xc03d9f78: bad EC header
[20315.464360] Erase counter header dump:
[20315.468135] magic          0x55424923
[20315.471903] version        1
[20315.474877] ec             1
[20315.477865] vid_hdr_offset 2048
[20315.481102] data_offset    4096
[20315.484337] image_seq      0
[20315.487326] hdr_crc        0x7f585319
[20315.491086] erase counter header hexdump:
[20315.495132] CPU: 0 PID: 2717 Comm: ubiattach Not tainted 4.14.54 #0
[20315.501437] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[20315.507746] Backtrace: 
[20315.510211] Function entered at [<c0105720>] from [<c01059f8>]
[20315.516091]  r7:00000000 r6:00000001 r5:c6833000 r4:c6f11a00
[20315.521773] Function entered at [<c01059e0>] from [<c0571280>]
[20315.527649] Function entered at [<c0571260>] from [<c03d9f84>]
[20315.533511] Function entered at [<c03d9e34>] from [<c03dac74>]
[20315.539393]  r10:55424923 r9:00000040 r8:00000030 r7:c6833000 r6:55424923 r5:00000000
[20315.547270]  r4:c6f11a00 r3:00000019
[20315.550863] Function entered at [<c03daa90>] from [<c03df94c>]
[20315.556760]  r10:c6833000 r9:c6f11200 r8:00000000 r7:00000030 r6:c6f58d40 r5:c7a6ea80
[20315.564623]  r4:c6f11a00
[20315.567189] Function entered at [<c03df7b8>] from [<c03d4580>]
[20315.573055]  r10:c6833040 r9:00000240 r8:c663d800 r7:00000000 r6:c663d800 r5:c6833000
[20315.580938]  r4:66666667
[20315.583486] Function entered at [<c03d3f58>] from [<c03d5bfc>]
[20315.589368]  r10:00000000 r9:c6652000 r8:c663d800 r7:ffffe000 r6:beca7cbc r5:00000051
[20315.597243]  r4:c0d03008
[20315.599783] Function entered at [<c03d5af0>] from [<c01c5c00>]
[20315.605664]  r8:beca7cbc r7:00000003 r6:c65b40a0 r5:c6632028 r4:beca7cbc
[20315.612393] Function entered at [<c01c5404>] from [<c01c5cd0>]
[20315.618275]  r10:00000000 r9:c6652000 r8:beca7cbc r7:40186f40 r6:00000003 r5:c65b40a0
[20315.626149]  r4:c65b40a0
[20315.628690] Function entered at [<c01c5c94>] from [<c0102420>]
[20315.634557]  r9:c6652000 r8:c0102604 r7:00000036 r6:00012954 r5:beca7cbc r4:00000003
[20315.642347] ubi0 error: 0xc03dac8c: validation failed for PEB 48
[20315.648418] ubi0 error: 0xc03d459c: failed to attach mtd1, error -22
ubiattach: error!: cannot attach mtd1
           error 22 (Invalid argument)
ubiformat: mtd1 (nand), size 267386880 bytes (255.0 MiB), 2040 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes

libscan: scanning eraseblock 0 --  0 % complete  
libscan: scanning eraseblock 1 --  0 % complete  
libscan: scanning eraseblock 2 --  0 % complete  
libscan: scanning eraseblock 3 --  0 % complete  

//cutting there all complete

libscan: scanning eraseblock 2038 -- 99 % complete  
libscan: scanning eraseblock 2039 -- 100 % complete  
ubiformat: 1987 eraseblocks have valid erase counter, mean value is 0
ubiformat: 30 eraseblocks are supposedly empty
ubiformat: 5 bad eraseblocks found, numbers: 254, 388, 740, 1373, 1916
ubiformat: warning!: 18 of 2035 eraseblocks contain non-UBI data
ubiformat: warning!: VID header and data offsets on flash are 2048 and 4096, which is different to requested offsets 512 and 2048
ubiformat: use new offsets 512 and 2048? yes
ubiformat: use offsets 512 and 2048

ubiformat: formatting eraseblock 0 --  0 % complete  
ubiformat: formatting eraseblock 1 --  0 % complete  

//cutting there all complete

ubiformat: formatting eraseblock 2024 -- 99 % complete  
ubiformat: formatting eraseblock 2025 [20336.231380] ubi0: attaching mtd1
-- 99 % complete  
ubiformat: formatting eraseblock 2026 -- 99 % complete  
ubiformat: formatting eraseblock 2027 -- 99 % complete  
ubiformat: formatting eraseblock 2028 -- 99 % complete  
ubiformat: formatting eraseblock 2029 -- 99 % complete  
ubiformat: formatting eraseblock 2030 -- 99 % complete  
ubiformat: formatting eraseblock 2031 -- 99 % complete  
ubiformat: formatting eraseblock 2032 -- 99 % complete  
ubiformat: formatting eraseblock 2033 -- 99 % complete  
ubiformat: formatting eraseblock 2034 -- 99 % complete  
ubiformat: formatting eraseblock 2035 -- 99 % complete  
ubiformat: formatting eraseblock 2036 -- 99 % complete  
ubiformat: formatting eraseblock 2037 -- 99 % complete  
ubiformat: formatting eraseblock 2038 -- 99 % complete  
ubiformat: formatting eraseblock 2039 -- 100 % complete  
[20336.611648] ubi0: scanning is finished
[20336.628917] ubi0: attached mtd1 (name "ubi", size 255 MiB)
[20336.634442] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[20336.641385] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[20336.648137] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[20336.654970] ubi0: good PEBs: 2035, bad PEBs: 5, corrupted PEBs: 0
[20336.661104] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[20336.668376] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 74571856
[20336.677394] ubi0: available PEBs: 1996, total reserved PEBs: 39, PEBs reserved for bad PEB handling: 35
[20336.686859] ubi0: background thread "ubi_bgt0d" started, PID 2727
UBI device number 0, total 2035 LEBs (262563840 bytes, 250.4 MiB), available 1996 LEBs (257531904 bytes, 245.6 MiB), LEB size 129024 bytes (126.0 KiB)
ubimkvol: error!: bad volume size: "0"
cannot create rootfs volume
ubiupdatevol: error!: file size must be specified if input is stdin
tar: short read
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[20337.228472] reboot: Restarting system


U-Boot 2020.04 (Jul 10 2020 - 13:03:49 +0000)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
IDE:   ide_preinit failed
Hit any key to stop autoboot:  2  1  0 
mtd: partition "ubi" extends beyond the end of device "nand0" -- size truncated to 0xfe00000
ubi0: attaching mtd3
ubi0: scanning is finished
ubi0 error: ubi_read_volume_table: the layout volume was not found
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
UBI error: cannot attach mtd3
UBI error: cannot initialize UBI, error -22
UBI init error 22
Please check, if the correct MTD partition is used (size big enough?)
UBIFS error (pid: 1): cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs' errno=-19!
ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
Error, no UBI device selected!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora> 

P.S Sorry, are you from Russia?

Thank you for help! I still want to install openwrt. For the system to boot from nand. However, Energoblock do it! :slight_smile:

So! I installed openwrt on Stora. In folder 21.02 full functionality firmware on last kernel 5.4.98. With LUCI, Samba4, Disk manager, Raid.

Install instruction

  1. Write kwb
  2. Write uImage
  3. Write sysupgrade in archive (not folder 21.02)
  4. If you need full firmware install sysupgrade of folder 21.02 in LUCI

https://drive.google.com/file/d/1MtS6CsYybUjOLGDRVD-uiYaD29LhzXou/view?usp=sharing

P.S Sorry for my english :slight_smile:

1 Like

You are amazing! While I was on vacation, you handled everything.

P.S. Yes, I'm from Russia :slight_smile:

1 Like

So, you can read Here :slight_smile:

Hi All,

I'm a novice so thank you for your hard work here.(@Nevskiy ) I've installed Nevskiy's images on my Stora MS-2110 over the weekend and it seems to be working. This is fantastic because the Netgear interface is now dead courtesy Flash EOL.

Just to understand better, I can not install packages from the software once I upgrade to the full image (21.02) but i can when I use the initial sysupgrade. I am unable to download the current package list with 21.02, because i get some sort of error related to incorrect certificate? I dont know where to start trouble shooting this,but I assume it's somewhere in the package download script?

I wish to download the Disk-Idle spin down package so my cheap HDD's turn off when the NAS is inactive.

If I try to install packages from the initial image, many of the packages are incompatible with the kernel and require an upgrade and I can not find the disk man anywhere?