Welcome! Log In Create A New Profile

Advanced

Help please with uboot GoFlexHome

Posted by majic79 
Help please with uboot GoFlexHome
July 17, 2013 06:31AM
Hi there,

I've got a 2TB goflex home that I'm attempting to understand - unfortunately it's off (inter)network, I don't have JTAG ICE, but have added a serial port (based on an original Nokia CA-42 - all I had around, building an RS232 level shifter when I've finally finished the board). The Nokia cable doesn't show a serial port until the GFlex has powered up (so that causes some headaches firing up a console fast enough to interrupt the boot process)

Anyway, not wanting to brick the device, I decided to download davygravy's uboot for the goflex home - I load it in via tftp (according to jeffs instructions) and then tell it to go - it immediately goes into error and resets the CPU.

After dumping the nand and doing a checksum, it doesn't match any of the MD5's of the supported goflex devices.

I've also tried compiling the latest version of uboot (u-boot-2013.07.rc2) as this has support for the goflexhome built in (supposedly), this does something very similar (i.e. resets the CPU)

Davygravy:

NAS>> setenv ipaddr 192.168.0.254
NAS>> setenv serverip 192.168.0.50
NAS>> tftp 0x800000 uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb
Using egiga0 device
TFTP from server 192.168.0.50; our IP address is 192.168.0.254
Filename 'uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb'.
Load address: 0x800000
Loading: #################################################################
         ######################################
done
Bytes transferred = 524288 (80000 hex)
NAS>> go 0x800200
## Starting application at 0x00800200 ...
software interrupt
pc : [<00800fc8>]          lr : [<0060022c>]
sp : 00600000  ip : c8012078     fp : 005ff25c
r10: 00000000  r9 : 00000000     r8 : c8012000
r7 : 005ff67f  r6 : 00000002     r5 : 005ffe78  r4 : 00000000
r3 : 00000000  r2 : ffffffff     r1 : 00000000  r0 : deadbeef
Flags: nzcv  IRQs on  FIQs on  Mode USER_26
Resetting CPU ...
ÿ

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

U-Boot 1.1.4 (Sep 26 2011 - 13:01:13) Marvell version: 3.4.27
QSI NAS version: 1.0.6

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:NAND READID : MID=0x98, DID=0xda
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
NAS>>

After build from uboot rc7

NAS>> setenv ipaddr 192.168.0.254
NAS>> setenv serverip 192.168.0.50
NAS>> tftp 0x800000 uboot.mtd0.kwb
Using egiga0 device
TFTP from server 192.168.0.50; our IP address is 192.168.0.254
Filename 'uboot.mtd0.kwb'.
Load address: 0x800000
Loading: #################################################################
         ######################################
done
Bytes transferred = 524288 (80000 hex)
NAS>> go 0x800200
## Starting application at 0x00800200 ...
software interrupt
pc : [<00800ea0>]          lr : [<0060022c>]
sp : 00600000  ip : 00000000     fp : 005ff25c
r10: 00000000  r9 : 00000000     r8 : c8011f68
r7 : 005ff67f  r6 : 00000002     r5 : 005ffe78  r4 : 00000000
r3 : c8011f68  r2 : ffffffff     r1 : 00000000  r0 : deadbeef
Flags: nzcv  IRQs on  FIQs on  Mode USER_26
Resetting CPU ...
ÿ

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

U-Boot 1.1.4 (Sep 26 2011 - 13:01:13) Marvell version: 3.4.27
QSI NAS version: 1.0.6

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:NAND READID : MID=0x98, DID=0xda
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
NAS>>

Any help gratefully recieved!
Re: Help please with uboot GoFlexHome
July 22, 2013 02:05AM
Just to expand on this a little - using the versions of uBoot that jeff identifies in his notes, I get the same thing using anything but 2009q3 codesourcery tools. Using the 2009q3 tools, it hangs immediately after ## Starting application at 0x00800200
Re: Help please with uboot GoFlexHome
July 22, 2013 02:38AM
majic79,

Running uBoot from RAM is not reliable and unsupported. It would work if the version you are loading via tftp is very close to the currently installed uBoot. Otherwise, it will just hang. I have not seen it reset like that, but it is likely because of that reason.

Since you have GF Home, try UART booting. See Davy's instruction:
http://forum.doozan.com/read.php?3,7852,7852

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



Edited 1 time(s). Last edit at 07/22/2013 02:39AM by bodhi.
Re: Help please with uboot GoFlexHome
July 23, 2013 02:15AM
Thanks bodhi - this is a bit of a minefield at the moment - I've had two weeks immersion into this world (no stranger to linux, but first time out playing with linux on ARM)

I don't have a JTAG programmer/debugger, so I'm a little concerned about flashing over the existing u-boot without some success stories/details about the GoFlex Home (plenty out there about the Net/DockStar and other plug computers)

I've also noticed that my console output also includes additional details not seen in other outputs (QSI NAS version: 1.0.6)

Anyway, my goal may be achievable without re-flashing it if I can get a standard Debian Wheezy distribution onto it - it's just the admonition that u-boot needs upgrading to successfully decompress standard kernel's v3.2+ that concerns me now

I'll give the UART boot a try!



Edited 1 time(s). Last edit at 07/23/2013 02:16AM by majic79.
Re: Help please with uboot GoFlexHome
July 23, 2013 09:33AM
Thank you bodhi for that very useful link - needed some ingenuity to work with my serial cable (no power = no usb device) but finally got it booting from UART - this fills me with a lot more confidence than I originally had (I'll feel happier when I've finished making my level converter cable and will be able to use a proper serial port/USB-RS232 converter)

Successful builds (standard U-Boot builds) so far include

u-boot-2013.07-rc3 using codesourcery-arm-2011
u-boot-2013.07-rc2 using codesourcery-arm-2011
u-boot-2013.04 using codesourcery-arm-2011 (requires addition of goflexhome info from 2013 folders)

However boot environment fails to load standard operating system (would be nice if it played nice out of the box) and mtdparts defaults is wrong (should be "mtdparts=orion_nand:1M(uboot),4M(uImage),32M(root)" - defined in include/configs/goflexhome.h)

Really need to understand this a little more before I go an wipe it - time to figure out how to build uImage
Re: Help please with uboot GoFlexHome
October 22, 2013 05:34AM
Recently I installed the uboot and davygravy's Rescue V2.8.2for my Pogoplug Mobile, since I am not going to use Pogo's service anymore.
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: