Welcome! Log In Create A New Profile

Advanced

Dockstar - no network

Posted by fortis91 
Dockstar - no network
April 18, 2017 06:16PM
Guys, can I get some help with a Dockstar not getting/starting network?

I do have serial setup and see the following error while starting up:
[ 54.147022] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

I'm not sure if the ethernet port is dead or if I messed up some uboot variables as I was trying to upgrade uboot.
Not sure what logs to include but I'l be willing to grab them and post here.

Also I have read and is willing to update to the latest uboot but would like some input before I mess things up further.
I'm running an old uboot:
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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
u-boot>>

ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs
ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; na
nd read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /
rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd
; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0
:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && u
bifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm
0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if t
est $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_
scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; se
tenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_
rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext
2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; el
se bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd;
 usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=xx:xx:xx:xx:xx:xx
arcNumber=2097

Thanks



Edited 1 time(s). Last edit at 04/18/2017 06:48PM by fortis91.
Re: Dockstar - no network
April 18, 2017 08:17PM
Make sure the Ethernet cable is completely connected to the RJ45 ports on both ends.
Re: Dockstar - no network
April 18, 2017 09:23PM
Just verified, used a couple different cables that worked on another unit.
Re: Dockstar - no network
April 18, 2017 11:55PM
fortis91,

> I'm running an old uboot:
> U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
> Seagate FreeAgent DockStar
>

This u-boot is old, but should work perfectly!

> ethaddr=xx:xx:xx:xx:xx:xx
> arcNumber=2097

And this arcNumber is OK for a Dockstar, the ethaddr shoudlcontain valid numbers, but I take it that you've blanked out for privacy.

So u-boot is not a problem. Please post the entire serial console boot log (from u-boot banner until the login prompt).

And questions: the rootfs that you are booting with the Dockstar, has it been used in a different Kirwook box that is still in your local network? or is it a brand new one? If it is new, which procedure did you use to create it?

-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: Dockstar - no network
April 19, 2017 07:23AM
bodhi,

Thanks for responding I didn't think u-boot was the problem but since I wanted to upgrade I posted here.
FYI, the ethernet port is not lighting up on the router that's why I thought maybe the ethernet port is dead.

The ethaddr does contain valid numbers, it is blanked out.

For the rootfs, I've tried a few different options for creating it. Since I have another Dockstar, I used it to create the rootfs using: https://archlinuxarm.org/platforms/armv5/seagate-dockstar using this procedure only one Dockstar is on the network.

I've also used this for rootfs: http://forum.doozan.com/read.php?2,12096


For the complete serial console log, I'm kind of new to this but I did use ubuntu terminal(screen /dev/ttyUSB0 115200) to capture the logs but I had to copy and paste as it scroll. Is there a way to redirect the logs? I did see instructions to use putty on windows to save the logs, I'll try that when I get home today. I just wanted to see if there's a way to do it using linux terminal.

Thanks again.
Re: Dockstar - no network
April 19, 2017 07:31PM
fortis91,

>
> For the complete serial console log, I'm kind of n
> ew to this but I did use ubuntu terminal(screen /d
> ev/ttyUSB0 115200) to capture the logs but I had t
> o copy and paste as it scroll. Is there a way to r
> edirect the logs? I did see instructions to use pu
> tty on windows to save the logs, I'll try that whe
> n I get home today. I just wanted to see if there'
> s a way to do it using linux terminal.
>

screen is a very poor choice for serial console. Use picocom. You can install picocom on Ubuntu.

-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: Dockstar - no network
April 19, 2017 07:42PM
In the process of recreating rootfs and capturing some logs. I did see some activity from the router port with a Debian rootfs I created but the USB may have been bad, so using another one.

Also can't boot without USB so nand be be corrupt?
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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:  3 ^H^H^H 2 ^H^H^H 1 ^H^H^H 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... 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:        1752
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:     0
UBI: available PEBs:             1731
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..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:   ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  read_nand_cached: error reading nand off 0x122e400 size 8192 bytes
^H^H.  ^H^H.  read_nand_cached: error reading nand off 0x1afc200 size 8192 bytes
^H^H done.^M
read_nand_cached: error reading nand off 0x122f000 size 8192 bytes
off = 0x122e9f0 magic 0x1985 type 0xe002 node.totlen = 2444
read_nand_cached: error reading nand off 0x1afc000 size 8192 bytes
off = 0x1afbf24 magic 0x1985 type 0xe002 node.totlen = 446
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...

It just hangs there, I'll add a Debian log shortly.
Re: Dockstar - no network
April 19, 2017 07:50PM
fortis91 Wrote:
-------------------------------------------------------
> In the process of recreating rootfs and capturing
> some logs. I did see some activity from the router
> port with a Debian rootfs I created but the USB ma
> y have been bad, so using another one.
>
> Also can't boot without USB so nand be be corrupt?
>
> U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
> Seagate FreeAgent DockStar
> 
> SoC:   Kirkwood 88F6281_A0
> 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:  3 ^H^H^H 2 ^H^H^H 1
> ^H^H^H 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... 0 Stora
> ge 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:        1752
> 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:     0
> UBI: available PEBs:             1731
> 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 "ub
> i: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..
> ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x8
> 00000
> Scanning JFFS2 FS:   ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^
> H^H.  ^H^H.  ^H^H.  read_nand_cached: error readin
> g nand off 0x122e400 size 8192 bytes
> ^H^H.  ^H^H.  read_nand_cached: error reading nand
> off 0x1afc200 size 8192 bytes
> ^H^H done.^M
> read_nand_cached: error reading nand off 0x122f000
> size 8192 bytes
> off = 0x122e9f0 magic 0x1985 type 0xe002 node.totl
> en = 2444
> read_nand_cached: error reading nand off 0x1afc000
> size 8192 bytes
> off = 0x1afbf24 magic 0x1985 type 0xe002 node.totl
> en = 446
> ### JFFS2 load complete: 524288 bytes loaded to 0x
> 800000
> ## Starting application at 0x00800200 ...
>
>
> It just hangs there, I'll add a Debian log shortly
> .

NAND rootfs was corrupt for a different reason (I have a solution for this). But let's solve the USB booting problem first!

-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: Dockstar - no network
April 19, 2017 08:29PM
Debian log:
I did blanked out ethaddr

A couple interesting lines:
[ 0.160991] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set^M
.....
No DHCPOFFERS received.^M

My router is fine.


Edit: clean up log...using picocom, thanks bodhi
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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... 3 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:        1752
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:     0
UBI: available PEBs:             1731
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)
3166793 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
7179935 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3166729 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Seagate GoFlex Net
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    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: 113620K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17452K 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 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000335] Console: colour dummy device 80x30
[    0.000366] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090106] pid_max: default: 32768 minimum: 301
[    0.090216] Security Framework initialized
[    0.090295] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090317] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091119] Initializing cgroup subsys io
[    0.091152] Initializing cgroup subsys devices
[    0.091178] Initializing cgroup subsys freezer
[    0.091213] Initializing cgroup subsys net_cls
[    0.091298] CPU: Testing write buffer coherency: ok
[    0.091774] Setting up static identity map for 0x8200 - 0x8258
[    0.092088] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.095880] devtmpfs: initialized
[    0.101088] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101562] prandom: seed boundary self test passed
[    0.105321] prandom: 100 self tests passed
[    0.105348] pinctrl core: initialized pinctrl subsystem
[    0.106754] NET: Registered protocol family 16
[    0.107229] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130108] cpuidle: using governor ladder
[    0.160107] cpuidle: using governor menu
[    0.160551] Feroceon L2: Enabling L2
[    0.160598] Feroceon L2: Cache support initialised.
[    0.160991] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.166157] No ATAGs?
[    0.201619] vgaarb: loaded
[    0.202003] usbcore: registered new interface driver usbfs
[    0.202086] usbcore: registered new interface driver hub
[    0.202150] usbcore: registered new device driver usb
[    0.203273] clocksource: Switched to clocksource orion_clocksource
[    0.259081] NET: Registered protocol family 2
[    0.259906] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259933] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259954] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260023] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260047] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260247] NET: Registered protocol family 1
[    0.260660] RPC: Registered named UNIX socket transport module.
[    0.260673] RPC: Registered udp transport module.
[    0.260680] RPC: Registered tcp transport module.
[    0.260688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.260974] Unpacking initramfs...
[    0.908138] Freeing initrd memory: 7012K (c1100000 - c17d9000)
[    0.908286] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.909416] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.909492] audit: initializing netlink subsys (disabled)
[    0.909550] audit: type=2000 audit(0.900:1): initialized
[    0.909913] Initialise system trusted keyring
[    0.910321] zbud: loaded
[    0.910619] VFS: Disk quotas dquot_6.6.0
[    0.910682] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.911233] NFS: Registering the id_resolver key type
[    0.911290] Key type id_resolver registered
[    0.911299] Key type id_legacy registered
[    0.911326] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.911340] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.911567] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.912095] Key type big_key registered
[    0.932482] Key type asymmetric registered
[    0.932506] Asymmetric key parser 'x509' registered
[    0.932608] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.932630] io scheduler noop registered
[    0.932645] io scheduler deadline registered
[    0.932709] io scheduler cfq registered (default)
[    0.934204] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.934899] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.935327] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.935875] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.973975] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.974215] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013956] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.014466] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.015900] console [ttyS0] disabled
[    1.015964] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    1.616571] console [ttyS0] enabled
[    1.621528] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    1.627947] nand: Micron MT29F2G08AAD
[    1.631626] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.639257] Scanning device for bad blocks
[    1.862255] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.868566] Creating 4 MTD partitions on "orion_nand":
[    1.873756] 0x000000000000-0x000000100000 : "u-boot"
[    1.880035] 0x000000100000-0x000000500000 : "uImage"
[    1.886327] 0x000000500000-0x000002500000 : "rootfs"
[    1.892577] 0x000002500000-0x000010000000 : "data"
[    1.900094] libphy: Fixed MDIO Bus: probed
[    1.904613] libphy: orion_mdio_bus: probed
[    1.913803] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.993990] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    3.002885] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.009508] ehci-pci: EHCI PCI platform driver
[    3.014067] ehci-orion: EHCI orion driver
[    3.018281] orion-ehci f1050000.ehci: EHCI Host Controller
[    3.023848] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    3.031732] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    3.053307] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.059571] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.066422] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.073699] usb usb1: Product: EHCI Host Controller
[    3.078598] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    3.085261] usb usb1: SerialNumber: f1050000.ehci
[    3.090759] hub 1-0:1.0: USB hub found
[    3.094626] hub 1-0:1.0: 1 port detected
[    3.099586] mousedev: PS/2 mouse device common for all mice
[    3.413307] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.564987] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.571736] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.578942] usb 1-1: Product: USB2.0 Hub
[    3.583829] hub 1-1:1.0: USB hub found
[    3.587988] hub 1-1:1.0: 4 ports detected
[    3.873300] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.987359] usb 1-1.2: New USB device found, idVendor=0930, idProduct=6545
[    3.994298] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.001667] usb 1-1.2: Product: DataTraveler G3
[    4.006243] usb 1-1.2: Manufacturer: Kingston
[    4.010617] usb 1-1.2: SerialNumber: 001372970D64EB60A51101AE
[    4.113306] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.118944] i2c /dev entries driver
[    4.125083] hidraw: raw HID events driver (C) Jiri Kosina
[    4.130902] drop_monitor: Initializing network drop monitor service
[    4.137491] NET: Registered protocol family 17
[    4.142227] Key type dns_resolver registered
[    4.147445] registered taskstats version 1
[    4.151611] Loading compiled-in X.509 certificates
[    4.156520] zswap: loaded using pool lzo/zbud
[    4.169854] Key type encrypted registered
[    4.174522] hctosys: unable to open rtc device (rtc0)
[    4.181920] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    4.258777] systemd-udevd[83]: starting version 215
[    4.275470] random: systemd-udevd urandom read with 7 bits of entropy available
[    4.441813] SCSI subsystem initialized
[    4.509128] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    4.527154] sata_mv f1080000.sata: slots 32 ports 2
[    4.557782] scsi host0: usb-storage 1-1.2:1.0
[    4.571040] usbcore: registered new interface driver usb-storage
[    4.577252] scsi host1: sata_mv
[    4.593415] scsi host2: sata_mv
[    4.596926] ata1: SATA max UDMA/133 irq 32
[    4.601040] ata2: SATA max UDMA/133 irq 32
[    4.616359] usbcore: registered new interface driver uas
[    4.993318] ata1: SATA link down (SStatus 0 SControl F300)
[    5.363306] ata2: SATA link down (SStatus 0 SControl F300)
[    5.554837] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler G3  PMAP PQ: 0 ANSI: 0 CCS
[    5.570061] sd 0:0:0:0: [sda] 7669824 512-byte logical blocks: (3.92 GB/3.65 GiB)
[    5.580536] sd 0:0:0:0: [sda] Write Protect is off
[    5.585895] sd 0:0:0:0: [sda] No Caching mode page found
[    5.591234] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.603332]  sda: sda1
[    5.609147] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.618533] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
rootfs: clean, 14520/240000 files, 150818/958472 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   16.968678] systemd-udevd[295]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   17.480523] marvell-cesa: probe of f1030000.crypto failed with error -524
[   17.529648] orion_wdt: Initial timeout 21 sec
done.
[....] Activating swap...[   18.384036] random: nonblocking pool is initialized
[ ok                     done.
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 14520/240000 files, 150818/958472 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   21.280384] NET: Registered protocol family 10
[   22.446940] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xx:xx:xx:xx:xx:xx
Sending on   LPF/eth0/xx:xx:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

bound: renewal in 4704 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1226 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1223 (klogd)
. ok not 

Debian GNU/Linux 8 debian ttyS0

debian login:



Edited 1 time(s). Last edit at 04/19/2017 10:07PM by fortis91.
Re: Dockstar - no network
April 20, 2017 03:14AM
fortis91,

Quote

> A couple interesting lines:
> [ 0.160991] [Firmware Info]: /ocp@f1000000/ethe
> rnet-controller@72000/ethernet0-port@0: local-mac-
> address is not set

This is OK, it's normal.

Quote

[ 0.000000] Linux version 4.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine model: Seagate GoFlex Net

This indicated you have appended the wrong DTB in step 4.Your box is the Dockstar. The instruction uses kirkwood-goflexnet.dtb as an example, you need to to append the kirkwood-dockstar.dtb.

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.4.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-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
sync

The above bold line should have been:
cat dts/kirkwood-dockstar.dtb  >> zImage.fdt

-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



Edited 1 time(s). Last edit at 04/20/2017 03:15AM by bodhi.
Re: Dockstar - no network
April 20, 2017 05:28AM
Thanks for your patience...

U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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... 3 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:        1752
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:     0
UBI: available PEBs:             1731
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)
3165294 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
7179935 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165230 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Seagate FreeAgent Dockstar
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    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: 113632K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17440K 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 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000335] Console: colour dummy device 80x30
[    0.000367] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090105] pid_max: default: 32768 minimum: 301
[    0.090215] Security Framework initialized
[    0.090291] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090312] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091115] Initializing cgroup subsys io
[    0.091149] Initializing cgroup subsys devices
[    0.091174] Initializing cgroup subsys freezer
[    0.091206] Initializing cgroup subsys net_cls
[    0.091289] CPU: Testing write buffer coherency: ok
[    0.091766] Setting up static identity map for 0x8200 - 0x8258
[    0.092067] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.095847] devtmpfs: initialized
[    0.100508] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100981] prandom: seed boundary self test passed
[    0.104740] prandom: 100 self tests passed
[    0.104767] pinctrl core: initialized pinctrl subsystem
[    0.106185] NET: Registered protocol family 16
[    0.106659] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130108] cpuidle: using governor ladder
[    0.160107] cpuidle: using governor menu
[    0.160542] Feroceon L2: Enabling L2
[    0.160589] Feroceon L2: Cache support initialised.
[    0.160973] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165880] No ATAGs?
[    0.201617] vgaarb: loaded
[    0.201994] usbcore: registered new interface driver usbfs
[    0.202078] usbcore: registered new interface driver hub
[    0.202142] usbcore: registered new device driver usb
[    0.203262] clocksource: Switched to clocksource orion_clocksource
[    0.259082] NET: Registered protocol family 2
[    0.259902] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259929] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259951] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260022] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260046] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260248] NET: Registered protocol family 1
[    0.260660] RPC: Registered named UNIX socket transport module.
[    0.260673] RPC: Registered udp transport module.
[    0.260680] RPC: Registered tcp transport module.
[    0.260687] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.260973] Unpacking initramfs...
[    0.908000] Freeing initrd memory: 7012K (c1100000 - c17d9000)
[    0.908149] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.909265] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.909341] audit: initializing netlink subsys (disabled)
[    0.909396] audit: type=2000 audit(0.900:1): initialized
[    0.909758] Initialise system trusted keyring
[    0.910153] zbud: loaded
[    0.910457] VFS: Disk quotas dquot_6.6.0
[    0.910521] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.911078] NFS: Registering the id_resolver key type
[    0.911130] Key type id_resolver registered
[    0.911140] Key type id_legacy registered
[    0.911166] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.911181] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.911409] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.911941] Key type big_key registered
[    0.932385] Key type asymmetric registered
[    0.932408] Asymmetric key parser 'x509' registered
[    0.932509] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.932532] io scheduler noop registered
[    0.932548] io scheduler deadline registered
[    0.932611] io scheduler cfq registered (default)
[    0.934106] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.934779] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.935205] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.935744] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.973970] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.974209] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013953] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.014452] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.015877] console [ttyS0] disabled
[    1.015943] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    1.617268] console [ttyS0] enabled
[    1.622152] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    1.628574] nand: Micron MT29F2G08AAD
[    1.632255] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.639885] Scanning device for bad blocks
[    1.801018] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.807334] Creating 4 MTD partitions on "orion_nand":
[    1.812507] 0x000000000000-0x000000100000 : "u-boot"
[    1.818873] 0x000000100000-0x000000500000 : "uImage"
[    1.825137] 0x000000500000-0x000002500000 : "rootfs"
[    1.831375] 0x000002500000-0x000010000000 : "data"
[    1.838851] libphy: Fixed MDIO Bus: probed
[    1.843374] libphy: orion_mdio_bus: probed
[    1.852479] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.933949] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    2.942838] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.949452] ehci-pci: EHCI PCI platform driver
[    2.954020] ehci-orion: EHCI orion driver
[    2.958230] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.963801] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.971751] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.993296] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.999560] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.006409] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.013688] usb usb1: Product: EHCI Host Controller
[    3.018587] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    3.025250] usb usb1: SerialNumber: f1050000.ehci
[    3.030747] hub 1-0:1.0: USB hub found
[    3.034602] hub 1-0:1.0: 1 port detected
[    3.039549] mousedev: PS/2 mouse device common for all mice
[    3.353296] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.505008] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.511759] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.518966] usb 1-1: Product: USB2.0 Hub
[    3.523874] hub 1-1:1.0: USB hub found
[    3.528009] hub 1-1:1.0: 4 ports detected
[    3.813289] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.927380] usb 1-1.2: New USB device found, idVendor=0930, idProduct=6545
[    3.934321] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.941690] usb 1-1.2: Product: DataTraveler G3
[    3.946266] usb 1-1.2: Manufacturer: Kingston
[    3.950641] usb 1-1.2: SerialNumber: 001372970D64EB60A51101AE
[    4.053299] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.058930] i2c /dev entries driver
[    4.063834] hidraw: raw HID events driver (C) Jiri Kosina
[    4.069649] drop_monitor: Initializing network drop monitor service
[    4.076232] NET: Registered protocol family 17
[    4.080962] Key type dns_resolver registered
[    4.086161] registered taskstats version 1
[    4.090325] Loading compiled-in X.509 certificates
[    4.095261] zswap: loaded using pool lzo/zbud
[    4.108630] Key type encrypted registered
[    4.113204] hctosys: unable to open rtc device (rtc0)
[    4.120689] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    4.198206] systemd-udevd[83]: starting version 215
[    4.215339] random: systemd-udevd urandom read with 7 bits of entropy available
[    4.372050] SCSI subsystem initialized
[    4.417079] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    4.469457] scsi host0: usb-storage 1-1.2:1.0
[    4.482624] usbcore: registered new interface driver usb-storage
[    4.510818] usbcore: registered new interface driver uas
[    5.474734] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler G3  PMAP PQ: 0 ANSI: 0 CCS
[    5.492457] sd 0:0:0:0: [sda] 7669824 512-byte logical blocks: (3.92 GB/3.65 GiB)
[    5.500925] sd 0:0:0:0: [sda] Write Protect is off
[    5.506292] sd 0:0:0:0: [sda] No Caching mode page found
[    5.511651] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.523787]  sda: sda1
[    5.529419] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.539174] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
rootfs was not cleanly unmounted, check forced.
[   19.478397] random: nonblocking pool is initialized
rootfs: 14523/240000 files (6.3% non-contiguous), 150829/958472 blocks
fsck exited with status code 1
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   21.519454] systemd-udevd[289]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   22.015336] orion_wdt: Initial timeout 21 sec
[   22.098536] marvell-cesa: probe of f1030000.crypto failed with error -524
done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 14523/240000 files, 150829/958472 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   25.802386] NET: Registered protocol family 10
[   26.966804] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xx:xx:xx:xx:xx:xx
Sending on   LPF/eth0/xx:xx:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

bound: renewal in 244 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1215 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1219 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login:
Re: Dockstar - no network
April 20, 2017 02:31PM
Re: Dockstar - no network
April 20, 2017 06:46PM
bodhi,

I appreciate your help but I've gone through 3 cables that are working on other systems. Even tried a router I have laying around to see if for whatever reason my router is just not giving a IP to this MAC but not dice. I see the router port light up while the Dockar is booting but it goes away.

Without the ethernet this device is useless, but you said you had a fix for the corrupt NAND roofs? Maybe I'll add USB wifi.

Thanks again.
Re: Dockstar - no network
April 20, 2017 07:09PM
fortis91 Wrote:
-------------------------------------------------------
> bodhi,
>
> I appreciate your help but I've gone through 3 cab
> les that are working on other systems. Even tried
> a router I have laying around to see if for whatev
> er reason my router is just not giving a IP to thi
> s MAC but not dice. I see the router port light up
> while the Dockar is booting but it goes away.
>
> Without the ethernet this device is useless, but y
> ou said you had a fix for the corrupt NAND roofs?
> Maybe I'll add USB wifi.
>
> Thanks again.

Let me post some instruction for you to test. Since you have serial console, we should do more testing in uboot.

-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



Edited 1 time(s). Last edit at 04/20/2017 07:16PM by bodhi.
Re: Dockstar - no network
April 21, 2017 02:20AM
fortis91,

To verify, interrupt serial console and ping the router. See if ethernet is up, if it does it means your box hardware is good.b

But first you need to set the ipaddress for the box (let's use 100). Assuming your router is 192.168.0.1:

setenv ipaddr 192.168.0.100
ping 192.168.0.1

-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: Dockstar - no network
April 21, 2017 05:10AM
Here you go:
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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 
u-boot>> setenv ipaddr 192.168.1.99
u-boot>> printenv ipaddr
ipaddr=192.168.1.99
u-boot>> ping 192.168.1.1
No link on egiga0
ping failed; host 192.168.1.1 is not alive
u-boot>> 

Re: Dockstar - no network
April 21, 2017 03:18PM
fortis91,

I think your hardware is at fault here. If you have already checked every connection, then the NIC itself is the problem.

-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: Dockstar - no network
April 21, 2017 04:21PM
Thanks for your help, I'll buy that.
I'll just use a usb wifi adapter and try to salvage it, can we clean up NAND rootfs?
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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:  3 ^H^H^H 2 ^H^H^H 1 ^H^H^H 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... 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:        1752
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:     0
UBI: available PEBs:             1731
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..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:   ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  ^H^H.  read_nand_cached: error reading nand off 0x122e400 size 8192 bytes
^H^H.  ^H^H.  read_nand_cached: error reading nand off 0x1afc200 size 8192 bytes
^H^H done.^M
read_nand_cached: error reading nand off 0x122f000 size 8192 bytes
off = 0x122e9f0 magic 0x1985 type 0xe002 node.totlen = 2444
read_nand_cached: error reading nand off 0x1afc000 size 8192 bytes
off = 0x1afbf24 magic 0x1985 type 0xe002 node.totlen = 446
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...
Re: Dockstar - no network
April 21, 2017 05:44PM
1. my mtd2 rootfs:

http://forum.doozan.com/read.php?3,31993,32082#msg-32082


2. Also, Stock Goflex Net mtd2 rootfs

Wiki thread :
http://forum.doozan.com/read.php?2,23630

Section:

Backup and Cloning rootfs


3.Backup and restore NAND mtds:

http://forum.doozan.com/read.php?3,16789,16789#msg-16789

Before you flash mtd2 using either of the backups above, you could post the command and I will doublecheck it.

-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



Edited 2 time(s). Last edit at 04/21/2017 08:30PM by bodhi.
Re: Dockstar - no network
April 21, 2017 08:26PM
Thanks, I'll see how much more damage I can do this weekend.

bodhi,

I'm not at my device right now,but here are the commands I gathered for update:
1. Download your mtd2 rootfs
        http://forum.doozan.com/read.php?3,31993,32082#msg-32082
2. Download NAND and U-Boot tools (for flash_eraseall)
        http://forum.doozan.com/read.php?3,27280
3. Download ubiformat
        http://jeff.doozan.com/debian/rescue/ubiformat
4. Erase rootfs
        flash_eraseall /dev/mtd2
5. Format/Write rootfs
        ubiformat /dev/mtd2 -s 512 -f pogoplug_e02_mtd2

Also I know I need network to install the RescueV2 script but would recommend a rescue system for this device?



Edited 1 time(s). Last edit at 04/22/2017 09:56AM by fortis91.
Re: Dockstar - no network
April 22, 2017 03:14PM
fortis91,

> 1. Download your mtd2 rootfs
> http://forum.doozan.com/read.php?3,31993,3
> 2082#msg-32082

Checked.

> 2. Download NAND and U-Boot tools (for flash_erase
> all)
> http://forum.doozan.com/read.php?3,27280

Checked.


> 3. Download ubiformat
> http://jeff.doozan.com/debian/rescue/ubifo
> rmat

No need to.

> 4. Erase rootfs
> flash_eraseall /dev/mtd2

Checked.

> 5. Format/Write rootfs
> ubiformat /dev/mtd2 -s 512 -f pogoplug_e02
> _mtd2

The mtd2 is a NAND binary image, so there is no need to use UBIFS tool to format it.

The mtd2 was saved using following nanddump format:
nanddump --noecc --omitoob .......
So you need to verify the option in the nanddump version that you are using below for options --noecc --omitoob
nandwrite --help

And just do nandwrite with noecc and obmit OOB:
nandwrite  -n /dev/mtd2 mtd2

-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: Dockstar - no network
April 22, 2017 09:20PM
bodhi Wrote:
-------------------------------------------------------

> The mtd2 was saved using following nanddump format
> :
>
> nanddump --noecc --omitoob .......
>
> So you need to verify the option in the nanddump v
> ersion that you are using below for options --noec
> c --omitoob
>
> nandwrite --help
>
>
> And just do nandwrite with noecc and obmit OOB:
>
> nandwrite  -n /dev/mtd2 mtd2
>

Just wanted to verify nandwrite options, I have noecc but no omitoob
root@debian:~/tools# ./nandwrite --help
Usage: nandwrite [OPTION] MTD_DEVICE [INPUTFILE|-]
Writes to the specified MTD device.

  -a, --autoplace         Use auto OOB layout
  -m, --markbad           Mark blocks bad if write fails
  -n, --noecc             Write without ecc
  -N, --noskipbad         Write without bad block skipping
  -o, --oob               Input contains oob data
  -O, --onlyoob           Input contains oob data and only write the oob part
  -s addr, --start=addr   Set output start address (default is 0)
  -p, --pad               Pad writes to page size
  -b, --blockalign=1|2|4  Set multiple of eraseblocks to align to
      --input-skip=length Skip |length| bytes of the input file
      --input-size=length Only read |length| bytes of the input file
  -q, --quiet             Don't display progress messages
  -h, --help              Display this help and exit
      --version           Output version information and exit
Re: Dockstar - no network
April 23, 2017 03:01PM
Re: Dockstar - no network
April 23, 2017 05:59PM
bodhi,

Sorry to bother you again, just wanted to make sure I did mess the write up.
I just realize that I have flash_erase and not flash_eraseall which means I have to specify start block/block count.

Here is what I have:
root@debian:~/tools# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 0db00000 00020000 "data"
Re: Dockstar - no network
April 23, 2017 07:49PM
Re: Dockstar - no network
April 23, 2017 08:23PM
After the write I'm getting errors trying to boot off NAND. USB boot is still fine.
read_nand_cached: error reading nand off 0x7a7a00 size 8192 bytes
read_nand_cached: error reading nand off 0x809600 size 8192 bytes
read_nand_cached: error reading nand off 0x889a00 size 8192 bytes
read_nand_cached: error reading nand off 0x8a2000 size 8192 bytes
read_nand_cached: error reading nand off 0xca6200 size 8192 bytes
read_nand_cached: error reading nand off 0xcad000 size 8192 bytes
read_nand_cached: error reading nand off 0xde7800 size 8192 bytes
read_nand_cached: error reading nand off 0xe2b800 size 8192 bytes
read_nand_cached: error reading nand off 0xe8a000 size 8192 bytes
read_nand_cached: error reading nand off 0xeac800 size 8192 bytes
read_nand_cached: error reading nand off 0xeaf000 size 8192 bytes
find_inode failed for name=uboot-original-mtd0.kwb
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb!
resetting ...


U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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 
u-boot>>



Edited 1 time(s). Last edit at 04/23/2017 08:39PM by fortis91.
Re: Dockstar - no network
April 23, 2017 08:42PM
fortis91 Wrote:
-------------------------------------------------------
> bodhi,
>
> I'me getting some errors after the write
>
> read_nand_cached: error reading nand off 0x7a7a00
> size 8192 bytes
> read_nand_cached: error reading nand off 0x809600
> size 8192 bytes
> read_nand_cached: error reading nand off 0x889a00
> size 8192 bytes
> read_nand_cached: error reading nand off 0x8a2000
> size 8192 bytes
> read_nand_cached: error reading nand off 0xca6200
> size 8192 bytes
> read_nand_cached: error reading nand off 0xcad000
> size 8192 bytes
> read_nand_cached: error reading nand off 0xde7800
> size 8192 bytes
> read_nand_cached: error reading nand off 0xe2b800
> size 8192 bytes
> read_nand_cached: error reading nand off 0xe8a000
> size 8192 bytes
> read_nand_cached: error reading nand off 0xeac800
> size 8192 bytes
> read_nand_cached: error reading nand off 0xeaf000
> size 8192 bytes
> find_inode failed for name=uboot-original-mtd0.kwb
> load: Failed to find inode
> ### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kw
> b!
> resetting ...
> 
> 
> U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
> Seagate FreeAgent DockStar
> 
> SoC:   Kirkwood 88F6281_A0
> 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
> u-boot>>
>

Now that's bad news!

But you should always post the entire log. I need that to see if you did the flash correctly. And was there bad blocks shown in dmesg?

-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: Dockstar - no network
April 23, 2017 08:51PM
No bad blocks. I rebooted so I'm not sure if dmesg is still valid. I could do the write again and post dmesg.
Re: Dockstar - no network
April 23, 2017 10:48PM
fortis91 Wrote:
-------------------------------------------------------
> No bad blocks. I rebooted so I'm not sure if dmesg
> is still valid. I could do the write again and pos
> t dmesg.

If the mtdparts definition covers the whole NAND (the layout does not matter), then dmesg will show any bad block that exists in NAND flash.

-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: Dockstar - no network
April 24, 2017 04:54AM
root@debian:~# dmesg
[    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.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Seagate FreeAgent Dockstar
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c08a06b4, node_mem_map c7ef9000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    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: 113632K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17440K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
      .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
      .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
       .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000335] Console: colour dummy device 80x30
[    0.000367] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090105] pid_max: default: 32768 minimum: 301
[    0.090215] Security Framework initialized
[    0.090292] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090313] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091113] Initializing cgroup subsys io
[    0.091150] Initializing cgroup subsys devices
[    0.091175] Initializing cgroup subsys freezer
[    0.091207] Initializing cgroup subsys net_cls
[    0.091291] CPU: Testing write buffer coherency: ok
[    0.091767] Setting up static identity map for 0x8200 - 0x8258
[    0.092069] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.095848] devtmpfs: initialized
[    0.100508] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100982] prandom: seed boundary self test passed
[    0.104740] prandom: 100 self tests passed
[    0.104767] pinctrl core: initialized pinctrl subsystem
[    0.106185] NET: Registered protocol family 16
[    0.106660] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130108] cpuidle: using governor ladder
[    0.160107] cpuidle: using governor menu
[    0.160542] Feroceon L2: Enabling L2
[    0.160589] Feroceon L2: Cache support initialised.
[    0.160973] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165880] No ATAGs?
[    0.201617] vgaarb: loaded
[    0.201994] usbcore: registered new interface driver usbfs
[    0.202078] usbcore: registered new interface driver hub
[    0.202142] usbcore: registered new device driver usb
[    0.203262] clocksource: Switched to clocksource orion_clocksource
[    0.259067] NET: Registered protocol family 2
[    0.259890] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259917] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259937] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260009] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260033] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260236] NET: Registered protocol family 1
[    0.260647] RPC: Registered named UNIX socket transport module.
[    0.260660] RPC: Registered udp transport module.
[    0.260668] RPC: Registered tcp transport module.
[    0.260676] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.260698] PCI: CLS 0 bytes, default 32
[    0.260963] Unpacking initramfs...
[    0.907941] Freeing initrd memory: 7012K (c1100000 - c17d9000)
[    0.908088] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.909209] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.909286] audit: initializing netlink subsys (disabled)
[    0.909340] audit: type=2000 audit(0.900:1): initialized
[    0.909700] Initialise system trusted keyring
[    0.910106] zbud: loaded
[    0.910411] VFS: Disk quotas dquot_6.6.0
[    0.910473] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.911033] NFS: Registering the id_resolver key type
[    0.911072] Key type id_resolver registered
[    0.911082] Key type id_legacy registered
[    0.911108] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.911123] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.911352] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.911886] Key type big_key registered
[    0.932308] Key type asymmetric registered
[    0.932331] Asymmetric key parser 'x509' registered
[    0.932433] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.932455] io scheduler noop registered
[    0.932470] io scheduler deadline registered
[    0.932534] io scheduler cfq registered (default)
[    0.934115] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.934796] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.935222] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.935762] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.973970] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.974209] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013941] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.014442] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.015861] console [ttyS0] disabled
[    1.015927] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    1.617242] console [ttyS0] enabled
[    1.622126] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    1.628547] nand: Micron MT29F2G08AAD
[    1.632228] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.639859] Scanning device for bad blocks
[    1.801029] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.807343] Creating 4 MTD partitions on "orion_nand":
[    1.812517] 0x000000000000-0x000000100000 : "u-boot"
[    1.818874] 0x000000100000-0x000000500000 : "uImage"
[    1.825136] 0x000000500000-0x000002500000 : "rootfs"
[    1.831383] 0x000002500000-0x000010000000 : "data"
[    1.838852] libphy: Fixed MDIO Bus: probed
[    1.843374] libphy: orion_mdio_bus: probed
[    1.852489] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.933955] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    2.942839] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.949463] ehci-pci: EHCI PCI platform driver
[    2.954028] ehci-orion: EHCI orion driver
[    2.958239] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.963811] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.971746] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.993298] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.999561] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.006408] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.013689] usb usb1: Product: EHCI Host Controller
[    3.018587] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    3.025250] usb usb1: SerialNumber: f1050000.ehci
[    3.030749] hub 1-0:1.0: USB hub found
[    3.034605] hub 1-0:1.0: 1 port detected
[    3.039553] mousedev: PS/2 mouse device common for all mice
[    3.353296] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.504876] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.511629] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.518836] usb 1-1: Product: USB2.0 Hub
[    3.523751] hub 1-1:1.0: USB hub found
[    3.527878] hub 1-1:1.0: 4 ports detected
[    3.813289] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.930497] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
[    3.937434] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.944816] usb 1-1.2: Product: Mass Storage
[    3.949107] usb 1-1.2: SerialNumber: 02CB61F5
[    4.053295] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.058932] i2c /dev entries driver
[    4.063841] hidraw: raw HID events driver (C) Jiri Kosina
[    4.069658] drop_monitor: Initializing network drop monitor service
[    4.076244] NET: Registered protocol family 17
[    4.080976] Key type dns_resolver registered
[    4.086188] registered taskstats version 1
[    4.090353] Loading compiled-in X.509 certificates
[    4.095287] zswap: loaded using pool lzo/zbud
[    4.108667] Key type encrypted registered
[    4.113245] hctosys: unable to open rtc device (rtc0)
[    4.119585] PM: Hibernation image not present or could not be loaded.
[    4.120734] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
[    4.197800] systemd-udevd[83]: starting version 215
[    4.214953] random: systemd-udevd urandom read with 7 bits of entropy available
[    4.390410] SCSI subsystem initialized
[    4.420848] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    4.465408] scsi host0: usb-storage 1-1.2:1.0
[    4.478630] usbcore: registered new interface driver usb-storage
[    4.506336] usbcore: registered new interface driver uas
[    5.465603] scsi 0:0:0:0: Direct-Access              USB Disk         8.07 PQ: 0 ANSI: 4
[    5.483441] sd 0:0:0:0: [sda] 62095360 512-byte logical blocks: (31.7 GB/29.6 GiB)
[    5.491920] sd 0:0:0:0: [sda] Write Protect is off
[    5.496819] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    5.497785] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.513786]  sda: sda1
[    5.520161] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.529948] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   19.881567] EXT2-fs (sda1): warning: mounting ext3 filesystem as ext2
[   22.924443] random: nonblocking pool is initialized
[   23.011003] systemd-udevd[287]: starting version 215
[   24.074999] orion_wdt: Initial timeout 21 sec
[   24.253966] marvell-cesa: probe of f1030000.crypto failed with error -524
[   29.243909] NET: Registered protocol family 10
[   30.577241] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
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: