Welcome! Log In Create A New Profile

Advanced

2017.07-2023.04 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325, Dreamplug

Posted by bodhi 
Hi Bodhi,

I followed your instruction and reboot the device. I can not get into rescue nor USB now. What I should do next?

Thanks
Codier,

Power up, and interrupt neconsole, get the listing of u-booot envs and post here:

printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi Bodhi,

I will see if netconsole works(it probably not). In this situation,is serial cable my next step?

Thanks
codier,

Should try these in order:

1. Try netconsole, if you can connect with netconsole, it is easy to fix.
2. Recreate the 3.17 or 3.16 USB rootfs from scratch, by try booting with it, observe LED light to see the booting progress, if any.
3. Try davygravy's rescue tarball (since you have rescue installed).

If all 3 above failed, then

4. Connect serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Thanks alot Bodhi:

I will report it back once I try the steps.
Hi Bodhi,

Didn't work for 1,2 and 3. Finally had to connect via serial console.
below is my printenv

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
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
DockStar> printenv
arcNumber=2998
baudrate=115200
bootcmd=run bootcmd_uenv; run force_rescue_bootcmd; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run rescue_bootcmd; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=00:10:75:1A:3D:0C
force_rescue=0
force_rescue_bootcmd=if test  -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
if_netconsole=ping $serverip
ipaddr=192.168.2.108
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot_nc=run if_netconsole start_netconsole
rescue_bootcmd=if test  -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=1
rescue_set_bootargs=setenv bootargs console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
serverip=192.168.2.106
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
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_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; 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_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 3372/131068 bytes
DockStar>



Edited 1 time(s). Last edit at 01/29/2015 10:04PM by codier.
Here is normal boot and stops at the bottom.

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
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...
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 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

no USB devices available
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

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.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Feb 17 03:09:57 EST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, 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 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs
[    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: 128MB = 128MB total
[    0.000000] Memory: 122836KB available (5968K code, 708K data, 128K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474969] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714930] Security Framework initialized
[   21.714953] SELinux:  Disabled at boot.
[   21.714982] Mount-cache hash table entries: 512
[   21.715294] Initializing cgroup subsys ns
[   21.715311] Initializing cgroup subsys cpuacct
[   21.715321] Initializing cgroup subsys devices
[   21.715330] Initializing cgroup subsys freezer
[   21.715337] Initializing cgroup subsys net_cls
[   21.715383] CPU: Testing write buffer coherency: ok
[   21.716191] devtmpfs: initialized
[   21.717934] regulator: core version 0.5
[   21.718159] NET: Registered protocol family 16
[   21.718690] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.718704] Feroceon L2: Enabling L2
[   21.718739] Feroceon L2: Cache support initialised.
[   21.721790] bio: create slab <bio-0> at 0
[   21.722063] vgaarb: loaded
[   21.722340] SCSI subsystem initialized
[   21.722588] usbcore: registered new interface driver usbfs
[   21.722648] usbcore: registered new interface driver hub
[   21.722742] usbcore: registered new device driver usb
[   21.723179] Switching to clocksource orion_clocksource
[   21.728506] NET: Registered protocol family 2
[   21.728768] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.729584] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.729684] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.729737] TCP: Hash tables configured (established 4096 bind 4096)
[   21.729746] TCP reno registered
[   21.729907] NET: Registered protocol family 1
[   21.730198] RPC: Registered udp transport module.
[   21.730207] RPC: Registered tcp transport module.
[   21.730215] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.730359] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.730611] audit: initializing netlink socket (disabled)
[   21.730641] type=2000 audit(0.241:1): initialized
[   21.737424] VFS: Disk quotas dquot_6.5.2
[   21.737685] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.740276] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   21.741887] Registering the dns_resolver key type
[   21.741938] Slow work thread pool: Starting up
[   21.742056] Slow work thread pool: Ready
[   21.742066] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.742826] fuse init (API version 7.13)
[   21.743319] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   21.744857] msgmni has been set to 240
[   21.746951] alg: No test for stdrng (krng)
[   21.747105] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[   21.747118] io scheduler noop registered
[   21.747126] io scheduler anticipatory registered
[   21.747133] io scheduler deadline registered
[   21.747394] io scheduler cfq registered (default)
[   21.753415] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.753875] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.133359] console [ttyS0] enabled
[   22.137442] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[   22.146066] Scanning device for bad blocks
[   22.226099] Creating 3 MTD partitions on "orion_nand":
[   22.231264] 0x000000000000-0x000000100000 : "u-boot"
[   22.236836] 0x000000100000-0x000000500000 : "uImage"
[   22.242268] 0x000000500000-0x000010000000 : "root"
[   22.247971] UBI: attaching mtd2 to ubi0
[   22.251831] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[   22.258143] UBI: logical eraseblock size:    129024 bytes
[   22.263575] UBI: smallest flash I/O unit:    2048
[   22.268299] UBI: sub-page size:              512
[   22.272939] UBI: VID header offset:          512 (aligned 512)
[   22.278807] UBI: data offset:                2048
[   22.333186] UBI error: ubi_scan_add_used: two LEBs with same sequence number 1
[   22.340556] UBI error: ubi_init: cannot attach mtd2
[   22.345586] UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
[   22.352841] MV-643xx 10/100/1000 ethernet driver version 1.4
[   22.358618] mv643xx_eth smi: probed
[   22.363953] net eth0: port 0 with MAC address 00:10:75:1a:3d:0c
[   22.369979] console [netcon0] enabled
[   22.373673] netconsole: network logging started
[   22.378225] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   22.384840] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   22.390136] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   22.423233] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   22.443216] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   22.449217] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   22.456049] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   22.463316] usb usb1: Product: Marvell Orion EHCI
[   22.468041] usb usb1: Manufacturer: Linux 2.6.32.18-dockstar ehci_hcd
[   22.474519] usb usb1: SerialNumber: orion-ehci.0
[   22.479476] usb usb1: configuration #1 chosen from 1 choice
[   22.485230] hub 1-0:1.0: USB hub found
[   22.489022] hub 1-0:1.0: 1 port detected
[   22.493262] Initializing USB Mass Storage driver...
[   22.498244] usbcore: registered new interface driver usb-storage
[   22.504300] USB Mass Storage support registered.
[   22.509154] mice: PS/2 mouse device common for all mice
[   22.514475] i2c /dev entries driver
[   22.518737] device-mapper: uevent: version 1.0.3
[   22.523793] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[   22.532354] cpuidle: using governor ladder
[   22.536618] cpuidle: using governor menu
[   22.540655] Registered led device: dockstar:green:health
[   22.546067] Registered led device: dockstar:orange:misc
[   22.551370] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   22.557794] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   22.603250] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   22.643246] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   22.683298] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   22.723247] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   22.729033] Netfilter messages via NETLINK v0.30.
[   22.733831] nf_conntrack version 0.5.0 (1921 buckets, 7684 max)
[   22.740283] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   22.747740] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[   22.755706] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   22.764302] ip_tables: (C) 2000-2006 Netfilter Core Team
[   22.769693] TCP cubic registered
[   22.772937] NET: Registered protocol family 17
[   22.777781] registered taskstats version 1
[   22.782588] Initalizing network drop monitor service
[   22.787674] md: Waiting for all devices to be available before autodetect
[   22.794503] md: If you don't use raid, use raid=noautodetect
[   22.800578] md: Autodetecting RAID arrays.
[   22.804713] md: Scanned 0 and added 0 devices.
[   22.809174] md: autorun ...
[   22.811973] md: ... autorun DONE.
[   22.815338] usb 1-1: new high speed USB device using orion-ehci and address 2
[   22.822573] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
[   22.830309] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[   22.837406] Please append a correct "root=" boot option; here are the available partitions:
[   22.845822] 1f00            1024 mtdblock0 (driver?)
[   22.850817] 1f01            4096 mtdblock1 (driver?)
[   22.855824] 1f02          257024 mtdblock2 (driver?)
[   22.860818] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   22.869153] [<c002eee4>] (unwind_backtrace+0x0/0xdc) from [<c04a31d4>] (panic+0x34/0x128)
[   22.877391] [<c04a31d4>] (panic+0x34/0x128) from [<c0008f5c>] (mount_block_root+0x25c/0x2b4)
[   22.885887] [<c0008f5c>] (mount_block_root+0x25c/0x2b4) from [<c00090b0>] (prepare_namespace+0x90/0x190)
[   22.895427] [<c00090b0>] (prepare_namespace+0x90/0x190) from [<c00085e0>] (kernel_init+0xf0/0x12c)
[   22.904448] [<c00085e0>] (kernel_init+0xf0/0x12c) from [<c0029e7c>] (kernel_thread_exit+0x0/0x8)

codier,

It is now much easier with serial console. You can create the 3.16 or 3.17 rootfs per instruction:
http://forum.doozan.com/read.php?2,12096

Pls boot with the new rootfs and let us know once you're in Debian (post serial console log here if problem).

Meanwhile I will take a look at your u-boot envs for rescue settings.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi Bodhi,

Following is the result boot from USB (3.17)

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
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...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15122944        000e2f0c-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

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.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Feb 17 03:09:57 EST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, 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 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs
[    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: 128MB = 128MB total
[    0.000000] Memory: 122836KB available (5968K code, 708K data, 128K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474969] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714930] Security Framework initialized
[   21.714953] SELinux:  Disabled at boot.
[   21.714982] Mount-cache hash table entries: 512
[   21.715294] Initializing cgroup subsys ns
[   21.715311] Initializing cgroup subsys cpuacct
[   21.715321] Initializing cgroup subsys devices
[   21.715330] Initializing cgroup subsys freezer
[   21.715337] Initializing cgroup subsys net_cls
[   21.715383] CPU: Testing write buffer coherency: ok
[   21.716191] devtmpfs: initialized
[   21.717934] regulator: core version 0.5
[   21.718159] NET: Registered protocol family 16
[   21.718690] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.718704] Feroceon L2: Enabling L2
[   21.718739] Feroceon L2: Cache support initialised.
[   21.721790] bio: create slab <bio-0> at 0
[   21.722063] vgaarb: loaded
[   21.722340] SCSI subsystem initialized
[   21.722588] usbcore: registered new interface driver usbfs
[   21.722648] usbcore: registered new interface driver hub
[   21.722742] usbcore: registered new device driver usb
[   21.723179] Switching to clocksource orion_clocksource
[   21.728507] NET: Registered protocol family 2
[   21.728768] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.729582] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.729681] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.729735] TCP: Hash tables configured (established 4096 bind 4096)
[   21.729744] TCP reno registered
[   21.729904] NET: Registered protocol family 1
[   21.730197] RPC: Registered udp transport module.
[   21.730207] RPC: Registered tcp transport module.
[   21.730214] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.730359] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.730610] audit: initializing netlink socket (disabled)
[   21.730641] type=2000 audit(0.241:1): initialized
[   21.737425] VFS: Disk quotas dquot_6.5.2
[   21.737687] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.740279] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   21.741889] Registering the dns_resolver key type
[   21.741940] Slow work thread pool: Starting up
[   21.742058] Slow work thread pool: Ready
[   21.742067] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.742826] fuse init (API version 7.13)
[   21.743316] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   21.744853] msgmni has been set to 240
[   21.746944] alg: No test for stdrng (krng)
[   21.747103] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[   21.747116] io scheduler noop registered
[   21.747124] io scheduler anticipatory registered
[   21.747132] io scheduler deadline registered
[   21.747393] io scheduler cfq registered (default)
[   21.753406] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.753865] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.133352] console [ttyS0] enabled
[   22.137436] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[   22.146058] Scanning device for bad blocks
[   22.226076] Creating 3 MTD partitions on "orion_nand":
[   22.231248] 0x000000000000-0x000000100000 : "u-boot"
[   22.236817] 0x000000100000-0x000000500000 : "uImage"
[   22.242242] 0x000000500000-0x000010000000 : "root"
[   22.247935] UBI: attaching mtd2 to ubi0
[   22.251789] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[   22.258102] UBI: logical eraseblock size:    129024 bytes
[   22.263533] UBI: smallest flash I/O unit:    2048
[   22.268257] UBI: sub-page size:              512
[   22.272896] UBI: VID header offset:          512 (aligned 512)
[   22.278765] UBI: data offset:                2048
[   22.333143] UBI error: ubi_scan_add_used: two LEBs with same sequence number 1
[   22.340513] UBI error: ubi_init: cannot attach mtd2
[   22.345545] UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
[   22.352795] MV-643xx 10/100/1000 ethernet driver version 1.4
[   22.358576] mv643xx_eth smi: probed
[   22.363910] net eth0: port 0 with MAC address 00:10:75:1a:3d:0c
[   22.369928] console [netcon0] enabled
[   22.373621] netconsole: network logging started
[   22.378174] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   22.384789] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   22.390084] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   22.423233] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   22.443216] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   22.449220] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   22.456060] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   22.463325] usb usb1: Product: Marvell Orion EHCI
[   22.468051] usb usb1: Manufacturer: Linux 2.6.32.18-dockstar ehci_hcd
[   22.474529] usb usb1: SerialNumber: orion-ehci.0
[   22.479488] usb usb1: configuration #1 chosen from 1 choice
[   22.485241] hub 1-0:1.0: USB hub found
[   22.489032] hub 1-0:1.0: 1 port detected
[   22.493271] Initializing USB Mass Storage driver...
[   22.498254] usbcore: registered new interface driver usb-storage
[   22.504311] USB Mass Storage support registered.
[   22.509161] mice: PS/2 mouse device common for all mice
[   22.514484] i2c /dev entries driver
[   22.518747] device-mapper: uevent: version 1.0.3
[   22.523799] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[   22.532364] cpuidle: using governor ladder
[   22.536628] cpuidle: using governor menu
[   22.540665] Registered led device: dockstar:green:health
[   22.546076] Registered led device: dockstar:orange:misc
[   22.551381] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   22.557803] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   22.603252] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   22.643246] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   22.683298] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   22.723247] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   22.729036] Netfilter messages via NETLINK v0.30.
[   22.733839] nf_conntrack version 0.5.0 (1921 buckets, 7684 max)
[   22.740284] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   22.747742] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[   22.755707] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   22.764307] ip_tables: (C) 2000-2006 Netfilter Core Team
[   22.769702] TCP cubic registered
[   22.772946] NET: Registered protocol family 17
[   22.777793] registered taskstats version 1
[   22.782595] Initalizing network drop monitor service
[   22.787683] md: Waiting for all devices to be available before autodetect
[   22.794513] md: If you don't use raid, use raid=noautodetect
[   22.800588] md: Autodetecting RAID arrays.
[   22.804724] md: Scanned 0 and added 0 devices.
[   22.809184] md: autorun ...
[   22.811983] md: ... autorun DONE.
[   22.815348] usb 1-1: new high speed USB device using orion-ehci and address 2
[   22.822584] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
[   22.830320] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[   22.837415] Please append a correct "root=" boot option; here are the available partitions:
[   22.845832] 1f00            1024 mtdblock0 (driver?)
[   22.850827] 1f01            4096 mtdblock1 (driver?)
[   22.855833] 1f02          257024 mtdblock2 (driver?)
[   22.860828] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   22.869162] [<c002eee4>] (unwind_backtrace+0x0/0xdc) from [<c04a31d4>] (panic+0x34/0x128)
[   22.877399] [<c04a31d4>] (panic+0x34/0x128) from [<c0008f5c>] (mount_block_root+0x25c/0x2b4)
[   22.885898] [<c0008f5c>] (mount_block_root+0x25c/0x2b4) from [<c00090b0>] (prepare_namespace+0x90/0x190)
[   22.895445] [<c00090b0>] (prepare_namespace+0x90/0x190) from [<c00085e0>] (kernel_init+0xf0/0x12c)
[   22.904466] [<c00085e0>] (kernel_init+0xf0/0x12c) from [<c0029e7c>] (kernel_thread_exit+0x0/0x8)


codier,

These rescue envs were missing some variables. In serial console, reset the 3 envs below and then boot. Once you are in Debian, you can set them permanently with fw_setenv,

setenv 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'
setenv rescue_bootcmd 'if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi'
setenv rescue_set_bootargs 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params'
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Thanks bodhi,

by the way, Do I need the following one?
setenv pogo_bootcmd 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi'



Edited 1 time(s). Last edit at 01/30/2015 09:07AM by codier.
codier Wrote:
-------------------------------------------------------
> Thanks bodhi,
>
> by the way, Do I need the following one?
>
> setenv pogo_bootcmd 'if fsload
> uboot-original-mtd0.kwb; then go 0x800200; fi'
>

Only if you want to boot back to Pogo OS. It is not needed, since you already have rescue system installed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I see, bodhi

I need some advise from you.
Is there a way to check the version and completeness of my rescue system? or regardless working or not maybe just reinstall it following by this link? Rescue V2.8.2 by davygravy

Regards,
codier Wrote:
-------------------------------------------------------
> I see, bodhi
>
> I need some advise from you.
> Is there a way to check the version and
> completeness of my rescue system? or regardless
> working or not maybe just reinstall it following
> by this link?
> Rescu
> e V2.8.2 by davygravy

>
> Regards,

Just boot without the USB rootfs, and look at the serial console log to make sure it has no error. Ssh into the rescue system and check dmesg log.

Other than that, nothing else is really needed. It's a system to fallback when the USB rootfs is bad. You can also test with an empty USB to test the fallback booting process.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi bodhi,

Thanks for all your help. It's working now. But I have a question.
why it was trying boot USB few times and also keep doing the following
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
** Bad device usb 0 **

anything wrong at beginning of the script?


Please see the follow log.

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
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...
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 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

no USB devices available
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
** Bad device usb 0 **
** Bad device usb 0 **
(Re)start 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
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'mmc' - try 'help'
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'ide' - try 'help'
** Bad device ide 0 **
** Bad device ide 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.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Feb 17 03:09:57 EST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, 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 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs 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: 128MB = 128MB total
[    0.000000] Memory: 122836KB available (5968K code, 708K data, 128K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474969] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714929] Security Framework initialized
[   21.714950] SELinux:  Disabled at boot.
[   21.714978] Mount-cache hash table entries: 512
[   21.715289] Initializing cgroup subsys ns
[   21.715305] Initializing cgroup subsys cpuacct
[   21.715315] Initializing cgroup subsys devices
[   21.715325] Initializing cgroup subsys freezer
[   21.715333] Initializing cgroup subsys net_cls
[   21.715380] CPU: Testing write buffer coherency: ok
[   21.716191] devtmpfs: initialized
[   21.717938] regulator: core version 0.5
[   21.718167] NET: Registered protocol family 16
[   21.718697] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.718711] Feroceon L2: Enabling L2
[   21.718747] Feroceon L2: Cache support initialised.
[   21.721795] bio: create slab <bio-0> at 0
[   21.722068] vgaarb: loaded
[   21.722347] SCSI subsystem initialized
[   21.722595] usbcore: registered new interface driver usbfs
[   21.722656] usbcore: registered new interface driver hub
[   21.722748] usbcore: registered new device driver usb
[   21.723182] Switching to clocksource orion_clocksource
[   21.728515] NET: Registered protocol family 2
[   21.728778] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.729594] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.729693] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.729746] TCP: Hash tables configured (established 4096 bind 4096)
[   21.729756] TCP reno registered
[   21.729916] NET: Registered protocol family 1
[   21.730207] RPC: Registered udp transport module.
[   21.730216] RPC: Registered tcp transport module.
[   21.730224] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.730364] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.730617] audit: initializing netlink socket (disabled)
[   21.730649] type=2000 audit(0.241:1): initialized
[   21.737433] VFS: Disk quotas dquot_6.5.2
[   21.737692] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.740278] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   21.741886] Registering the dns_resolver key type
[   21.741937] Slow work thread pool: Starting up
[   21.742056] Slow work thread pool: Ready
[   21.742066] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.742828] fuse init (API version 7.13)
[   21.743319] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   21.744859] msgmni has been set to 240
[   21.746947] alg: No test for stdrng (krng)
[   21.747101] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[   21.747114] io scheduler noop registered
[   21.747122] io scheduler anticipatory registered
[   21.747130] io scheduler deadline registered
[   21.747392] io scheduler cfq registered (default)
[   21.753405] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.753868] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.138764] console [ttyS0] enabled
[   22.142847] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[   22.151470] Scanning device for bad blocks
[   22.231500] 4 cmdlinepart partitions found on MTD device orion_nand
[   22.237814] Creating 4 MTD partitions on "orion_nand":
[   22.242983] 0x000000000000-0x000000100000 : "u-boot"
[   22.248547] 0x000000100000-0x000000500000 : "uImage"
[   22.253999] 0x000000500000-0x000002500000 : "rootfs"
[   22.259454] 0x000002500000-0x000010000000 : "data"
[   22.265167] UBI: attaching mtd2 to ubi0
[   22.269026] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[   22.275339] UBI: logical eraseblock size:    129024 bytes
[   22.280760] UBI: smallest flash I/O unit:    2048
[   22.285495] UBI: sub-page size:              512
[   22.290134] UBI: VID header offset:          512 (aligned 512)
[   22.296002] UBI: data offset:                2048
[   22.360441] UBI: attached mtd2 to ubi0
[   22.364233] UBI: MTD device name:            "rootfs"
[   22.369311] UBI: MTD device size:            32 MiB
[   22.374222] UBI: number of good PEBs:        256
[   22.378859] UBI: number of bad PEBs:         0
[   22.383332] UBI: max. allowed volumes:       128
[   22.387972] UBI: wear-leveling threshold:    4096
[   22.392697] UBI: number of internal volumes: 1
[   22.397171] UBI: number of user volumes:     1
[   22.401636] UBI: available PEBs:             0
[   22.406109] UBI: total number of reserved PEBs: 256
[   22.411010] UBI: number of PEBs reserved for bad PEB handling: 2
[   22.417052] UBI: max/mean erase counter: 1/0
[   22.421343] UBI: image sequence number: 1653365787
[   22.426173] UBI: background thread "ubi_bgt0d" started, PID 38
[   22.432199] MV-643xx 10/100/1000 ethernet driver version 1.4
[   22.437986] mv643xx_eth smi: probed
[   22.443316] net eth0: port 0 with MAC address 00:10:75:1a:3d:0c
[   22.449336] console [netcon0] enabled
[   22.453014] netconsole: network logging started
[   22.457584] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   22.464189] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   22.469483] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   22.503234] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   22.523219] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   22.529223] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   22.536054] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   22.543320] usb usb1: Product: Marvell Orion EHCI
[   22.548045] usb usb1: Manufacturer: Linux 2.6.32.18-dockstar ehci_hcd
[   22.554524] usb usb1: SerialNumber: orion-ehci.0
[   22.559435] usb usb1: configuration #1 chosen from 1 choice
[   22.565167] hub 1-0:1.0: USB hub found
[   22.568959] hub 1-0:1.0: 1 port detected
[   22.573128] Initializing USB Mass Storage driver...
[   22.578124] usbcore: registered new interface driver usb-storage
[   22.584183] USB Mass Storage support registered.
[   22.589020] mice: PS/2 mouse device common for all mice
[   22.594348] i2c /dev entries driver
[   22.598624] device-mapper: uevent: version 1.0.3
[   22.603672] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[   22.612237] cpuidle: using governor ladder
[   22.616501] cpuidle: using governor menu
[   22.620549] Registered led device: dockstar:green:health
[   22.625972] Registered led device: dockstar:orange:misc
[   22.631280] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   22.637694] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   22.683254] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   22.723251] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   22.763303] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   22.803250] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   22.809065] Netfilter messages via NETLINK v0.30.
[   22.813866] nf_conntrack version 0.5.0 (1921 buckets, 7684 max)
[   22.820305] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   22.827762] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[   22.835728] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   22.844274] ip_tables: (C) 2000-2006 Netfilter Core Team
[   22.849659] TCP cubic registered
[   22.852897] NET: Registered protocol family 17
[   22.857762] registered taskstats version 1
[   22.862574] Initalizing network drop monitor service
[   22.867660] md: Waiting for all devices to be available before autodetect
[   22.874492] md: If you don't use raid, use raid=noautodetect
[   22.880570] md: Autodetecting RAID arrays.
[   22.884710] md: Scanned 0 and added 0 devices.
[   22.889170] md: autorun ...
[   22.891969] md: ... autorun DONE.
[   22.895333] usb 1-1: new high speed USB device using orion-ehci and address 2
[   23.006132] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   23.012176] UBIFS: mounted read-only
[   23.015790] UBIFS: file system size:   30836736 bytes (30114 KiB, 29 MiB, 239 LEBs)
[   23.023498] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[   23.030838] UBIFS: media format:       w4/r0 (latest is w4/r0)
[   23.036705] UBIFS: default compressor: lzo
[   23.040821] UBIFS: reserved for root:  0 bytes (0 KiB)
[   23.046724] VFS: Mounted root (ubifs filesystem) readonly on device 0:16.
[   23.053649] Freeing init memory: 128K
[   23.086618] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   23.093376] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   23.100545] usb 1-1: Product: USB2.0 Hub
INIT: [   23.114121] usb 1-1: configuration #1 chosen from 1 choice
[   23.120378] hub 1-1:1.0: USB hub found
[   23.124497] hub 1-1:1.0: 4 ports detected
version 2.86 booting
mdev: /sys/class: No such file or directory
Starting heartbeat LED...
Populating /dev using udev: done
Initializing random number generator... read-only file system detected...done
Starting network...
Starting Network Interface Plugging Daemon: eth0.
Starting sshd: OK
INIT: Entering runlevel: 2


          Jeff Doozan's
Dockstar/Pogoplug Recovery System

rescue login: [   25.902500] eth0: link up, 1000 Mb/s, full duplex, flow control disabled

codier,

> Thanks for all your help. It's working now.

Cool!

> Unknown command 'mmc' - try 'help'
> Unknown command 'ide' - try 'help'
> ** Bad device usb 0 **
>
> anything wrong at beginning of the script?
>

There is nothing wrong. The default script scans all type of devices (usb, mmc , ide), so when you use it for boxes, such as Dockstar, that don't have mmc and ide, the messages simply reports that those devices don't exist. I have since updated the settings to make getting rid of those messages a little easier. See section D.1 in the 1st post:

Quote

D.1 Modify u-boot envs:

However, you can choose to leave the current script as is, it does not hurt anything.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Thanks alot bodhi,

Everything is running good. By following your D.1 instructon, I added 1 more line because my Dockstar only has USB
fw_setenv devices usb

Hopefully I was doing right.
codier Wrote:
-------------------------------------------------------
> Thanks alot bodhi,
>
> Everything is running good. By following your D.1
> instructon, I added 1 more line because my
> Dockstar only has USB
>
> fw_setenv devices usb
>
>
> Hopefully I was doing right.

That was the correct modification. Now it is less noisy in boot log?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Strange. Still doing the same thing

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
Seagate FreeAgent DockStar
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot:  0
(Re)start 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 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

no USB devices available
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
** Bad device usb 0 **
** Bad device usb 0 **
(Re)start 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
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'mmc' - try 'help'
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'ide' - try 'help'
** Bad device ide 0 **
** Bad device ide 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


Starting kernel ...

codier,

If you don't have any USB drive attached, then it would boot into the rescue system. Attach the USB stick and boot, see if you can boot into Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
But I think no matter boot into rescue nor USB, it shouldn't check mmc or ide because the device doesn't even have those.

I will boot into usb to see how it goes.
codier Wrote:
-------------------------------------------------------
> But I think no matter boot into rescue nor USB, it
> shouldn't check mmc or ide because the device
> doesn't even have those.
>
> I will boot into usb to see how it goes.

Have you changed anything other than the below?
> fw_setenv devices usb

Pls post the envs listing again. I'd like to take another look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
It seems booting USB doing the same thing. it looks like had to reboot once and USB boot it from 2nd time booting.
and again, mmc and ide still there.

U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)
Seagate FreeAgent DockStar
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15122944        000e2f0c-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
** File not found /rescueme **
** Unrecognized filesystem type **
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
2832412 bytes read in 407 ms (6.6 MiB/s)
6114335 bytes read in 558 ms (10.4 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.17.0-kirkwood-tld-1
   Created:      2015-01-23   4:55:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2832348 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.17.0-kirkwood-tld-1
   Created:      2014-10-25   3:29:30 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6114271 Bytes = 5.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK


Starting kernel ...
below is env

mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
baudrate=115200
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; 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
arcNumber=2998
ethaddr=00:10:75:1A:3D:0C
serverip=192.168.2.106
ipaddr=192.168.2.108
force_rescue=0
rescue_installed=1
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
bootcmd=run bootcmd_uenv; run force_rescue_bootcmd; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run rescue_bootcmd; reset
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
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
devices=usb
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole

codier,

The reason it did not work because you have not done section D in the installation instruction, especially
D.1 Modify u-boot envs:

The default envs include section D settings, but I've also modified it later, to make booting less noisy.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I have a question which a forum and Google search has not been able to answer. I loaded the latest Pogoplug E02 uboot on my Pogoplug-E01 which was the very first PP, its Kirkwood based and looks like a Sheevaplug but doesn't have a SD card or USB UART. The E02 uboot works fine but when I monitor uboot with serial console, it shows 256MB of RAM which is expected but shows 512MB of NAND which is unexpected.

Question: Does uboot actually confirm the RAM and NAND amounts or is this built into the uboot based on which platform kwb you chose? I am curious because I question the 512MB of NAND I am seeing.

Here is the initial stages of u-boot from serial console:

U-Boot 2014.04.R3-1 (May 26 2014 - 19:45:55) Arch Linux ARM
Pogo E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
2822232 bytes read in 374 ms (7.2 MiB/s)
6114335 bytes read in 485 ms (12 MiB/s)
10228 bytes read in 957 ms (9.8 KiB/s)



Edited 1 time(s). Last edit at 02/07/2015 11:36AM by LeggoMyEggo.
@LeggoMyEggo,

You are the lucky one :) it shows 512MB of NAND because there are actually 512MB in it. I don't think any u-boot has hard coded NAND capacity. Back a few years ago, some of us got the Dockstar with 512MB NAND, but it was rare.

With 512MB NAND, you have enough NAND to flash a skinny Debian rootfs on it. I think yours is more like the Sheevaplug than the Pogo E02. Can you control the LED correctly?

Also, make sure you actually have 256MB RAM (u-boot defines this). Did the box manual say it has 256MB RAM?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/07/2015 12:00PM by bodhi.
bodhi Wrote:
-------------------------------------------------------
> @LeggoMyEggo,
>
> You are the lucky one :) it shows 512MB of NAND
> because there are actually 512MB in it. I don't
> think any u-boot has hard coded NAND capacity.
> Back a few years ago, some of us got the Dockstar
> with 512MB NAND, but it was rare.
>
> With 512MB NAND, you have enough NAND to flash a
> skinny Debian rootfs on it. I think yours is more
> like the Sheevaplug than the Pogo E02. Can you
> control the LED correctly?
>
> Also, make sure you actually have 256MB RAM
> (u-boot defines this). Did the box manual say it
> has 256MB RAM

I picked up the E-01 second hand so I don't have the box or information that came with it and the internet is pretty void of any info on this particular Pogoplug. When I compared the motherboard on my E-01 to a standard Sheevaplug, the E-01 is missing two of the DRAM chips which would explain the missing 256MB that a regular Sheevaplug has. If the NAND is built into the SOC somehow, it would make sense that it has the same as a Sheevaplug as it's the same motherboard and it even says Globalscale on it.

With respect to the LED's, I can only get one to light up but before I modified u-boot, one lit up green and the other one lit up red when everything was working correctly (<<< edit: When it was stock both LED's lit up green). I guess I need to get the Sheevaplug LED scripts loaded on my rootfs so I can have proper control.

And as a side note and for posterity, it anyone comes across one of these be prepared to order a special connector in order to get serial console on this thing. It's a four connector like a regular PP but half the size smaller so you need the special Molex Pico connector and pins from the likes of Digikey. That's the only way I could connect to the thing without shorting the pins together. More info here:
http://www.digikey.com/product-detail/en/0510210400/WM1722-ND/242844
http://plugcomputer.org/plugforum/index.php?topic=2052.0



Edited 4 time(s). Last edit at 02/07/2015 02:45PM by LeggoMyEggo.
Attachments:
open | download - pogoplug_01-440x333.jpg (29 KB)
Does your dmesg say it is a Pogo E01 or Pogo E02? the GPIO and /sys/class/leds/... might be same or different between the two.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
bodhi Wrote:
-------------------------------------------------------
> codier,
>
> The reason it did not work because you have not
> done section D in the installation instruction,
> especially
>
> D.1 Modify u-boot envs:
>
>
> The default envs include section D settings, but
> I've also modified it later, to make booting less
> noisy.

Thanks bodhi. Everything is working now.
Now, time to fix my 2nd dockstar. lol
Sorry, you can't reply to this topic. It has been closed.