Welcome! Log In Create A New Profile

Advanced

Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)

Posted by kiryl 
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 16, 2014 08:36PM
heychris1 Wrote:
-------------------------------------------------------
> I double checked and my rootfs came from
> Debian-3.13.1-kirkwood-tld-2-rootfs-bodhi.tar.bz2

Sorry, yes. Looks like something is missing in U-Boot. It does look a little different. Could you post the whole dmesg?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I realized that I hadn't set my mac address back to the original value. I fixed that and made a new usb with the same rootfs.
Also, The first time it didn't like my machid So I changed it to c11 is there a better machid to use?
It seems i'm having a different issue now. I have another box to try.

I pasted the output of a boot sequence here.

https://github.com/heychris1/netgear-stora-u-boot/blob/master/boot.txt
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 16, 2014 09:05PM
heychris,

OK. It does look good, relatively. Except for a few things, though:

- Even though Debian booted, but the machine was identified incorrectly. It thinks it's a GoFlex Net (it's because you've set the machid to C11).

- My kernel does not have Netgear Stora support :) forgot about it! The reason it booted because your arcNumber is 2097 (Marvell reference board). If you have the kernel that supports the Stora, try to boot with it. In UART prompt, set arcNumber to the Stora 2743.

- Your rootfs file system is not Ext3? Your initrd was not loaded because of that. So it really does not matter what we see here in the dmesg log at the end.

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



Edited 2 time(s). Last edit at 02/16/2014 09:09PM by bodhi.
I removed the machid c11 and set the arcnumber 2743.

The first usb stick was ext2, following the issue, I rebuilt with ext3. I now have the ext3 usb stick.

I used the debian kernel as uImage and Initrd in the openstora debian install tutorial

http://www.openstora.com/phpBB3/viewtopic.php?f=6&t=217

The debian installer uImage.di / Initrd.di still doesn't work, but the final uImage and Initrd with your rootfs on ext3 worked just fine.

I was able to boot your rootfs. I put the console dump here

https://github.com/heychris1/netgear-stora-u-boot/blob/master/boot2.txt
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 12:50AM
@heychris,

Good progress! so you are booting a squeeze Stora kernel using my wheezy rootfs. It really has not entirely proved that it has no problem with later kernel 3.x.x! but it is a good start.
Linux debian 2.6.33-2-kirkwood #4 Thu Aug 5 18:42:13 UTC 2010 armv5tel

I guess later I could take a look to see if the Debian Stora patch can be incorporated into 3.13.1 kernel.

In the mean time, if you can, verify some features that the new U-Boot provides such as booting a rootfs on SATA drive (GPT and > 2TB drive), netconsole, EXT4 rootfs, …. things like that. Stuff you can't do with the stock u-Boot.

I'll create the U-Boot patch and post it later.

@Kiryl,

Have you tried this U-Boot image?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 04:10AM
Hi Bodhi,

wow, a lots happened during a night ^^"
no, I didn't tried it yet. I saw all this conversation only this morning.
I will try test it todays evening.

FYI (including heychris) - Debian-3.13.1-kirkwood-tld-2-rootfs-bodhi.tar.bz2 image from this forum, seems to work with Stora kernel 3.9.6 compiled by johnou Stora_Kernel_3.9.6

------------------------

As I wrote above I was able to boot my Stora on current u-boot (U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14) with kernel 3.9.6 from Johnou and with your rootfs placed on ext4 partition. The only thing I had to do with this kernel was to add an ext4 support as static, not as module.
I tried also to compile a kernel 3.12.10 with appropriate patches for BFQ and BFS but after executing command
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- EXTRAVERSION=-5-kirkwood KDEB_PKGVERSION=1.0.kirkwood KBUILD_DEBARCH=armel deb-pkg
I'm receiving following error:
arch/arm/mach-kirkwood/built-in.o: In function `netgear_ms2110_init':
netgear_ms2110-setup.c:(.init.text+0xca4): undefined reference to `kirkwood_mpp_conf'
arch/arm/mach-kirkwood/built-in.o:(.arch.info.init+0x3c): undefined reference to `kirkwood_init_irq'
make: *** [vmlinux] Błąd 1



Edited 2 time(s). Last edit at 02/17/2014 04:37AM by kiryl.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 11:32AM
kiryl,

Quote

> arch/arm/mach-kirkwood/built-in.o: In function
> `netgear_ms2110_init':
> netgear_ms2110-setup.c:(.init.text+0xca4):
> undefined reference to `kirkwood_mpp_conf'
> arch/arm/mach-kirkwood/built-in.o:(.arch.info.init
> +0x3c): undefined reference to
> `kirkwood_init_irq'
> make: *** [vmlinux] Błąd 1


These errors indicated that the patch is not up-to-date with newer kernel.

I had briefly looked into incorporate the Stora 2.6.38 patch to kernel 3.13.1. Most of the patch are easy to retrofit. Some parts of it, I still have unsolved questions (want to make sure it does not break other machines).

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

I now have 3 boxes running with that uboot, the 3.10 kernel from https://github.com/kirov/stora-debian-kernel, and bodhi's rootfs
note - he mentions
It is based on Linux 3.10 (longterm maintenance release) and uses Debian's default config for kirkwood. Unlike johnou's kernel it doesn't include some nice patches but it supports ext4fs and other stuff.

One thing I've noticed is that it seems to prefer
0x200000 for the uImage
0x800000 for the uInitrd

I can't point to a specific error, but recall an issue regarding running out of space with a large uImage. I was just curious if that seems reasonable.

Also.. I'm using some boot commands from my NSA320 to try direct sata boot.
https://github.com/heychris1/netgear-stora-u-boot/blob/master/NSA320-environment.txt

So far it just results in a screenfull of

ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -> 0x50
ide_outb (dev= 0, port= 0x108, val= 0x01) : @ 0xf1082108
ide_outb (dev= 0, port= 0x10c, val= 0x95) : @ 0xf108210c
ide_outb (dev= 0, port= 0x110, val= 0x78) : @ 0xf1082110
ide_outb (dev= 0, port= 0x114, val= 0x06) : @ 0xf1082114
ide_outb (dev= 0, port= 0x118, val= 0xe0) : @ 0xf1082118
ide_outb (dev= 0, port= 0x11c, val= 0x20) : @ 0xf108211c


Also.. Does anyone know how to get past the registration for this forum? I've been trying to register for a couple of years, but can't seem to get the confirm email to show up. Similarly the password recovery email also never arrives.
One other thing.. I wonder if there is something mis-coded in my evironmental variables that could make the serial console miss a significant portion of the boot process. I'm used to seeing much more, but now I see a jump straight to "uncompressing linux" I'd hope to see it initialize the usb, etc.
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
Using egiga0 device
host 192.168.2.65 is alive
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct

enviromental variables
root@debian:~# fw_printenv 
arcNumber=2743
baudrate=115200
boot_sata1=mw 0x200000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts; ide reset; ext2load ide 0:1 0x200000 /boot/uImage; ext2load ide 0:1 0x800000 /boot/uInitrd; bootm 0x00800000 0x800000
boot_sata2=mw 0x200000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sdb1 rootdelay=10 $mtdparts; ide reset; ext2load ide 1:1 0x200000 /boot/uImage; ext2load ide 1:1 0x800000 /boot/uInitrd; bootm 0x00800000 0x800000
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x200000 0x4640000 0xa00000; bootm 0x200000
bootcmd_sata=run boot_sata1; run boot_sata2; run bootcmd_usb; usb stop; run bootcmd_rescue; reset
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=c0:3f:0e:45:70:ec
fileaddr=800000
filesize=80000
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
if_netconsole=ping $serverip
ipaddr=192.168.2.250
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)
netmask=255.255.255.0
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run if_netconsole start_netconsole
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=1
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
serverip=192.168.2.65
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=8 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x200000 0x1100000;else bootm 0x200000;fi;
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=usb start
usb_load_uimage=mw 0x200000 0 1; ext2load usb $usb_device 0x200000 /boot/uImage
usb_root=LABEL=rootfs
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
x_bootcmd_kernel=nand read 0x80000 0x100000 0x400000
x_bootcmd_usb=usb start
bootcmd=run bootcmd_usb; run boot_sata1; run boot_sata2; usb stop; run bootcmd_rescue; reset

Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 03:24PM
Heychrist,

At u-boot prompt, try to initialize the Sata disk:
ide reset
or
ide init
What do you see?

Also, we should try to conform to Jeff's proven settings for Kirkwood plugs: bootm for uInage is at 0x800000, for uInitrd is at 0x110000 (I might miss a zero or two here:)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 03:28PM
heychris1 Wrote:
-------------------------------------------------------
> One other thing.. I wonder if there is something
> mis-coded in my evironmental variables that could
> make the serial console miss a significant portion
> of the boot process. I'm used to seeing much
> more, but now I see a jump straight to
> "uncompressing linux" I'd hope to see it
> initialize the usb, etc.
>
> 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
> Using egiga0 device
> host 192.168.2.65 is alive
> Uncompressing Linux... done, booting the kernel.
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
>
>
> enviromental variables
>
> root@debian:~# fw_printenv 
> arcNumber=2743
> baudrate=115200
> boot_sata1=mw 0x200000 0 1; setenv bootargs
> console=ttyS0,115200 root=/dev/sda1 rootdelay=10
> $mtdparts; ide reset; ext2load ide 0:1 0x200000
> /boot/uImage; ext2load ide 0:1 0x800000
> /boot/uInitrd; bootm 0x00800000 0x800000
> boot_sata2=mw 0x200000 0 1; setenv bootargs
> console=ttyS0,115200 root=/dev/sdb1 rootdelay=10
> $mtdparts; ide reset; ext2load ide 1:1 0x200000
> /boot/uImage; ext2load ide 1:1 0x800000
> /boot/uInitrd; bootm 0x00800000 0x800000
> bootcmd_rescue=run set_bootargs_rescue; nand
> read.e 0x200000 0x4640000 0xa00000; bootm
> 0x200000
> bootcmd_sata=run boot_sata1; run boot_sata2; run
> bootcmd_usb; usb stop; run bootcmd_rescue; reset
> bootcmd_usb=run usb_init; run usb_load_uimage; run
> set_bootargs_usb; run usb_boot;
> bootdelay=3
> console=ttyS0,115200
> ethact=egiga0
> ethaddr=c0:3f:0e:45:70:ec
> fileaddr=800000
> filesize=80000
> force_rescue=0
> force_rescue_bootcmd=if test $force_rescue -eq 1
> || ext2load usb 0:1 0x1700000 /rescueme 1 ||
> fatload usb 0:1 0x1700000 /rescueme.txt 1; then
> run rescue_bootcmd; fi
> if_netconsole=ping $serverip
> ipaddr=192.168.2.250
> led_error=orange blinking
> led_exit=green off
> led_init=green blinking
> mainlineLinux=yes
> mtdids=nand0=orion_nand
> mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot
> _env),512K(key_store),512K(info),10M(etc),10M(kern
> el_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)
> netmask=255.255.255.0
> partition=nand0,2
> pogo_bootcmd=if fsload uboot-original-mtd0.kwb;
> then go 0x800200; fi
> preboot=run if_netconsole start_netconsole
> rescue_bootcmd=if test $rescue_installed -eq 1;
> then run rescue_set_bootargs; nand read.e 0x800000
> 0x100000 0x400000; bootm 0x800000; else run
> pogo_bootcmd; fi
> rescue_installed=1
> rescue_set_bootargs=setenv bootargs
> console=$console ubi.mtd=2 root=ubi0:rootfs ro
> rootfstype=ubifs $mtdparts $rescue_custom_params
> serverip=192.168.2.65
> set_bootargs_rescue=setenv bootargs
> console=$console ubi.mtd=8 root=ubi0:rootfs ro
> rootfstype=ubifs $mtdparts
> set_bootargs_usb=setenv bootargs console=$console
> root=$usb_root rootdelay=$usb_rootdelay
> rootfstype=$usb_rootstype $mtdparts
> start_netconsole=setenv ncip $serverip; setenv
> bootdelay 10; setenv stdin nc; setenv stdout nc;
> setenv stderr nc; version;
> stderr=serial
> stdin=serial
> stdout=serial
> ubifs_bootcmd=run ubifs_set_bootargs; if ubi part
> data && ubifsmount rootfs && ubifsload 0x800000
> /boot/uImage && ubifsload 0x1100000 /boot/uInitrd;
> then bootm 0x800000 0x1100000; fi
> ubifs_mtd=3
> ubifs_set_bootargs=setenv bootargs
> console=$console ubi.mtd=$ubifs_mtd
> root=ubi0:rootfs rootfstype=ubifs $mtdparts
> $ubifs_custom_params
> usb_boot=if ext2load usb $usb_device 0x1100000
> /boot/uInitrd; then bootm 0x200000 0x1100000;else
> bootm 0x200000;fi;
> usb_bootcmd=run usb_init; run usb_set_bootargs;
> run usb_boot
> usb_device=0:1
> usb_init=usb start
> usb_load_uimage=mw 0x200000 0 1; ext2load usb
> $usb_device 0x200000 /boot/uImage
> usb_root=LABEL=rootfs
> usb_rootdelay=10
> usb_rootfstype=ext2
> usb_scan=usb_scan_done=0;for scan in
> $usb_scan_list; do run usb_scan_$scan; if test
> $usb_scan_done -eq 0 && ext2load usb $usb 0x800000
> /boot/uImage 1; then usb_scan_done=1; echo "Found
> bootable drive on usb $usb"; setenv usb_device
> $usb; setenv usb_root /dev/$dev; fi; done
> usb_scan_1=usb=0:1 dev=sda1
> usb_scan_2=usb=1:1 dev=sdb1
> usb_scan_3=usb=2:1 dev=sdc1
> usb_scan_4=usb=3:1 dev=sdd1
> usb_scan_list=1 2 3 4
> usb_set_bootargs=setenv bootargs console=$console
> root=$usb_root rootdelay=$usb_rootdelay
> rootfstype=$usb_rootfstype $mtdparts
> $usb_custom_params
> x_bootargs=console=ttyS0,115200
> mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5
> m(rootfs) rw
> x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs
> rootfstype=ubifs
> x_bootcmd_kernel=nand read 0x80000 0x100000
> 0x400000
> x_bootcmd_usb=usb start
> bootcmd=run bootcmd_usb; run boot_sata1; run
> boot_sata2; usb stop; run bootcmd_rescue; reset
> 
>

Your netconsole is running. Should remove the preboot env.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 04:13PM
@bodhi, I was able to kwboot from this new u-boot but can't obtain an IP address :(
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 17, 2014 04:35PM
kiryl Wrote:
-------------------------------------------------------
> @bodhi, I was able to kwboot from this new u-boot
> but can't obtain an IP address :(

I mentioned above, your u-boot envs need to be defined. This u-boot uses different location. Specifically:
ethaddr
must contains the MAC addr.

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

Thanks much.. removing preboot return the look and feel I wanted

I did the ide reset, ide init it appears ide init isn't valid.

I pasted the output here
https://github.com/heychris1/netgear-stora-u-boot/blob/master/ide.txt
Kirl if it's helpful.. I can add detail to what I did

- built a usb stick with ext2 named rootfs then extracted Bodhi's debian rootfs, change the /etc/fstab to ext2, copy the uImage and Initrd from https://github.com/kirov/stora-debian-kernel,

- from ubuntu 64bit I kwboot the uboot and press any key to stop the boot process I know it could be done post-boot, but I like to get the uboot squared away.
setenv serverip 192.168.0.100
setenv ipaddr 192.168.0.200
tftp 0x800000 uboot.2013.10.tld-2.netgear_ms2110.mtd0.kwb
nand erase 0x0 0x80000
nand write.e 0x800000 0x0 0x80000
Right away I reset, I've seen things not quite work out when I start changing variables before a reboot.

I then paste in my environmental variables above (also on my github)
My mac address is always messed up, so I take it from the label and input that.

From there it should boot the usb.

Let me know if there is anything I can do to help.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 18, 2014 01:33AM
heychris1 Wrote:
-------------------------------------------------------
> Bodhi,
>
> Thanks much.. removing preboot return the look
> and feel I wanted
>
> I did the ide reset, ide init it appears ide init
> isn't valid.
>
> I pasted the output here
> https://github.com/heychris1/netgear-stora-u-boot/
> blob/master/ide.txt

About a tons of ide_outb and ide_inb in the boot log: I forgot to remove debug switch so the log got cluttered up with those debug outputs :) so please ignore them. It seems that the SATA drive got initialized correctly with ide reset. That's what I was looking for!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 23, 2014 09:26PM
Here is the latest u-Boot build for the Stora:

uboot.2013.10.tld-2.1.netgear_ms2110.bodhi.tar
md5:
25c1df5fd4e9e12526b2e0cae496af7f

This has the same features as the other u-Boot images uploaded here: http://forum.doozan.com/read.php?3,12381

Please test with UART and let me know it's working OK or any problem. Upon positive feedbacks, I will merge the delta patch to GitHub.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Works like a charm!!

I test both sata boot and USB boot. Is there anything else you'd like me to look for?

Here is the sata boot log. With debug turned off it looks MUCH better..

https://github.com/heychris1/netgear-stora-u-boot/blob/master/boot2.txt

Thank you very much.. I have a way of not letting these kinds of things go until they drive me crazy.

I suppose I should let all the guys over at openstora.com know that it's working again?
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 24, 2014 12:13AM
Heychrist,

Excellent :) Looks like Ext4 rootfs booting works fine too.

Besides Ext4, the feature that most people looking for is: to be able to boot a GPT > 2TB HDD, or a smaller GPT disk. If you don't have a >2TB HDD, you could format a USB thumb/HDD drive as GPT using parted, untar a Stora rootfs on it and boot.

Quote

I suppose I should let all the guys over at openstora.com know that it's working again?

Sure! if you don't find any problem then this is the version we'll keep. As soon as you post back that it's good to go, the patch will be merged and I'll update the u-Boot thread.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 24, 2014 03:40AM
Heychrist,

I forgot this. Since stock uBoot defines the envs at a different address (0x40000), when this uBoot image is flashed in serial console, it is OK because you can set the envs manually at the prompt. But if people flash this in Linux, they would have to adjust /etc/fw_env.config and set the envs to boot usb drive before rebooting.

So I guess I could either

1. add these envs into the uBoot code as defaults (this is a better way)
or
2. instruct people who flash this uBoot to take care of the envs properly before rebooting (they will be locked out if the envs are not set to boot USB or SATA).

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

Much thanks again. I want to check a couple of things.

1. I have a 2tb drive and want to try GPT. Does it make sense to put the second drive in the second bay and do the following?

Use Gdisk to partition and format drive
copy exisitng rootfs to new drive.
reboot and pull the first drive?

Would you recommend doing a debootstrap to reinstall? I've been looking for a good tutorial if you know of one.

2. I'm trying to recall what my variables looked like when I tftp'd the uboot. It's fairly second nature for me to rewrite the variables, but realize most people wouldn't be as comfortable. This is also why I posted them above. Can you validate that mine are pretty close?
Keeping in mind the mac-address issues, etc.. it's probably better to follow what Jeff did in his uboot script. It takes the mac-address and re-inserts it. as well as some validation checking.
http://projects.doozan.com/uboot/install_uboot_mtd0.sh
The variables are handled toward the bottom.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 25, 2014 04:28PM
Heychrist,

1. Yes. That's the idea. Use 2nd Hdd or a Usb thumb. But dont copy the live system. Should be a tar back up. Why do you need debootstrap? I thought you already have Stora kernel 3.9.x? But it you want to create a brand new rootfs using debootstrap, look for vlad posts in this forum.
2. Yup. That's why I only provided the uBoot image. It"s definitely not for newb, i.e not automated. Jeff has already done the best job that one can do to automate the installation. If we want to automate, It should be an update of his script.
3. Great! I will refer to your uBoot envs settings. Let me double-check it.

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



Edited 1 time(s). Last edit at 02/25/2014 04:36PM by bodhi.
I tried GPT but wasn't able to boot. I'd like to build my own rootFS someday.. in my sparetime. For now...

I used Gdisk to create /dev/sdb1 and a swap sdb2
I formated /dev/sdb1 with mkfs.ext4 and extracted your rootFS. I then copied my /boot/ directory over.


Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: Hitachi HDS722020ALA330  Firm: JKAOA3EA Ser#: JK1104B8GE6THW
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

I noticed something else interesting.

I tried loading to a SSD with MBR.

I follow the same steps above. On boot It started, but errored out.

[   13.554904] ata1: SATA max UDMA/133 irq 21
[   13.559023] ata2: SATA max UDMA/133 irq 21
[   13.904743] ata1: SATA link down (SStatus 0 SControl F300)
[   14.414742] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   14.454771] ata2.00: ATA-8: KINGSTON SV300S37A120G, 506ABBF0, max UDMA/133
[   14.461684] ata2.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   14.504772] ata2.00: configured for UDMA/133
[   14.509493] scsi 1:0:0:0: Direct-Access     ATA      KINGSTON SV300S3 506A PQ: 0 ANSI: 5
[   14.544927] sd 1:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[   14.553869] sd 1:0:0:0: [sda] Write Protect is off
[   14.558860] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   14.572024]  sda: sda1
[   14.576272] sd 1:0:0:0: [sda] Attached SCSI disk
[   14.592745] sd 1:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sdb1 does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep

I put another drive in to satisfy the sdb1 that didn't exist by putting the GPT drive back in. It booted up without problem.

There are two slots. The left one is labeled CON1 on the motherboard and CON2 on the left. It seems like it will only label a disk in the right side sdb.

When I put the SSD in the left side, it starts fine.

So it will boot to either slot, but will always call the Right slot sdb.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
February 25, 2014 11:58PM
heychris,

The behavior is expected. With 2 SATA ports, you will need rootfs label to boot, just like for the usb root
usb_root=LABEL=rootfs
So if you label one disk rootfs, and set your bootargs to look for the label, then it will boot correctly. We can't really rely on the drive assignments, since it is unpredictable some of the time (whichever spins up first gets sda1).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
April 10, 2014 02:24AM
Netgear Stora kernel 3.14 tester wanted:
http://forum.doozan.com/read.php?2,12096,15718,page=16#msg-15718

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
April 17, 2014 06:39PM
I'm trying but I'm having no luck kwboot'ing the new 2014.01 uboot image. I compiled kwboot for i686 from the official u-boot sources. I checked the Stora and its got boot rom version 1.11. Is this even supposed to work? Heychris, how did you get it to work?



Edited 1 time(s). Last edit at 04/17/2014 06:51PM by kraqh3d.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
April 17, 2014 07:03PM
kraqh3d,

Simplest way is to use the kwboot I posted in the 1st post
http://forum.doozan.com/read.php?3,12381

that if you can connect serial cable from another kirkwood plug.

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



Edited 1 time(s). Last edit at 04/17/2014 07:04PM by bodhi.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
April 17, 2014 07:36PM
Yeah I'm actually going to give that a go but it should not matter as kwboot is kwboot regardless of what arch its compiled for. The Stora doesn't seem to accept the magic code and all information seems to point toward the problem being due to boot rom 1.11 versus 1.21. When the Stora powers up while kwboot is sending the handshake, it just stalls out. No lights flash or anything. It just does nothing. I expect it'll do the same thing once I rearrange some stuff around here to use another arm box.

Same thing... kwboot just sits at
Sending boot message. Please reboot the target...



Edited 2 time(s). Last edit at 04/17/2014 07:45PM by kraqh3d.
Re: Is there a newer u-boot for Netgear Stora (RD-88F6281A LE)
April 17, 2014 09:07PM
Some time you have to ctrl-c and kwboot again for several times before the handshake woks! E.g. The Pogo V4 needs 3 to 20 tries before the handshake occurs.

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