Need help in restoring u-boot for Netgear Stora MS2110 June 20, 2020 09:53AM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 20, 2020 04:22PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 21, 2020 05:29AM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 21, 2020 03:56PM |
Admin Registered: 13 years ago Posts: 18,853 |
Quote
Trying to load image from USB flash drive using ext2 FS partition 1
....
.................................................................................................
1048576 bytes read
## Error: environment overflow, "filesize" deleted
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 21, 2020 04:36PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 21, 2020 05:08PM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 21, 2020 05:30PM |
Admin Registered: 13 years ago Posts: 18,853 |
Quote
Chainload u-boot using mtd0 backup.
1. Use a USB thumb drive formatted as Ext3. Put the mtd0 file on the root folder:
/u-boot_mtd0
2. Attach the USB drive to the box. Power up, interrupt serial console, and
usb reset ext2load usb 0:1 0x800000 /u-boot_mtd0 go 0x800200
And see if it starts OK. Then try
ver printenv
Please post the entire serial console log here.
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 22, 2020 03:50PM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 22, 2020 05:41PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 23, 2020 04:01PM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 23, 2020 04:37PM |
Admin Registered: 13 years ago Posts: 18,853 |
Quote
Funny thing is that my real name is Peter. Peter and Paul have u-boot problems :)
Quote
Again thank you for your instructions and time dedicated to us.
Quote
3) Is it worth it to try to recover the Stora OS? Because a few days ago I read somewhere that in order to get Stora to work it requires some activation on the Netgear servers and the servers dont work anymore. So basically we are stuck with a semi-bricked NAS. What do you recommend?
Quote
Updated 25 Aug 2019:
Basic Debian buster Kirkwood rootfs for most Kirwood plugs:
- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
cd8ad170aa1a9fdc2a0a1c43ab1c0721
sha256:
8ccbbced367b4c2bf3728262e882f8232aff0fecd1c0c767219a0cab49a0b9bf
And remember to check the hash of what you download, as always.
Installation:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
1. Format a new USB drive with a single Ext3 partition, and label it rootfs.
2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1
tar -xjf Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
3. Adjust fstab (optional).
Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.
LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box.
printenv
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 23, 2020 04:53PM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 23, 2020 07:23PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 June 23, 2020 09:31PM |
Registered: 4 years ago Posts: 46 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 July 17, 2020 12:41PM |
Registered: 4 years ago Posts: 11 |
>Quote
Updated 25 Aug 2019:
>
> Basic Debian buster Kirkwood rootfs for most
> Kirwood plugs:
>
> - tarball size: 209M
> - install size: 536M
> - The init system used in this rootfs is sysvinit
> . To boot with systemd, see note 2 below.
> - Installed packages: nano, avahi, ntp,
> busybox-syslogd (log to RAM), htop,
> isc-dhcp-client, dialog, bzip2, nfs server/client,
> iperf, ethtool, sysvinit-core, sysvinit,
> sysvinit-utils, u-boot-tools, and mtd-utils.
> - see LED controls in /etc/rc.local, and
> /etc/init.d/halt
> - see some useful aliases in /root/.profile
> - root password: root
>
> Download at Dropbox:
>
> Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
>
> md5:
> cd8ad170aa1a9fdc2a0a1c43ab1c0721
> sha256:
> 8ccbbced367b4c2bf3728262e882f8232aff0fecd1c0c767219a0cab49a0b9bf
>
>
>
> And remember to check the hash of what you
> download, as always.
>
> Installation:
>
> Installation can be done on any Linux box, with a
> fresh USB drive (SD card or HDD would work fine
> too).
>
> Note: all steps below must be done while logging
> in as root user (not sudo). If you are not the
> root user then don't continue, because the rootfs
> will not work.
>
> 1. Format a new USB drive with a single Ext3
> partition, and label it rootfs.
>
> 2. Mount the drive on a Linux box. cd to top level
> directory and extract it. It is assuming the USB
> drive is mounted at /media/sdb1
> cd /media/sdb1
> tar -xjf
> Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
>
> 3. Adjust fstab (optional).
>
> Edit /media/sdb1/etc/fstab entry for root device
> to match the rootfstype of your rootfstype if you
> use Ext4 or Ext2. However, you can keep it as is
> without problem in booting since the kernel will
> figure out which file system the rootfs was
> formatted.
>
> LABEL=rootfs / ext3
> noatime,errors=remount-ro 0 1
>
> 4. Create uImage with embedded
> DTB for booting with older u-boots (2012 or
> earlier). Do not do this step if you
> have installed the latest U-Boot for Kirkwood (or
> are installing this u-boot at the same time).
>
> Please replace kirkwood-goflexnet.dtb below with
> the correct DTB name for your box (see the folder
> /media/sdb1/boot/dts for the exact spelling of
> your Kirkwood box name).
>
> Generate the uImage with DTB embedded inside:
> cd /media/sdb1/boot
> cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
> cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
> mv uImage uImage.orig
> mkimage -A arm -O linux -T kernel -C none -a
> 0x00008000 -e 0x00008000 -n
> Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
> sync
>
> If your Linux box does not have mkimage, then
> install it
>
> apt-get install u-boot-tools
>
> 5. Done. Take this USB rootfs to your plug and
> cold start. After booted into Debian, see Note1
> and Note2 below. It is very important that you do
> Note1 steps to secure your box.
> printenv >>
Re: Need help in restoring u-boot for Netgear Stora MS2110 July 17, 2020 04:02PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 July 18, 2020 05:44PM |
Registered: 4 years ago Posts: 11 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 July 19, 2020 04:17PM |
Admin Registered: 13 years ago Posts: 18,853 |
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset' boot
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 18, 2020 04:13PM |
Registered: 7 years ago Posts: 181 |
Quote
Is it worth it to try to recover the Stora OS? Because a few days ago I read somewhere that in order to get Stora to work it requires some activation on the Netgear servers and the servers dont work anymore. So basically we are stuck with a semi-bricked NAS. What do you recommend?
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 18, 2020 04:52PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 19, 2020 02:51PM |
Registered: 7 years ago Posts: 181 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 19, 2020 04:40PM |
Admin Registered: 13 years ago Posts: 18,853 |
Quote
https://forum.doozan.com/read.php?2,12096
Updated 23 Aug 2020:
Kernel linux-5.8.3-kirkwood-tld-1 package has been uploaded. The following features were added/updated:
- BFQ IO Scheduler is now the default in the kernel. This is an improvement in making the system more responsive when under memory stress (Note: use a large swap space to avoid OOM killer).
- Added ISCSI Target capability (as loadable module).
- Updated Zyxel NSA320S capabilty to bring up 3.5" HDD in 2nd slot.
Latest Linux kernel 5.x general release information can be found at:
LinuxChanges log
Download at Dropbox:
linux-5.8.3-kirkwood-tld-1-bodhi.tar.bz2
md5:
28bdcebbb9470474f7803187abb1edb9
sha256:
e965824719223da17d7997efc3d43fc06d8a5a0abb0a9ba74d75658bc11909a9
This tarball contains 6 files:
linux-image-5.8.3-kirkwood-tld-1_1.0_armel.deb
linux-headers-5.8.3-kirkwood-tld-1_1.0_armel.deb
config-5.8.3-kirkwood-tld-1
zImage-5.8.3-kirkwood-tld-1
linux-dtb-5.8.3-kirkwood-tld-1.tar
linux-5.8.3-kirkwood-tld-1.patch
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 20, 2020 03:55AM |
Registered: 7 years ago Posts: 181 |
cd /tmp wget https://gitlab.denx.de/u-boot/u-boot/-/archive/v2020.07/u-boot-v2020.07.tar.bz2 md5sum u-boot-v2020.07.tar.bz2 u-boot-v2020.07-netgear-ms2110.patch bc871c34db5dd02a3890930c98877407 u-boot-v2020.07.tar.bz2 1e6ee817c83cbce5f166fcae0bfe57a6 u-boot-v2020.07-netgear-ms2110.patch tar xf u-boot-v2020.07.tar.bz2 cd u-boot-v2020.07 patch -p 1 < ../u-boot-v2020.07-netgear-ms2110.patch make KBUILD_OUTPUT=../build distclean make KBUILD_OUTPUT=../build netgear_ms2110_defconfig make KBUILD_OUTPUT=../build oldconfig time make -j $(nproc) CROSS_COMPILE=arm-linux-gnueabihf- KCFLAGS=-Werror KBUILD_OUTPUT=../build all real 0m18,728s user 0m56,537s sys 0m6,331s $ cd ../build && ls -alF u-boot* -rwxrwxr-x 1 tme tme 4720412 sep. 20 10:11 u-boot* -rw-rw-r-- 1 tme tme 570251 sep. 20 10:11 u-boot.bin -rw-rw-r-- 1 tme tme 11633 sep. 20 10:10 u-boot.cfg -rw-rw-r-- 1 tme tme 5200 sep. 20 10:11 u-boot.cfg.configs -rw-rw-r-- 1 tme tme 11499 sep. 20 10:11 u-boot.dtb -rw-rw-r-- 1 tme tme 570251 sep. 20 10:11 u-boot-dtb.bin -rw-rw-r-- 1 tme tme 570768 sep. 20 10:11 u-boot.kwb -rw-rw-r-- 1 tme tme 1723 sep. 20 10:10 u-boot.lds -rw-rw-r-- 1 tme tme 558890 sep. 20 10:11 u-boot.map -rwxrwxr-x 1 tme tme 558752 sep. 20 10:11 u-boot-nodtb.bin* -rwxrwxr-x 1 tme tme 1606530 sep. 20 10:11 u-boot.srec* -rw-rw-r-- 1 tme tme 140638 sep. 20 10:11 u-boot.sym $
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 23, 2020 01:14PM |
Registered: 7 years ago Posts: 181 |
U-Boot 1.1.4 (Jul 31 2009 - 10:33:00) Marvell version: 3.4.14but U-Boot on this box was upgraded some years ago with your then current version
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 -0700) Netgear-MS2110
md5sum ~/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar 1b09317e896ad928104a1edce459a9f5 /home/tme/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar tar xvf ~/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb Sending boot message. Please reboot the target...|^C kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb -p Sending boot message. Please reboot the target.../^Cbut the expected output 'Sending boot image...' never appeared. I don't think it's an issue with the USB-to-serial adapter since 'picocom' worked fine both before and after I tried 'kwboot, and I did remember to exit 'pikocom' with Ctrl-A Ctrl-X before trying.
Quote
man kwboot
conforms to Marvell's BootROM firmware image format (kwbimage), created using a tool such as mkimage.
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 23, 2020 08:26PM |
Admin Registered: 13 years ago Posts: 18,853 |
> U-Boot 1.1.4 (Jul 31 2009 - 10:33:00) Marvell > version: 3.4.14 >> but U-Boot on this box was upgraded some years ago
> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 > -0700) > Netgear-MS2110 >>
> md5sum > ~/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar > 1b09317e896ad928104a1edce459a9f5 > /home/tme/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar > > tar xvf > ~/Downloads/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar > > uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb > > kwboot -t -B 115200 /dev/ttyUSB0 -b > uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb > Sending boot message. Please reboot the > target...|^C > > kwboot -t -B 115200 /dev/ttyUSB0 -b > uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb -p > Sending boot message. Please reboot the > target.../^C >> but the expected output 'Sending boot image...'
Re: Need help in restoring u-boot for Netgear Stora MS2110 September 24, 2020 03:43AM |
Registered: 7 years ago Posts: 181 |
Quote
bodhi
U-boot on NAND does not have anything to do with UART booting. UART booting with kwboot works even the NAND is wiped out.
Quote
Most Stora boxes have UART booting capabilty, some don't (different BooROM version).
Quote
myself
Q2: What are the input and options to 'mkimage' to generate such a kwm-file?
Re: Need help in restoring u-boot for Netgear Stora MS2110 March 20, 2021 06:37PM |
Registered: 3 years ago Posts: 84 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 March 20, 2021 06:45PM |
Admin Registered: 13 years ago Posts: 18,853 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 March 20, 2021 06:51PM |
Registered: 3 years ago Posts: 84 |
Re: Need help in restoring u-boot for Netgear Stora MS2110 March 20, 2021 06:54PM |
Admin Registered: 13 years ago Posts: 18,853 |