Welcome! Log In Create A New Profile

Advanced

Pogoplug E02 Debian Linux Installation Guide

Posted by feas 
Re: Pogoplug E02 Debian Linux Installation Guide
October 22, 2017 05:13AM
huge Wrote:
-------------------------------------------------------
> Is there supposed to be a load_db or just
> load_dtb?
>
> I just noticed that I have both, wondering if
> that's me making a typo somewhere along the line
> or a legit env variable.

Never mind - I think I answered my own question, and realize why I thought the load_dtb was reverting back to the wrong value - I must have mistyped the name when doing setenv, which made me think that my change wasn't persisting.

And I see now in the kernel instructions how I could easily have introduced the /dts/dts/ typo.
Re: Pogoplug E02 Debian Linux Installation Guide
October 22, 2017 05:23AM
hughe,

arcNumber=3542
machid=dd6
ethaddr=00:25:31:04:80:8C
disks=0 1 2 3 4 5 6 7
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
preboot=run preboot_nc
ipaddr=192.168.222.168
serverip=192.168.222.103
load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
load_db=load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb

The above were the envs that you have set after you flashed the default envs!

The load commands should look like this:
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage

And these 2 should be removed:
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
load_db=load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb

I think because when you've played with them, you introduced a typo in the dtb_file. That was all :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug E02 Debian Linux Installation Guide
October 22, 2017 05:28AM
And the devices should be

devices=usb

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug E02 Debian Linux Installation Guide
October 22, 2017 05:30AM
hughe,

When you're done, you should post the serial console log and with the envs listing.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug E02 Debian Linux Installation Guide
October 22, 2017 05:31AM
OK ... I'll get back to fixing those before I reboot.

For now I have to sleep and then I'll be away from my computer for tomorrow.

Thank you so so so much for all your help and patience.

-huge
Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 12:26AM
bodhi Wrote:
-------------------------------------------------------
> hughe,
>
> When you're done, you should post the serial
> console log and with the envs listing.


OK I'm back


I believe I've made all the changes (ie I've fixed all my mistakes) that you suggested. I will post fw_printenv output, followed by my last failed boot attempt in the console log, followed by my first successful boot (though that's before I made the setenv changes, so maybe there will be some weirdness caused by that). Let me know if you want me to post anything else.

I also changed serverip to point to my other debian box on the network (a Pogoplug V4), rather than my Windows desktop. I still haven't used netconsole, but I'm assuming it's easier to run it from a debian device than installing netconsole for Windows - correct?

Oh yeah, after I get done posting this I will find and execute the security measures you (or feas?) brought up (new SSH key & new password if I remember right).


fw_printenv
root@debian:~#
root@debian:~#
root@debian:~# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3542
machid=dd6
ethaddr=00:25:31:04:80:8C
disks=0 1 2 3 4 5 6 7
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
preboot=run preboot_nc
ipaddr=192.168.222.168
devices=usb
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
serverip=192.168.222.164
root@debian:~#
root@debian:~#



Last failed boot attempt:
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -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
Using egiga0 device

Abort
ping failed; host 192.168.222.103 is not alive
Hit any key to stop autoboot:  0

PogoE02> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
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            7829504         3fd1c278-01     83 Boot
loading envs from usb 0 ...
88 bytes read in 274 ms (0 Bytes/s)
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 253 ms (0 Bytes/s)
Found bootable drive on usb 0
3821592 bytes read in 468 ms (7.8 MiB/s)
7245696 bytes read in 622 ms (11.1 MiB/s)
** File not found /boot/dts/kirkwood-pogo_e02.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

Available machine support:

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

Please check your kernel config and/or bootloader.







First successful boot:

PogoE02> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
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            7829504         3fd1c278-01     83 Boot
loading envs from usb 0 ...
88 bytes read in 274 ms (0 Bytes/s)
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 253 ms (0 Bytes/s)
Found bootable drive on usb 0
3821592 bytes read in 469 ms (7.8 MiB/s)
7245696 bytes read in 623 ms (11.1 MiB/s)
10444 bytes read in 1263 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 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 0f42b000, end 0fb13f40 ... OK
   Loading Device Tree to 0f425000, end 0f42a8cb ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 239376K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22768K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000042] Switching to timer-based delay loop, resolution 5ns
[    0.000509] Console: colour dummy device 80x30
[    0.000542] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000564] pid_max: default: 32768 minimum: 301
[    0.000762] Security Framework initialized
[    0.000886] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000905] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001767] CPU: Testing write buffer coherency: ok
[    0.002816] Setting up static identity map for 0x100000 - 0x100058
[    0.003077] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006375] devtmpfs: initialized
[    0.010318] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010347] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010751] prandom: seed boundary self test passed
[    0.014508] prandom: 100 self tests passed
[    0.014521] pinctrl core: initialized pinctrl subsystem
[    0.015669] NET: Registered protocol family 16
[    0.016146] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017741] cpuidle: using governor ladder
[    0.017813] cpuidle: using governor menu
[    0.018239] Feroceon L2: Enabling L2
[    0.018286] Feroceon L2: Cache support initialised.
[    0.018657] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.023173] No ATAGs?
[    0.032252] vgaarb: loaded
[    0.032578] SCSI subsystem initialized
[    0.033051] usbcore: registered new interface driver usbfs
[    0.033128] usbcore: registered new interface driver hub
[    0.033209] usbcore: registered new device driver usb
[    0.034310] clocksource: Switched to clocksource orion_clocksource
[    0.123918] VFS: Disk quotas dquot_6.6.0
[    0.124003] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.134704] NET: Registered protocol family 2
[    0.135456] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135495] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135526] TCP: Hash tables configured (established 2048 bind 2048)
[    0.135615] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.135640] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.135817] NET: Registered protocol family 1
[    0.136236] RPC: Registered named UNIX socket transport module.
[    0.136249] RPC: Registered udp transport module.
[    0.136257] RPC: Registered tcp transport module.
[    0.136264] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136507] Unpacking initramfs...
[    0.797328] Freeing initrd memory: 7076K
[    0.797469] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.798441] audit: initializing netlink subsys (disabled)
[    0.798934] Initialise system trusted keyrings
[    0.798991] Key type blacklist registered
[    0.799089] audit: type=2000 audit(0.794:1): state=initialized audit_enabled=0 res=1
[    0.799184] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.799254] zbud: loaded
[    0.800245] NFS: Registering the id_resolver key type
[    0.800271] Key type id_resolver registered
[    0.800280] Key type id_legacy registered
[    0.800298] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.800308] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.800503] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.800701] fuse init (API version 7.26)
[    0.801072] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.801343] orangefs_init: module version upstream loaded
[    0.801355] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.554317] random: fast init done
[    6.676411] Key type asymmetric registered
[    6.676430] Asymmetric key parser 'x509' registered
[    6.676500] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.676511] io scheduler noop registered
[    6.676519] io scheduler deadline registered
[    6.676602] io scheduler cfq registered (default)
[    6.677911] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.679773] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.735050] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.735284] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.795061] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.795490] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.796738] console [ttyS0] disabled
[    6.796808] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    7.397072] console [ttyS0] enabled
[    7.409113] loop: module loaded
[    7.413424] nand: Could not find valid ONFI parameter page; aborting
[    7.419898] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.426313] nand: Hynix NAND 128MiB 3,3V 8-bit
[    7.430780] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.438411] Scanning device for bad blocks
[    7.551465] 4 cmdlinepart partitions found on MTD device orion_nand
[    7.557780] Creating 4 MTD partitions on "orion_nand":
[    7.562945] 0x000000000000-0x000000100000 : "u-boot"
[    7.569143] 0x000000100000-0x000000500000 : "uImage"
[    7.575351] 0x000000500000-0x000002500000 : "rootfs"
[    7.581688] 0x000002500000-0x000008000000 : "data"
[    7.589456] libphy: Fixed MDIO Bus: probed
[    7.594462] libphy: orion_mdio_bus: probed
[    7.603527] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.706042] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:80:8c
[    8.714943] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.721525] ehci-pci: EHCI PCI platform driver
[    8.726077] ehci-orion: EHCI orion driver
[    8.730300] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.735876] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.743739] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    8.774345] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.780639] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.787488] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.794767] usb usb1: Product: EHCI Host Controller
[    8.799664] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.806415] usb usb1: SerialNumber: f1050000.ehci
[    8.811910] hub 1-0:1.0: USB hub found
[    8.815778] hub 1-0:1.0: 1 port detected
[    8.820409] usbcore: registered new interface driver usb-storage
[    8.826806] mousedev: PS/2 mouse device common for all mice
[    9.174344] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.366115] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    9.372861] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.380069] usb 1-1: Product: USB2.0 Hub
[    9.384912] hub 1-1:1.0: USB hub found
[    9.388990] hub 1-1:1.0: 4 ports detected
[    9.714336] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    9.844333] rtc-mv f1010300.rtc: internal RTC not ticking
[    9.849924] i2c /dev entries driver
[    9.854784] hidraw: raw HID events driver (C) Jiri Kosina
[    9.860568] drop_monitor: Initializing network drop monitor service
[    9.867269] NET: Registered protocol family 17
[    9.871868] Key type dns_resolver registered
[    9.877024] usb 1-1.1: New USB device found, idVendor=8644, idProduct=8003
[    9.883953] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.891557] registered taskstats version 1
[    9.891561] Loading compiled-in X.509 certificates
[    9.891616] zswap: loaded using pool lzo/zbud
[    9.906104] Key type big_key registered
[    9.928910] usb 1-1.1: Product: USB Flash Disk
[    9.934980] Key type encrypted registered
[    9.940028] usb 1-1.1: Manufacturer: General
[    9.946394] usb 1-1.1: SerialNumber: 0663000000008F3F
[    9.952248] hctosys: unable to open rtc device (rtc0)
[    9.957619] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    9.964527] scsi host0: usb-storage 1-1.1:1.0
[    9.972680] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.375832] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   11.045592] scsi 0:0:0:0: Direct-Access     General  USB Flash Disk   1.00 PQ: 0 ANSI: 2
[   11.059423] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[   11.073056] sd 0:0:0:0: [sda] Write Protect is off
[   11.084802] sd 0:0:0:0: [sda] No Caching mode page found
[   11.090150] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.108398]  sda: sda1
[   11.117168] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.733572] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.751852] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   23.115632] orion_wdt: Initial timeout 21 sec
[   23.216154] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.307092] sd 0:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   24.336085] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14456/244800 files, 202054/978688 blocks
. ok
[   24.624098] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[   26.064412] random: crng init done
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:25:31:04:80:8c
Sending on   LPF/eth0/00:25:31:04:80:8c
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
[   30.927742] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   37.344629] NET: Registered protocol family 10
[   37.353340] Segment Routing with IPv6
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.222.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.222.168 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.222.168 from 192.168.222.1
DHCPACK of 192.168.222.168 from 192.168.222.1
bound to 192.168.222.168 -- renewal in 41465 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1328 (syslogd)
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1326 (klogd)
. ok
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password:
Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#
root@debian:~#
root@debian:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=119688k,nr_inodes=29922,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=24748k,mode=755)
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=49480k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:~#
root@debian:~#
root@debian:~# uname -a
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux
root@debian:~#
root@debian:~#
root@debian:~# cat /boot/uEnv.txt
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
devices=usb
devices=usb
disks=0 1 2 3 4 5 6 7

Again, let me know if you want me to post something else, if there's anything else to test, or any reason not to reboot now.


Thank you.
-huge
Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 12:58AM
Looking back through the thread I found this request for info/posting, which I seem to have overlooked.

bodhi Wrote:
-------------------------------------------------------
>
> Check system state:
>
> uname -a 
> dpkg -l | grep linux-image
> ls -lart /lib/modules/ -d
> cat /proc/mtd
> dmesg | grep -i bad
> mount
>
>
> Now given you have installed the latest u-boot
> 2016.05-tld-1 without seeing any error during
> flash_erase and nandwrite ( if not please say
> so
)
>
> Check the envs:
>
> cat /etc/fw_env.config
> fw_printenv
>
>
> Check rootfs (assuming this USB rootfs is the only
> one USB drive plugged in):
>
>
> ls -latr /boot
> ls -latr /boot/dts/kirkwood-*pogo*
>


Here is everything except fw_printenv, which I posted previously:
root@debian:/#
root@debian:/#
root@debian:/# uname -a
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux
root@debian:/#
root@debian:/# dpkg -l | grep linux-image
ii  linux-image-4.12.1-kirkwood-tld-1 1.0                           armel        Linux kernel binary image for version 4.12.1-kirkwood-tld-1
root@debian:/#
root@debian:/#
root@debian:/# ls -lart /lib/modules/ -d
drwxr-xr-x 3 root root 4096 Dec 31  1969 /lib/modules/
root@debian:/#
root@debian:/#
root@debian:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 05b00000 00020000 "data"
root@debian:/#
root@debian:/#
root@debian:/# dmesg | grep -i bad
[    7.438411] Scanning device for bad blocks
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=119688k,nr_inodes=29922,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=24748k,mode=755)
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=49480k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:/#
root@debian:/#
root@debian:/# ls -latr /boot
total 36264
drwxr-xr-x 21 root root    4096 Feb 16  2015 ..
-rw-r--r--  1 root root  153501 Jul 15 20:21 config-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15 21:42 zImage-4.12.1-kirkwood-tld-1
-rw-------  1 root root 3821528 Jul 16 00:43 vmlinuz-4.12.1-kirkwood-tld-1
-rw-------  1 root root 2504031 Jul 16 00:43 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16 01:06 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 3821592 Jul 20 01:11 uImage
-rw-r--r--  1 root root 7245632 Jul 23 17:15 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 7245696 Jul 23 17:18 uInitrd
-rw-r--r--  1 root root      88 Oct 22 00:43 uEnv.txt
drwxr-xr-x  3 root root    4096 Oct 22 00:43 .
drwxr-xr-x  3 root root    4096 Oct 22 01:40 dts
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/# ls -latr /boot/dts/kirkwood-*pogo*
-rw-r--r-- 1 root root 10284 Jul 16 01:08 /boot/dts/kirkwood-pogoplug_v4.dtb
-rw-r--r-- 1 root root 10444 Jul 16 01:08 /boot/dts/kirkwood-pogo_e02.dtb
root@debian:/#
root@debian:/#

Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 01:34AM
hughe,

Everything looks good!

Now it's time to remove the uEnv.txt. Consider your current envs are already that way.

fw_printenv
root@debian:~#
root@debian:~#
root@debian:~# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3542
machid=dd6
ethaddr=00:25:31:04:80:8C
disks=0 1 2 3 4 5 6 7
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
preboot=run preboot_nc
ipaddr=192.168.222.168
devices=usb
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
serverip=192.168.222.164
root@debian:~#
root@debian:~#

root@debian:~# cat /boot/uEnv.txt
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
devices=usb
devices=usb
disks=0 1 2 3 4 5 6 7

And you don't have to turn on netconsole, if you intend to keep the serial console connected.
fw_setenv preboot
When you want to turn on netconsole (i.e. removing serial console for other duty), you can turn it back on:
fw_setenv preboot 'run preboot_nc'


And it is true. netconsole works best from another ARM Linux box such as these Kirkwood plugs. Windows is not possible. x86 Linux laptop running Ubuntu is OK, but you need to use the correct netcat binary to make it work.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 02:16AM
I used to know something about "systemd" (when I was playing with Arch on my Pogo-B01) but it is gone from my brain now. Can you instruct me in what to do, if anything, with the following instructions from the end of rootfs install? Feel free to tell me to figure it out for myself if it's just a matter of preference.

Note2: 

To boot with systemd, add parameter init=/bin/systemd to your u-boot env bootargs. 

- For example, 
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd'

- Or, if you are booting with my latest u-boot images you can also use the uEnv.txt capability to do this. In the default envs, custom_params is a variable that allows you to add extra bootargs. So add the following line to uEnv.txt: 
custom_params=init=/bin/systemd

If that's still not possible to run systemd, you might want to install it again: 
apt-get install systemd


Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 02:30AM
bodhi Wrote:
-------------------------------------------------------
> hughe,
>
> Everything looks good!
>
WOOHOO!

> And you don't have to turn on netconsole, if you
> intend to keep the serial console connected.
>
> fw_setenv preboot
>
> When you want to turn on netconsole (i.e. removing
> serial console for other duty), you can turn it
> back on:
>
> fw_setenv preboot 'run preboot_nc'
>
>
>
> And it is true. netconsole works best from another
> ARM Linux box such as these Kirkwood plugs.

Got it, thanks, turned off.

I assume the only/last thing left to do before starting to actually use the thing is to upgrade to the 4.13.5 kernel?

Thank you (and feas) times one billion.
Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 01:14PM
huge Wrote:
> I assume the only/last thing left to do before
> starting to actually use the thing is to upgrade
> to the 4.13.5 kernel?
>

Oops, not so fast. After upgrading to 4.13.5 I get the dreaded "EHCI timed out on TD" & "ext4fs_devread read error", consistently.

I found various threads about these errors, most of which point to lower-quality USB drives. I'm very willing to believe my drive is not up to the task in some way, but it seems strange that it would work consistently with 4.12.1 and fail consistently with 4.13.5 (or is there something to explain that?).

I also found this thread from @rayvt, reporting that he had found the problem and fixed it. You replied "Therefore I'll merge your patch, but keeping the code about factoring usb_ready_retry env into the max spin time" but I'm not sure if that means rayvt's patch will get merged into a future u-boot or if it's already in the one I downloaded and installed. And of course there is always the high likelihood that I am barking up the wrong tree in complete ignorance - I just wanted to do whatever legwork I could before dumping it on you.

boot log:
PogoE02>
PogoE02> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 60 second(s)
1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            7829504         3fd1c278-01     83 Boot
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 253 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3848064 bytes read in 411 ms (8.9 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xa0008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x20008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x20008d80
EHCI timed out on TD - token=0x128d80
 ** ext4fs_devread read error - block
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
EHCI timed out on TD - token=0x2008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x2008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x2008d80
EHCI timed out on TD - token=0x128d80
** Can't read partition table on 0:0 **
** Invalid partition 1 **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.13.5-kirkwood-tld-1
   Created:      2017-10-23  12:01:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3848000 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

Available machine support:

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

Please check your kernel config and/or bootloader.


printenv:
PogoE02>
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
disks=0 1 2 3 4 5 6 7
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:04:80:8C
if_netconsole=ping $serverip
ipaddr=192.168.222.168
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=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 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.222.140
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: 2997/131068 bytes
PogoE02>
Re: Pogoplug E02 Debian Linux Installation Guide
October 23, 2017 01:40PM
See here for the USB error explanation:
https://forum.doozan.com/read.php?3,38859,39004#msg-39004

Use a Sandisk USB flash drive, and it will be OK.


To salvage this drive, take it to another Linux box and fsck it. Plug it back in the USB port right next to the ethernet port in the back. And power up.

If you keep getting this error, use a new Sandisk drive and clone this rootfs over. And start using that new drive.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 20 plus 19?
Message: