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 20, 2017 05:00PM
give me a min i and rereading your post to understand it all to give response
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 05:02PM
bodhi Wrote:
-------------------------------------------------------
>
> When hughe installs the new kernel, the DTS
> directory will be populated by the tar command to
> extract DTB files. And then install u-boot right
> away (don't reboot), which will populate the new
> default envs. The new default envs tells u-boot to
> boot the new kernel, which already has the Pogo
> E02 DTB in /boot/dts.

Thanks bodhi! I didn't realize you had replied (twice!) while I was typing my long message.

Is it OK that I've installed the new u-boot *before* installing the new kernel? And is it necessary, bad, or ok-but-not-necessary to reboot with the new u-boot but not the new kernel?
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 05:03PM
feas Wrote:
-------------------------------------------------------
> give me a min i and rereading your post to
> understand it all to give response

lol no problem, you can take more than a min
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 05:39PM
ok, to be honest I am getting confused with you jumping between doing two usb's at the same time. So lets do one then the other.

1st usb

From where you were when we left off you needed to install the new kernel which will give you the correct files to append to it to finish the u-boot install for that stick and writing to your e02. Which will leave you with the current new kernel and an updated u-boot written to the E02.

I am not positive that you did that correctly with your wording. You may have and I am just reading it wrong.

2nd usb

When you make the 2nd usb you do the rootfs instructions without the need to update u-boot since it was already done with the 1st usb. It includes the kernel at the time Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 was made so yes you would have the kernel before linux-4.13.5-kirkwood-tld-1. So you could also do the kernel install without needing to upgrade u-boot.


So if my assumptions are correct on the 1st usb redo the kernel with the update u-boot instructions.

I believe there was a problem with setting up netconsole before you did something and would get locked out on reboot. I may be mistaken but want to search the forums before you do a reboot.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:08PM
feas Wrote:
-------------------------------------------------------
> ok, to be honest I am getting confused with you
> jumping between doing two usb's at the same time.
> So lets do one then the other.
>
> 1st usb
>
> From where you were when we left off you needed to
> install the new kernel which will give you the
> correct files to append to it to finish the u-boot
> install for that stick and writing to your e02.
> Which will leave you with the current new kernel
> and an updated u-boot written to the E02.
>
> I am not positive that you did that correctly with
> your wording. You may have and I am just reading
> it wrong.
>
> 2nd usb
>
> When you make the 2nd usb you do the rootfs
> instructions without the need to update u-boot
> since it was already done with the 1st usb. It
> includes the kernel at the time
> Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> was made so yes you would have the kernel before
> linux-4.13.5-kirkwood-tld-1. So you could also do
> the kernel install without needing to upgrade
> u-boot.
>
>
> So if my assumptions are correct on the 1st usb
> redo the kernel with the update u-boot
> instructions.
>
> I believe there was a problem with setting up
> netconsole before you did something and would get
> locked out on reboot. I may be mistaken but want
> to search the forums before you do a reboot.

1st USB ... In installing rootfs on 2nd USB I realized that I had the .dtb file that was called for in the u-boot instructions, so I copied the file to /boot/dts & finished the u-boot steps. I have *not* installed the new kernel on the 1st USB drive. I was going to wait to do that until I made sure I could boot from the 2nd USB, but maybe that's silly - as long as I'm waiting before rebooting anyway I might as well just install the new kernel. It's my understanding that I don't need to go through the rootfs steps - just the kernel 4.13.5 instructions (which are really the 4.8.0 instructions with 4.13.5 replacing 4.8.0).

2nd USB ... Great, so it sounds like I'm bootable there and can update to 4.13.5 either before or after reboot.

I'll wait to reboot until we (and by we I mean you) can confirm that there's not a problem with netconsole to worry about.


For a last bit of fog-clearing ... am I correct that fw_setenv writes onto the NAND or other persistent storage of my E02 and not onto my USB drive?

thanks again
-huge
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:33PM
huge Wrote:
-------------------------------------------------------
>
>1st USB ... In installing rootfs on 2nd USB I realized that I had the .dtb file that was called for in the >u-boot instructions, so I copied the file to /boot/dts & finished the u-boot steps. I have *not* installed the >new kernel on the 1st USB drive. I was going to wait to do that until I made sure I could boot from the >2nd USB, but maybe that's silly - as long as I'm waiting before rebooting anyway I might as well just >install the new kernel. It's my understanding that I don't need to go through the rootfs steps - just the >kernel 4.13.5 instructions (which are really the 4.8.0 instructions with 4.13.5 replacing 4.8.0).


That is what I was afraid of, you need Bodhi's new kernel and not the debian non-FDT kernel one you are running.
You can run "uname -a" to verify.

> I'll wait to reboot until we (and by we I mean
> you) can confirm that there's not a problem with
> netconsole to worry about.
>
>
I am hoping Bodhi can answer if the following needs to be added to the u-boot environment for netconsole to not hang and lock you out when you reboot:

preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi

Your last printenv did not show this.
I am out of my environment and remember there being issues with some having problems when running netconsole and since you don't have a usb tty-serial cable I don't want you to get locked out.


> For a last bit of fog-clearing ... am I correct
> that fw_setenv writes onto the NAND or other
> persistent storage of my E02 and not onto my USB
> drive?
>

I don't think it writes to nand but to the linux fs which gets read and supersedes what is in u-boot/nand
when linux takes over. But I reserve the right to be wrong on this.

> thanks again
> -huge
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:33PM
I'm guessing the "Hmm" and "no arrays" messages are not a concern?
debian:/boot# dpkg -i linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
Selecting previously unselected package linux-image-4.13.5-kirkwood-tld-1.
(Reading database ... 31003 files and directories currently installed.)
Preparing to unpack linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb ...
Done.
Unpacking linux-image-4.13.5-kirkwood-tld-1 (1.0) ...
Setting up linux-image-4.13.5-kirkwood-tld-1 (1.0) ...

 Hmm. There is a symbolic link /lib/modules/4.13.5-kirkwood-tld-1/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/4.13.5-kirkwood-tld-1/build


 Hmm. The package shipped with a symbolic link /lib/modules/4.13.5-kirkwood-tld-1/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/4.13.5-kirkwood-tld-1/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.5-kirkwood-tld-1 /boot/vmlinuz-4.13.5-kirkwood-tld-1
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.5-kirkwood-tld-1 /boot/vmlinuz-4.13.5-kirkwood-tld-1
update-initramfs: Generating /boot/initrd.img-4.13.5-kirkwood-tld-1
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 4.13.5-kirkwood-tld-1 /boot/vmlinuz-4.13.5-kirkwood-tld-1
debian:/boot#

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:36PM
huge Wrote:
-------------------------------------------------------
> I'm guessing the "Hmm" and "no arrays" messages
> are not a concern?
>
> debian:/boot# dpkg -i
> linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
> Selecting previously unselected package
> linux-image-4.13.5-kirkwood-tld-1.
> (Reading database ... 31003 files and directories
> currently installed.)
> Preparing to unpack
> linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
> ...
> Done.
> Unpacking linux-image-4.13.5-kirkwood-tld-1 (1.0)
> ...
> Setting up linux-image-4.13.5-kirkwood-tld-1 (1.0)
> ...
> 
>  Hmm. There is a symbolic link
> /lib/modules/4.13.5-kirkwood-tld-1/build
>  However, I can not read it: No such file or
> directory
>  Therefore, I am deleting
> /lib/modules/4.13.5-kirkwood-tld-1/build
> 
> 
>  Hmm. The package shipped with a symbolic link
> /lib/modules/4.13.5-kirkwood-tld-1/source
>  However, I can not read the target: No such file
> or directory
>  Therefore, I am deleting
> /lib/modules/4.13.5-kirkwood-tld-1/source
> 
> Running depmod.
> Examining /etc/kernel/postinst.d.
> run-parts: executing
> /etc/kernel/postinst.d/apt-auto-removal
> 4.13.5-kirkwood-tld-1
> /boot/vmlinuz-4.13.5-kirkwood-tld-1
> run-parts: executing
> /etc/kernel/postinst.d/initramfs-tools
> 4.13.5-kirkwood-tld-1
> /boot/vmlinuz-4.13.5-kirkwood-tld-1
> update-initramfs: Generating
> /boot/initrd.img-4.13.5-kirkwood-tld-1
> W: mdadm: /etc/mdadm/mdadm.conf defines no
> arrays.
> W: mdadm: no arrays defined in configuration
> file.
> run-parts: executing
> /etc/kernel/postinst.d/zz-flash-kernel
> 4.13.5-kirkwood-tld-1
> /boot/vmlinuz-4.13.5-kirkwood-tld-1
> debian:/boot#
> 
>


you can run "uname -a" to see the running kernel to verify.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:39PM
feas Wrote:
-------------------------------------------------------
> you can run "uname -a" to see the running kernel
> to verify.

I still haven't finished updating kernel so uname -a still returns:

Linux debian 3.16.0-4-kirkwood #1 Debian 3.16.48-1 (2017-09-28) armv5tel GNU/Linux
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:43PM
ok finish the kernel and then finish the u-boot instructions but run "uname -a" and "fw_printenv" and post them to take a look.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:52PM
Roger that.

With this instruction:
- Set U-Boot envs for booting. The u-boot envs below are for 1st time upgrading, you don't need to do this step if you've installed the latest U-Boot for Kirkwood. Just make sure the DTB file is the correct one for your box, replace kirkwood-goflexnet.dtb below with the correct DTB name for your box. 

fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb'    
fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'

Should I go ahead and run those fw_setenv lines anyway because, while I've installed the new u-boot, I haven't *booted* with it yet? Or will u-boot take care of it the first time I boot?

Interestingly (maybe) my existing values of those variables looks completely different:
debian:/boot# fw_printenv load_dtb
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
debian:/boot# fw_printenv load_initrd
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
debian:/boot# fw_printenv load_uimage
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
debian:/boot# fw_printenv usb_boot
## Error: "usb_boot" not defined

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:58PM
*WITHOUT* running those fw_setenv lines in question, printenv looks like this:
debian:/media/sdb1/boot#
debian:/media/sdb1/boot#
debian:/media/sdb1/boot# 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
devices=usb ide mmc
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
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
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
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
serverip=192.168.222.103
ipaddr=192.168.222.168
disks=0 1 2 3 4 5 6 7
debian:/media/sdb1/boot#
debian:/media/sdb1/boot#
debian:/media/sdb1/boot#

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 06:58PM
huge Wrote:
-------------------------------------------------------
> Roger that.
>
> With this instruction:
>
> - Set U-Boot envs for booting. The u-boot envs
> below are for 1st time upgrading, you don't need
> to do this step if you've installed the latest
> U-Boot for Kirkwood. Just make sure the DTB file
> is the correct one for your box, replace
> kirkwood-goflexnet.dtb below with the correct DTB
> name for your box. 
> 
> fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000
> /boot/dts/kirkwood-goflexnet.dtb'    
> fw_setenv load_initrd 'ext2load usb 0:1 0x1100000
> /boot/uInitrd'
> fw_setenv load_uimage 'ext2load usb 0:1 0x800000
> /boot/uImage'
> fw_setenv usb_boot 'run load_dtb; run load_uimage;
> if run load_initrd; then bootm 0x800000 0x1100000
> 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
>
>
> Should I go ahead and run those fw_setenv lines
> anyway because, while I've installed the new
> u-boot, I haven't *booted* with it yet? Or will
> u-boot take care of it the first time I boot?
>
> Interestingly (maybe) my existing values of those
> variables looks completely different:
>
> debian:/boot# fw_printenv load_dtb
> load_dtb=echo loading DTB $dtb_file ...; load
> $bootdev $device $load_dtb_addr $dtb_file
> debian:/boot# fw_printenv load_initrd
> load_initrd=echo loading uInitrd ...; load
> $bootdev $device $load_initrd_addr /boot/uInitrd
> debian:/boot# fw_printenv load_uimage
> load_uimage=echo loading uImage ...; load $bootdev
> $device $load_uimage_addr /boot/uImage
> debian:/boot# fw_printenv usb_boot
> ## Error: "usb_boot" not defined
> 
>


yes you need to update as the instructions say since this hasn't been done yet
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 07:19PM
feas Wrote:
-------------------------------------------------------
>
> yes you need to update as the instructions say
> since this hasn't been done yet

OK now after running those, my fw_printenv:
debian:/boot#
debian:/boot#
debian:/boot# 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
devices=usb ide mmc
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
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
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
serverip=192.168.222.103
ipaddr=192.168.222.168
disks=0 1 2 3 4 5 6 7
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/dts/kirkwood-pogo_e02.dtb
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
debian:/boot#
debian:/boot#

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 07:33PM
huge Wrote:
-------------------------------------------------------
> feas Wrote:
> -------------------------------------------------------
> >
> > yes you need to update as the instructions say
> > since this hasn't been done yet
>
> OK now after running those, my fw_printenv:
>
> debian:/boot#
> debian:/boot#
> debian:/boot# 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
> devices=usb ide mmc
> 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
> 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
> 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
> serverip=192.168.222.103
> ipaddr=192.168.222.168
> disks=0 1 2 3 4 5 6 7
> load_dtb=ext2load usb 0:1 0x1c00000
> /boot/dts/dts/kirkwood-pogo_e02.dtb
> 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
> debian:/boot#
> debian:/boot#
> 
>

ok, it looks like you have finished section "C" to "DONE"

If that is correct you need go back up to "step 9" to continue.

Verify your E02 ipaddress and the system you will use as the serversip.

Don't reboot till your repost fw_printenv and uname -a after finished adjusting for netconsole.



Edited 1 time(s). Last edit at 10/20/2017 07:36PM by feas.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 07:50PM
feas Wrote:
-------------------------------------------------------
>
> ok, it looks like you have finished section
> "C" to "DONE"
>
> If that is correct you need go back up to "step
> 9"
to continue.
>
> Verify your E02 ipaddress and the system you will
> use as the serversip.
>
> Don't reboot till your repost fw_printenv and
> uname -a after finished adjusting for netconsole.

Nice catch - I thought I had done all that because I had set ipaddr & serverip, but I must have skipped preboot & preboot_nc.

uname -a output hasn't changed yet, but I'm posting it anyway...
debian:/boot#
debian:/boot# 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
devices=usb ide mmc
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
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/dts/kirkwood-pogo_e02.dtb
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
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
debian:/boot#
debian:/boot#
debian:/boot# uname -a
Linux debian 3.16.0-4-kirkwood #1 Debian 3.16.48-1 (2017-09-28) armv5tel GNU/Linux
debian:/boot#
debian:/boot#

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 08:18PM
huge Wrote:
-------------------------------------------------------
> feas Wrote:
> -------------------------------------------------------
> >
> > ok, it looks like you have finished section
> > "C" to "DONE"
> >
> > If that is correct you need go back up to
> "step
> > 9"
to continue.
> >
> > Verify your E02 ipaddress and the system you
> will
> > use as the serversip.
> >
> > Don't reboot till your repost fw_printenv and
> > uname -a after finished adjusting for
> netconsole.
>
> Nice catch - I thought I had done all that because
> I had set ipaddr & serverip, but I must have
> skipped preboot & preboot_nc.
>
> uname -a output hasn't changed yet, but I'm
> posting it anyway...
> debian:/boot#
> debian:/boot# 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
> devices=usb ide mmc
> 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
> load_dtb=ext2load usb 0:1 0x1c00000
> /boot/dts/dts/kirkwood-pogo_e02.dtb
> 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
> 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
> debian:/boot#
> debian:/boot#
> debian:/boot# uname -a
> Linux debian 3.16.0-4-kirkwood #1 Debian 3.16.48-1
> (2017-09-28) armv5tel GNU/Linux
> debian:/boot#
> debian:/boot#
> 
>

Since it is still showing the old debian kernel it did not work for you the first time. So I have tried to remove alot of the other stuff in the instructions for you to follow below:

bodhi Wrote:
-------------------------------------------------------
> Linux Kernel 4.13.5 Kirkwood package and rootfs
> for GoFlex Home/Net, Pogoplug E02/Mobile/V4,
> iConnect, Dockstar, Sheevaplug, NSA320, NSA320S,
> NSA325, NSA310S, NSA310, Topkick, Netgear Stora,
> ASUS-M25, Iomega ix4-200d, QiZhiTong 501mv2, HP
> Thin Client T5325, LG N1T1, Linksys EA4500,
> Lenovo/Iomega ix2-ng, Toshiba Canvio Home NAS,
> Lenovo Iomega EZ (under Beta testing) and all
> other Kirkwood plugs that are already in the
> mainline.
>
> Latest released
> kernel
:

> linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2 (10 Oct
> 2017)
>
> Installation:
>
> Please use the same installation instruction in
> kernel 4.8.0-kirkwood-tld-1 (Updated 10 Oct 2016)
> below. Simply replace 4.8.0-kirkwood-tld-1
> with 4.13.5-kirkwood-tld-1 in the
> instruction.

>
> ========================================================================
>
> Updated 10 Oct 2016:
>
> Kernel linux-4.8.0-kirkwood-tld-1 package has been
> uploaded. The following features were
> added/updated:
>
> - Marvell CESA driver improvement
> - NSA320 hwmon: hardware monitoring module name is
> now named nsa320-hwmon. This module might work for
> other Zyxel NSA3xx also.
> - CONFIG_HARDENED_USERCOPY: this kernel config
> "kills entire classes of heap overflow exploits
> and similar kernel memory exposures."
>
>
> This tarball contains 6 files:
>
> linux-image-4.8.0-kirkwood-tld-1_1.0_armel.deb
> linux-headers-4.8.0-kirkwood-tld-1_1.0_armel.deb
> config-4.8.0-kirkwood-tld-1
> zImage-4.8.0-kirkwood-tld-1
> linux-dtb-4.8.0-kirkwood-tld-1.tar
> linux-4.8.0-kirkwood-tld-1.patch
>
> Installation:
>
>
> 1. Backup your current uImage and uInitrd. In the
> /boot directory, these are files for your current
> kernel (xx.xx.xx is the version number):
>
> uInitrd 
> uImage 
> initrd.img-xx.xx.xx-kirkwood-xxx
> System.map-xx.xx.xx-kirkwood-xxx
> vmlinuz-xx.xx.xx-kirkwood-xxx
> config-xx.xx.xx-kirkwood-xxx
> dts/
>
>
> 2. Extract the kernel and the DTB files in the
> archive:
>
>
> cd /boot
> tar -xjf linux-4.8.0-kirkwood-tld-1-bodhi.tar.bz2
> tar -xf  linux-dtb-4.8.0-kirkwood-tld-1.tar 
>
>
> 3. And install it with dpkg. Remove flash-kernel
> first to avoid potential problem (It is much
> better to generate uImage and uInitrd manually
> anyway):
>
>
> cd /boot
> apt-get remove flash-kernel 
> dpkg -i linux-image-4.8.0-kirkwood-tld-1_1.0_armel.deb 
>
>
> 4. Create uImage and uInitrd and setup for
> booting.
>
> I'm using the GoFlex Net booting with USB drive as
> an example here. Please replace its name
> (kirkwood-goflexnet.dtb) with the box you are
> installing on (for example,
> kirkwood-pogo_e02.dtb). Please look inside
> /boot/dts/ for the correct DTB file name for your
> box.
>
>
> - Choose option 4a if you are going to use the
> current rootfs for many different Kirkwood boxes,
> as is. It should boot most of the Kirkwood boxes.
> And with
> the
> latest U-Boot for Kirkwood
that suports FDT.
> This is the preferred method.
>
> 4a. Boot with DTB file (standard way to boot FDT
> kernel). Recommended.
>
>
> - Generate the uImage and uInitrd.
>
> cd /boot
> mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.8.0-kirkwood-tld-1-d  vmlinuz-4.8.0-kirkwood-tld-1 uImage 
> mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.8.0-kirkwood-tld-1-d initrd.img-4.8.0-kirkwood-tld-1 uInitrd
>
>
> - Set U-Boot envs for booting. The u-boot envs
> below are for 1st time upgrading,
> you don't need to do this
> step
if you've installed
> the
> latest U-Boot for Kirkwood
. Just make sure
> the DTB file is the correct one for your box,
> replace kirkwood-goflexnet.dtb below with the
> correct DTB name for your box.
>
>
> fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000
> /boot/dts/kirkwood-goflexnet.dtb'    
> fw_setenv load_initrd 'ext2load usb 0:1 0x1100000
> /boot/uInitrd'
> fw_setenv load_uimage 'ext2load usb 0:1 0x800000
> /boot/uImage'
> fw_setenv usb_boot 'run load_dtb; run load_uimage;
> if run load_initrd; then bootm 0x800000 0x1100000
> 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
>
>
> 5. The new uImage and uInitrd files should be
> created in /boot directory now. You're ready to
> reboot the system:
>
> sync 
> sync
> sync
> shutdown -r now
>
>
>
> =================================================================

Don't shutdown or reboot yet!

After the "sync" post "uname -a" and "fw_printenv" again please and "pstree -p". I do not think we will need to do u-boot again but I want to look everything over again.



Edited 2 time(s). Last edit at 10/20/2017 08:42PM by feas.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 08:41PM
Running dkpg again I got the following screen (not surprising, but I don't know whether I can ignore it or not):
 │ You are attempting to install a kernel image (version 4.13.5-kirkwood-tld-1) However, the directory /lib/modules/4.13.5-kirkwood-tld-1/kernel still exists.  If   │
 │ this directory belongs to a previous linux-image-4.13.5-kirkwood-tld-1 package, and if you have deselected some modules, or installed standalone modules          │
 │ packages, this could be bad.                                                                                                                                      │
 │                                                                                                                                                                   │
 │ If /lib/modules/4.13.5-kirkwood-tld-1/kernel belongs to an old install of linux-image-4.13.5-kirkwood-tld-1, then this is your last chance to abort the           │
 │ installation of this kernel image (nothing has been changed yet).                                                                                                 │
 │                                                                                                                                                                   │
 │ If you know what you are doing, and if you feel that this image should be installed despite this anomaly, Please answer n to the question.                        │
 │                                                                                                                                                                   │
 │ Otherwise, I suggest you move /lib/modules/4.13.5-kirkwood-tld-1/kernel out of the way, perhaps to /lib/modules/4.13.5-kirkwood-tld-1.kernel.old or something,    │
 │ and then try re-installing this image.                                                                                                                            │
 │                                                                                                                                                                   │
 │  Stop install since the kernel-image is already installed?                                                                                                        │
 │                                                                                                                                                                   │
 │                                                  <Yes>                                                     <No>                                                   │

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 08:45PM
yes stop and move on to 4a then
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 09:02PM
uname -a still reports old kernel (I had thought it wouldn't report the new one until after I had rebooted, but your concern has to mean that was wrong)

posting a couple of commands before uname and fw_printenv since they seemed potentially relevant:
debian:/boot#
debian:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.13.5-kirkwood-tld-1 -d  vmlinuz-4.13.5-kirkwood-tld-1 uImage
Image Name:   Linux-4.13.5-kirkwood-tld-1
Created:      Fri Oct 20 18:50:32 2017
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3848000 Bytes = 3757.81 kB = 3.67 MB
Load Address: 00008000
Entry Point:  00008000
debian:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.13.5-kirkwood-tld-1 -d initrd.img-4.13.5-kirkwood-tld-1 uInitrd
Image Name:   initramfs-4.13.5-kirkwood-tld-1
Created:      Fri Oct 20 18:51:39 2017
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7530317 Bytes = 7353.83 kB = 7.18 MB
Load Address: 00000000
Entry Point:  00000000
debian:/boot# fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/dts/kirkwood-pogo_e02.dtb'
debian:/boot#
debian:/boot# fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
debian:/boot# fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
debian:/boot# fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
debian:/boot#
debian:/boot# sync
debian:/boot# sync
debian:/boot# sync
debian:/boot#
debian:/boot#
debian:/boot# uname -a
Linux debian 3.16.0-4-kirkwood #1 Debian 3.16.48-1 (2017-09-28) armv5tel GNU/Linux
debian:/boot#
debian:/boot#
debian:/boot# 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
devices=usb ide mmc
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
serverip=192.168.222.103
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/dts/kirkwood-pogo_e02.dtb
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
debian:/boot#

Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 09:07PM
Guys,

There are too much information to absorp :) I got lost after a few new posts.

I'd suggest before rebooting, you would take a pause and verify that everything is consistent. When huge is ready to reboot, let me know and I'll show how we can do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 09:27PM
I am concerned that uname -a is still showing old kernel. is it old man pill time again?
Other than that I think he is set if you wouldn't mind checking his fw_printenv.

Side note he does not have serial cable and may need to download netconsole for windows, then if all is good he may want to regen ssh-keys and change passwd.
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 09:45PM
feas Wrote:
-------------------------------------------------------
> I am concerned that uname -a is still showing old
> kernel. is it old man pill time again?
> Other than that I think he is set if you wouldn't
> mind checking his fw_printenv.
>
> Side note he does not have serial cable and may
> need to download netconsole for windows, then if
> all is good he may want to regen ssh-keys and
> change passwd.

Actually I may be able to do a serial cable - I acquired a CP2102 USB adapter and made it work with my old pink B01 pogoplug by cutting up a CD-ROM audio cable. I think the E02 has the same header on the circuit board so I should be able to make a serial connection work - I just haven't pulled the case apart because I've been able to SSH into it.

(also I'd be surprised if I'm not the old man in this scenario)
Re: Pogoplug E02 Debian Linux Installation Guide
October 20, 2017 09:48PM
huge Wrote:
-------------------------------------------------------
> feas Wrote:
> -------------------------------------------------------
> > I am concerned that uname -a is still showing
> old
> > kernel. is it old man pill time again?
> > Other than that I think he is set if you
> wouldn't
> > mind checking his fw_printenv.
> >
> > Side note he does not have serial cable and may
> > need to download netconsole for windows, then
> if
> > all is good he may want to regen ssh-keys and
> > change passwd.
>
> Actually I may be able to do a serial cable - I
> acquired a CP2102 USB adapter and made it work
> with my old pink B01 pogoplug by cutting up a
> CD-ROM audio cable. I think the E02 has the same
> header on the circuit board so I should be able to
> make a serial connection work - I just haven't
> pulled the case apart because I've been able to
> SSH into it.
>
> (also I'd be surprised if I'm not the old man in
> this scenario)

No! Sorry, I may or may not have been known to keep installing the kernel when I meant to install a new rootfs but I can't remember.
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:08AM
feas Wrote:
-------------------------------------------------------
> I am concerned that uname -a is still showing old
> kernel. is it old man pill time again?

That's OK. It is still running the old kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:11AM
Serial console is always preferred.

However, if we are careful and double check everything, then chance is that it will be OK.

@hughe,

So let me know before you reboot.

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



Edited 1 time(s). Last edit at 10/21/2017 12:13AM by bodhi.
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:12AM
bodhi Wrote:
-------------------------------------------------------
> feas Wrote:
> -------------------------------------------------------
> > I am concerned that uname -a is still showing
> old
> > kernel. is it old man pill time again?
>
> That's OK. It is still running the old kernel.

THAT'S WHAT I THOUGHT!!!! lol ... joking ... you guys are the best.

with that out of the way, should I reboot this thing and see what happens? (in other words, does my fw_printenv output look ok or is there anything else to verify?)
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:17AM
huge Wrote:

> with that out of the way, should I reboot this
> thing and see what happens? (in other words, does
> my fw_printenv output look ok or is there anything
> else to verify?)

OK. So now is the time to check everything. Usually if you have the UART-booting enbale plug such as Pogo V4, GoFlexHome/Net, then I'd say we are less cautious. But with Pogo E02, it is prudent to be more cautious. So the next post, I will list the commands, you'd execute them and post the entire log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:26AM
Please excute all commands in one session (pretend you have not post any information before). That's the only way to check if everything is consistent.

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*

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



Edited 1 time(s). Last edit at 10/21/2017 12:31AM by bodhi.
Re: Pogoplug E02 Debian Linux Installation Guide
October 21, 2017 12:34AM
OK, ready or not, here it comes:


debian:/boot#
debian:/boot#
debian:/boot# uname -a
Linux debian 3.16.0-4-kirkwood #1 Debian 3.16.48-1 (2017-09-28) armv5tel GNU/Linux
debian:/boot#
debian:/boot#
debian:/boot# dpkg -l | grep linux-image
ii  linux-image-2.6-kirkwood          3.2+46                           armel        Linux for Marvell Kirkwood (dummy package)
rc  linux-image-2.6.32-5-kirkwood     2.6.32-48squeeze6                armel        Linux 2.6.32 for Marvell Kirkwood
ii  linux-image-3.16.0-4-kirkwood     3.16.48-1                        armel        Linux 3.16 for Marvell Kirkwood
rc  linux-image-3.2.0-4-kirkwood      3.2.93-1                         armel        Linux 3.2 for Marvell Kirkwood
ii  linux-image-4.13.5-kirkwood-tld-1 1.0                              armel        Linux kernel binary image for version 4.13.5-kirkwood-tld-1
ii  linux-image-kirkwood              3.16+63                          armel        Linux for Marvell Kirkwood (meta-package)
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# ls -lart /lib/modules/ -d
drwxr-xr-x 7 root root 4096 Oct 20 16:29 /lib/modules/
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 05b00000 00020000 "data"
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# dmesg | grep -i bad
[    1.661183] Scanning device for bad blocks
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# 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,relatime,size=10240k,nr_inodes=30391,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=50748k,mode=755)
/dev/sda1 on / type ext2 (rw,noatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=25376k,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sdb1 on /media/sdb1 type ext3 (rw,relatime,data=ordered)
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0               0xc0000         0x20000         0x20000
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# 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
devices=usb ide mmc
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
serverip=192.168.222.103
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/dts/kirkwood-pogo_e02.dtb
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
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# ls -latr /boot
total 81368
drwxr-xr-x  2 root root     4096 Sep 20 01:13 dts
-rw-r--r--  1 root root   154699 Oct  7 01:53 config-4.13.5-kirkwood-tld-1
-rw-------  1 root root  3848000 Oct  7 04:26 vmlinuz-4.13.5-kirkwood-tld-1
-rw-------  1 root root  2546047 Oct  7 04:26 System.map-4.13.5-kirkwood-tld-1
-rw-r--r--  1 root root  2076472 Oct  8 13:14 vmlinuz-3.16.0-4-kirkwood
-rw-r--r--  1 root root  1626486 Oct  8 13:15 System.map-3.16.0-4-kirkwood
-rw-r--r--  1 root root   135770 Oct  8 13:15 config-3.16.0-4-kirkwood
drwxr-xr-x 21 root root     4096 Oct 19 12:53 ..
-rw-r--r--  1 root root  1619296 Oct 19 13:40 uImage.bak
-rw-r--r--  1 root root  8967613 Oct 19 13:40 uInitrd.bak
lrwxrwxrwx  1 root root       25 Oct 19 14:16 vmlinuz -> vmlinuz-3.16.0-4-kirkwood
lrwxrwxrwx  1 root root       28 Oct 19 14:16 initrd.img -> initrd.img-3.16.0-4-kirkwood
-rw-r--r--  1 root root 10586875 Oct 19 14:17 initrd.img-3.16.0-4-kirkwood
-rw-r--r--  1 root root    10260 Oct 19 14:17 dtb-3.16.0-4-kirkwood.bak
lrwxrwxrwx  1 root root       21 Oct 19 14:21 dtb.bak -> dtb-3.16.0-4-kirkwood
-rw-r--r--  1 root root    10260 Oct 19 14:21 dtb-3.16.0-4-kirkwood
-rw-r--r--  1 root root    10260 Oct 19 14:21 dtb
-rw-r--r--  1 root root       89 Oct 20 14:40 uEnv.txt
drwxr-xr-x  2 root root     4096 Oct 20 16:15 BACKUP
-rw-r--r--  1 root root   142721 Oct 20 16:26 linux-4.13.5-kirkwood-tld-1.patch
-rw-r--r--  1 root root  1300480 Oct 20 16:26 linux-dtb-4.13.5-kirkwood-tld-1.tar
-rw-r--r--  1 root root  8653960 Oct 20 16:26 linux-headers-4.13.5-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 18669874 Oct 20 16:26 linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
-rwxr-xr-x  1 root root  3848000 Oct 20 16:26 zImage-4.13.5-kirkwood-tld-1
-rw-r--r--  1 root root  7530317 Oct 20 16:31 initrd.img-4.13.5-kirkwood-tld-1
drwxr-xr-x  4 root root     4096 Oct 20 18:29 .
-rw-r--r--  1 root root  3848064 Oct 20 18:50 uImage
-rw-r--r--  1 root root  7530381 Oct 20 18:51 uInitrd
debian:/boot#
debian:/boot#
debian:/boot#
debian:/boot# ls -latr /boot/dts/kirkwood-*pogo*
-rw-r--r-- 1 root root 10284 Oct  7 15:12 /boot/dts/kirkwood-pogoplug_v4.dtb
-rw-r--r-- 1 root root 10444 Oct  7 15:52 /boot/dts/kirkwood-pogo_e02.dtb
debian:/boot#
debian:/boot#
debian:/boot#

Author:

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: