Welcome! Log In Create A New Profile

Advanced

Seagate Goflex Net hangs at startup

Posted by max2014 
Seagate Goflex Net hangs at startup
January 15, 2015 01:03PM
Hello,
the filesystem on my usb drive crashed. Now I have a new usb drive but debian didn't like to start up. No network cable connected and using Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
Thanks!

I have already get all information over serial/uart:
without usb drive:
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
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
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'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

Reset IDE: ide_preinit failed
** No boot file defined **
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ........  read_nand_cached: error reading nand off 0x187f800       size 8192 bytes
read_nand_cached: error reading nand off 0x1881800 size 8192 bytes
read_nand_cached: error reading nand off 0x1883800 size 8192 bytes
read_nand_cached: error reading nand off 0x1885800 size 8192 bytes
read_nand_cached: error reading nand off 0x1887800 size 8192 bytes
read_nand_cached: error reading nand off 0x1889800 size 8192 bytes
read_nand_cached: error reading nand off 0x188b800 size 8192 bytes
read_nand_cached: error reading nand off 0x188d800 size 8192 bytes
read_nand_cached: error reading nand off 0x188f800 size 8192 bytes
read_nand_cached: error reading nand off 0x1891800 size 8192 bytes
read_nand_cached: error reading nand off 0x1893800 size 8192 bytes
read_nand_cached: error reading nand off 0x1895800 size 8192 bytes
read_nand_cached: error reading nand off 0x1897800 size 8192 bytes
read_nand_cached: error reading nand off 0x1899800 size 8192 bytes
read_nand_cached: error reading nand off 0x189b800 size 8192 bytes
read_nand_cached: error reading nand off 0x189d800 size 8192 bytes
read_nand_cached: error reading nand off 0x189f800 size 8192 bytes            .       done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...

with usb drive
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
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
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)
2822232 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
6114335 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.17.0-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2822168 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.17.0-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6114271 Bytes = 5.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000c11).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.
Re: Seagate Goflex Net hangs at startup
January 15, 2015 01:36PM
max,

Did you follow the instruction in the rootfs thread:

Especially section 4:

Quote

cd /media/sdb1/boot
cp -a zImage-3.17.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.17.0-kirkwood-tld-1 -d /media/sdb1/boot/zImage.fdt /media/sdb1/boot/uImage
sync

If you did not, mount the USB on another Linux box and create that uImage.
If you did, create the uImage again anyway (but save the uImage.orig first for future use).

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Seagate Goflex Net hangs at startup
January 15, 2015 02:56PM
Ok,
Debian-3.10.4-kirkwood-tld-1-rootfs-bodhi is working. Think I have to update uboot.

Thanks.
Re: Seagate Goflex Net hangs at startup
January 15, 2015 06:21PM
Ok,
I have reset all to stock firmware Reset Goflex Net to stock v1.21.

Now I'm connect via ssh with my device. But it is a long time ago since I updated uboot. Can anybody give me a short discription how to install the newest uboot on stock device, please?
Re: Seagate Goflex Net hangs at startup
January 15, 2015 11:58PM
Re: Seagate Goflex Net hangs at startup
January 16, 2015 10:46AM
I think this way is very complicated because I'm working under Windows.

I have done that and it seems that this install the old uboot?
cd /tmp
wget http://projects.doozan.com/debian/kirkwood.debian-wheezy.sh
chmod +x kirkwood.debian-wheezy.sh
export PATH=$PATH:/usr/sbin:/sbin
./kirkwood.debian-wheezy.sh


PS: Now I have a normal running Debian-3.10.4-kirkwood-tld-1-rootfs-bodhi.
Is it possible to update u-boot from there via ssh? Thanks
Re: Seagate Goflex Net hangs at startup
January 16, 2015 11:10AM
Ok, now I understand and have now all tools.

Have some bad blocks:
dmesg | grep -i 'bad'

[   11.863780] Scanning device for bad blocks
[   11.882630] Bad eraseblock 196 at 0x000001880000
[   11.966838] Bad eraseblock 1258 at 0x000009d40000


Can I go on with that, or chnage something because the bad blocks?
flash_erase /dev/mtd0 0 4
Re: Seagate Goflex Net hangs at startup
January 16, 2015 11:15AM
max2014 Wrote:
-------------------------------------------------------
> Ok, now I understand and have now all tools.
>
> Have some bad blocks:
>
> dmesg | grep -i 'bad'
> 
> [   11.863780] Scanning device for bad blocks
> [   11.882630] Bad eraseblock 196 at
> 0x000001880000
> [   11.966838] Bad eraseblock 1258 at
> 0x000009d40000
>
>
>
> Can I go on with that, or chnage something because
> the bad blocks?
>
> flash_erase /dev/mtd0 0 4
>

Max,

The bad blocks are ok. Way out of first 1M. You can install new u-boot.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Seagate Goflex Net hangs at startup
January 16, 2015 11:33AM
Edit: setenv ethaddr xx:xx:xx:xx:xx:xx work, forgotten saveenv!

Ok,
now all was working fine, but network dosn't start?

My UART output:
U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:58:11)
Seagate GoFlex Net

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
## Error: flags type check failure for "ethaddr" <= "MYMACADDRESS" (type: m)
himport_r: can't insert "ethaddr=MYMACADDRESS" into hash table
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Warning: failed to set MAC address



Edited 4 time(s). Last edit at 01/16/2015 11:59AM by max2014.
Re: Seagate Goflex Net hangs at startup
March 14, 2015 05:54PM
put the mac address in the uenv.txt on the flash drive.
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: