Welcome! Log In Create A New Profile

Advanced

GoFlex Home total brick

Posted by Blackbox 
Tinkerer
Re: GoFlex Home total brick
July 22, 2014 10:47AM
Some more information....

There is an extra LED on my USB Serial connector. When spinning is faster then that LED comes up. Does that mean that handshake has occurred?

Also would it be possible that on the same serial port, GoFlex is spewing out so much garbled text that not much of uboot.2014.07.tld-1.goflexhome.mtd0.kwb file gets uploaded in?

Thanks again.
- Tinkerer
Tinkerer
Re: GoFlex Home total brick
July 22, 2014 11:56AM
Hi bodhi,

Also I noticed....

1. There is an extra LED on my USB Serial adaptor and that lights up when spinning becomes faster. Does that mean handshake has occurred and uboot-file transfer has begun? BTW, the spinning seems to go on for ever.

2. Also would it be possible that my GoFlex is spewing out so much of outbound garbled data that it doesn't have any bandwidth to take inbound boot-file upload into the GoFlex? And is that making spinning to go on for ever?

Thanks again
- Tinkerer
Re: GoFlex Home total brick
July 22, 2014 09:39PM
Tinkerer,

It does not sound there was any hanshake occured. It occurs when the spinning | changes speed. So I think it could be either:

- Your kwboot binary is not working.
or
- Your GoFlexHome does not have correct Boot ROM.
or
- Your serial console does not work (can you test it somehow?).

If you have the dmesg log after you SSH in, and before you installed Arch, please post here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
July 23, 2014 12:54AM
Here is the dmesg before I installed ArchLinux.

-bash-3.2$ dmesg
Linux version 2.6.22.18 (philippet@es5x86.axentra.com) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #14 Wed Oct 27 15:41:03 EDT 2010
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
DMA zone: 256 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32512 pages, LIFO batch:7
Normal zone: 0 pages used for memmap
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists. Total pages: 32512
Kernel command line: console=ttyS0,115200 ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 125568KB available (3844K code, 261K data, 128K init)
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB

Marvell Development Board (LSP Version KW_LSP_4.3.4_patch22)-- SHEEVA PLUG Soc: 88F6281 A1 LE

Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c057b600
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: kw_clocksource clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
RTC registered
XOR registered 2 channels
XOR 2nd invalidate WA enabled
cesadev_init(c0011854)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o TCP segmentation offload enabled
o Receive checksum offload enabled
o Transmit checksum offload enabled
o Network Fast Processing (Routing) supported
o Driver ERROR statistics enabled
o Driver INFO statistics enabled
o Proc tool API enabled
o SKB Reuse supported
o SKB Recycle supported
o Rx descripors: q0=128
o Tx descripors: q0=532
o Loading network interface(s):
o register under eth%d platform
o eth0, ifindex = 1, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c7da7000): 1024 entries, 4096 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access Seagate ST2000DL003-9VT1 CC98 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 3907029168 512-byte hardware sectors (2000399 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 3907029168 512-byte hardware sectors (2000399 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Using static partition definition
Creating 3 MTD partitions on "nand_mtd":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00700000 : "uImage"
0x00700000-0x10000000 : "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: 249 MiB
UBI: number of good PEBs: 1992
UBI: number of bad PEBs: 0
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: 0
UBI: total number of reserved PEBs: 1992
UBI: number of PEBs reserved for bad PEB handling: 38
UBI: max/mean erase counter: 7/1
UBI: background thread "ubi_bgt0d" started, PID 302
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux telephony interface: v1.00
Marvell Telephony Driver:

Warning Tdm is Powered Off
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1 91 MB/s
raid6: int32x2 109 MB/s
raid6: int32x4 119 MB/s
raid6: int32x8 94 MB/s
raid6: using algorithm int32x4 (119 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
arm4regs : 1072.400 MB/sec
8regs : 822.000 MB/sec
32regs : 803.200 MB/sec
raid5: using function: arm4regs (1072.400 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
UBIFS: recovery needed
UBIFS: recovery completed
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)
VFS: Mounted root (ubifs filesystem).
Freeing init memory: 128K
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 8192 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
ufsd: module license 'Commercial product' taints kernel.
ufsd: driver 8.4 (011_A) LBD=ON with ioctl loaded at bf04b000
NTFS read/write support included
NTFS includes 4K MBR support for device with sector size 512
Hfs+/HfsX read/write support included
Built for: seagate_axentra_512_COMBO<5>ufsd: use builtin utf8 instead of kernel utf8
ufsd: sda1 without journal
ufsd: use builtin utf8 instead of kernel utf8
ufsd: sda1 without journal
Adding 127992k swap on /mnt/eSata/.swapfile. Priority:-1 extents:1 across:127992k
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 3932160 512-byte hardware sectors (2013 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 3932160 512-byte hardware sectors (2013 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
-bash-3.2$
Tinkerer
Re: GoFlex Home total brick
August 02, 2014 09:11PM
Hi Bodhi,

It turned out that I wasn't using correct serial cable. Finally I got proper FTDI RS232 TTL cable.

The response is below after GoflexHome starts to boot :-)

Now what next?

Thanks
-Tinkerer


U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM
Seagate GoFlex Home

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
GoFlexHome>
Re: GoFlex Home total brick
August 03, 2014 06:58AM
Tinkerer,

Cool! you can plug in your Arch rootfs and continue booting at serial console:
GoFlexHome > boot

If you see error during booting, capture the entire log and post it here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
August 04, 2014 01:44AM
ArchLinux booted perfectly and have been able to login. Now doing the necesary setup etc.

Lesson learnt: Must have working serial access!!!

Thanks a lot for your help.

-Tinkerer
Tinkerer
Re: GoFlex Home total brick
September 27, 2015 02:36PM
Bodhi,

Thanks a lot for your help last time. I need your help once again.

OK. So I started to install ArchLinux on another GoFlex Home(GFH) with 3 TB disk.

Things soon went from good(working GoFlex Seagate) to bad (fdisk failed)

I was still able to do
ssh xxxxxx_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX@192.168.XXX.XXX

Then I came across the post of booting from USB stick. With the plan that after booting from USB, I'll use gdisk to format the 3TB HDD and move forward. Loaded the latest build on an ext2/3 formatted USB stick. GFH did't recognize the USB disk and continued to boot from the onboard flash. Then I started to set myself for netconsole and in that process modified few settings as

fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'

And now I can't connect to CGH via ssh or telnet either.

I'm wired with the working serial connection. Here is the output I see on Serial Console.

-- 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
*** Warning - bad CRC or NAND, using default environment

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 
Using egiga0 device
TFTP from server 169.254.254.254; our IP address is 169.254.254.253
Filename 'uImage'.
Load address: 0x2000000
Loading: T T T T T T T T T T 
Retry count exceeded; starting again
## Booting image at 02000000 ...
Bad Magic Number
Unknown command '<NULL>' - try 'help'
NAS>>

Also the output of printenv from serial console

NAS>> printenv
baudrate=115200
loads_echo=0
ipaddr=169.254.254.253
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200
mainlineLinux=no
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
MALLOC_len=1
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
bootcmd=tftpboot 0x2000000 $(image_name); setenv bootargs $(console) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig) $(mvPhoneConfig);  bootm 0x2000000; 
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
bootdelay=3
disaMvPnp=no
ethaddr=XX:XX:XX:XX:XX:XX
ethmtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
enaAutoRecovery=yes
pcieTune=no
ethact=egiga0
bootargs=console=ttyS0,115200 root=/dev/nfs rw nfsroot=169.254.254.254:/mnt/ARM_FS/ ip=169.254.254.253:169.254.254.254:::DB88FXX81:eth0:none

Environment size: 1240/131068 bytes

Please advise. How to boot the GFH successfully?

Thanks again
-Tinkerer
Re: GoFlex Home total brick
September 27, 2015 03:55PM
Tinkerer,

You are booting with the stock u-boot, and your modified envs was messed up:
*** Warning - bad CRC or NAND, using default environment
So the default set of envs from u-boot internals were used. This always boots into stock OS.

To boot with USB again, you will need re-enter the set of u-boot envs for USB booting. It should be done at serial console, and make sure you booted successfully into a USB drive, before saving them.

- Find your old envs setting for booting USB rootfs (Arch or Debian). If you can't find it, post here and I'll post a good set to boot USB.
- Boot, interrupt serial console, and enter them one by one. Then let it boot into Arch/Debian. Make sure you can do this first.
- Reboot, interrupt serial console, and enter the same set of envs. And before booting into Arch/Debian, save the envs
saveenv
and then let it boot into Arch/Debian again to verify.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
September 27, 2015 04:50PM
Thanks for the quick reply.

I had saved the output of previous printenv. Please see below. Will this be good? Also how do I upload this into GFH? Command?

bash-3.2# /sbin/fw_printenv 
baudrate=115200
loads_echo=0
ipaddr=169.254.254.253
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
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;
ethmtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
rtc_mode=active
vm_ver_smt=2.0.0
ethaddr=XX:XX:XX:XX:XX:XX
explrpk=XXXX-XXXX-XXXX-XXXX
explrsn=NA1Y9Y64
asm1_tag=11:03:14:01:14:17:21
console=console=ttyS0,115200
rtc_tz=PST
ntp_default=pool.ntp.org
smt_tag=11:03:14:01:14:19:05
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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=no
pcieTune=no
filesize=33AA2E
bootargs=console=ttyS0,115200 root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc
console2=console=ttyS0,115200
bootcmd=nand read.e 0x800000 0x100000 0x600000; setenv bootargs $(console2) $(bootargs_root); bootm 0x800000
bash-3.2#


- Tinkerer
Re: GoFlex Home total brick
September 27, 2015 06:16PM
Download the attached uboot.2014.07-tld-1.environment.scr script file.

Mount your USB rootfs on another Linux box. Assuming it is mounted as /media/sdb1. Copy this script file to the USB rootfs
cp -a uboot.2014.07-tld-1.environment.scr /media/sdb1/boot/
sync

Now bring your USB rootfs to the GFHome, plug in in and power up, and interrupt serial console.

Load the script file
usb start
ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr
source 0x800000

Verify the new set of envs (post the output here for confirmation if you'd like)
printenv

Go ahead and boot
boot

Pls capture the entire serial log and post here, whether it was successful in booting into Linux or not. It's good to see the behavior, for benefits of other users looking for the same.

Final note:
This envs set is for booting a basic Kirkwood plug non-FDT rootfs (3.16.x or earlier in my released rootfs). So it should boot any Kirkwood variant. You will need to adjust some u-boot envs for the GoFlex Home to run it correctly. After successfully booted, you will need to boot into serial console again, and then do a saveenv there before booting:
usb start
ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr
source 0x800000
saveenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2014.07-tld-1.environment.scr (2.5 KB)
Tinkerer
Re: GoFlex Home total brick
September 27, 2015 06:34PM
OK. So I got the GFH to boot into stock OS, after painstakingly entering the old envs of stock OS.

Now where do I find u-boot envs for USB booting? What I have is USB stick loaded with ArchiInux.

- Tinkerer
Re: GoFlex Home total brick
September 27, 2015 06:56PM
I've just poste that above!

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



Edited 1 time(s). Last edit at 09/27/2015 06:57PM by bodhi.
Tinkerer
Re: GoFlex Home total brick
September 27, 2015 11:34PM
Get this error when loading the script

GoFlexHome> ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr
** No partition table - usb 0 **

Re: GoFlex Home total brick
September 28, 2015 12:03AM
Tinkerer Wrote:
-------------------------------------------------------
> Get this error when loading the script
>
>
> GoFlexHome> ext2load usb 0:1 0x800000
> /boot/uboot.2014.07-tld-1.environment.scr
> ** No partition table - usb 0 **
> 
>

What is the file system on your Arch Linux rootfs? if it is Ext4 then you can't use it with stock u-boot. You would have to install my new u-boot. Or convert that rootfs to Ext3.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
September 28, 2015 12:10AM
filesystem is ext3

Using ArchLinux boot.

U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM
Seagate GoFlex Home

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

GoFlexHome> printenv
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:10:75:2A:B6:2D
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 1433/131068 bytes

Re: GoFlex Home total brick
September 28, 2015 12:19AM
Interrupt serial console, check your partition.

usb start
usb part 0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
September 28, 2015 12:26AM
GoFlexHome> usb start
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
GoFlexHome> usb part 0
## Unknown partition table
GoFlexHome> 

Re: GoFlex Home total brick
September 28, 2015 01:25AM
Tinkerer,

Mount your rootfs on another Linux box. Check to see if it is GPT partition? sounds like it is the case. If it is GPT, it can't be used with stock u-boot either.

However, I'm curious, are you trying to make it work so that you can boot with stock OS and Arch ? if stock OS is not needed then just upgrade u-boot using Arch's u-boot or mine. If indeed stock OS is what you want to keep then: wipe out the current USB, or use a new one, format it as MBR partition, type Ext3, and extract Arch rootfs to it.

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



Edited 1 time(s). Last edit at 09/28/2015 01:26AM by bodhi.
Tinkerer
Re: GoFlex Home total brick
September 28, 2015 02:00AM
I want to make this work with ArchLinux. I've already ditched stock OS and Arch Boot is loaded.. Please see latest UBoot output on serial console above.

I traced that the USB part 0 error to my USB drive not having boot '*' . Made it bootable. Moved the start to 1.

I could move one step forward as you can see below. but now ext2load is failing.

I know my USB has ext3 filesystem.

GoFlexHome> usb start
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
GoFlexHome> usb part 0

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     1               7821311         471b4e63-01     83 Boot
GoFlexHome> ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Re: GoFlex Home total brick
September 28, 2015 02:32AM
Tinkerer Wrote:
-------------------------------------------------------
> I want to make this work with ArchLinux. I've
> already ditched stock OS and Arch Boot is loaded..
> Please see latest UBoot output on serial console
> above.
>
> I traced that the USB part 0 error to my USB drive
> not having boot '*' . Made it bootable. Moved the
> start to 1.
>
> I could move one step forward as you can see
> below. but now ext2load is failing.
>
> I know my USB has ext3 filesystem.
>
>
> GoFlexHome> usb start
> (Re)start USB...
> USB0:   USB EHCI 1.00
> scanning bus 0 for devices... 2 USB Device(s)
> found
>        scanning usb for storage devices... 1
> Storage Device(s) found
> GoFlexHome> usb part 0
> 
> Partition Map for USB device 0  --   Partition
> Type: DOS
> 
> Part    Start Sector    Num Sectors     UUID      
>      Type
>   1     1               7821311        
> 471b4e63-01     83 Boot
> GoFlexHome> ext2load usb 0:1 0x800000
> /boot/uboot.2014.07-tld-1.environment.scr
> Failed to mount ext2 filesystem...
> ** Unrecognized filesystem type **
>

This is very strange. Arch u-boot is new, I don't think it has problem with Ext3 file system. Are you sure it's Ext3? I recall Arch uses Ext4 rootfs. You could try
ext4load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr

And active flag is not really relevant anymore with newer u-boot such as Arch's:
I traced that the USB part 0 error to my USB drive not having boot '*' . Made it bootable. Moved the start to 1.
Something is not right with your rootfs. Can you recreate it?

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



Edited 1 time(s). Last edit at 09/28/2015 02:37AM by bodhi.
Tinkerer
Re: GoFlex Home total brick
September 30, 2015 12:19AM
You were correct Bodhi. My formatting was messed up. I fixed the formatting issue and now I'm able to boot from USB.

Formatted my 3TB HDD using gdisk. Have installed ArchLinux on HDD. And would like to boot directly from HDD now.

When I remove the USB stick, ArchLInux doesn't boot as It continues to look for USB as boot source. How do I direct the boot to load from HDD?

Thanks in advance.
-Tinkerer
Tinkerer
Re: GoFlex Home total brick
September 30, 2015 01:04AM
And this what I see in console

GPT: last_usable_lba incorrect: 15D50A38E > 5D50A3B0
print_part_efi: *** ERROR: Invalid GPT ***
Attempting to boot from ide 0:1...
GPT: last_usable_lba incorrect: 15D50A38E > 5D50A3B0
get_partition_info_efi: *** ERROR: Invalid GPT ***
** Invalid partition 1 **
Checking if uenvcmd is set ...
Running default loadzimage ...
GPT: last_usable_lba incorrect: 15D50A38E > 5D50A3B0
get_partition_info_efi: *** ERROR: Invalid GPT ***
** Invalid partition 1 **
Running default loaduimage ...
GPT: last_usable_lba incorrect: 15D50A38E > 5D50A3B0
get_partition_info_efi: *** ERROR: Invalid GPT ***
** Invalid partition 1 **

no USB devices available

Re: GoFlex Home total brick
September 30, 2015 02:00AM
Tinkerer Wrote:
-------------------------------------------------------
> And this what I see in console
>
>
> GPT: last_usable_lba incorrect: 15D50A38E >
> 5D50A3B0
> print_part_efi: *** ERROR: Invalid GPT ***
> Attempting to boot from ide 0:1...
> GPT: last_usable_lba incorrect: 15D50A38E >
> 5D50A3B0
> get_partition_info_efi: *** ERROR: Invalid GPT
> ***
> ** Invalid partition 1 **
> Checking if uenvcmd is set ...
> Running default loadzimage ...
> GPT: last_usable_lba incorrect: 15D50A38E >
> 5D50A3B0
> get_partition_info_efi: *** ERROR: Invalid GPT
> ***
> ** Invalid partition 1 **
> Running default loaduimage ...
> GPT: last_usable_lba incorrect: 15D50A38E >
> 5D50A3B0
> get_partition_info_efi: *** ERROR: Invalid GPT
> ***
> ** Invalid partition 1 **
> 
> no USB devices available
> 
>

What is on your HDD? is there one partition or more than one? if there is only one partition, then the disk partition table has problem.

It is best to redo the partition to a single GPT partition, format it as Ext3 and extract rootfs to it again. And remember to do a straight GPT partition (Arch u-boot supports HDD greater than 2TB, similar to my u-boot). I'm guessing there was some misstep in creating the GPT partition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Tinkerer
Re: GoFlex Home total brick
September 30, 2015 08:35AM
HDD has three partitions. Each formatted as ext3 with types Linux(8300), Swap(8200) and Linux(8300). The root is extracted on first partition.

Will try with one partition.

Thanks
-Tinkerer
Tinkerer
Re: GoFlex Home total brick
October 01, 2015 02:19AM
Changing to one partition didn't fix it.

Noticed my issue was same as this post

http://archlinuxarm.org/forum/viewtopic.php?f=53&t=7291&sid=6b4df6e359373f407780829290b8d643&start=10

Latest boot at http://os.archlinuxarm.org/os/armv5te/boot/goflexhome/ is dated 15-May-2014 and the solution was posted on above link by kmihelich on Thu May 29, 2014 2:36 am

Installed

pacman -U http://archlinuxarm.org/builder/testing/uboot-goflexhome-2014.04-1-arm.pkg.tar.xz

And now 3TB GFH booted from HDD.

Seems above fix has not made it to repo yet.

As always, thanks a lot for your help.
-Tinkerer
Re: GoFlex Home total brick
October 01, 2015 02:32AM
Tinkerer,

Ah! you were running a much older u-boot which does not have large HDD support. I'm surprised that version even got released officially by ALARM.

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