Welcome! Log In Create A New Profile

Advanced

Debian does not boot on Pogoplug V4

Posted by Bubble 
Debian does not boot on Pogoplug V4
September 29, 2017 10:09AM
Hello guys,

I'm having a similar problem as craigcoffman, but didn't want to mess with his topic.

Booting Debian on my pogoplug ends with the line "Starting kernel ..." and an orange light.

Arch is booting fine, but I'd prefer a more static distro for this plug.

I first followed instructions like so:

[root@pcke mmc]# tar -xjf ../Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 
[root@pcke mmc]# cd boot/
[root@pcke boot]# ls
config-4.12.1-kirkwood-tld-1	  linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb  uInitrd
dts				  System.map-4.12.1-kirkwood-tld-1		     vmlinuz-4.12.1-kirkwood-tld-1
initrd.img-4.12.1-kirkwood-tld-1  uImage					     zImage-4.12.1-kirkwood-tld-1
[root@pcke boot]# cp zImage-4.12.1-kirkwood-tld-1 zImage.fdt
[root@pcke boot]# cat dts/kirkwood-pogoplug_v4.dtb >> zImage.fdt 
[root@pcke boot]# mv uImage uImage.orig
[root@pcke boot]# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage
Image Name:   Linux-4.12.1-kirkwood-tld-1
Created:      Fri Sep 29 16:38:19 2017
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3831812 Bytes = 3742.00 KiB = 3.65 MiB
Load Address: 00008000
Entry Point:  00008000
[root@pcke boot]# sync
[root@pcke boot]# cd ../..
[root@pcke bubble]# umount mmc

Which results in this netboot log:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	23068672  	bda82d74-01	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Card did not respond to voltage select!

no IDE devices available
3831876 bytes read in 440 ms (8.3 MiB/s)
7245696 bytes read in 455 ms (15.2 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-09-29  14:38:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3831812 Bytes = 3.7 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


Starting kernel ...

Then I tried skipping step 4 as mentioned in the other topic:

[root@pcke bubble]# mkfs.ext3 -L rootfs /dev/sdd1
mke2fs 1.43.6 (29-Aug-2017)
/dev/sdd1 contains a ext3 file system labelled 'rootfs'
	last mounted on /home/bubble/mmc on Fri Sep 29 16:36:10 2017
Proceed anyway? (y,N) y
Creating filesystem with 2883584 4k blocks and 720896 inodes
Filesystem UUID: b99813de-c562-42f0-a3da-9102a2cc9caa
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

[root@pcke bubble]# mount /dev/sdd1 mmc
[root@pcke bubble]# cd mmc
[root@pcke mmc]# tar -xjf ../Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 
[root@pcke mmc]# cat etc/fstab 
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
tmpfs          /tmp            tmpfs   defaults          0       0
[root@pcke mmc]# cd ..
[root@pcke bubble]# sync
[root@pcke bubble]# umount mmc

That gives the same outcome, with this netboot:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST9500325AS  Firm: 0005HPM1 Ser#: S2W9178P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	23068672  	bda82d74-01	83
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST9500325AS  Firm: 0005HPM1 Ser#: S2W9178P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
3821592 bytes read in 1188 ms (3.1 MiB/s)
7245696 bytes read in 1797 ms (3.8 MiB/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


Starting kernel ...


This is my printenv:

arcNumber=3960
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi
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:25:31:05:39:9C
if_netconsole=ping $serverip
ipaddr=172.17.17.27
led_error=orange blinking

led_exit=green off
led_init=green blinking
machid=f78
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:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
ncip=172.17.17.2
partition=nand0,2
preboot=run if_netconsole start_netconsole
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
serverip=172.17.17.2
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=nc
stdin=nc
stdout=nc
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

Is there anything I am missing here?

Thanks!
Re: Debian does not boot on Pogoplug V4
September 29, 2017 03:50PM
Bubble,

Your envs showed that you did not flash the default envs image when you installed u-boot 2016.05-tld-1.


Quote

8. Flashing default u-boot envs image:

As described in step 1, u-boot envs must be defined in etc/fw_env.config as

# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

A special section (B. Flashing default u-boot envs image) about flashing default u-boot envs is included at the end of this installation procedure. Please follow the instruction in this section B to perform this step before continuing with step 9.


So you need to follow this instruction to populate the default envs, in order to get to a good starting point

https://forum.doozan.com/read.php?2,37694,37779#msg-37779

And here things to keep in mind when you spend a lot of time troubleshooting a boot problem:

1. It is best to connect serial console to see what the booting problem is. netconsole does not tell us the whole story.
2. It is simply much easier to boot with USB rootfs than with SD card. SD cards are quite flaky sometime. You can easily clone an existing USB rootfs to a SD card later..

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian does not boot on Pogoplug V4
October 01, 2017 03:39AM
Changing the default envs did the trick, Debian now successfully boots. I even updated to the latest kernel.

Thanks!



Edited 1 time(s). Last edit at 10/01/2017 06:18AM by Bubble.
Re: Debian does not boot on Pogoplug V4
October 01, 2017 06:18AM
As an aside: I tried booting Arch again and that gives me a kernel panic when it tries to mount the rootfs. I checked the disk layout and label and it seems fine.

It's no big deal really, just a remark.
Re: Debian does not boot on Pogoplug V4
October 01, 2017 12:45PM
Bubble,

> As an aside: I tried booting Arch again and that
> gives me a kernel panic when it tries to mount the
> rootfs. I checked the disk layout and label and it
> seems fine.

Yes. It is expected. Arch does not use uInitrd, and the DTB file is at a different folder. So some envs must be modified:
https://forum.doozan.com/read.php?3,31557,31624#msg-31624

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian does not boot on Pogoplug V4
December 28, 2017 09:42PM
Hi everyone I have the same problem, and I think I need the same solution, (Changing the default envs) however I don't have a rescue on nand. this should be really easy for you guys but really hard for me, I've been reading this forum for the las 3 days, but all the solutions assume having some kind of rescue system.
Let me explain I already had debian running on CF no problem, later I installed openwrt on nand which was also working great until I did a sysupgrade using this guide:https://forum.doozan.com/read.php?4,42279,42279
At this point I'm unable to boot debian on CF/USB. However I can still boot openwrt using this file:lede-kirkwood-pogo_e02-initramfs-uImage
problem is LEDE does not have mtd-utils needed for writing def/envs.
I hope someone can point me in the right direction here is my boot log and current envs.


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0
Pogov4> ptintenv
Unknown command 'ptintenv' - try 'help'
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootargs=console=ttyS0,115200 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootargs_lede=
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run bootcmd_pogo; reset
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
bootcmd_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 \
uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi
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
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
device=0:1
ethact=egiga0
ethaddr=00:25:31:05:c6:4a
fdt_addr=0x1c00000
fdt_file=/boot/kirkwood-pogoplug_v4.dtb
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
loadaddr=0x800000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
loadubifdt=ubifsload ${fdt_addr} ${fdt_file}
loadubizimage=ubifsload ${loadaddr} ${zimage}
machid=F78
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 0:1 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
partition=nand0,0
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
serverip=192.168.0.220
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
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
setargsubi=setenv bootargs console=${console},${baudrate} ${optargs} ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${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
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 0:1 0x800000 /uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
usb_rootfstype=ext3
zimage=/boot/zImage

Environment size: 3616/131068 bytes



Pogov4> boot

(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 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!

MMC rescan: current device # 0 initialized OK
2875692 bytes read in 1597 ms (1.7 MiB/s)
6535284 bytes read in 2175 ms (2.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.18.5-kirkwood-tld-1
   Created:      2015-11-11   5:03:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2875628 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.18.5-kirkwood-tld-1
   Created:      2015-02-19   1:49:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6535220 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


----
mod edit: please use code tags to post log.



Edited 1 time(s). Last edit at 12/28/2017 10:15PM by bodhi.
Re: Debian does not boot on Pogoplug V4
December 28, 2017 10:20PM
bitcom,

Your u-boot envs are messed up! I will take a look and write a solution.

It is a mix of old and new envs so you should list them in serial console:

printenv


And copy and paste the listing into a notepad to save and restore some of the LEDE envs later.

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



Edited 2 time(s). Last edit at 12/28/2017 10:23PM by bodhi.
Re: Debian does not boot on Pogoplug V4
December 29, 2017 07:03AM
Thanyou Bodhi for a quick response.
I guess what I really need to do is to restore the def/envs from serial console, I just don't know how.
I'm @ work right now I'll be back later
thanks
Re: Debian does not boot on Pogoplug V4
December 29, 2017 12:44PM
Bodhi can you give some idea how to write "uboot.2014.07-tld-1.environment" from the serial console?
I hope that's what is wrong with my box.
thanks
Re: Debian does not boot on Pogoplug V4
December 29, 2017 12:46PM
bitcom Wrote:
-------------------------------------------------------
> Bodhi can you give some idea how to write
> "uboot.2014.07-tld-1.environment" from the serial
> console?
> I hope that's what is wrong with my box.
> thanks

See this post:
https://forum.doozan.com/read.php?3,9810,23956#msg-23956

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian does not boot on Pogoplug V4
December 29, 2017 04:01PM
Ok Bodhi, I did as explained on that link loaded uboot.2014.07-tld-1.environment.scr and run the script.
here is my (new env):
U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4

SoC: Kirkwood 88F6192_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 128 MiB
MMC: kwsdio: 0
In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootargs=console=ttyS0,115200 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootargs_lede=
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run bootcmd_pogo; reset
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
bootcmd_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 \
uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi
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
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
device=0:1
ethact=egiga0
ethaddr=00:25:31:05:c6:4a
fdt_addr=0x1c00000
fdt_file=/boot/kirkwood-pogoplug_v4.dtb
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
loadaddr=0x800000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
loadubifdt=ubifsload ${fdt_addr} ${fdt_file}
loadubizimage=ubifsload ${loadaddr} ${zimage}
machid=F78
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 0:1 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
partition=nand0,0
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
serverip=192.168.0.220
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
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
setargsubi=setenv bootargs console=${console},${baudrate} ${optargs} ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${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
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 0:1 0x800000 /uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
usb_rootfstype=ext3
zimage=/boot/zImage

Environment size: 3579/131068 bytes
Pogov4>

I then tried to boot off SD card to no avail. same old...
Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Nothing happens beyond this
Re: Debian does not boot on Pogoplug V4
December 29, 2017 11:04PM
bitcom,

> Ok Bodhi, I did as explained on that link loaded
> uboot.2014.07-tld-1.environment.scr and run the
> script.
> here is my (new env):
> U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
> Pogoplug V4

Your u-boot envs are in good shape now.

>
> I then tried to boot off SD card to no avail. same
> old...
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
> Nothing happens beyond this

Please try again what you did above, and post the whole serial console log here (in code tags). The log should starts with the u-boot banner
> U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
> Pogoplug V4


and ends at

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

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian does not boot on Pogoplug V4
December 30, 2017 06:23PM
Ok for the record I got it working again, I finally was able to load my own fresh compiled version of openwrt to nand.
What I think did it was loading this whole batch of envs from pogo e02 except for (setenv arcNumber '2097').
https://github.com/doozan/uBoot/blob/master/environment/uboot.environment.txt
This I did from uboot console, after that I was able to boot debian from SD and everything went well.
Thanks to you Bodhi for always being here to help us along.
Have a great new 2018.
Cheers
Re: Debian does not boot on Pogoplug V4
December 30, 2017 08:24PM
bitcom Wrote:
-------------------------------------------------------
> Ok for the record I got it working again, I
> finally was able to load my own fresh compiled
> version of openwrt to nand.
> What I think did it was loading this whole batch
> of envs from pogo e02 except for (setenv arcNumber
> '2097').
> https://github.com/doozan/uBoot/blob/master/environment/uboot.environment.txt
> This I did from uboot console, after that I was
> able to boot debian from SD and everything went
> well.
> Thanks to you Bodhi for always being here to help
> us along.
> Have a great new 2018.
> Cheers

Cool!

BTW, regarding Debian booting, the reason it stuck at
> Uncompressing Linux... done, booting the kernel.
was most likely because of your uImage, and/or the lack of DTB loading.

-bodhi
===========================
Forum Wiki
bodhi's corner
juandbotiva
Re: Debian does not boot on Pogoplug V4
August 06, 2018 06:35PM
Hi!

I'm having a similar issue trying to boot my PogoPlug v4 into Debian from an SD card:

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed

no USB devices available

no IDE devices available
running scan_disk ...
Scan device usb
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
Unknown command 'load' - try 'help'
device usb 1:1
Unknown command 'load' - try 'help'
device usb 2:1
Unknown command 'load' - try 'help'
device usb 3:1
Unknown command 'load' - try 'help'
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
Unknown command 'load' - try 'help'
device ide 1:1
Unknown command 'load' - try 'help'
device ide 2:1
Unknown command 'load' - try 'help'
device ide 3:1
Unknown command 'load' - try 'help'
Scan device mmc
device mmc 0:1
Unknown command 'load' - try 'help'
device mmc 1:1
Unknown command 'load' - try 'help'
device mmc 2:1
Unknown command 'load' - try 'help'
device mmc 3:1
Unknown command 'load' - try 'help'
loading uImage ...
Unknown command 'load' - try 'help'
loading uInitrd ...
Unknown command 'load' - try 'help'
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
Unknown command 'load' - try 'help'
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Here's my env settings

Pogov4> printenv
arcNumber=3960
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
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-pogoplug_v4.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
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=f78
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
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_loaded=0
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: 3130/131068 bytes
Re: Debian does not boot on Pogoplug V4
August 06, 2018 11:49PM
juandbotiva,

Unknown command 'load' - try 'help'

Your installed u-boot is 2014.07-tld-1, but your envs are from uboot.2016.05-tld-1.environment.img (load command is only available in my u-boot releases after 2014.07).

How did that happen: at one point in time, you must have updated the u-boot envs without updating u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
juandbotiva
Re: Debian does not boot on Pogoplug V4
August 08, 2018 10:13AM
Hi bodhi, thanks for your reply. So I downgraded the u-boot envs to 2014.07-tld-1. And I got back to the initital error I was getting, which was:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

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.


I changed the machid to 0xffffffff and now I'm getting the same error as bitcom:

Using machid 0xffffffff from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Nothing happens beyond this point. You did mention that it could be my uImage, and/or the lack of DTB loading. How can I fix this ?

Thanks
Re: Debian does not boot on Pogoplug V4
August 08, 2018 11:22AM
juandbotiva,

> the u-boot envs to 2014.07-tld-1. And I got back
> to the initital error I was getting, which was:


Since you have down graded to 2014.07-tld-1, your envs are different, so let see what they are. At the u-boot prompt, get the listing of u-boot envs and pos there

Pogov4> printenv

-bodhi
===========================
Forum Wiki
bodhi's corner
juandbotiva
Re: Debian does not boot on Pogoplug V4
August 08, 2018 12:14PM
Hi bodhi , here are my envs:

Pogov4> printenv
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
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_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
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
filesize=a1a
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=ffffffff
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
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
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
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_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_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_ready_retry=15
usb_root=/dev/sda1

Environment size: 4406/131068 bytes
Re: Debian does not boot on Pogoplug V4
August 08, 2018 11:29PM
juandbotiva,

Your envs are now a mix of uboot.2014.07-tld-1 and uboot.2016.05-tld-1. So it is a little messy!

Try this procedure to make sure they are back to a correct set and boot with it.

======

Download the attached uboot.2014.07-tld-3.environment.scr script file.

Mount your USB rootfs on another Linux box. Assuming it is mounted as /media/sdb1. Copy this script file to the USB rootfs
cp -a uboot.2014.07-tld-3.environment.scr /media/sdb1/boot/
sync

Now bring your USB rootfs to the Pogo V4, plug in in and power up, and interrupt serial console.

Load the script file
usb start
ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-3.environment.scr
source 0x800000

And then adjust some u-boot envs for the Pogo V4 to run it correctly.

setenv load_dtb 'ext2load $bootdev $device 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb'


Go ahead and boot
boot

Please capture the entire serial console log and post here, whether it was successful in booting into Linux or not.

===========

After successfully booted, you will need to boot into serial console again, and then do a saveenv there before booting, to make it permanent.
usb start
ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-3.environment.scr
source 0x800000
setenv load_dtb 'ext2load $bootdev $device 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb'

saveenv
boot

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



Edited 1 time(s). Last edit at 08/09/2018 03:43AM by bodhi.
Attachments:
open | download - uboot.2014.07-tld-3.environment.scr (2.8 KB)
juandbotiva
Re: Debian does not boot on Pogoplug V4
August 09, 2018 09:15AM
Hi bodhi, it worked!

Now, in order to update uBoot, should I follow the steps in the uBoot sticky post ? Or do I have to do something specific for my PogoPlug ?

Thank you so much bodhi.

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0
Pogov4> ext2load mmc 0:1 0x800000 /boot/uboot.2014.07-tld-3.environment.scr
2822 bytes read in 1110 ms (2 KiB/s)
Pogov4> source 0x800000
## Executing script at 00800000
Pogov4> setenv load_dtb 'ext2load $bootdev $device 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb'
Pogov4> printenv
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1;run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
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
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
filesize=b06
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=ext2load $bootdev $device 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb
load_dtb_addr=0x1c00000
load_initrd=ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=ext2load $bootdev $device 0x800000 /boot/uImage
load_uimage_addr=0x800000
machid=0x831
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
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
scan_disk=scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 0x800000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=$console root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
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_addr=0x810000
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_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_ready_retry=15
usb_root=/dev/sda1

Envir
Pogovext2lo2load mmc 0:1 0x800000 /boot/uboot.2014.07-tld-3.environment.scr
Unknown command 'ext2lo' - try 'help'
Pogov4> ext2l
  ext2load ext2ls
Pogov4> ext2l
  ext2load ext2ls
Pogov4> ext2load
ext2load - load binary file from a Ext2 filesystem

Usage:
ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
    - load binary file 'filename' from 'dev' on 'interface'
      to address 'addr' from ext2 filesystem.
Pogov4> setenv bootdev mmc
Pogov4> boot
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed

MMC rescan: current device # 0 initialized OK

no USB devices available

no IDE devices available

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

Part    Start Sector    Num Sectors     UUID            Type
  1     63              30876867        00000000-01     83
loading envs from mmc 0 ...
Unknown command 'load' - try 'help'
Scan device usb
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
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

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device size - ide 0 **
device ide 1:1
** Bad device size - ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 997 ms (0 Bytes/s)
Found bootable drive on mmc 0
10284 bytes read in 2435 ms (3.9 KiB/s)
3821592 bytes read in 1406 ms (2.6 MiB/s)
7245696 bytes read in 1620 ms (4.3 MiB/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 0742f000, end 07b17f40 ... OK
   Loading Device Tree to 07429000, end 0742e82b ... OK
Using machid 0x831 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: Pogoplug v4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 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: 109428K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21644K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 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: 11467562657 ns
[    0.000012] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000066] Switching to timer-based delay loop, resolution 6ns
[    0.000767] Console: colour dummy device 80x30
[    0.000818] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.000853] pid_max: default: 32768 minimum: 301
[    0.001146] Security Framework initialized
[    0.001333] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001360] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002658] CPU: Testing write buffer coherency: ok
[    0.004230] Setting up static identity map for 0x100000 - 0x100058
[    0.004627] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.009549] devtmpfs: initialized
[    0.015399] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015441] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.016050] prandom: seed boundary self test passed
[    0.021784] prandom: 100 self tests passed
[    0.021812] pinctrl core: initialized pinctrl subsystem
[    0.023550] NET: Registered protocol family 16
[    0.024288] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.026657] cpuidle: using governor ladder
[    0.026767] cpuidle: using governor menu
[    0.027414] Feroceon L2: Enabling L2
[    0.027479] Feroceon L2: Cache support initialised.
[    0.028028] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.035061] No ATAGs?
[    0.048352] vgaarb: loaded
[    0.048817] SCSI subsystem initialized
[    0.049482] usbcore: registered new interface driver usbfs
[    0.049606] usbcore: registered new interface driver hub
[    0.049727] usbcore: registered new device driver usb
[    0.051397] clocksource: Switched to clocksource orion_clocksource
[    0.183712] VFS: Disk quotas dquot_6.6.0
[    0.183829] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.198699] NET: Registered protocol family 2
[    0.199765] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.199806] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.199837] TCP: Hash tables configured (established 1024 bind 1024)
[    0.199967] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.200001] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.200250] NET: Registered protocol family 1
[    0.200839] RPC: Registered named UNIX socket transport module.
[    0.200856] RPC: Registered udp transport module.
[    0.200867] RPC: Registered tcp transport module.
[    0.200878] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.201213] Unpacking initramfs...
[    1.168680] Freeing initrd memory: 7076K
[    1.168885] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.170259] audit: initializing netlink subsys (disabled)
[    1.170961] Initialise system trusted keyrings
[    1.171044] Key type blacklist registered
[    1.171178] audit: type=2000 audit(1.169:1): state=initialized audit_enabled=0 res=1
[    1.171312] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.171498] zbud: loaded
[    1.172944] NFS: Registering the id_resolver key type
[    1.172981] Key type id_resolver registered
[    1.172993] Key type id_legacy registered
[    1.173018] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.173033] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.173319] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.173597] fuse init (API version 7.26)
[    1.174112] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.174510] orangefs_init: module version upstream loaded
[    1.174527] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.551406] random: fast init done
[    9.945821] Key type asymmetric registered
[    9.945846] Asymmetric key parser 'x509' registered
[    9.945946] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    9.945962] io scheduler noop registered
[    9.945974] io scheduler deadline registered
[    9.946090] io scheduler cfq registered (default)
[    9.947344] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[    9.947368] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[    9.947868] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.950663] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    9.950695] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    9.950714] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.950734] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.951218] PCI: bus0: Fast back to back transfers disabled
[    9.951254] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.981470] PCI: bus1: Fast back to back transfers disabled
[    9.981760] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    9.981790] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    9.981824] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[    9.981855] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[    9.981884] pci 0000:00:01.0: PCI bridge to [bus 01]
[    9.981908] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    9.982035] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    9.982173] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    9.982900] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.042523] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   10.042838] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.102550] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   10.103178] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.105089] console [ttyS0] disabled
[   10.105183] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[   10.811851] console [ttyS0] enabled
[   10.827758] loop: module loaded
[   10.831797] sata_mv f1080000.sata: slots 32 ports 2
[   10.840544] scsi host0: sata_mv
[   10.844377] scsi host1: sata_mv
[   10.847846] ata1: SATA max UDMA/133 irq 32
[   10.851998] ata2: SATA max UDMA/133 irq 32
[   10.857346] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[   10.863781] nand: Hynix H27U1G8F2BTR-BC
[   10.867604] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.875180] Scanning device for bad blocks
[   10.885193] Bad eraseblock 71 at 0x0000008e0000
[   10.968559] 4 cmdlinepart partitions found on MTD device orion_nand
[   10.974826] Creating 4 MTD partitions on "orion_nand":
[   10.979957] 0x000000000000-0x000000100000 : "u-boot"
[   10.986777] 0x000000100000-0x000000500000 : "uImage"
[   10.993621] 0x000000500000-0x000002500000 : "rootfs"
[   11.000665] 0x000002500000-0x000008000000 : "data"
[   11.009962] libphy: Fixed MDIO Bus: probed
[   11.015213] libphy: orion_mdio_bus: probed
[   11.026565] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.183037] ata1: SATA link down (SStatus 0 SControl F300)
[   11.532927] ata2: SATA link down (SStatus 0 SControl F300)
[   12.143502] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:05:41:5f
[   12.152398] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.158932] ehci-pci: EHCI PCI platform driver
[   12.163481] ehci-orion: EHCI orion driver
[   12.167770] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.173317] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.181177] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   12.211445] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.217776] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   12.224585] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.231811] usb usb1: Product: EHCI Host Controller
[   12.236673] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[   12.243377] usb usb1: SerialNumber: f1050000.ehci
[   12.249034] hub 1-0:1.0: USB hub found
[   12.252917] hub 1-0:1.0: 1 port detected
[   12.257662] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.262992] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   12.272018] xhci_hcd 0000:01:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x00080010
[   12.280732] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   12.287537] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.294762] usb usb2: Product: xHCI Host Controller
[   12.299625] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[   12.306329] usb usb2: SerialNumber: 0000:01:00.0
[   12.311944] hub 2-0:1.0: USB hub found
[   12.315733] hub 2-0:1.0: 2 ports detected
[   12.320421] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.325732] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   12.333284] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.341571] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[   12.348341] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.355565] usb usb3: Product: xHCI Host Controller
[   12.360425] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[   12.368070] usb usb3: SerialNumber: 0000:01:00.0
[   12.373644] hub 3-0:1.0: USB hub found
[   12.377449] hub 3-0:1.0: 2 ports detected
[   12.382581] usbcore: registered new interface driver usb-storage
[   12.389047] mousedev: PS/2 mouse device common for all mice
[   13.441444] rtc-mv f1010300.rtc: internal RTC not ticking
[   13.447067] i2c /dev entries driver
[   13.452606] hidraw: raw HID events driver (C) Jiri Kosina
[   13.458518] drop_monitor: Initializing network drop monitor service
[   13.465166] NET: Registered protocol family 17
[   13.469710] Key type dns_resolver registered
[   13.475132] registered taskstats version 1
[   13.479215] Loading compiled-in X.509 certificates
[   13.484109] zswap: loaded using pool lzo/zbud
[   13.503124] Key type big_key registered
[   13.520610] Key type encrypted registered
[   13.526876] hctosys: unable to open rtc device (rtc0)
[   13.536996] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   14.190327] mvsdio f1090000.mvsdio: Got CD GPIO
[   14.327844] mmc0: host does not support reading read-only switch, assuming write-enable
[   14.343395] mmc0: new high speed SDHC card at address 59b4
[   14.558024] mmcblk0: mmc0:59b4 SDU1  14.7 GiB
[   14.566507]  mmcblk0: p1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   24.895438] EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem
[   24.931122] EXT4-fs (mmcblk0p1): 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
[   27.616050] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   28.085970] orion_wdt: Initial timeout 25 sec
[   28.207250] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[ ok ] Activating swap:.
[   29.742189] EXT4-fs (mmcblk0p1): 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/mmcblk0p1
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14458/966656 files, 223559/3859608 blocks
. ok
[   30.190592] EXT4-fs (mmcblk0p1): 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 .
[ 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:05:41:5f
Sending on   LPF/eth0/00:25:31:05:41:5f
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
[   38.340635] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   46.661878] NET: Registered protocol family 10
[   46.673609] Segment Routing with IPv6
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPNAK from 10.10.10.10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPREQUEST of 10.10.10.14 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 10.10.10.14 from 10.10.10.10
DHCPACK of 10.10.10.14 from 10.10.10.10
bound to 10.10.10.14 -- renewal in 3492 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...
1324 (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.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1323 (klogd)
. ok
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0
Re: Debian does not boot on Pogoplug V4
August 09, 2018 11:31AM
juandbotiva,

> Hi bodhi, it worked!

Cool!

> Now, in order to update uBoot, should I follow the
> steps in the uBoot sticky post ? Or do I have to
> do something specific for my PogoPlug ?
>

Yes, follow instruction the sticky post to install u-boot-2017-tld-1. Make sure that you do step 8 to flash the new default envs image from uboot.2016.05-tld-1.environment.bodhi.tar tarball, and adjust the DTB file to kirkwood-pogoplug_v4.dtb.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian does not boot on Pogoplug V4
August 09, 2018 12:31PM
Hi bodhi, upgraded to 2017.07-tld-1!

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   MVEBU_MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0

MMC rescan: current device # 0 initialized OK
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     63              30876867        00000000-01     83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **
## 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 **
running scan_disk ...
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 17 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
3821592 bytes read in 102 ms (35.7 MiB/s)
loading uInitrd ...
7245696 bytes read in 175 ms (39.5 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
10284 bytes read in 38 ms (263.7 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 07420000, end 07b08f40 ... OK
   Loading Device Tree to 0741a000, end 0741f82b ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

...

Debian GNU/Linux 9 debian ttyS0


Thanks again.
Re: Debian does not boot on Pogoplug V4
August 28, 2018 03:52PM
One thing I caught in this thread is that you can put rootfs on a USB, then clone that to and SD card and swap them out? Is that correct?
Re: Debian does not boot on Pogoplug V4
August 28, 2018 06:46PM
cdlenfert Wrote:
-------------------------------------------------------
> One thing I caught in this thread is that you can
> put rootfs on a USB, then clone that to and SD
> card and swap them out? Is that correct?


Yes. It is correct. Same for HDD.

The u-boot env that make sure all 3 types of devices are scanned for booting is devices.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: