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
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: