Welcome! Log In Create A New Profile

Advanced

Bootloader fail

Posted by billythet 
Bootloader fail
September 28, 2018 12:17PM
Attempted to upgrade both a dockstar and a pogo E02 that I had previously installed Jeffs 2012 bootloader script on. Both installs appeared to "take" as expected and both units now will boot into Debian Stretch from USB. However, the units act differently when booting without a usb, so apparently I did something wrong on one of them. The dockstar will boot into the original bootloader after it fails to find a usb attached, while the pogo E02 just fails. I would like to have both of them boot the original loader when a usb is not attached. I dont have netconsole set up, but I do have serial console available on both boxes.


U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -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
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
Hit any key to stop autoboot:  3  2  1  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
** Bad device usb 0 **
** Bad device usb 0 **
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=3", size 219 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 1749, bad PEBs: 3, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 1708, total reserved PEBs: 41, PEBs reserved for bad PEB handling: 37
Error reading superblock on volume 'rootfs' errno=-22!
ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
** Bad device usb 0 **
** Bad device usb 0 **
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:   .  read_nand_cached: error reading nand off 0x5c1000 size 8192 bytes
.  .  .  .  .  .  read_nand_cached: error reading nand off 0x12b7200 size 8192 bytes
.  .   done.

read_nand_cached: error reading nand off 0x5c1000 size 8192 bytes
read_nand_cached: error reading nand off 0x12b7200 size 8192 bytes
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...


U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: REDSTONE:1.0

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  3  2  1  0 

NAND read: device 0 offset 0x100000, size 0x300000


Reading data from 0x100000 --   0% complete.
Reading data from 0x107800 --   1% complete.
Reading data from 0x10f000 --   2% complete.
Reading data from 0x117000 --   3% complete.
Reading data from 0x11e800 --   4% complete.
Reading data from 0x126000 --   5% complete.
Reading data from 0x12e000 --   6% complete.
Reading data from 0x135800 --   7% complete.
Reading data from 0x13d000 --   8% complete.
Reading data from 0x145000 --   9% complete.
Reading data from 0x14c800 --  10% complete.
Reading data from 0x154000 --  11% complete.
Reading data from 0x15c000 --  12% complete.
Reading data from 0x163800 --  13% complete.
Reading data from 0x16b800 --  14% complete.
Reading data from 0x173000 --  15% complete.
Reading data from 0x17a800 --  16% complete.
Reading data from 0x182800 --  17% complete.
Reading data from 0x18a000 --  18% complete.
Reading data from 0x191800 --  19% complete.
Reading data from 0x199800 --  20% complete.
Reading data from 0x1a1000 --  21% complete.
Reading data from 0x1a8800 --  22% complete.
Reading data from 0x1b0800 --  23% complete.
Reading data from 0x1b8000 --  24% complete.
Reading data from 0x1bf800 --  25% complete.
Reading data from 0x1c7800 --  26% complete.
Reading data from 0x1cf000 --  27% complete.
Reading data from 0x1d7000 --  28% complete.
Reading data from 0x1de800 --  29% complete.
Reading data from 0x1e6000 --  30% complete.
Reading data from 0x1ee000 --  31% complete.
Reading data from 0x1f5800 --  32% complete.
Reading data from 0x1fd000 --  33% complete.
Reading data from 0x205000 --  34% complete.
Reading data from 0x20c800 --  35% complete.
Reading data from 0x214000 --  36% complete.
Reading data from 0x21c000 --  37% complete.
Reading data from 0x223800 --  38% complete.
Reading data from 0x22b800 --  39% complete.
Reading data from 0x233000 --  40% complete.
Reading data from 0x23a800 --  41% complete.
Reading data from 0x242800 --  42% complete.
Reading data from 0x24a000 --  43% complete.
Reading data from 0x251800 --  44% complete.
Reading data from 0x259800 --  45% complete.
Reading data from 0x261000 --  46% complete.
Reading data from 0x268800 --  47% complete.
Reading data from 0x270800 --  48% complete.
Reading data from 0x278000 --  49% complete.
Reading data from 0x27f800 --  50% complete.
Reading data from 0x287800 --  51% complete.
Reading data from 0x28f000 --  52% complete.
Reading data from 0x297000 --  53% complete.
Reading data from 0x29e800 --  54% complete.
Reading data from 0x2a6000 --  55% complete.
Reading data from 0x2ae000 --  56% complete.
Reading data from 0x2b5800 --  57% complete.
Reading data from 0x2bd000 --  58% complete.
Reading data from 0x2c5000 --  59% complete.
Reading data from 0x2cc800 --  60% complete.
Reading data from 0x2d4000 --  61% complete.
Reading data from 0x2dc000 --  62% complete.
Reading data from 0x2e3800 --  63% complete.
Reading data from 0x2eb800 --  64% complete.
Reading data from 0x2f3000 --  65% complete.
Reading data from 0x2fa800 --  66% complete.
Reading data from 0x302800 --  67% complete.
Reading data from 0x30a000 --  68% complete.
Reading data from 0x311800 --  69% complete.
Reading data from 0x319800 --  70% complete.
Reading data from 0x321000 --  71% complete.
Reading data from 0x328800 --  72% complete.
Reading data from 0x330800 --  73% complete.
Reading data from 0x338000 --  74% complete.
Reading data from 0x33f800 --  75% complete.
Reading data from 0x347800 --  76% complete.
Reading data from 0x34f000 --  77% complete.
Reading data from 0x357000 --  78% complete.
Reading data from 0x35e800 --  79% complete.
Reading data from 0x366000 --  80% complete.
Reading data from 0x36e000 --  81% complete.
Reading data from 0x375800 --  82% complete.
Reading data from 0x37d000 --  83% complete.
Reading data from 0x385000 --  84% complete.
Reading data from 0x38c800 --  85% complete.
Reading data from 0x394000 --  86% complete.
Reading data from 0x39c000 --  87% complete.
Reading data from 0x3a3800 --  88% complete.
Reading data from 0x3ab800 --  89% complete.
Reading data from 0x3b3000 --  90% complete.
Reading data from 0x3ba800 --  91% complete.
Reading data from 0x3c2800 --  92% complete.
Reading data from 0x3ca000 --  93% complete.
Reading data from 0x3d1800 --  94% complete.
Reading data from 0x3d9800 --  95% complete.
Reading data from 0x3e1000 --  96% complete.
Reading data from 0x3e8800 --  97% complete.
Reading data from 0x3f0800 --  98% complete.
Reading data from 0x3f8000 --  99% complete.
Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2010-10-19  23:05:02 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1979140 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

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

[    0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010
[    0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU0: D VIVT write-back cache
[    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] Built 1 zonelists.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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 0MB 0MB 0MB = 128MB total
[    0.000000] Memory: 125824KB available (3592K code, 253K data, 124K init)
[    0.240000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] NET: Registered protocol family 16
[    0.240000] 
[    0.240000] CPU Interface
[    0.240000] -------------
[    0.240000] SDRAM_CS0 ....base 00000000, size 128MB 
[    0.240000] SDRAM_CS1 ....disable
[    0.240000] SDRAM_CS2 ....disable
[    0.240000] SDRAM_CS3 ....disable
[    0.240000] PEX0_MEM ....base e8000000, size 128MB 
[    0.240000] PEX0_IO ....base f2000000, size   1MB 
[    0.240000] INTER_REGS ....base f1000000, size   1MB 
[    0.240000] NFLASH_CS ....base fa000000, size   2MB 
[    0.240000] SPI_CS ....base f4000000, size  16MB 
[    0.240000] BOOT_ROM_CS ....no such
[    0.240000] DEV_BOOTCS ....no such
[    0.240000] CRYPT_ENG ....base f0000000, size   2MB 
[    0.240000] 
[    0.240000]   Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG  Soc: 88F6281 A0 LE
[    0.240000] 
[    0.240000]  Detected Tclk 200000000 and SysClk 400000000 
[    0.240000] MV Buttons Device Load
[    0.240000] Marvell USB EHCI Host controller #0: c0539600
[    0.740000] PEX0 interface detected no Link.
[    0.740000] PCI: bus0: Fast back to back transfers enabled
[    0.740000] SCSI subsystem initialized
[    0.740000] usbcore: registered new interface driver usbfs
[    0.740000] usbcore: registered new interface driver hub
[    0.740000] usbcore: registered new device driver usb
[    0.740000] NET: Registered protocol family 2
[    0.750000] Time: kw_clocksource clocksource has been installed.
[    0.840000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.840000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.840000] TCP reno registered
[    0.870000] RTC has been updated!!!
[    0.870000] RTC registered
[    0.870000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.870000]   o RAID 5 Xor calculation
[    0.870000]   o kernel memcpy
[    0.870000]   o kenrel memzero
[    0.870000] Number of XOR engines to use: 4
[    0.870000] cesadev_init(c00117b0)
[    0.870000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.870000] MV Buttons Driver Load
[    0.870000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.870000] squashfs: LZMA suppport for slax.org by jro
[    0.870000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.870000] io scheduler noop registered
[    0.870000] io scheduler anticipatory registered (default)
[    0.890000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[    0.890000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.900000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[    0.910000] Loading Marvell Ethernet Driver:
[    0.910000]   o Cached descriptors in DRAM
[    0.910000]   o DRAM SW cache-coherency
[    0.920000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    0.920000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    0.930000]   o TCP segmentation offload enabled
[    0.930000]   o Receive checksum offload enabled
[    0.940000]   o Transmit checksum offload enabled
[    0.940000]   o Network Fast Processing (Routing) supported
[    0.950000]   o Driver ERROR statistics enabled
[    0.950000]   o Driver INFO statistics enabled
[    0.960000]   o Proc tool API enabled
[    0.960000]   o Rx descripors: q0=128
[    0.960000]   o Tx descripors: q0=532
[    0.970000]   o Loading network interface(s):
[    0.970000]     o eth0, ifindex = 1, GbE port = 0
[    0.980000]     o eth1, ifindex = 2, GbE port = 1
[    0.990000] 
[    0.990000] mvFpRuleDb (c7ed4000): 1024 entries, 4096 bytes
[    0.990000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[    1.000000] Copyright (c) 1999-2006 Intel Corporation.
[    1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[    1.010000] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.020000] 
[    1.020000] Warning Sata is Powered Off
[    1.020000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
[    1.030000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[    1.040000] Scanning device for bad blocks
[    1.060000] Bad eraseblock 416 at 0x03400000
[    1.080000] Bad eraseblock 666 at 0x05340000
[    1.140000] Bad eraseblock 1788 at 0x0df80000
[    1.160000] Using static partition definition
[    1.160000] Creating 4 MTD partitions on "nand_mtd":
[    1.160000] 0x00000000-0x00100000 : "u-boot"
[    1.170000] 0x00100000-0x00500000 : "uImage"
[    1.170000] 0x00500000-0x02500000 : "root"
[    1.180000] 0x02500000-0x10000000 : "data"
[    1.180000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.190000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.230000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.250000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    1.250000] usb usb1: configuration #1 chosen from 1 choice
[    1.260000] hub 1-0:1.0: USB hub found
[    1.260000] hub 1-0:1.0: 1 port detected
[    1.380000] USB Universal Host Controller Interface driver v3.0
[    1.660000] usb 1-1: new high speed USB device using ehci_marvell and address 2
[    1.810000] usb 1-1: configuration #1 chosen from 1 choice
[    1.810000] hub 1-1:1.0: USB hub found
[    1.820000] hub 1-1:1.0: 4 ports detected
[    1.930000] usbcore: registered new interface driver usblp
[    1.930000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[    1.940000] Initializing USB Mass Storage driver...
[    1.940000] usbcore: registered new interface driver usb-storage
[    1.950000] USB Mass Storage support registered.
[    1.960000] mice: PS/2 mouse device common for all mice
[    1.960000] i2c /dev entries driver
[    1.960000] Linux telephony interface: v1.00
[    1.970000] md: linear personality registered for level -1
[    1.970000] md: raid0 personality registered for level 0
[    1.980000] md: raid1 personality registered for level 1
[    2.150000] raid6: int32x1     97 MB/s
[    2.320000] raid6: int32x2    114 MB/s
[    2.490000] raid6: int32x4    122 MB/s
[    2.660000] raid6: int32x8    110 MB/s
[    2.660000] raid6: using algorithm int32x4 (122 MB/s)
[    2.660000] md: raid6 personality registered for level 6
[    2.670000] md: raid5 personality registered for level 5
[    2.670000] md: raid4 personality registered for level 4
[    2.680000] raid5: measuring checksumming speed
[    2.730000]    arm4regs  :  1084.000 MB/sec
[    2.780000]    8regs     :   754.800 MB/sec
[    2.830000]    32regs    :   900.000 MB/sec
[    2.830000] raid5: using function: arm4regs (1084.000 MB/sec)
[    2.840000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
[    2.840000] dm_crypt using the OCF package.
[    2.850000] sdhci: Secure Digital Host Controller Interface driver
[    2.850000] sdhci: Copyright(c) Pierre Ossman
[    2.860000] usbcore: registered new interface driver usbhid
[    2.860000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[    2.870000] TCP cubic registered
[    2.870000] NET: Registered protocol family 1
[    2.880000] NET: Registered protocol family 17
[    2.880000] md: Autodetecting RAID arrays.
[    2.890000] md: autorun ...
[    2.890000] md: ... autorun DONE.
[    7.500000] Empty flash at 0x00de8e44 ends at 0x00de9000
[   11.690000] VFS: Mounted root (jffs2 filesystem) readonly.
[   11.700000] Freeing init memory: 124K

init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST)

starting pid 267, tty '': '/etc/init.d/rcS'
[   13.820000] eth0: started
udhcpc (v1.7.0) started
HWADDR 00 0x10 0x75 0x1a 0xb2 0xf6
PIP0 178
PIP1 246
cat: can't open '/etc/resolv.conf': No such file or directory
route: SIOCDELRT: No such process
grep: /etc/resolv.conf: No such file or directory
Sending discover...
Sending discover...
Sending discover...
HWADDR 00 0x10 0x75 0x1a 0xb2 0xf6
PIP0 178
PIP1 246
No lease, forking to background

starting pid 372, tty '': '/bin/sh'
-sh-3.2# 
-sh-3.2#

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot: 10  9  8  7  6  5  4  3  2  1  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'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
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-pogo_e02.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
PogoE02> ls -l
** No device specified **
PogoE02>

Any ideas on where I went wrong with the pogo?

thanks in advance.
Re: Bootloader fail
September 29, 2018 01:40AM
billythet,

> Any ideas on where I went wrong with the pogo?

It looks to me you did not set up the Pogo E02 u-boot envs correctly.

So power up the Pogo, interrupt serial console and

printenv
Please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Bootloader fail
September 29, 2018 07:00AM
Bodhi,

See printenv output as requested. Thanks

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot: 10  9  8  7  6  0 
PogoE02> printenv
arcNumber=3542
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; 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-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:00:c5:46
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
machid=dd6
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
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 load $dev $disknum:1 $load_uimage_addr /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.0.220
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_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
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 $uenv_addr /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: 2858/131068 bytes
PogoE02>
Re: Bootloader fail
September 29, 2018 03:57PM
billythet,

You did not retrofit the envs that boot stock into the new envs set.

Power up the Dockstar and get the envs listing like you just did for the Pogo E02. And I'll show you the difference.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Bootloader fail
September 29, 2018 06:10PM
Bodhi,

As requested. Thanks, guess I missed a step!

U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -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
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
## Error: "if_netconsole" not defined
Hit any key to stop autoboot:  3  0 
DockStar> printenv
arcNumber=2998
baudrate=115200
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=00:10:75:1A:B2:F6
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
ipaddr=192.168.55.150
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
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
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_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
serverip=192.168.55.121
stderr=serial
stdin=serial
stdout=serial
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext3
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $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; setenv usb_root /dev/$dev; fi; done
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_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2613/131068 bytes
DockStar>
Re: Bootloader fail
September 29, 2018 06:47PM
Without the USB rootfs, power up the Pogo E02, interrupt serial console at countdown and

setenv pogo_bootcmd 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi'
setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi'
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run pogo_bootcmd'
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Bootloader fail
September 29, 2018 07:27PM
Bodhi,

Sweet success! Thanks
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: