Welcome! Log In Create A New Profile

Advanced

GoFlex Net: no SATA after reflashing to stock

Posted by netharry 
GoFlex Net: no SATA after reflashing to stock
January 04, 2013 09:34PM
After getting a new GoFlex Net device I originally installed Ubit to it, then eventually replaced it with Uboot, installed latest ArchLinux ARM into a USB Thumb, and that tandem worked very well for awhile. Now I need to restore the device back to stock. In Netconsole I restored the original Pogo Uboot by following this post. Didn't flash original Pogo kernel, environment or ram disk, assuming it was all preserved in NAND, since only bootloader was changed on the new device, and Jeff's Rescue System was never installed.

Now the device is back to factory behavior, it boots Pogo Linux from NAND, and I can even see it and the mounted drives on Pogoplug website. But only drives connected to USB port are seen. The drives connected to its any SATA port, are never mounted and neither recognized by GoFlex Net. SATA / SCSI devices are also missing in dmesg log altogether. It say "Warning Sata is Powered Off". I suspect, something was missed in my reflashing procedure that disabled SATA support on the device. I thought may be setting arcNumber=3089 will help, but then its likely only set in Jeff's Uboot, but not in Pogo Uboot. Am I wrong? If YES, how to add arcNumber? Or what else went wrong?

[    0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010
[    0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   DMA zone: 256 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 32512 pages, LIFO batch:7
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000] CPU0: D VIVT write-back cache
[    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] Built 1 zonelists.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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 0MB 0MB 0MB = 128MB total
[    0.000000] Memory: 125824KB available (3592K code, 253K data, 124K init)
[    0.000000] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[    0.240000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] NET: Registered protocol family 16
[    0.240000]
[    0.240000] CPU Interface
[    0.240000] -------------
[    0.240000] SDRAM_CS0 ....base 00000000, size 128MB
[    0.240000] SDRAM_CS1 ....disable
[    0.240000] SDRAM_CS2 ....disable
[    0.240000] SDRAM_CS3 ....disable
[    0.240000] PEX0_MEM ....base e8000000, size 128MB
[    0.240000] PEX0_IO ....base f2000000, size   1MB
[    0.240000] INTER_REGS ....base f1000000, size   1MB
[    0.240000] NFLASH_CS ....base fa000000, size   2MB
[    0.240000] SPI_CS ....base f4000000, size  16MB
[    0.240000] BOOT_ROM_CS ....no such
[    0.240000] DEV_BOOTCS ....no such
[    0.240000] CRYPT_ENG ....base f0000000, size   2MB
[    0.240000]
[    0.240000]   Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG  Soc: 88F6281 A1 LE
[    0.240000]
[    0.240000]  Detected Tclk 200000000 and SysClk 400000000
[    0.240000] MV Buttons Device Load
[    0.240000] Marvell USB EHCI Host controller #0: c0539600
[    0.740000] PEX0 interface detected no Link.
[    0.740000] PCI: bus0: Fast back to back transfers enabled
[    0.740000] SCSI subsystem initialized
[    0.740000] usbcore: registered new interface driver usbfs
[    0.740000] usbcore: registered new interface driver hub
[    0.740000] usbcore: registered new device driver usb
[    0.740000] NET: Registered protocol family 2
[    0.750000] Time: kw_clocksource clocksource has been installed.
[    0.840000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.840000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.840000] TCP reno registered
[    0.870000] RTC has been updated!!!
[    0.870000] RTC registered
[    0.870000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.870000]   o RAID 5 Xor calculation
[    0.870000]   o kernel memcpy
[    0.870000]   o kenrel memzero
[    0.870000] Number of XOR engines to use: 4
[    0.870000] cesadev_init(c00117b0)
[    0.870000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.870000] MV Buttons Driver Load
[    0.870000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.870000] squashfs: LZMA suppport for slax.org by jro
[    0.870000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.870000] io scheduler noop registered
[    0.870000] io scheduler anticipatory registered (default)
[    0.890000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[    0.890000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.900000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[    0.910000] Loading Marvell Ethernet Driver:
[    0.910000]   o Cached descriptors in DRAM
[    0.910000]   o DRAM SW cache-coherency
[    0.920000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    0.920000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    0.930000]   o TCP segmentation offload enabled
[    0.930000]   o Receive checksum offload enabled
[    0.940000]   o Transmit checksum offload enabled
[    0.940000]   o Network Fast Processing (Routing) supported
[    0.950000]   o Driver ERROR statistics enabled
[    0.950000]   o Driver INFO statistics enabled
[    0.960000]   o Proc tool API enabled
[    0.960000]   o Rx descripors: q0=128
[    0.960000]   o Tx descripors: q0=532
[    0.970000]   o Loading network interface(s):
[    0.970000]     o eth0, ifindex = 1, GbE port = 0
[    0.980000]     o eth1, ifindex = 2, GbE port = 1
[    0.990000]
[    0.990000] mvFpRuleDb (c7ed4000): 1024 entries, 4096 bytes
[    0.990000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[    1.000000] Copyright (c) 1999-2006 Intel Corporation.
[    1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[    1.010000] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.020000]
[    1.020000] Warning Sata is Powered Off
[    1.020000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
[    1.030000] NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)
[    1.040000] Scanning device for bad blocks
[    1.140000] Using static partition definition
[    1.150000] Creating 4 MTD partitions on "nand_mtd":
[    1.150000] 0x00000000-0x00100000 : "u-boot"
[    1.160000] 0x00100000-0x00500000 : "uImage"
[    1.160000] 0x00500000-0x02500000 : "root"
[    1.170000] 0x02500000-0x10000000 : "data"
[    1.170000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.180000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.210000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.230000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    1.230000] usb usb1: configuration #1 chosen from 1 choice
[    1.240000] hub 1-0:1.0: USB hub found
[    1.240000] hub 1-0:1.0: 1 port detected
[    1.360000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.360000] USB Universal Host Controller Interface driver v3.0
[    1.360000] usbcore: registered new interface driver usblp
[    1.370000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[    1.370000] Initializing USB Mass Storage driver...
[    1.380000] usbcore: registered new interface driver usb-storage
[    1.390000] USB Mass Storage support registered.
[    1.390000] mice: PS/2 mouse device common for all mice
[    1.400000] i2c /dev entries driver
[    1.400000] Linux telephony interface: v1.00
[    1.400000] md: linear personality registered for level -1
[    1.410000] md: raid0 personality registered for level 0
[    1.410000] md: raid1 personality registered for level 1
[    1.590000] raid6: int32x1     97 MB/s
[    1.760000] raid6: int32x2    114 MB/s
[    1.930000] raid6: int32x4    122 MB/s
[    2.100000] raid6: int32x8    110 MB/s
[    2.100000] raid6: using algorithm int32x4 (122 MB/s)
[    2.100000] md: raid6 personality registered for level 6
[    2.110000] md: raid5 personality registered for level 5
[    2.110000] md: raid4 personality registered for level 4
[    2.120000] raid5: measuring checksumming speed
[    2.170000]    arm4regs  :  1071.600 MB/sec
[    2.220000]    8regs     :   754.800 MB/sec
[    2.270000]    32regs    :   899.600 MB/sec
[    2.270000] raid5: using function: arm4regs (1071.600 MB/sec)
[    2.280000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
[    2.280000] dm_crypt using the OCF package.
[    2.290000] sdhci: Secure Digital Host Controller Interface driver
[    2.290000] sdhci: Copyright(c) Pierre Ossman
[    2.300000] usbcore: registered new interface driver usbhid
[    2.300000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[    2.310000] TCP cubic registered
[    2.310000] NET: Registered protocol family 1
[    2.320000] NET: Registered protocol family 17
[    2.320000] md: Autodetecting RAID arrays.
[    2.330000] md: autorun ...
[    2.330000] md: ... autorun DONE.
[    6.770000] Empty flash at 0x00e55270 ends at 0x00e55800
[    9.760000] VFS: Mounted root (jffs2 filesystem) readonly.
[    9.770000] Freeing init memory: 124K
[   11.890000] eth0: link down
[   11.890000] eth0: started
[   14.200000] eth0: link up, full duplex, speed 1 Gbps
[   17.130000] fuse init (API version 7.8)
[   17.500000] ufsd: module license 'Commercial product' taints kernel.
[   17.620000] ufsd: driver 8.1 (NNTFS4LINUX_U81_039_A)  LBD=ON compact loaded at bf040000
[   17.620000] NTFS read/write support included
[   17.620000] Hfs+/HfsX read/write support included
[   18.090000] rtusb init --->
[   18.090000] usbcore: registered new interface driver rt2870
[   18.460000] usbcore: registered new interface driver r871x_usb_drv
[   18.480000] tun: Universal TUN/TAP device driver, 1.6
[   18.490000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   18.520000] Cloud Engines XCE Init [Version: 2.0.5.10]
[   18.530000] XCE: CPU MEMORY MAP:
[   18.530000] XCE:   -- 0x00001000 - 0xbeffffff (3055 MB)  User Space Mappings
[   18.540000] XCE:   -- 0xbf000000 - 0xbfffffff (  16 MB)  Kernel module space
[   18.550000] XCE:   -- 0xc0000000 - 0xc7ffffff ( 128 MB)  Kernel direct-mapped ram
[   18.550000] XCE:   -- 0xc8800000 - 0xe7ffffff ( 504 MB)  Kernel vmalloc space
[   18.560000] XCE:   -- 0xe8000000 - 0xfeffffff ( 367 MB)  Kernel platform space
[   18.570000] XCE: CPU FEATURES:
[   18.570000] XCE:   -- I Cache:         enabled
[   18.580000] XCE:   -- D Cache:         enabled
[   18.580000] XCE:   -- Branch Predict:  enabled
[   18.580000] XCE:   -- MMU:             enabled
[   18.590000] XCE:   -- Alignment Abort: enabled
[   18.590000] XCE:   -- ICache Prefetch: enabled
[   18.600000] XCE:   -- DCache Prefetch: enabled
[   18.600000] XCE:   -- L2 Cache:        enabled
[   18.610000] XCE:   -- L2 Prefetch:     disabled
[   18.610000] XCE:   -- L2 Writethrough: disabled
[   18.620000] XCE:   -- Write Allocate:  disabled
[   18.620000] XCE:   -- Streaming:       disabled
[   18.620000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[   18.630000] XCE: Loaded Property Size: 2048
[   18.640000] XCE:    - 'cesvcid' -> '3UY6CJA2ZPT8DE6WEQBDSW5ZZE'
[   18.640000] XCE:    - 'ceserialno' -> 'NA1Y0Z67'
[   18.650000] XCE:    - 'ceboardver' -> 'DISCOVERY:0.1'
[   18.650000] XCE: Current GPIO State:
[   18.660000] XCE:  GPIO L OUT:    0xeff00000
[   18.660000] XCE:  GPIO L OE:     0xefffffff
[   18.660000] XCE:  GPIO L BLINK:  0x00000000
[   18.670000] XCE:  GPIO L POL:    0x00000000
[   18.670000] XCE:  GPIO L IN:     0xeff00080
[   18.680000] XCE:  GPIO H OUT:    0xfffcc00f
[   18.680000] XCE:  GPIO H OE:     0xfffc000f
[   18.680000] XCE:  GPIO H BLINK:  0x00000000
[   18.690000] XCE:  GPIO H POL:    0x00000000
[   18.690000] XCE:  GPIO H IN:     0x0000c00d
[   18.700000] XCE: Kernel thread starting PID: 396
[   20.260000] XCE: BLPARAMS: reading 2048 bytes @ a0000
[   20.260000] XCE: BLPARAMS: reading 2048 bytes @ a0800
[   20.270000] XCE: BLPARAMS: reading 2048 bytes @ a1000
[   20.280000] XCE: BLPARAMS: reading 2048 bytes @ a1800
[   25.680000] XCE: XCE: LED -> CONNECTED

Here is current GoFlex Net Pogo Uboot environment:

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
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
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
pcieTune=no
ethaddr=00:10:75:26:43:ET
cesvcid=3UY6CJS3GPT8DE6WJHSASW5ZZE
ceserialno=NA1Y0W23
ceboardver=DISCOVERY:0.1
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000

Is anything missing in that environment? How to add the missing settings? May be SATA driver doesn't start properly? Is there a way to initiate some kind of firmware upgrade that would fix the missing parts? Current Pogo FW version installed is 3.3.0, which is the last one.



Edited 3 time(s). Last edit at 01/05/2013 12:01AM by netharry.
Re: GoFlex Net: no SATA after reflashing to stock
January 05, 2013 01:08PM
Anyone can help?



Edited 3 time(s). Last edit at 01/05/2013 01:23PM by netharry.
Re: GoFlex Net: no SATA after reflashing to stock
January 05, 2013 01:25PM
I had a similar issue, so post the solution here to help others. Apparently, if you Restore old uBoot on mtd0 according to Jeff's procedure or the above linked procedure via Netconsole or Serial, original Dockstar Uboot is flashed to NAND, which doesn't support SATA, only USB. To fix that, I reflashed again Jeff's Uboot to GFN, which script also installed useful programs like flash_erase, nandwrite, etc. When asked to disable CloudEngines "connect to Pogo site" script during install, I put "no". Then without reboot I simply followed the above Restore old Uboot procedure, but substituted Dockstar Uboot link with original GoFlexNet Uboot link:

cd /tmp
wget http://jeff.doozan.com/debian/uboot/files/uboot/uboot.mtd0.goflexnet.original.kwb
flash_erase /dev/mtd0 0 4
nandwrite /dev/mtd0 uboot.mtd0.goflexnet.original.kwb
/sbin/reboot

After reboot here is what we see in dmesg:

[    1.020000] Integrated Sata device found
[    1.050000] scsi0 : Marvell SCSI to SATA adapter
[    1.050000] scsi1 : Marvell SCSI to SATA adapter

and the device again connected to Pogoplug site and shown all connected SATA drives and partitions properly, as well as USB drive. They were also automounted in the system with hotplug, looking at dmesg log and running mount command after boot. Everything is back to original GFN, which means installing Jeff's Uboot doesn't erase any original staff from GFN, and even original Uboot is also saved in unoccupied NAND space. So restore is really easy, if you know where to get the original Uboot, or used nanddump to dump original NAND content after updating to Jeff's Uboot. If you screwed for some reason other original GFN NAND blocks content, follow Restore MTD backup via serial thread to restore them as well. To print your original Uboot environment, follow GoFlex Net back to factory settings thread, or simply run:

/usr/local/cloudengines/bin/blparam



Edited 1 time(s). Last edit at 01/05/2013 01:32PM by sambul14.
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: