Welcome! Log In Create A New Profile

Advanced

Dockstar - no network

Posted by fortis91 
Re: Dockstar - no network
April 24, 2017 03:04PM
fortis91,

No bad block.

I think it perhaps time to install new u-boot:

http://forum.doozan.com/read.php?3,12381

And see if things will get better and easier. That NAND rootfs was running OK on one of my Pogo E02.

-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 10:13PM
Tried updating u-boot, ran into problems.

u-Boot:
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:34:27 -0700)
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
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
Hit any key to stop autoboot:  0 
DockStar>

printenv
DockStar> printenv            
arcNumber=2998
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x1c00000; else bootm 0x800000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dockstar.dtb
ethact=egiga0
ethaddr=xx:xx:xx:xx:xx:xx
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x1c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 0x800000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.200
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2817/131068 bytes


USB boot:
DockStar> boot
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	62093312  	5f86e5a4-01	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 274 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165294 bytes read in 468 ms (6.4 MiB/s)
loading uInitrd ...
7179935 bytes read in 629 ms (10.9 MiB/s)
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
10398 bytes read in 332 ms (30.3 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2017-04-21   2:55:44 UTC
   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
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0743b000, end 07b13e5f ... OK
   Loading Device Tree to 07435000, end 0743a89d ... 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] bootconsole [earlycon0] enabled
[    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,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    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: 120644K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 10428K 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.008273] Console: colour dummy device 80x30
[    0.012846] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100932] pid_max: default: 32768 minimum: 301
[    0.105752] Security Framework initialized
[    0.110067] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116806] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124809] Initializing cgroup subsys io
[    0.128995] Initializing cgroup subsys devices
[    0.133565] Initializing cgroup subsys freezer
[    0.138181] Initializing cgroup subsys net_cls
[    0.142809] CPU: Testing write buffer coherency: ok
[    0.148317] Setting up static identity map for 0x8200 - 0x8258
[    0.154552] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.163622] devtmpfs: initialized
[    0.171672] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.182150] prandom: seed boundary self test passed
[    0.190964] prandom: 100 self tests passed
[    0.195190] pinctrl core: initialized pinctrl subsystem
[    0.201966] NET: Registered protocol family 16
[    0.206956] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238051] cpuidle: using governor ladder
[    0.268051] cpuidle: using governor menu
[    0.272486] Feroceon L2: Enabling L2
[    0.276204] Feroceon L2: Cache support initialised.
[    0.281611] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297092] No ATAGs?
[    0.329561] vgaarb: loaded
[    0.333000] usbcore: registered new interface driver usbfs
[    0.338732] usbcore: registered new interface driver hub
[    0.344226] usbcore: registered new device driver usb
[    0.350498] clocksource: Switched to clocksource orion_clocksource
[    0.412612] NET: Registered protocol family 2
[    0.417885] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.425108] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.431610] TCP: Hash tables configured (established 1024 bind 1024)
[    0.438144] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.444124] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.450726] NET: Registered protocol family 1
[    0.455542] RPC: Registered named UNIX socket transport module.
[    0.461631] RPC: Registered udp transport module.
[    0.466444] RPC: Registered tcp transport module.
[    0.471269] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.478206] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.485929] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.492275] audit: initializing netlink subsys (disabled)
[    0.497821] audit: type=2000 audit(0.480:1): initialized
[    0.503662] Initialise system trusted keyring
[    0.508463] zbud: loaded
[    0.511421] VFS: Disk quotas dquot_6.6.0
[    0.515504] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.523188] NFS: Registering the id_resolver key type
[    0.528374] Key type id_resolver registered
[    0.532716] Key type id_legacy registered
[    0.536852] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.543696] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.550387] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.558094] Key type big_key registered
[    0.573450] Key type asymmetric registered
[    0.577668] Asymmetric key parser 'x509' registered
[    0.582831] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.590358] io scheduler noop registered
[    0.594573] io scheduler deadline registered
[    0.599011] io scheduler cfq registered (default)
[    0.605215] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.613418] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.620858] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.628380] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.671189] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.678835] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.721191] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.729098] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.737027] console [ttyS0] disabled
[    0.740821] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.749943] console [ttyS0] enabled
[    0.749943] console [ttyS0] enabled
[    0.757081] bootconsole [earlycon0] disabled
[    0.757081] bootconsole [earlycon0] disabled
[    0.767184] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.773609] nand: Micron MT29F2G08AAD
[    0.777289] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.784920] Scanning device for bad blocks
[    0.948640] libphy: Fixed MDIO Bus: probed
[    0.953178] libphy: orion_mdio_bus: probed
[    0.958042] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.041139] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    2.050029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.056716] ehci-pci: EHCI PCI platform driver
[    2.061285] ehci-orion: EHCI orion driver
[    2.065486] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.071051] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.078903] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.100532] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.106805] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.113659] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.120930] usb usb1: Product: EHCI Host Controller
[    2.125829] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    2.132492] usb usb1: SerialNumber: f1050000.ehci
[    2.137953] hub 1-0:1.0: USB hub found
[    2.141811] hub 1-0:1.0: 1 port detected
[    2.146732] mousedev: PS/2 mouse device common for all mice
[    2.460531] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.612159] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.618905] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.626114] usb 1-1: Product: USB2.0 Hub
[    2.631012] hub 1-1:1.0: USB hub found
[    2.635160] hub 1-1:1.0: 4 ports detected
[    2.920526] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.037784] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
[    3.044718] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.052093] usb 1-1.2: Product: Mass Storage
[    3.056384] usb 1-1.2: SerialNumber: 02CB61F5
[    3.160527] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.166172] i2c /dev entries driver
[    3.171009] hidraw: raw HID events driver (C) Jiri Kosina
[    3.176850] drop_monitor: Initializing network drop monitor service
[    3.183436] NET: Registered protocol family 17
[    3.188166] Key type dns_resolver registered
[    3.193363] registered taskstats version 1
[    3.197526] Loading compiled-in X.509 certificates
[    3.202436] zswap: loaded using pool lzo/zbud
[    3.207934] Key type encrypted registered
[    3.212527] hctosys: unable to open rtc device (rtc0)
[    3.219064] Waiting 10 sec before mounting root device...
[   13.230764] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   13.238106] Please append a correct "root=" boot option; here are the available partitions:
[   13.246553] 1f00          262144 mtdblock0  (driver?)
[   13.251680] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.259980] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[   13.266969] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.273296] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[   13.281079] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[   13.287997] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[   13.295518] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[   13.303391] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[   13.311431] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[   13.320358] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[   13.328490] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[   13.336102] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Tried adding uEnv.txt, I'm stuck now.
dtb_file=/boot/dts/kirkwood-dockstar.dtb
devices=usb
devices=usb
disks=0 1 2 3 4
Re: Dockstar - no network
April 25, 2017 02:26AM
fortis91,

Remember that the rootfs that you've created was to boot with stock u-boot. So step 4 was needed to append the 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

Now you are booting with the new u-boot, so you need to reverse step 4 so that you can boot with separate DTB (which is the new u-boot default envs are set up to do):

cd /media/sdb1/boot
mv uImage uImage.dockstar
mv uImage.orig uImage

-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 25, 2017 05:02AM
bodhi Wrote:
-------------------------------------------------------
This fixed booting the rootfs from USB
>
> cd /media/sdb1/boot
> mv uImage uImage.dockstar
> mv uImage.orig uImage
>

Now for NAND:
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:34:27 -0700)
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
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

no USB devices available
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Unknown command 'ide' - try 'help'
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
DockStar>
Re: Dockstar - no network
April 25, 2017 03:19PM
fortis91,

> This fixed booting the rootfs from USB

Cool!

Of course it can't boot stock OS without retrofitting the envs set up that you had previously. You have flashed a new default envs that come with the new u-boot. Let's go back a few posts and find 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 25, 2017 03:28PM
Power up, interrupt serial console. Verify that you have the bootcmd defined like this (from default):

bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec

And now to boot stock when no USB rootfs plugged in:

setenv pogo_bootcmd 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi'
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run pogo_bootcmd; reset'

And then try booting without saving the envs

boot

After you are sure that stock OS boots OK with this set up, boot back to USB Debian rootfs and set them for real in Debian (using fw_setenv).

-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 25, 2017 04:42PM
Back to nand errors. If it's a problem with the roofs I flashed to NAND, is it time to try a new one? Also I have another Dockstar If I can back up can write to this one.
The log is a bit long...
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
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
Hit any key to stop autoboot:  0 
DockStar> printenv bootcmd
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
DockStar> setenv pogo_bootcmd 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi'
DockStar> setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run pogo_bootcmd; reset'
DockStar> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

no USB devices available
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Unknown command 'ide' - try 'help'
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:   read_nand_cached: error reading nand off 0x500000 size 8192 bytes
.  read_nand_cached: error reading nand off 0x502400 size 8192 bytes
read_nand_cached: error reading nand off 0x504400 size 8192 bytes
read_nand_cached: error reading nand off 0x506400 size 8192 bytes
read_nand_cached: error reading nand off 0x508a00 size 8192 bytes
read_nand_cached: error reading nand off 0x50b000 size 8192 bytes
read_nand_cached: error reading nand off 0x50d800 size 8192 bytes
read_nand_cached: error reading nand off 0x50f800 size 8192 bytes
read_nand_cached: error reading nand off 0x511e00 size 8192 bytes
read_nand_cached: error reading nand off 0x514600 size 8192 bytes
read_nand_cached: error reading nand off 0x517000 size 8192 bytes
.
.
.
.
read_nand_cached: error reading nand off 0xdf0c00 size 8192 bytes
read_nand_cached: error reading nand off 0xe2b800 size 8192 bytes
read_nand_cached: error reading nand off 0xe87600 size 8192 bytes
read_nand_cached: error reading nand off 0xe8a000 size 8192 bytes
read_nand_cached: error reading nand off 0xeaba00 size 8192 bytes
read_nand_cached: error reading nand off 0xeb2200 size 8192 bytes
read_nand_cached: error reading nand off 0xeb8600 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 ...
Re: Dockstar - no network
April 25, 2017 05:04PM
fortis91,

> Back to nand errors. If it's a problem with the ro
> ofs I flashed to NAND, is it time to try a new one
> ? Also I have another Dockstar If I can back up ca
> n write to this one.

Yes, either use the 2nd one I posted previously. Or do nanddump for your 2nd Dockstar.

-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 25, 2017 07:57PM
No dice with fixing the NAND rootfs.

First flash the second one you posted, then dump from Dockstar using the following commands:

Dump
nanddump --noecc -f mtd2.dockstar /dev/mtd2

Write
flash_erase /dev/mtd2 0 0
nandwrite --n /dev/mtd2 mtd2.dockstar

The NAND was corrupt to begin with so no loss, I have a PogoV4/Mobile on order to replace this Dockstar.

bodhi,

Thanks for all your assistance, it's been a pleasant learning experience.
Re: Dockstar - no network
April 25, 2017 09:13PM
Re: Dockstar - no network
April 26, 2017 05:05PM
fortis91,

BTW. This should be:

flash_erase /dev/mtd2 0 0
nandwrite -n /dev/mtd2 mtd2.dockstar

Note the syntax error above with 2 dashes: --n

-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 26, 2017 05:35PM
bodhi,

Thanks for double checking... actually I just saw that and redid it. The dockstar I used also had some bad blocks so I dumped from another but same results.

I'm now going to try the RescueV2 - http://forum.doozan.com/read.php?4,3896 but since I have no internet on the device I will just do it manually.
I downloaded mtd1 and mtd2. Please check this is you have time.
flash_erase /dev/mtd1 0 0
nandwrite /dev/mtd1 uImage-mtd1.img

flash_erase /dev/mtd2 0 0
ubiformat /dev/mtd2 -s 512 -f rootfs-mtd2.img -y

As long as I have u-Boot working and don't mess with mtd0 I should be good to recover right?
Re: Dockstar - no network
April 26, 2017 07:47PM
fortis91,

> I'm now going to try the RescueV2

As long as you copy and paste the commands in that post, it will be OK. I don't need to check it.

>
> As long as I have u-Boot working and don't mess wi
> th mtd0 I should be good to recover right?

Yes, once it boots into USB Debian rootfs, avoid messing with mtd0. And since you need to change envs to boot rescue, pay special attention and avoid any setenv command that deals with preboot.

preboot env should be very carefully set if needed for the Dockstar (there is no UART booting to recover). Only when you need to setup netconsole then you need to set preboot to trigger that. In all other cases, preboot should be kept as is.

-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 26, 2017 09:06PM
Cool... Flashing RescueV2 fixed the NAND errors, too bad about the ethernet port...
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:34:27 -0700)
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
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
No link on egiga0
ping failed; host 192.168.1.200 is not alive
Hit any key to stop autoboot:  0 
DockStar> setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts' 
DockStar> setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000' 
DockStar> setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue'
DockStar> setenv rescue_installed 1 
DockStar> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

no USB devices available
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Unknown command 'ide' - try 'help'
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32.18-dockstar
   Created:      2011-02-17   8:10:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3236180 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux............................................................................................................................................................................................................. done, booting the kernel.


          Jeff Doozan's
Dockstar/Pogoplug Recovery System

rescue login:

I'm able to boot both NAND and USB, are these ok to save or do you suggest any changes?
setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts' 
setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000' 
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue'
setenv rescue_installed 1
Re: Dockstar - no network
April 26, 2017 09:15PM
> I'm able to boot both NAND and USB, are these ok t
> o save or do you suggest any changes?

Cool!

> setenv set_bootargs_rescue 'setenv bootargs consol
> e=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstyp
> e=ubifs $mtdparts'
> setenv bootcmd_rescue 'run set_bootargs_rescue; na
> nd read.e 0x800000 0x100000 0x400000; bootm 0x8000
> 00'
> setenv bootcmd 'run bootcmd_uenv; run scan_disk; r
> un set_bootargs; run bootcmd_exec; run bootcmd_res
> cue'
> setenv rescue_installed 1
>

The above looks great to me. I would make sure somewhere there is a reset. Such as,

setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue; reset'

So that if all fails, the box will restart and keep trying to boot. It will help in the case where the USB is slow coming up. And you can tell that by seeing the LED flashing in a certain pattern. Without the reset, the box will just hang after the first try.

-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 28, 2017 11:18AM
bodhi,

Just want to say thanks again for all the time you put in to here.

I now have a Pogoplug V4/mobile so but I'm reading up before messing with it. But in the meantime I'm still using the Dockstar as a testbed.

Thanks again.
Re: Dockstar - no network
April 28, 2017 05:48PM
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: