Welcome! Log In Create A New Profile

Advanced

Need help fixing my GoFlex Home

Posted by optim 
Need help fixing my GoFlex Home
May 22, 2012 07:38PM
A little upfront knowledge. I am not a linux person, but find this stuff fascinating and want to learn. I have a dockstar which now runs debian. I saw the post on deals for devices and saw the post a short while ago for a goflex home for $10 and bought one.

The Goflex Home appears not to be as easy to get debian running on, and I messed mine up. I probably tried about 3 or 4 different setups, and when I couldn't get it running I decided to try to follow the netconsole instructions for fixing it. As soon as I turned of DHCP and gave it a static IP and rebooted it was dead in the water. I have since purchased a usb->serial cable and now have a serial connection to my goflex home.

I think I have different versions of things than I should have. I also (remember I said I'm not a linux guy) said I can see my environment variable are messed up and there was a command to reset them, which I did. That didn't help and I probably need to get those all fixed up.

I do seem to have managed to have gotten debian on the flash drive although it wont boot. It also wont boot into the goflex built-in software anymore. Also my prompt for uboot says NAS>> instead of m ost people saying theirs says Marvel>>.

I also can get an IP address with dhcp again, though no os is running so I cant ssh in.

So.. here is what I have....

Booting with no USB stick
----------------------------------


-- NAS EXPLORER --
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** QSI BOARD: NAS-PLUG LE

U-Boot 1.1.4 (Jun 10 2010 - 08:28:13) Marvell version: 3.4.27
QSI NAS version: 1.0.4

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
** Bad partition 1 **
## Booting image at 02000000 ...
Bad Magic Number

Booting with USB stick (after hit any key to stop prompt)
---------------------------------------------------------------------------

(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.......................................................................................................................................

1435184 bytes read
## Booting image at 02000000 ...
Image Name: Linux-2.6.32-5-kirkwood
Created: 2012-05-06 5:01:05 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1435120 Bytes = 1.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-41) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Tue Jan 17 05:11:52 UTC 2012
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Seagate FreeAgent DockStar
[ 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=UUID=93f87267-e952-437c-a87a-76712671784f
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 125440KB available (3516K code, 583K data, 124K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 21.474972] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 21.714924] Security Framework initialized
[ 21.714943] SELinux: Disabled at boot.
[ 21.714970] Mount-cache hash table entries: 512
[ 21.715278] Initializing cgroup subsys ns
[ 21.715294] Initializing cgroup subsys cpuacct
[ 21.715304] Initializing cgroup subsys devices
[ 21.715312] Initializing cgroup subsys freezer
[ 21.715321] Initializing cgroup subsys net_cls
[ 21.715380] CPU: Testing write buffer coherency: ok
[ 21.716168] devtmpfs: initialized
[ 21.717844] regulator: core version 0.5
[ 21.718070] NET: Registered protocol family 16
[ 21.718579] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 21.718592] Feroceon L2: Enabling L2
[ 21.718626] Feroceon L2: Cache support initialised.
[ 21.720436] bio: create slab <bio-0> at 0
[ 21.720703] vgaarb: loaded
[ 21.721157] Switching to clocksource orion_clocksource
[ 21.724988] NET: Registered protocol family 2
[ 21.725231] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 21.725990] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 21.726090] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 21.726143] TCP: Hash tables configured (established 4096 bind 4096)
[ 21.726152] TCP reno registered
[ 21.726305] NET: Registered protocol family 1
[ 21.726566] NetWinder Floating Point Emulator V0.97 (double precision)
[ 21.726797] audit: initializing netlink socket (disabled)
[ 21.726826] type=2000 audit(0.243:1): initialized
[ 21.733281] VFS: Disk quotas dquot_6.5.2
[ 21.733546] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 21.733641] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 21.734290] msgmni has been set to 245
[ 21.736030] alg: No test for stdrng (krng)
[ 21.736153] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 21.736166] io scheduler noop registered
[ 21.736173] io scheduler anticipatory registered
[ 21.736181] io scheduler deadline registered
[ 21.736359] io scheduler cfq registered (default)
[ 21.742356] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 21.742825] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 22.056713] console [ttyS0] enabled
[ 22.060790] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[ 22.069398] Scanning device for bad blocks
[ 22.133342] Creating 3 MTD partitions on "orion_nand":
[ 22.138506] 0x000000000000-0x000000100000 : "u-boot"
[ 22.144077] 0x000000100000-0x000000500000 : "uImage"
[ 22.149533] 0x000000500000-0x000010000000 : "root"
[ 22.155575] mice: PS/2 mouse device common for all mice
[ 22.161061] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 22.167006] i2c /dev entries driver
[ 22.170714] cpuidle: using governor ladder
[ 22.174969] cpuidle: using governor menu
[ 22.179009] Registered led device: dockstar:green:health
[ 22.184423] Registered led device: dockstar:orange:misc
[ 22.189720] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 22.196135] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 22.241221] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 22.281218] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 22.321215] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 22.361216] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 22.367890] TCP cubic registered
[ 22.371133] NET: Registered protocol family 17
[ 22.375944] registered taskstats version 1
[ 22.380742] rtc-mv rtc-mv: setting system clock to 2012-05-23 01:36:27 UTC (1337736987)
[ 22.388852] Initalizing network drop monitor service
[ 22.393976] List of all partitions:
[ 22.397489] 1f00 1024 mtdblock0 (driver?)
[ 22.402502] 1f01 4096 mtdblock1 (driver?)
[ 22.407496] 1f02 257024 mtdblock2 (driver?)
[ 22.412498] No filesystem could mount root, tried:
[ 22.417412] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 22.425750] [<c002df78>] (unwind_backtrace+0x0/0xdc) from [<c02b77e0>] (panic+0x34/0x128)
[ 22.433992] [<c02b77e0>] (panic+0x34/0x128) from [<c0008fbc>] (mount_block_root+0x25c/0x2b4)
[ 22.442489] [<c0008fbc>] (mount_block_root+0x25c/0x2b4) from [<c00091ac>] (prepare_namespace+0x12c/0x198)
[ 22.452114] [<c00091ac>] (prepare_namespace+0x12c/0x198) from [<c00085e8>] (kernel_init+0xf8/0x138)
[ 22.461219] [<c00085e8>] (kernel_init+0xf8/0x138) from [<c0028e7c>] (kernel_thread_exit+0x0/0x8)


and last but not least my totally messed up then hobbled together to get this far printenv
---------------------------------------------------------------------------------------------------------------------


NAS>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:60:10:06
ethmtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootfile=uImage
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.146
serverip=192.168.1.1
bootargs=console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.1.1:/mnt/ARM_FS/ ip=192.168.1.146:192.168.1.1:::DB88FXX81:eth0:none
arcNumber=2998
bootcmd=usb start;ext2load usb 0:1 $(loadaddr) /boot/uImage;set bootargs console=ttyS0,115200 root=UUID=93f87267-e952-437c-a87a-76712671784f;bootm $(loadaddr)
rootfstype=ext2
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 1245/131068 bytes




Any help at all would be greatly appreciated. Hopefully it is an easy fix.

Btw, I have tried setting rootfstype to jffs2 and ext2 and ext3 without any success.
Re: Need help fixing my GoFlex Home
May 22, 2012 07:53PM
Hi, welcome, you are among friends... not sure what the timeframe will be but people generally help out here when they can...

So, what are your intentions? Do you want to truly Debianize this, and not go back to the GFH OS?

It looks like you have the original U-Boot in NAND still. I'm not sure I know how to go back to the original OS, but I think we can help you get Debian running on it.

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





Edited 1 time(s). Last edit at 05/22/2012 07:54PM by davygravy.
Re: Need help fixing my GoFlex Home
May 22, 2012 08:14PM
I want debian on it. I have no use for their NAS I want a toy to play with that wont run up my electric bill!

I see that this system can run off of the hd when installed, but I dont have a case for my hd yet (on the way). I believe everyone had to get it up and running via usb first anyway.

Thanks!
Re: Need help fixing my GoFlex Home
May 22, 2012 08:42PM
Is your serial connection working properly?
Do you have some sort of linux installation (like Ubuntu) on a laptop or desktop?

If you can answer YES to both of these questions, then proceed, if you want to...:

If you want a fresh new Debian on it, you can do this:
1. Put the newer U-Boot on it that can run the newer kernels properly : http://forum.doozan.com/read.php?3,6965
use the GoFlex Net U-Boot

Make sure you set the arcNumber to 3089.


2. In Linux (like in Ubuntu), install this to a USB drive: http://forum.doozan.com/read.php?2,7806 ... just use the rootfs image (_don't use the UBoot for the NSA320, just the all-purpose-rootfs-image...) There are short directions to doing that in the README/hints that is in the tarball.


3. Get it booting ... once it is booting via pendrive, we can walk you through the SATA installation, and even help you put a powerful, useful, Rescue System in NAND flash.

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





Edited 1 time(s). Last edit at 05/22/2012 08:45PM by davygravy.
Re: Need help fixing my GoFlex Home
May 22, 2012 09:08PM
I do not have a linux laptop. I do have a dockstar with debian if that helps? I can also setup linux on an old box to set things up. I can work on that a bit later if need be.

I have 2 questions about putting that new uboot on though. Which one would I use for the goflex home? That isn't specifically mentioned. Also, will it matter if I have the uboot I currently have on and not one of Jeff's uboots? you mentioned above it looks like I have the original uboot, it does have a tftp command listed in the help.
Re: Need help fixing my GoFlex Home
May 22, 2012 09:22PM
The command is either tftpload or tftpboot, I think. You know it works when you see the transfer complete.

I use the GoFlex Net U-Boot on my GoFlex Home , and it works great. (these newer UBoots are the replacements for some older versions : it turned out that there was an unforeseen latent bug in the codebase for the old UBoots, which causes an undesired behavior w/ the newer kernels, hence a replacement/upgrade for U-Boot).

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


Re: Need help fixing my GoFlex Home
May 22, 2012 11:02PM
Also, in case anybody need to go back to stock. Here is the reflash procedure and link to the stock FW:
http://support.goflexhome.hipserv.com/en/reflash/index.html

After reflashing stock FW, login through web interface (enter the IP address http://x.x.x.x as URL on a browser), and create a new user. After that follow the instruction at Arch Linux website to login and gain root access:
http://archlinuxarm.org/platforms/armv5/seagate-goflex-home

After gaining root access, you're free to install new UBoot and Debian from inside the box using the stock Linux system.
Re: Need help fixing my GoFlex Home
May 23, 2012 08:42PM
Alrighty! I was trying to boot into the wrong device for quite a while after I reset it to stock. So I tftp'd according to the directions in the post Davygravy linked.

Next I put in the usb device and it apparently had succesfully installed debian onto that already, it just wouldn't boot with the stock uboot. It is not a newer version "Linux debian 2.6.32-5-kirkwood #1 Tue Jan 17 05:11:52 UTC 2012 armv5tel" but it is booting and I can play with it a bit.

What would be the best way to upgrade an already booting version? I would like to have the status lights and all that jazz, then eventually put it on hd (next week when my empty enclosures come, plus I will be away for the weekend).

Then I can start having fun.
Re: Need help fixing my GoFlex Home
May 24, 2012 04:22PM
Just trying to change to the 3.3.2 in davy's sig. I think I have an error so I am saving it here before i move forward.


root@debian:/# dpkg -i linux-image-3.3.2-kirkwood-dg_1.1_armel.deb
Selecting previously deselected package linux-image-3.3.2-kirkwood-dg.
(Reading database ... 9060 files and directories currently installed.)
Unpacking linux-image-3.3.2-kirkwood-dg (from linux-image-3.3.2-kirkwood-dg_1.1_ armel.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based fronte nd cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/l ocal/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl 5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/sh are/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Done.

Then it sits there I had to ctrl+c to get a prompt.

I will continue with instructions and watch this fail =)
Re: Need help fixing my GoFlex Home
May 24, 2012 04:29PM
Well, it failed it on the second mkimage command so I started from scratch and it installed. I now have 3.3.2 on my goflex home!



Edited 1 time(s). Last edit at 06/27/2012 07:54PM by optim.
Re: Need help fixing my GoFlex Home
May 30, 2012 07:40PM
OK. I am back to playing with this after a long weekend.

Here is where I am.

1) I have the new Uboot from Davy's sig
2) I have rescue 2.8 from Davy's sig
3) I have linux 3.3.2 from Davy's sig
4) I have an HD attached. It is 80G, to my knowledge it has never been used/formatted, it has been sitting in a box in a closet for years. It spins up and says there is ~75G on it.

Please recall I am NOT a linux person, but I am fairly computer saavy =) If I try to boot with both the hd and usb stick in, it starts booting from usb stick but then fails because it assigns the hd to /dev/sda and the usb to /dev/sdb.

I can boot into the rescue system and get access to both.

I need to know how to setup the hd for booting linux (partitions needed, sizes required, labels?, I read about making sure some partition has them somewhere). Please don't leave out important details. I know a bit of how linux works, but I could easily miss a step because I'm not too familair with the concepts (like mounting and things)

Then I need to know how to clone the USB stick to the HD so I can boot from it.

And last but not least any environment changes I might need to make it boot from HD.

Thanks!
Re: Need help fixing my GoFlex Home
May 30, 2012 08:31PM
Hmmm... there is a thread here, I'm thinking that "vlad" (a really neat guy who writes excellent how-to's ; _not_ the infamous "Vlad the Impaler"!) wrote it up...

I know this may not be the definitive help you were looking for immediately, but I gotta get some shut-eye... try googling "GoFlex Net Boot SATA USB label" and you'll probably find it. The thing is, IIRC, to use a Linux GUI or CLI tool to put a label on either the USB or the SATA drive (can't remember which) and then including that in the bootargs (uboot env).

Cloning is best done w/ the dd command...

gotta hit the hay now... :^/

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


Re: Need help fixing my GoFlex Home
May 30, 2012 10:45PM
@optim,

It's been covered here thoroughly, but not together in one post. So please post your output of fw_printenv here and we'll write it up (just to make sure that your uboot envs are what expected).

-bodhi
Re: Need help fixing my GoFlex Home
May 31, 2012 05:53AM
I looked at a few posts about this and most don't seem to cover it easily. Vlad's was about booting from a USB stick while having a sata drive in and required changing initrd. I saw another post doing the same thing without changing init.rd by changing the environment.

I wish to take out the usb stick and run off the usb.

Anyhow, here in my fw_printenv

rescue:/#   fw_printenv
arcNumber=3089
baudrate=115200
bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; 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=XXXXXXXXX
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),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_init=usb start
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1



Edited 1 time(s). Last edit at 06/02/2012 09:16AM by optim.
Re: Need help fixing my GoFlex Home
June 01, 2012 01:18AM
The following approach was from kraqh3d:
http://forum.doozan.com/read.php?2,5552,5576#msg-5576

Basically, the idea is to force UBoot to find the USB drive that you want it to use for booting. Note the env variable: usb_root=/dev/sda1. The Goflex Home always assigns the SATA drive sda because it was recognized first. And there is no system on sda1.

The approach was to tell UBoot to find the kernel image on the drive that was labeled as "ROOTFS", or "rootfs", or whatever you want it to be. For my GF Home, since I still use Jeff's UBoot (been waiting for the soon coming davy's final image that will deprecate Jeff's), I did this:

1. Set the label of the USB drive to "rootfs":

Boot into the rescue system, or use another Linux box, set the rootfs label for the USB drive (assuming the USB drive is assigned sda1, if it's assigned different drive letter then use it)
# tune2fs -L rootfs /dev/sda1

2. Use the USB drive, boot up the GF Home, and set the booting environment variable usb_init to (see comment below, you have to change this):
# fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=rootfs"

3. Shutdown the GFHome.

4. Plug in both drives and boot up. The HDD will be assigned sda1 and the USB will be assigned sdb1. UBoot will find the correct boot drive because the USB drive has label "rootfs".


In your setup the usb_init env is currently set to "usb start", so in step 2, I would set the usb_init to:
# fw_setenv usb_init "usb start; setenv usb_root LABEL=rootfs"



Edited 1 time(s). Last edit at 06/01/2012 01:20AM by bodhi.
Re: Need help fixing my GoFlex Home
June 01, 2012 02:09PM
That works great! Thanks.

Erased..... problem found. I used fdisk /dev/sda1 instead of /dev/sda.



Edited 1 time(s). Last edit at 06/01/2012 02:12PM by optim.
Re: Need help fixing my GoFlex Home
June 02, 2012 08:54AM
Okee Dokee... I now have my Goflex Home booting from Usb, if that is not installed it boots from HD, if not that to rescue. This is exaclty what I wanted! Many thanks to all the fine folks here!

I will post my environment for anyone wishing to copy it. This environment will not allow booting of either port on a goflex net, it is for my goflex home. It would most likely only work from a single port on the net. The reason for this is I was not sure what the effect would be if I had named my HD boot drive as rootfs while also having the usb root partition named the same.

So, in order to boot from USB the root partition must be named rootfs. Otherwise this will boot from hd I assume drive 0 partition 1 (0:1).

Here is my environment:

arcNumber=3089
baudrate=115200
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=XXXXXXXXXX
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),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1
serverip=192.168.1.119
usb_init=usb start; setenv usb_root LABEL=rootfs
sata_init=ide reset
sata_root=/dev/sda1
sata_rootfstype=ext2
bootcmd_sata=run sata_init; run sata_load_uimage; run set_bootargs_sata; run sata_boot;
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts
sata_rootdelay=8
sata_device=0:1
sata_boot=if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
bootcmd=run bootcmd_usb; usb stop; run bootcmd_sata; run bootcmd_pogo; reset
sata_load_uimage=mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage


I do get a single error that concerns my during the boot cycle, it is not mounting my swap partition.

Waiting for /dev to be fully populated...done.
Activating swap...failed.

Can someone help me out with that? I also want to mount partition sda3 as /home.

Thanks for all the help I have gotten here!



Edited 1 time(s). Last edit at 06/02/2012 09:16AM by optim.
Re: Need help fixing my GoFlex Home
June 02, 2012 08:59AM
Well, it shouldn't mount the swap, just activate it... but yes, it is failing to activate it, for sure.

Did you use mkswap on that partition? What type (from fdisk -l /dev/sda ) is that partition?

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


Re: Need help fixing my GoFlex Home
June 02, 2012 09:17AM
root@Goflex-80G:~# fdisk -l /dev/sda

Disk /dev/sda: 74.4 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x59a518bd

Device Boot Start End Blocks Id System
/dev/sda1 1 1045 8393931 83 Linux
/dev/sda2 1046 1112 538177+ 82 Linux swap / Solaris
/dev/sda3 1113 9039 63673627+ 83 Linux

I did NOT use mkswap on it. I will attempt to read up on that now.
Re: Need help fixing my GoFlex Home
June 02, 2012 10:09AM
(assuming the swap partition is /dev/sda2) this should prolly be just a
mkswap /dev/sda2

and you'd be good to go... just make sure you don't apply that command to any rootfs or data partition...

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


Re: Need help fixing my GoFlex Home
June 02, 2012 11:15AM
Thanks for the tips. I found out all the info I needed, now this is setup exactly like I want it to be!

I do have a few questions on how to do things, but I think that would be best for the Debian section.

If anyone has any questions about anything I have done, and you ask while my memory is still fresh, ask away and I will help as much as I can.
Re: Need help fixing my GoFlex Home
June 02, 2012 11:32AM
Great to hear that it is working.

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





Edited 1 time(s). Last edit at 06/11/2012 08:44PM by davygravy.
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: