Welcome! Log In Create A New Profile

Advanced

Pogo E02 will only boot with USB drive

Posted by Looker 
Pogo E02 will only boot with USB drive
July 21, 2014 01:30PM
Hi,
I just got another Pogo E02 and installed Archlinux and associated apps with no problems. It boots fine if I have the USB flash drive connected. The problem is when I try to boot it back into the original Pogoplug factory environment it stops booting if no flash drive is connected.

In serial console I get the following:

oC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

no USB devices available

no USB devices available

no USB devices available

no USB devices available
PogoE02>

My uboot printenv is:

baudrate=115200
bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:25:31:04:81:B7
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
letter=9
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 1434/131068 bytes

Any help would be appreciated,
Thank you
Re: Pogo E02 will only boot with USB drive
July 21, 2014 02:49PM
@Looker,

You can not boot back to Pogo OS after installing ALARM u-boot (part of your Arch installation).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 will only boot with USB drive
July 21, 2014 03:28PM
They should have kept that feature in the new uBoot installation script. Lots of confusion since prior with Jeff's uBoot and installation script it magically just worked.
Re: Pogo E02 will only boot with USB drive
July 21, 2014 09:31PM
Bodhi,

All my other Pogo E02's can including the one you recently helped me resurrect. What has changed and why?

Thanks
Re: Pogo E02 will only boot with USB drive
July 21, 2014 11:21PM
Hi Looker,

Did you install the same u-boot using Arch installation on the other Pogo E02 that still work with Pogo OS?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 will only boot with USB drive
July 23, 2014 10:50PM
Bodhi,

I always follow my same proven installation steps, how can I find the uboot version loaded on each device to verify that? I thought there was a workaround to this issue by modifying a config file.

Thanks
Re: Pogo E02 will only boot with USB drive
July 24, 2014 01:57AM
Looker,

You can see the version in netconsole or serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 will only boot with USB drive
September 10, 2015 11:02AM
I have the same problem, my pogoe02 won't boot without a usb drive, the problem I have now however, is that my usb drive is lost, so I can't boot anything.
I purchased a serial connector and put it on the board and now I am here:

(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

no USB devices available

no USB devices available

no USB devices available

no USB devices available
PogoE02> printenv
baudrate=115200
bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:25:31:00:99:A3
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
letter=9
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 1434/131068 bytes
PogoE02>


I'd like to re-install the OS on a USB stick, but I am not quite sure how to do it. It used to have ArchLinux but now I am intigued by Doozan pages and want to try Debian.
I saw the guide on how to install it from the pogoplug booting, but I am trying to find out if I can prepare the USB stick in advance with my Linux Desktop (Ubuntu or Kali is what I have available) and plug it on the pogoplug after to boot it into the new OS.

Is that possible? I've been browsing the forums but I can't seem to find what I am looking for.



Edited 1 time(s). Last edit at 09/10/2015 11:07AM by dito.
Re: Pogo E02 will only boot with USB drive
September 10, 2015 12:35PM
dito Wrote:
-------------------------------------------------------
> I have the same problem, my pogoe02 won't boot
> without a usb drive, the problem I have now
> however, is that my usb drive is lost, so I can't
> boot anything.
> I purchased a serial connector and put it on the
> board and now I am here:
>
> (Re)start USB...
> USB0: USB EHCI 1.00
> scanning bus 0 for devices... 2 USB Device(s)
> found
> scanning usb for storage devices... 0
> Storage Device(s) found
>
> no USB devices available
>
> no USB devices available
>
> no USB devices available
>
> no USB devices available
> PogoE02> printenv
> baudrate=115200
> bootcmd=usb start; setenv letter 9;for type in
> usb; do for disk in 0 1 2 3; do if ${type} part
> ${disk};then setexpr letter $letter + 1;run
> load;fi;done;done;
> bootdelay=3
> bootm=echo Booting from ${disk} ...; run setargs;
> bootm ${loadaddr};
> bootz=echo Booting from ${disk} ...; run setargs;
> bootz ${loadaddr} - ${fdt_addr};
> console=ttyS0
> ethact=egiga0
> ethaddr=00:25:31:00:99:A3
> fdt_addr=0x800000
> fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb
> importbootenv=echo Importing environment
> (uEnv.txt)...; env import -t $loadaddr $filesize
> letter=9
> load=echo Attempting to boot from ${type}
> ${disk}:1...;if run loadbootenv; then run
> importbootenv;fi;echo Checking if uenvcmd is set
> ...;if test -n $uenvcmd; then echo Running uenvcmd
> ...;run uenvcmd;fi;echo Running default loadzimage
> ...;if run loadzimage; then run loadfdt;run
> bootz;fi;echo Running default loaduimage ...;if
> run loaduimage; then run bootm;fi;
> loadaddr=0x810000
> loadbootenv=load ${type} ${disk}:1 ${loadaddr}
> /boot/uEnv.txt
> loadfdt=load ${type} ${disk}:1 ${fdt_addr}
> ${fdt_file}
> loaduimage=load ${type} ${disk}:1 ${loadaddr}
> ${uimage}
> loadzimage=load ${type} ${disk}:1 ${loadaddr}
> ${zimage}
> mtdids=nand0=orion_nand
> mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
> setargs=setenv bootargs
> console=${console},${baudrate} ${optargs}
> root=/dev/sd${letter}1 rw rootwait ${mtdparts}
> uimage=/boot/uImage
> zimage=/boot/zImage
>
> Environment size: 1434/131068 bytes
> PogoE02>

>
> I'd like to re-install the OS on a USB stick, but
> I am not quite sure how to do it. It used to have
> ArchLinux but now I am intigued by Doozan pages
> and want to try Debian.
> I saw the guide on how to install it from the
> pogoplug booting, but I am trying to find out if I
> can prepare the USB stick in advance with my Linux
> Desktop (Ubuntu or Kali is what I have available)
> and plug it on the pogoplug after to boot it into
> the new OS.
>
> Is that possible? I've been browsing the forums
> but I can't seem to find what I am looking for.

See this post:
http://forum.doozan.com/read.php?2,23669,23691#msg-23691

You also need to adjust u-boot envs to boot Debian. Let me see if I can create a uEnv.txt that allow Arch U-boot to boot Debian. In the mean time, just create Debian rootfs as instructed in the above link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 will only boot with USB drive
September 11, 2015 12:07AM
@dito,

Please see this thread:
http://forum.doozan.com/read.php?3,23727

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 will only boot with USB drive
September 11, 2015 10:43AM
thank you so much, posting results now on that forum
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: