Bricked GoFlex Net

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Bricked GoFlex Net

Postby sdelgran » Sun Oct 18, 2015 9:28 pm

I think I finally made a mistake I can't handle alone!

I tried to push a new uBoot using the script here. It worked fine but it did not boot the SATA drive. Instead it seems it reverted to the origial uBoot.

The SATA drive boots just fine on another GoFlex Net with the 201405 uBoot installed with this script. I suppose my uBoot setenv just don't boot SATA... I prefered to try and boot USB since it seems that the uBoot is not what I intended.

I have serial access to the GoFlex. I tried a USB key with Alarm that I made a few months ago. It did not boot either but because it goes into Kernel panic. I made a new USB Key following the direction here (except I used my raspberry Pi to do the job as root).

I tried kwboot. It worked once. Still did a Kernel panic. Since then I could not get it to work again! I get the 'bad modem message' repeatedly. I tried hundreds of times litterally (since I read one should try 20-30 times).

This is what I see on the console through serial:

$this->bbcode_second_pass_code('', 'U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
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
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1751
UBI: number of bad PEBs: 1
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4079344 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.2.2-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4079280 Bytes = 3.9 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.2.2-1-ARCH (builduser@leming) (gcc version 5.2.0 (GCC) ) #1 PREEMPT Thu Oct 1 06:28:12 MDT 2015
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell SheevaPlug Reference Board
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[ 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: 120844K/131072K available (5805K kernel code, 428K rwdata, 1688K rodata, 264K init, 712K bss, 10228K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0759930 (7495 kB)
[ 0.000000] .init : 0xc075a000 - 0xc079c000 ( 264 kB)
[ 0.000000] .data : 0xc079c000 - 0xc0807254 ( 429 kB)
[ 0.000000] .bss : 0xc0807254 - 0xc08b94ec ( 713 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:114
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 2.157885] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 2.158073] Console: colour dummy device 80x30
[ 2.158100] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 2.247970] pid_max: default: 32768 minimum: 301
[ 2.248063] Security Framework initialized
[ 2.248136] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.248154] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.248848] Initializing cgroup subsys blkio
[ 2.248878] Initializing cgroup subsys memory
[ 2.248939] Initializing cgroup subsys devices
[ 2.248964] Initializing cgroup subsys freezer
[ 2.248983] Initializing cgroup subsys net_cls
[ 2.249000] Initializing cgroup subsys bfqio
[ 2.249018] Initializing cgroup subsys perf_event
[ 2.249040] Initializing cgroup subsys net_prio
[ 2.249118] CPU: Testing write buffer coherency: ok
[ 2.249556] Setting up static identity map for 0x81e0 - 0x8238
[ 2.251423] devtmpfs: initialized
[ 2.253887] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 2.254318] pinctrl core: initialized pinctrl subsystem
[ 2.255029] NET: Registered protocol family 16
[ 2.255503] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 2.277974] cpuidle: using governor ladder
[ 2.307974] cpuidle: using governor menu
[ 2.308128] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 2.308153] Feroceon L2: Enabling L2
[ 2.308191] Feroceon L2: Cache support initialised.
[ 2.339481] vgaarb: loaded
[ 2.339808] SCSI subsystem initialized
[ 2.340319] usbcore: registered new interface driver usbfs
[ 2.340395] usbcore: registered new interface driver hub
[ 2.340456] usbcore: registered new device driver usb
[ 2.340619] pps_core: LinuxPPS API ver. 1 registered
[ 2.340629] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 2.340662] PTP clock support registered
[ 2.341735] clocksource: Switched to clocksource orion_clocksource
[ 2.372801] FS-Cache: Loaded
[ 2.385924] NET: Registered protocol family 2
[ 2.386705] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.386731] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.386750] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.386820] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.386845] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.387040] NET: Registered protocol family 1
[ 2.389159] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 2.402112] VFS: Disk quotas dquot_6.6.0
[ 2.402379] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.404399] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 2.405475] fuse init (API version 7.23)
[ 2.412278] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 2.412302] io scheduler noop registered
[ 2.412315] io scheduler deadline registered
[ 2.412614] io scheduler cfq registered
[ 2.413111] io scheduler bfq registered (default)
[ 2.413120] BFQ I/O-scheduler: v7r8
[ 2.413329] mv_xor mv_xor.0: Marvell shared XOR driver
[ 2.452912] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 2.492927] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 2.493154] mv_xor mv_xor.1: Marvell shared XOR driver
[ 2.532920] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 2.572913] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 2.578386] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 2.579461] console [ttyS0] disabled
[ 2.599576] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 3.130524] console [ttyS0] enabled
[ 3.147393] brd: module loaded
[ 3.156593] loop: module loaded
[ 3.160682] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 3.167143] nand: Micron MT29F2G08AAD
[ 3.170825] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 3.178480] Scanning device for bad blocks
[ 3.271860] Bad eraseblock 1171 at 0x000009260000
[ 3.343336] 4 cmdlinepart partitions found on MTD device orion_nand
[ 3.349635] Creating 4 MTD partitions on "orion_nand":
[ 3.354819] 0x000000000000-0x000000100000 : "u-boot"
[ 3.360294] 0x000000100000-0x000000500000 : "uImage"
[ 3.365740] 0x000000500000-0x000002500000 : "rootfs"
[ 3.371207] 0x000002500000-0x000010000000 : "data"
[ 3.383714] libphy: orion_mdio_bus: probed
[ 3.387930] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 4.472722] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:62:d7
[ 4.481668] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.488258] ehci-pci: EHCI PCI platform driver
[ 4.492807] ehci-orion: EHCI orion driver
[ 4.496914] orion-ehci orion-ehci.0: EHCI Host Controller
[ 4.502391] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 4.510224] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 4.531765] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 4.538691] hub 1-0:1.0: USB hub found
[ 4.542543] hub 1-0:1.0: 1 port detected
[ 4.547075] usbcore: registered new interface driver uas
[ 4.552603] usbcore: registered new interface driver usb-storage
[ 4.558691] usbcore: registered new interface driver ums-alauda
[ 4.564735] usbcore: registered new interface driver ums-cypress
[ 4.570819] usbcore: registered new interface driver ums-datafab
[ 4.576931] usbcore: registered new interface driver ums_eneub6250
[ 4.583213] usbcore: registered new interface driver ums-freecom
[ 4.589296] usbcore: registered new interface driver ums-isd200
[ 4.595317] usbcore: registered new interface driver ums-jumpshot
[ 4.601485] usbcore: registered new interface driver ums-karma
[ 4.607420] usbcore: registered new interface driver ums-onetouch
[ 4.613633] usbcore: registered new interface driver ums-realtek
[ 4.619722] usbcore: registered new interface driver ums-sddr09
[ 4.625748] usbcore: registered new interface driver ums-sddr55
[ 4.631766] usbcore: registered new interface driver ums-usbat
[ 4.638040] mousedev: PS/2 mouse device common for all mice
[ 4.861764] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 5.110652] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 5.117106] scsi host0: usb-storage 1-1:1.0
[ 5.651764] rtc-mv rtc-mv: internal RTC not ticking
[ 5.656811] i2c /dev entries driver
[ 5.660916] sdhci: Secure Digital Host Controller Interface driver
[ 5.667148] sdhci: Copyright(c) Pierre Ossman
[ 5.711837] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.721291] ledtrig-cpu: registered to indicate activity on CPUs
[ 5.727526] usbcore: registered new interface driver r8712u
[ 5.733422] gre: GRE over IPv4 demultiplexor driver
[ 5.738397] NET: Registered protocol family 17
[ 5.742956] Key type dns_resolver registered
[ 5.748352] registered taskstats version 1
[ 5.755683] Key type encrypted registered
[ 5.760312] console [netcon0] enabled
[ 5.764072] netconsole: network logging started
[ 5.768715] hctosys: unable to open rtc device (rtc0)
[ 5.774945] Waiting 10 sec before mounting root device...
[ 6.113965] scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.00 PQ: 0 ANSI: 4
[ 6.123418] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 6.129661] sd 0:0:0:0: [sda] 4014080 512-byte logical blocks: (2.05 GB/1.91 GiB)
[ 6.138391] sd 0:0:0:0: [sda] Write Protect is off
[ 6.144138] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6.237587] sda: sda1
[ 6.243390] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 15.783152] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
[ 15.792273] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
[ 15.800114] List of all partitions:
[ 15.803728] 0100 8192 ram0 (driver?)
[ 15.808383] 0101 8192 ram1 (driver?)
[ 15.813075] 0102 8192 ram2 (driver?)
[ 15.817739] 0103 8192 ram3 (driver?)
[ 15.822424] 0104 8192 ram4 (driver?)
[ 15.827086] 0105 8192 ram5 (driver?)
[ 15.831752] 0106 8192 ram6 (driver?)
[ 15.836399] 0107 8192 ram7 (driver?)
[ 15.841056] 0108 8192 ram8 (driver?)
[ 15.845722] 0109 8192 ram9 (driver?)
[ 15.850367] 010a 8192 ram10 (driver?)
[ 15.855122] 010b 8192 ram11 (driver?)
[ 15.859856] 010c 8192 ram12 (driver?)
[ 15.864609] 010d 8192 ram13 (driver?)
[ 15.869343] 010e 8192 ram14 (driver?)
[ 15.874097] 010f 8192 ram15 (driver?)
[ 15.878834] 0800 2007040 sda driver: sd
[ 15.883497] 0801 2006016 sda1 82c876aa-01
[ 15.888400] No filesystem could mount root, tried: ext2
[ 15.893768] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[ 15.902069] CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.2-1-ARCH #1
[ 15.908361] Hardware name: Marvell SheevaPlug Reference Board
[ 15.914151] [<c000ff98>] (unwind_backtrace) from [<c000d418>] (show_stack+0x10/0x14)
[ 15.921940] [<c000d418>] (show_stack) from [<c0582728>] (panic+0x88/0x200)
[ 15.928863] [<c0582728>] (panic) from [<c075b324>] (mount_block_root+0x27c/0x2c4)
[ 15.936389] [<c075b324>] (mount_block_root) from [<c075b63c>] (prepare_namespace+0x15c/0x1bc)
[ 15.944960] [<c075b63c>] (prepare_namespace) from [<c075aec0>] (kernel_init_freeable+0x210/0x260)
[ 15.953880] [<c075aec0>] (kernel_init_freeable) from [<c0581cb8>] (kernel_init+0x8/0xec)
[ 15.962005] [<c0581cb8>] (kernel_init) from [<c000a480>] (ret_from_fork+0x14/0x34)
[ 15.969608] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)')

Any recommendation on what I should do? I thought about trying an old version of ALARM. Would that boot with the original uBoot I seem to have?

Thank you very much for your input.
sdelgran
 
Posts: 3
Joined: Sat Jan 10, 2015 6:46 pm

Re: Bricked GoFlex Net

Postby moonman » Mon Oct 19, 2015 5:06 am

Just FYI for the future, you don't need any scripts to update uboot after you had archlinux arm installed. Just install the corresponding package.

Now, it doesn't boot because it can't find the rootfs partition. Is it ext3? Is it on a separate partition?
The easiest way is to get kwboot to work, boot with new uboot then flash it by installing the package. You can extract *.kwb from the package http://mirror.archlinuxarm.org/arm/alar ... pkg.tar.xz
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Bricked GoFlex Net

Postby sdelgran » Mon Oct 19, 2015 9:04 pm

Thanks moonman.

You gave me the incentive I needed to give kwboot another try. I am not sure what helped but I decided to make another serial cable and get another GoFlex to handle the serial console. Well, it worked perfectly at the first try.

I have weird issue with my ALARM install but I want to do a fresh install anyway since I have been hacked and I am experiencing many issues since then. Right now, only root can connect to the GoFlex. Logging in as root on the console, I can see the error message "System is booting up. See pam_nologin (8)". systemd-user-sessions.service is not running but I can start it manually (and then users can connect). Anyway, let me try to rebuild from scratch and secure that box a little better.

Here are the answers to your questions (if this can help the next member)

$this->bbcode_second_pass_quote('', 'J')ust FYI for the future, you don't need any scripts to update uboot after you had archlinux arm installed. Just install the corresponding package.


Thanks. Yes, I noticed this after I made the mistake. This has become so easy! Many thanks to those who worked on it.

$this->bbcode_second_pass_quote('', 'N')ow, it doesn't boot because it can't find the rootfs partition. Is it ext3?


It is ext3. I also acted on this message earlier and reformated as ext2 (and reinstalled ALARM). It went a bit further but still ended up in a kernel panic. I thought it best to revert to the 'regular way' as per the directions found here.

However, even with the new uBoot, this install of ALARM on the USB key ended up in a kernel panic. I formated again and decompress ALARM. It was then OK.

$this->bbcode_second_pass_quote('', 'I')s it on a separate partition?


It is on a 2 Gb USB key with a single partition.

$this->bbcode_second_pass_quote('', 'T')he easiest way is to get kwboot to work, boot with new uboot then flash it by installing the package. You can extract *.kwb from the package http://mirror.archlinuxarm.org/arm/alar ... pkg.tar.xz


Did that and it worked like a charm. Culprit may be a mix between my serial cable and the Pi since I had to remove both from the equation to get it to work.
sdelgran
 
Posts: 3
Joined: Sat Jan 10, 2015 6:46 pm
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 17 guests