Welcome! Log In Create A New Profile

Advanced

GoFlex Net SATA booting from BOTH ports

Posted by davygravy 
GoFlex Net SATA booting from BOTH ports
April 18, 2012 07:59PM
U-Boot now supports booting from both SATA ports on the GoFlex Net. The prior behavior was that only the right side port would work - one could only SATA-boot from an SATA HDD connected to the right side. This is now fixed, due to a patch posted by Simon Baatz. (thank you, Simon) The relevant U-Boot thread is here: http://lists.denx.de/pipermail/u-boot/2012-April/122594.html As all the docs say, remember to use a label on your SATA rootfs partition.

As you can see, both hdds are recognized, and both are bootable - with contents from either of the hdds [solely] - no kernel is required in NAND.
U-Boot 2011.12 (Apr 17 2012 - 16:35:46)
Seagate GoFlexNet

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
GoFlexNet> 
GoFlexNet> ide reset; ext2load ide 1:1 0x800000 /boot/uImage; ext2load ide 1:1 0x1100000 /boot/uInitrd; setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'; bootm 0x800000 0x1100000

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: TOSHIBA MK1655GSX  Firm: FG010D Ser#:  X9AHTNGQT
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
  Device 1: Model: ST9320325AS  Firm: 0002BSM1 Ser#: 5VD35RQG
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
Loading file "/boot/uImage" from ide device 1:1 (hdb1)
2887448 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
2225103 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.38.3
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2887384 Bytes = 2.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2225039 Bytes = 2.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Using machid 0xc11 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.38.8-varkey (root@debian) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #3 PREEMPT Fri Jun 24 21:51:08 IST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate GoFlex Net
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

For example, the left-side hdd was booted from, using the following commands.
ide reset
ext2load ide 1:1 0x800000 /boot/uImage
ext2load ide 1:1 0x1100000 /boot/uInitrd
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
bootm 0x800000 0x1100000


Ideas for some basic extensions to Jeff's scripts might be entertained. It seems to me that it might be wise to leave all the variables and scripts already present unchanged, but to add a few utility scripts to facilitate easier booting from SATA.

I have a testing image for the U-Boot for GoFlex Net posted in the Newer U-Boot as a Workaround... thread - which is experimental, but I'll be putting up a more polished version very soon.

=====================================================



Edited 2 time(s). Last edit at 04/22/2012 07:16AM by davygravy.
Re: GoFlex Net SATA booting from BOTH ports
August 10, 2012 11:45AM
Hi Davy, thank you for all of your effort to make that. I have relashed your u-boot and it works fine except a question below:
If I understand correct you above posted booting message, to enable boot from left side of the SATA device you have to manually input the command right? it that possible automatically select the bootable device at either slot?

Many thanks!
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: