Welcome! Log In Create A New Profile

Advanced

U-boot UART for Netgear Stora

Posted by YoYo 
YoYo
U-boot UART for Netgear Stora
October 08, 2013 10:50AM
Hello!

I loaded into Stora wrong u-boot and now it's not booting (
Anybody have u-boot uart for it?
In Openstora forum have link to needed file, but I can't register - I don't know why, but e-mail with activation code I didn't receive.
in this post http://www.openstora.com/phpBB3/viewtopic.php?p=8870#p8870
Please, give me link for UART boot or send me it to e-mail - ntt7@yandex.ru

Best regards, Victor.
heychris
Re: U-boot UART for Netgear Stora
October 09, 2013 02:35AM
I'm looking for the same thing. I have two stora's. One has debian wheezy running. I did this one a year ago. When I tried to do the second one recently, the debian installer wouldn't work. I'm wondering if the right thing to do is to have a custom Denx u-boot.

I have the uart uboot.. Let me know if you still need it.
Re: U-boot UART for Netgear Stora
October 09, 2013 03:15AM
If you guys know the exact version then it is not difficult. This looks like a stock uBoot for the Stora:
https://forum.openwrt.org/viewtopic.php?id=32436

I did a grep on the latest u-boot code. But I don't know if this is the right version.
root@tldDebian:/usr/src/u-boot# ls -R | grep -i MV88F6281
mv88f6281gtw_ge
./board/Marvell/mv88f6281gtw_ge:
mv88f6281gtw_ge.c
mv88f6281gtw_ge.h
mv88f6281gtw_ge.h

If you can boot with UART then it is easier to test it out.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
YoYo
Re: U-boot UART for Netgear Stora
October 09, 2013 08:13AM
Yes, I still need it, send me it to ntt7@yandex.ru please...
heychris
Re: U-boot UART for Netgear Stora
October 09, 2013 05:19PM
I have the ubootbinaries from openstora.com. I also tried the generic uart load from the tutorial on this site. The generic uart worked OK.

I also compiles the uboot from git@gitorious.org:openstora/u-boot-marvell-ms2110.git. I was able to load the compliled uboot, but still unable to boot the dreamplug uImage.di from debian. When I flashed the new uboot, all my environmental variables were lost and I had to rebuild.

Bodhi,

Do you have a suggested enviromental variable configuration for a netgear stora? Would you suggest changing the machID to mimic another device? If so which one?
Re: U-boot UART for Netgear Stora
October 09, 2013 05:41PM
heychris,

Sorry I don't have the Stora so cannot answer the machID question.

Regarding the environment variable, I use Jeff's env image as the starting point to save time, in this post:
http://forum.doozan.com/read.php?2,11663

I think his env image might work when you install new uBoot. But it should be flashed to the location where the new uBoot expect it to be. Flashing it to any address before 0xc0000 might not work (older uBoot uses 0xA0000, and different checksum).

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



Edited 1 time(s). Last edit at 10/09/2013 05:42PM by bodhi.
YoYo
Re: U-boot UART for Netgear Stora
October 10, 2013 07:32AM
How to write mtd0 dump in nand?

I tried to write:
fatload usb 0 0x800000 mtd0.bin
nand erase 0x0 0x100000
nand write 0x800000 0x0 0x100000

Stora not started...
Re: U-boot UART for Netgear Stora
October 10, 2013 11:54AM
YoYo Wrote:
-------------------------------------------------------
> How to write mtd0 dump in nand?
>
> I tried to write:
> fatload usb 0 0x800000 mtd0.bin
> nand erase 0x0 0x100000
> nand write 0x800000 0x0 0x100000
>
> Stora not started...

Yoyo,
See example here:
http://forum.doozan.com/read.php?3,6965

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
YoYo
Re: U-boot UART for Netgear Stora
October 11, 2013 07:15AM
Hello!

I find u-boot in netgear source v.3.4.14 and all working )

Now I resoldered nand to 2Gb, but standard u-boot not see this capacity(max 1gb - I tried)
Uboot from https://gitorious.org/openstora/u-boot-marvell-ms2110/source/2ddf1269955e3c34c1346451c142f27696c6cb31:board/Marvell/netgear_ms2110
can see 2Gb NAND and working, but stock firmware not running with custom u-boot (
heychris
Re: U-boot UART for Netgear Stora
October 11, 2013 06:12PM
I was able to build a custom uboot from the gitorious link. I uart loaded with the kwboot tool. I flashed the environment variables from Jeff's link. I then used the Sheevaplug debian installer image from debian's website. Unfortunately it doesn't seem to work with a newer kernel.

The uboot I built is from 2009 source code. Where in 3.4.14 did you find the newer uboot?

It seems like we both need a custom u-boot. Looking at the build instructions, if we had the patches for a stora we could build from uboot source. Any idea what it takes to build stora patches like Jeff uses here? http://projects.doozan.com/uboot/build_uboot.htm
Re: U-boot UART for Netgear Stora
October 11, 2013 08:19PM
Heychrist,

Stock uBoot is recent enough. You might needs only a custom built kernel. One with the Stora patch.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
YoYo
Re: U-boot UART for Netgear Stora
October 12, 2013 12:48AM
I think that 3.4.14. is older than you use, You can download it here - ftp://downloads.netgear.com/files/ReadyNAS/stora_source_2.3.2.tar.bz2
heychris
Re: U-boot UART for Netgear Stora
October 12, 2013 11:23AM
3.4.14 comes up as 2009 or so. The gitourious is 2010. I tried the marvell u-boot from the link. The debian installer freezes up in the same place as before. So it's too old to be useful with debian. Does anyone know how to merge the source with git into a current load of u-boot?

What's interesting is when I re-flashed the gitourious u-boot, I was able to boot to jeff's rescue image which I loaded with the gitorious u-boot earlier. I tried Jeff's wheezy installer, but got tripped up in debootstrap. I'll fiddle with that and see if I can get it to let me install.
YoYo
Re: U-boot UART for Netgear Stora
October 14, 2013 07:55AM
I recompile U-boot 3.4.14 with support more NAND chips
Now I soldered 1Gb NAND and it's boot with stock firmware.
Kernel see full size of it:
Using static partition definition
Creating 3 MTD partitions on "nand_mtd":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00700000 : "uImage"
0x00700000-0x40000000 : "root"

UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd2 to ubi0
UBI: MTD device name: "root"
UBI: MTD device size: 1017 MiB
UBI: number of good PEBs: 8126
UBI: number of bad PEBs: 10
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 6012
UBI: total number of reserved PEBs: 2114
UBI: number of PEBs reserved for bad PEB handling: 162

but UBIFS have only stock 228mb:
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size: 239857664 bytes (234236 KiB, 228 MiB, 1889 LEBs)
UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format: 4 (latest is 4)
UBIFS: default compressor: zlib
UBIFS: reserved for root: 0 bytes (0 KiB)

How to fix it and resize UBIFS?
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: