Welcome! Log In Create A New Profile

Advanced

STORA MS 2000 Issues after resetenv

Posted by colibri 
STORA MS 2000 Issues after resetenv
January 09, 2025 08:50AM
Hello everybody.
I follow the guide here, but i've some problems with tfpt.
So i did resetenv. Now the machine doesnt' work. If i do printenv the result are a grey squares.

Are there any solution?
Thanks
Re: STORA MS 2000 Issues after resetenv
January 09, 2025 01:50PM
colibri,

Some of the Stora models has this issue with envs. When you do resetenv and saveenv, you have written the internal envs to flash. But if you only did resetenv without saving it, then it should have not written anything to flash.

Have you recylced the power or reset u-boot? I'm not suggesting you doing these steps, just want to know exactly what the situation is.

=======

We install Debian and u-boot for this box manually here. Use the 2nd link in the Wiki: Boot Kirkwood rootfs with stock u-boot[

Wiki thread

Quote

Kirkwood plugs

Basic steps to install Debian and new u-boot on Kirkwood boxes
Boot Kirkwood rootfs with stock u-boot

After you can run Debian on USB rootfs, consider installing new u-boot (Basic steps to install Debian and new u-boot on Kirkwood boxes).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: STORA MS 2000 Issues after resetenv
January 10, 2025 02:40AM
Hi Bodhi
i typed RESENTEV and later RESET.
After writing RESENTEV i didn't typed SAVEENV.

The stora give me back this screen:
1 screen
2 screen

Will I proceed with 2nd link in the Wiki: Boot Kirkwood rootfs with stock u-boot?


Thank you with all my heart for the answer, I was very worried that I had damaged the system
Re: STORA MS 2000 Issues after resetenv
January 10, 2025 02:05PM
colibri,

This is a known problem with some of the Stora models (it seems there are variations of this Stora, and for some, u-boot is buggy).

> Will I proceed with 2nd link in the Wiki: Boot
> Kirkwood rootfs with stock u-boot?

Yes, don't do any saveenv, just enter the envs to boot into USB Debian rootfs.

To prepare the rootfs Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2, you will need a Linux system and can become root user. Using Linux VM is fine.

Once you booted into Debian, the envs can be fixed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: STORA MS 2000 Issues after resetenv
January 12, 2025 04:39AM
.



Edited 1 time(s). Last edit at 01/12/2025 04:52AM by colibri.
Re: STORA MS 2000 Issues after resetenv
January 13, 2025 09:18AM
Hi body
i follow your steps but i had problems.

https://forum.doozan.com/read.php?2,12096 - Updated 01 Nov 2023:

In sudo mode (root user) i had format a new USB drive with a single Ext3 partition, and label it rootfs.
mkfs.ext3 /dev/sdb1
e2label /dev/sdb1 rootfs

i copyed Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from my download folder on /media/colibri/rootfs/
cp Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 /media/colibri/rootfs/
now i unziped the file Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2
cd /media/colibri/rootfs/
tar xjf Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2
i deleted the file Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from usb drive
rm Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2

Later i followed your steps. kirkwood-goflexnet was wright.
cd /media/sdb1/boot
cp -a zImage-6.5.7-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-6.5.7-kirkwood-tld-1 -d zImage.fdt  uImage
sync

I put the pen drive usb on stora's usb port.

i typed:
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 reset; run usb_bootcmd; usb stop; reset'

the answer was:
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
## Error: environment overflow, "load_uimage" deleted


Same errors on the other commands.

What went wrong?



Edited 1 time(s). Last edit at 01/13/2025 09:21AM by colibri.
Re: STORA MS 2000 Issues after resetenv
January 13, 2025 02:21PM
colibri,

> In sudo mode (root user)

Make sure you become root first, like:
sudo -

> ## Error: environment overflow, "load_uimage" deleted
> What went wrong?

This stock u-boot has a bug that overflow the envs area.

So let try the kwboot approach.

Download the new u-boot for this box from the release thread

https://forum.doozan.com/read.php?3,12381

Quote

https://www.dropbox.com/s/2hrhrwxn9v0892u/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar
md5
1b09317e896ad928104a1edce459a9f5
sha256
8f5e8b5b33e3979b05698a09a92f99cd41ed04121993058f9b2469122fd280a7

Use the image uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb in the tarball to run kwboot. See the following example:

https://forum.doozan.com/read.php?3,51739,51919#msg-51919

And kwboot must be run from another Linux system. So basically the same Linux host that you run serial console. This Linux host should have the kwboot command.

Once kwboot has loaded the u-boot image to the Stora and run it, you can just let it boot automatically into the USB rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: STORA MS 2000 Issues after resetenv
January 14, 2025 03:17AM
Hi Bodhi

i downloaded https://www.dropbox.com/s/2hrhrwxn9v0892u/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar

sudo -i

unziped the file and deleted .tar file
tar -xvf uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar
rm uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar

i was here:
root@colibri-virtualbox:/home/colibri/scaricati#

Nas turned off.
kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa210s.mtd0.kwb  -p
the answer was
kwboot version 2024.01
Detected kwbimage v0 with NAND boot signature
Patching image boot signature to UART
Sending boot message. Please reboot the target  (\ | / the cursor was moving)
I turned on the nas.
The led tx/rx on serial port blink but the screen wasnt' change.

second try:
Nas turned on.
Nothing was change.

where am I going wrong?



Edited 1 time(s). Last edit at 01/14/2025 11:48AM by colibri.
Re: STORA MS 2000 Issues after resetenv
January 14, 2025 01:55PM
colibri,

> i downloaded
> https://www.dropbox.com/s/2hrhrwxn9v0892u/uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar

> kwboot -t -B 115200 /dev/ttyUSB0 -b
> uboot.2017.07-tld-1.nsa210s.mtd0.kwb -p

Was it a typo, or you run a wrong binary? should be uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: