Hello
I have a Netgear Stora MS2000 I've recycled from work.
I've tried to install Debian on it using the OpenStora installation articles, before finding this forum, where I tried booting Linux via TFTP but without luck, which in return bricked the device from the stock OS.
Long story short, I have serial access to the box. I've made a mistake by using the resetenv command on the stock uboot (without knowledge that the command is bugged on the stock uboot), and now I have a stock uboot without any env values, and I don't have a backup of the env values, nor can I find a flashware.img file to restore the values. I'd be happy to try that out, if I could source the file.
I'm able to kwboot using uboot.2017.07-tld-1.netgear_ms2110.bodhi.kwb, where I'm able to get some luck with trying to boot into Linux, but I'm having a very hard time getting the box to detect USB devices consistently in general.
I've tried creating a Debian rootfs on the following devices using an ext4 filesystem, created using mkfs.ext4:
Most of the time, I'm stuck after initializing autoboot or running usb reset, like this prompt:
I'm having the most luck booting from the flash drives without a drive connected to the NAS, interrupting autoboot, plugging the USB in, executing usb reset, and after succesfully detecting the drive, changing the dtb file to include the file extention and running the boot command.
All the drives are detected on a different Linux machine without issues.
I've tried creating and loading from ext2 and ext3 filesystems instead of ext4.
I've tried reconnecting the USB header cable from the daughterboard.
All in all, I can't seem to get the NAS to detect the USB drives consistently.
I've never been able to boot into a Debian prompt. There has always been a kernel panic, a freeze/crash when scanning the drive, or an EHCI timeout with a "bad device usb 0" error, and most of the time, the NAS restarts and boots into stock uboot.
I've only had luck booting the Linux kernel twice, but it booted into initramfs first, and hung on scanning /dev/sda the second time
Ideally, I want the 60 GB external USB-C SSD is going to be the boot drive for this system.
I hope anyone can chime in with any inputs on how to fix this as I'm out of ideas. Any help would be greatly appreciated.
Thanks!
I have a Netgear Stora MS2000 I've recycled from work.
I've tried to install Debian on it using the OpenStora installation articles, before finding this forum, where I tried booting Linux via TFTP but without luck, which in return bricked the device from the stock OS.
Long story short, I have serial access to the box. I've made a mistake by using the resetenv command on the stock uboot (without knowledge that the command is bugged on the stock uboot), and now I have a stock uboot without any env values, and I don't have a backup of the env values, nor can I find a flashware.img file to restore the values. I'd be happy to try that out, if I could source the file.
I'm able to kwboot using uboot.2017.07-tld-1.netgear_ms2110.bodhi.kwb, where I'm able to get some luck with trying to boot into Linux, but I'm having a very hard time getting the box to detect USB devices consistently in general.
I've tried creating a Debian rootfs on the following devices using an ext4 filesystem, created using mkfs.ext4:
- 32 GB USB 3.0 flash drive
- 4 GB USB 2.0 flash drive
- 120 GB SATA SSD via SATA to USB adapter
- 60 GB External USB-C SSD using a USB type C to type A adapter
Most of the time, I'm stuck after initializing autoboot or running usb reset, like this prompt:
simon@X220:~/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi$ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb -p
kwboot version 2024.01
Detected kwbimage v0 with NAND boot signature
Patching image boot signature to UART
Sending boot message. Please reboot the target...-
Sending boot image header (512 bytes)...
25 % [.... ]
Done
Sending boot image data (500964 bytes)...
0 % [......................................................................]
1 % [......................................................................]
3 % [......................................................................]
5 % [......................................................................]
7 % [......................................................................]
8 % [......................................................................]
10 % [......................................................................]
12 % [......................................................................]
14 % [......................................................................]
16 % [......................................................................]
17 % [......................................................................]
19 % [......................................................................]
21 % [......................................................................]
23 % [......................................................................]
25 % [......................................................................]
26 % [......................................................................]
28 % [......................................................................]
30 % [......................................................................]
32 % [......................................................................]
34 % [......................................................................]
35 % [......................................................................]
37 % [......................................................................]
39 % [......................................................................]
41 % [......................................................................]
42 % [......................................................................]
44 % [......................................................................]
46 % [......................................................................]
48 % [......................................................................]
50 % [......................................................................]
51 % [......................................................................]
53 % [......................................................................]
55 % [......................................................................]
57 % [......................................................................]
59 % [......................................................................]
60 % [......................................................................]
62 % [......................................................................]
64 % [......................................................................]
66 % [......................................................................]
67 % [......................................................................]
69 % [......................................................................]
71 % [......................................................................]
73 % [......................................................................]
75 % [......................................................................]
76 % [......................................................................]
78 % [......................................................................]
80 % [......................................................................]
82 % [......................................................................]
84 % [......................................................................]
85 % [......................................................................]
87 % [......................................................................]
89 % [......................................................................]
91 % [......................................................................]
93 % [......................................................................]
94 % [......................................................................]
96 % [......................................................................]
98 % [................................................................ ]
Done
Finishing transfer
[Type Ctrl-\ + c to quit]
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
Netgear Stora> printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
usb_ready_retry=15
Environment size: 2905/131068 bytes
Netgear Stora> setenv dtb_file '/boot/dts/kirkwood-netgear_stora_ms2000.dtb'
Netgear Stora> printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
usb_ready_retry=15
Environment size: 2909/131068 bytes
Netgear Stora> boot
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
I'm having the most luck booting from the flash drives without a drive connected to the NAS, interrupting autoboot, plugging the USB in, executing usb reset, and after succesfully detecting the drive, changing the dtb file to include the file extention and running the boot command.
All the drives are detected on a different Linux machine without issues.
I've tried creating and loading from ext2 and ext3 filesystems instead of ext4.
I've tried reconnecting the USB header cable from the daughterboard.
All in all, I can't seem to get the NAS to detect the USB drives consistently.
I've never been able to boot into a Debian prompt. There has always been a kernel panic, a freeze/crash when scanning the drive, or an EHCI timeout with a "bad device usb 0" error, and most of the time, the NAS restarts and boots into stock uboot.
I've only had luck booting the Linux kernel twice, but it booted into initramfs first, and hung on scanning /dev/sda the second time
Ideally, I want the 60 GB external USB-C SSD is going to be the boot drive for this system.
I hope anyone can chime in with any inputs on how to fix this as I'm out of ideas. Any help would be greatly appreciated.
Thanks!