Welcome! Log In Create A New Profile

Advanced

Netgear Stora install OpenWrt

Posted by Nevskiy 
Netgear Stora install OpenWrt
February 12, 2021 03:40AM
Hi all! Maybe you can hrlp me.

I try install OpenWrt on my Stora. Use insruction from wiki https://openwrt.org/inbox/toh/netgear/netgear_stora Use files from Energoblock in this topic https://forum.openwrt.org/t/netgear-stora-ms-2000-openwrt-18-06-4/42104/10.

Uboot write is correct. But when I try boot uImage I have a error:

Netgear Stora> 

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 
Netgear Stora> setenv ipaddr 192.168.0.2
Netgear Stora> setenv serverip 192.168.0.1
Netgear Stora> tftpboot 0x800000 openwrt-kirkwood-netgear_stora-initramfs-uImage
Using egiga0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.2
Filename 'openwrt-kirkwood-netgear_stora-initramfs-uImage'.
Load address: 0x800000
Loading: *#################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 ################################################################
 1.3 MiB/s
done
Bytes transferred = 8645019 (83e99b hex)
Netgear Stora> bootm 0x800000 - -
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-5.4.48
   Created:      2020-07-10  13:03:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8644955 Bytes = 8.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image
Image too large: increase CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...

What did I do wrong?

Thank you
Re: Netgear Stora install OpenWrt
February 12, 2021 04:41AM
Nevskiy,

> Uboot write is correct. But when I try boot uImage
> I have a error:

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

> Image too large: increase CONFIG_SYS_BOOTM_LEN
> Must RESET board to recover
> resetting ...

This u-boot has a limitation of 8MB for uImage. And the Stora uImage you tried to boot is 8.2MB. So they don't work together.

The maxsize 8MB is defined in u-boot mainline code. This u-boot is tracking mainline, with some OpenWRT patches. So in order to boot this Stora uImage you need a different u-boot version.

My release u-boot-2017.07 also uses CONFIG_SYS_BOOTM_LEN from mainline, so it will not work either.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora install OpenWrt
February 12, 2021 05:14AM
Re: Netgear Stora install OpenWrt
February 12, 2021 05:15PM
Nevskiy,

> If I will build firmware from git
> https://git.openwrt.org/?p=openwrt/staging/wigyori.git;a=commit;h=94894e42116600d2d7b19cecebfcbaab4c04719d
>
>
> do it work?

That should work (you should use that version because it is was patched specifically for OpenWRT). Change CONFIG_SYS_BOOTM_LEN to something like 10M or 12M.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora install OpenWrt
February 14, 2021 03:10AM
bodhi Wrote:
-------------------------------------------------------
> Nevskiy,
>
> > If I will build firmware from git
> >
> https://git.openwrt.org/?p=openwrt/staging/wigyori.git;a=commit;h=94894e42116600d2d7b19cecebfcbaab4c04719d
> >
> >
> > do it work?
>
> That should work (you should use that version
> because it is was patched specifically for
> OpenWRT). Change CONFIG_SYS_BOOTM_LEN to something
> like 10M or 12M.

Where can I change this variable? I find the patch file, but if I add the line

+#ifndef _CONFIG_NGMS2110_H
+#define _CONFIG_NGMS2110_H
+
+/*
+ * High Level Configuration Options (easy to change)
+ */
+#define CONFIG_MARVELL		1
+#define CONFIG_ARM926EJS	1	/* Basic Architecture */
+#define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
+#define CONFIG_KIRKWOOD		1	/* SOC Family Name */
+#define CONFIG_KW88F6281	1	/* SOC Name */
+#define CONFIG_MACH_NETGEAR_MS2110	/* Machine type */
+#define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
+#define CONFIG_SYS_BOOTM_LEN	(16 << 20) /* 16 MB */

With compile I have a error: unterminated #ifndef
Attachments:
open | download - 170-netgear-stora.patch (22.5 KB)
Re: Netgear Stora install OpenWrt
February 14, 2021 04:48AM
Nevskiy,

> +#define CONFIG_SYS_BOOTM_LEN (16 << 20) /* 16 MB

> With compile I have a error: unterminated #ifndef

That should not affect anything to cause such error.

I'd suggest you build the OpenWrt u-boot version as is (don't change anything). And then change the constant. Then rebuild.

In any case, even though they basically used my u-boot source as a base to built OpenWrt version, but they also have other OpenWrt-specific patches in that u-boot source. So if you see any error in building that u-boot, you should submit a bug report there and let the OpenWrt developers solve it.

-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: