bodhi, Sorry for such a long reply I replaced the stick with a 4GB transcend, created a new rootfs and Debian was loadedby mshak - Debian
bodhi, Flash drive - QUMO 16Gb, bought it a month ago did not boot 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 In: serial Out: serial Err: serial Net: egiga0 PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 10 9 0by mshak - Debian
bodhi, My mistake, i change mac addr and forgot dtb_file Quote This time it should boot all the way into the USB Debian rootfs. Once in Debian, you can set that permanently: fw_setenv dtb_file '/boot/dts/kirkwood-netgear_stora_ms2000.dtb' unfortunately debian won't boot Netgear Stora> setenv dtb_file '/boot/dts/kirkwood-netgear_stora_ms2000.dtb' Netgear Stby mshak - Debian
bodhi, I flashed the u-boot image and the env image. Now the device boot looks like this: 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 In: serial Out: serial Err: serial Net: egiga0 PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoby mshak - Debian
bodhi, I haven't flashed your u-boot yet root@debian:~# echo "/dev/mtd0 0xe0000 0x20000 0x20000" > /etc/fw_env.config root@debian:~# fw_printenv Cannot read environment, using default Cannot read default environment from fileby mshak - Debian
bodhi, I dumped and attached mtd0. I opened it in a hex editor, and as far as I can see, the address of the variables is 0x0005ffdeby mshak - Debian
bodhi, yes, i tried and kwboot worked 97 % [......................................................................] 99 % [....................................] 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 NAND read from offset c0000 failed -74 *** Warning - reaby mshak - Debian
bodhi, i repeat boot with new env Hit any key to stop autoboot: Netgear Stora> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial' Netgear Stora> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' Netgear Stora> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitby mshak - Debian
bodhi, dmesg root@debian:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT iby mshak - Debian
bodhi, dmesg root@StoraWrt:/# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.143 (alex@openwrt-dev) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16279-5cc0535800)) #0 Tue Aug 31 22:20:08 2021 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF:by mshak - Debian
bodhi, saveenv not working. Netgear Stora> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' Netgear Stora> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' Netgear Stora> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' Netgear Stora> setenv usb_boot 'mwby mshak - Debian
bodhi, Unfortunately my Stora contains bad blocks [?2004hroot@debian:~# dmesg | grep -i bad [?2004l [ 11.777260] Scanning device for bad blocks [ 11.789876] Bad eraseblock 64 at 0x000000800000 [ 11.795231] Bad eraseblock 65 at 0x000000820000 [ 11.807664] Bad eraseblock 125 at 0x000000fa0000 [ 11.948384] Bad eraseblock 1250 at 0x000009c40000 [?2004hroot@debian:~#by mshak - Debian
bodhi, Thank you very much! It worked great! Stora booted to debian with usb stick and to openwrt without a stick. Will the 'saveenv' command be enough to store in persistent storage after setting environment variables?by mshak - Debian
bodhi, Log with commands 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 0 Netgear Stora> printenv arcNumber=2743 baudrate=1152by mshak - Debian
Bodhi, Initially, the idea was to install debian on a flash drive, and try not to touch nand, so that if the flash drive dies, I can temporarily switch to it. I think Debian mainline is no needed. I would try dual boot, if that fails then boot with separate DTB with your rootfsby mshak - Debian
Bodhi, Thank you very much. I skipped step 4 because 2020 is bigger than 2012 :) Now completed this step and debian booted. then performed note1, as indicated in the instructions and after reboot I got back into openwrtby mshak - Debian
Hello Bodhi Thanks for your instruction. I have written the rootfs to a flash drive, but when I try to boot from it, I get the following error Netgear Stora> boot resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 5435888 bytes read in 231 ms (22.4 MiB/s) 9671091 bytes read iby mshak - Debian
Hello. I have a STORA MS2000 flashed to OpenWrt. I want replace OpenWrt to Debian (install to usb stick), but STORA freezes when I try to start install. Tried: debian/dists/Debian11.5/main/installer-armel/current/images/kirkwood/netboot/marvell/openrd-base/ debian/dists/Debian9.13/main/installer-armel/20170615/images/kirkwood/netboot/marvell/openrd-base/ Ran the following commands: sby mshak - Debian