Welcome! Log In Create A New Profile

Advanced

Pogoplug E02 problems with u-boot

Posted by jst818 
Pogoplug E02 problems with u-boot
October 16, 2014 02:57PM
pogoplug e02
I am unable to see anything through putty, my USB to TTL Converter is http://www.ebay.com/itm/New-1PCS-5PIN-PL2303-USB-To-TTL-Auto-Converter-Adapter-Module-unit-For-arduino-/141150349286

I am following this guide:
http://blog.qnology.com/2013/10/pogoplug-e02-v2-serial-connection.html
Tested on 2 compters, winxp/win7 x32.
Putty window just stays blank.


If i connect sata drive inside 2.5" usb 2.0 external case it boots fine into debian installed on hdd, rescue system http://forum.doozan.com/read.php?4,7915 works too.


Here is fw_printenv output:
Quote

ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:XX XX XX XX XX
serverip=192.168.1.2
ipaddr=192.168.1.100
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1
arcNumber=3542
machid=dd6
usb_rootfstype=ext3


cat /etc/fw_env.config
Quote

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

Both outputs were created while booted into rescue system.



Here is netconsole output:
http://forum.doozan.com/read.php?3,14,page=1
Quote

nc111nt_rodneybeede>nc -l -u -p 6666


U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 726
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 715
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.3.2-kirkwide
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3627768 Bytes = 3.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Using machid 0xdd6 from environment

Starting kernel ...




Now i flashed with method A http://forum.doozan.com/read.php?3,12381,12381#msg-12381 , now pogo e02 wont boot, with/without usb hdd.
Quote

\nc111nt_rodneybeede>nc -l -u -p 6666

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Unknown command 'fw_setenv' - try 'help'

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
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>



with 1 usb hdd attached:
Quote

\nc111nt_rodneybeede>nc -l -u -p 6666


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Unknown command 'fw_setenv' - try 'help'

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

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

Part Start Sector Num Sectors UUID Type
1 2048 20971520 000d7189-01 83 Boot
2 20973568 1932550144 000d7189-02 83
Unknown command 'setexpr' - try 'help'
Attempting to boot from usb 0:1...
Unknown command 'load' - try 'help'
Checking if uenvcmd is set ...
Running default loadzimage ...
Unknown command 'load' - try 'help'
Running default loaduimage ...
Unknown command 'load' - try 'help'

no USB devices available

no USB devices available

no USB devices available
PogoE02>


Quote

PogoE02> printenv
p r i n t e n v
arcNumber=3542
baudrate=115200
bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do i
f ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootcmd_pogo=run bootcmd_rescue
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000;
bootm 0x800000
bootdelay=10
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:XXXXXXXX
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb
if_netconsole=ping $serverip
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr
$filesize
ipaddr=192.168.1.100
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; th
en echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;i
f 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}
machid=dd6
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncip=192.168.1.2
preboot=run if_netconsole start_netconsole
rescue_installed=1
serverip=192.168.1.2
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs
ro rootfstype=ubifs $mtdparts
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${
letter}1 rw rootwait ${mtdparts}
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se
tenv stdout nc; setenv stderr nc; version;fw_setenv start_netconsole setenv ncip
$serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stder
r nc; version;
stderr=nc
stdin=nc
stdout=nc
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 2162/131068 bytes
PogoE02>
Re: Pogoplug E02 problems with u-boot
October 16, 2014 04:21PM
See my response on the other thread about U-Boot 2014.07-tld-1
http://forum.doozan.com/read.php?3,12381,18104,page=13#msg-18104

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 problems with u-boot
October 17, 2014 01:31AM
How can i right now flash default envs from section B or reset envs to more default vaules bcz now i only have u-boot commands available http://www.denx.de/wiki/DULG/Manual?



Edited 2 time(s). Last edit at 10/17/2014 01:39AM by jst818.
Re: Pogoplug E02 problems with u-boot
October 17, 2014 07:18AM
Is this the latest completed set of U-Boot envs ?
http://forum.doozan.com/read.php?3,16148,16148#msg-16148

I can edit my env with "setenv" within uboot serial console and the save it.



Edited 1 time(s). Last edit at 10/17/2014 07:20AM by jst818.
Re: Pogoplug E02 problems with u-boot
October 17, 2014 02:26PM
Yes, you can set the envs manually one by one using envs in that post, or use the attached script in this post to set the default set of envs:

- Put this script on your rootfs USB /boot directory:
/boot/uboot.2014.07-tld-1.environment.scr
- Interrupt serial console
- Execute command:
> usb start
> ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-1.environment.scr
> source 0x800000
- Adjust the other envs following the instruction in section B.
- boot

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



Edited 1 time(s). Last edit at 10/17/2014 02:37PM by bodhi.
Attachments:
open | download - uboot.2014.07-tld-1.environment.scr (2.5 KB)
Re: Pogoplug E02 problems with u-boot
October 18, 2014 03:14AM
Yesterday evening i managed to convert string from "uboot.2014.07-tld-1.environment.img" into more human form with notepad ++
Quote

arcNumber=3542
machid=0xdd6
ipaddr=192.168.1.100
serverip=192.168.1.2

mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
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

partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
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

Typed each env into uboot env &removed mmc parts, so now my printenv is much more clean (all outputs are from nc)
Quote

PogoE02> printenv
p r i n t e n v
arcNumber=3542
baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_sata; reset
bootcmd_pogo=run bootcmd_rescue
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
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
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=00:XXXXXXXXXX
if_netconsole=ping $serverip
ipaddr=192.168.1.100
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=dd6
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ncip=192.168.1.2
partition=nand0,2
preboot=run if_netconsole start_netconsole
preboot_nc=run if_netconsole start_netconsole
rescue_installed=1
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.1.2
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
set_bootargs_sata=setenv bootargs console ttyS0,115200 root $sata_root rootdelay 10 rootfstype $rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console ttyS0,115200 root $usb_root rootdelay 10 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
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=LABEL=rootfs
usb_rootfstype=ext3

Environment size: 2047/131068 bytes


But without usb attached i still get:
Quote

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
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
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'ide' - try 'help'
** Bad device ide 0 **
** Bad device ide 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...
Why it doesnt boot into recue ?

nand part
Quote

PogoE02> nand info
n a n d i n f o

Device 0: nand0, sector size 128 KiB
Page size 2048 b
OOB size 64 b
Erase size 131072 b

Quote

PogoE02> nand bad
n a n d b a d

Device 0 bad blocks:
06f80000
07780000
PogoE02>


mtd part
Quote

PogoE02> mtdparts
m t d p a r t s

device nand0 <orion_nand>, # parts = 4
#: name size offset mask_flags
0: u-boot 0x00100000 0x00000000 0
1: uImage 0x00400000 0x00100000 0
2: rootfs 0x02000000 0x00500000 0
3: data 0x05b00000 0x02500000 0

active partition: nand0,2 - (rootfs) 0x02000000 @ 0x00500000

defaults:
mtdids : none
mtdparts: none


what is on those addresses:
Quote

PogoE02> md 0x00100000
m d 0 x 0 0 1 0 0 0 0 0
00100000: 1a800003 e5933000 e3130103 03a03000 .....0.......0..
00100010: 13a03021 e3730030 0a000041 e9bd4071 !0..0.s.A...q@..
00100020: ea0d9880 f8bd8072 e92d403b e1a0202d ....r...;@-.- ..
00100030: e3c23d7f e3e3303f e593300c e1a0400a .=..?0...0...@..
00100040: e5b3d220 ebfd6367 e5d53006 e3540060 ...gc...0..`.T.
00100050: e284201f e5d33008 a1a02005 e1a022c2 . ...0... ..."..
00100060: e7d35106 e204403f ebff63da e1a10435 .Q..?@...c..5...
00100070: e3900001 e8bd8038 e96d41f0 e1b85402 ....8....Am..T..
00100080: e1a0200d e3c23dff e3c3303f e593300f . ...=..?0...0..
00100090: e2517000 e1a04000 e5936260 1a200083 .pQ..@..`b.... .
001000a0: e1a40006 e1b0100c e8fd41f0 eafffefa .........A......
001000b0: e5933228 e59331e8 e1500003 2a000026 (2...1....P.&..*
001000c0: e3a40401 ebfd1026 e5963024 e5d33020 ....&...$0.. 0..
001000d0: e1540003 3a010019 e59fb08c e5973000 ..T....:.....0..
001000e0: e1540003 a3e18017 aa00000a e1b30006 ..T.............
001000f0: e1e01014 ebfffc4b e2508004 ba000005 ....K.....P.....
PogoE02> md 0x00400000
m d 0 x 0 0 4 0 0 0 0 0
00400000: e1a0101d e1a02024 ebfffa56 e1a08000 ....$ ..V.......
00400010: ea980031 e59d3004 e28d1068 e59f0128 1....0..h...(...
00400020: e5213084 e1b4a004 ebfebfe1 e25270a0 .0!..........pR.
00400030: 03e48005 0a120027 ebf087c0 e3a00001 ....'...........
00400040: ebfb3047 e5d4215d e2cd0016 e297106c G0..]!......l...
00400050: effa74cf e1f727d5 e5d73065 e3520004 .t...'..e0....R.
00400060: b3a83006 ba008021 e61330de 13a03002 .0..!....0...0..
00400070: e58d3020 e3a20001 ebf31001 ebf18ce8 0..............
00400080: e7a83f4d e1bc30b3 e28d0034 e1a01004 M?...0..4.......
00400090: e3a02010 e1cf31b0 ebfa932e e12f3000 . ...1.......0/.
004000a0: e3872084 e121f04a e5974015 e2456001 . ..J.!..@...`E.
004000b0: e5874015 e131fc03 e3550000 13a08062 .@....1...U.b...
004000c0: 1a000044 e1b40007 ebfec093 e1a08004 D...............
004000d0: ea040000 ebe08012 ebfed4ef e5bf3064 ............d0..
004000e0: e35c0000 05750043 1a300013 e9a0200f ..\.C.u...0.. ..
004000f0: e3ce3d7f e3c7383f e5933008 e2962044 .=..?8...0..D ..
PogoE02> md 0x02000000
m d 0 x 0 2 0 0 0 0 0 0
02000000: 30000000 00000000 00c00100 02420000 ...0..........B.
02000010: 00100000 02000000 81400500 20020001 ..........@....
02000020: 24004820 00000000 82000000 08820080 H.$............
02000030: 00102000 00002800 00010004 00000000 . ...(..........
02000040: a0000420 20000800 00800000 80000400 ...... ........
02000050: 2500a230 08000804 00000040 00000000 0..%....@.......
02000060: 32000000 09000010 80000880 00008000 ...2............
02000070: 2000c400 00280800 00800000 80000000 ... ..(.........
02000080: 00002400 00000000 02018004 80004004 .$...........@..
02000090: 02000090 a0040000 01000000 80000800 ................
020000a0: 50000014 10102000 21000000 00001180 ...P. .....!....
020000b0: 30000084 00000000 86000000 05000000 ...0............
020000c0: 00000000 00021000 00028040 02000000 ........@.......
020000d0: 08000004 8c008420 04020100 01000800 .... ...........
020000e0: 00802020 00200000 200001c0 00980000 .... .... ....
020000f0: 00048000 00000000 00804000 00000110 .........@......
PogoE02> md 0x05b00000
m d 0 x 0 5 b 0 0 0 0 0
05b00000: 3a008020 00004910 00000280 83000000 ..:.I..........
05b00010: 08109088 30010510 00000380 00000084 .......0........
05b00020: 10000008 04000100 01008000 00800000 ................
05b00030: 00028400 00900900 00002002 02000204 ......... ......
05b00040: 04505041 0c001010 00004248 41400800 APP.....HB....@A
05b00050: 00300920 10000400 00000820 42015100 .0..... ....Q.B
05b00060: 02000400 00000008 01800200 00014002 .............@..
05b00070: 30000004 00000020 42005008 02000080 ...0 ....P.B....
05b00080: 40201000 48000404 00200000 0002c208 .. @...H.. .....
05b00090: 30000000 01000000 40802000 02002200 ...0..... .@."..
05b000a0: 34000000 14000510 0440c300 00000000 ...4......@.....
05b000b0: 20001810 00000000 81004100 80020300 ... .....A......
05b000c0: 10001c00 00002800 00000240 40000040 .....(..@...@..@
05b000d0: 20060020 00041000 00010000 00000000 .. ............
05b000e0: 10000010 00000400 40000210 00400280 ...........@..@.
05b000f0: 0000a402 00081808 00000101 00008000 ................
PogoE02>


Removed 2 to envs:
Quote

usb_root=LABEL=rootfs
usb_rootfstype=ext3

Quote

PogoE02> saveenv
s a v e e n v
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK

what is at 0xc0000 (nand)
Quote

PogoE02> md 0xc0000
m d 0 x c 0 0 0 0
000c0000: e1a0000f e1a01005 ebffff62 e1a00004 ........b.......
000c0010: e1a0100b ebffff5f e7a18000 e8bd87f0 ...._...........
000c0020: e3e4000b e8bd87f1 e5b03088 e7530003 .........0....S.
000c0030: 93a40000 912fff3e e590200c e3520003 ....>./.. ....R.
000c0040: 9a000017 e5df2022 e5921012 e1730001 ...." ........s.
000c0050: 05920018 22400001 012fff1e e1e00003 ......@"../.....
000c0060: eaffff2b e3a00000 e12fff1e c0660dc0 +........./...f.
000c0070: e92d4038 e1a04002 e1a05001 ebffffeb 8@-..@...P......
000c0080: e59f306c e5933020 e1750000 11540003 l0.. 0....u...T.
000c0090: 0a000016 e59f205c e1a23180 e1550008 ....\ ...1....U.
000c00a0: e5922084 e0823003 aa003008 e7941004 . ...0...0......
000c00b0: e594c080 e58c1006 e581c080 e7921180 ................
000c00c0: e5814004 e884000a e7834180 e8bd8038 .@.......A..8...
000c00d0: e8940006 e5932104 e58a1000 e5932004 .....!....... ..
000c00e0: e5934004 e5843000 e5842005 e5864001 .@...0... ...@..
000c00f0: e8bd8138 c07065f4 c0660dc0 e92f41f4 8....ep...f..A/.
PogoE02>



Edited 2 time(s). Last edit at 10/18/2014 03:19AM by jst818.
Re: Pogoplug E02 problems with u-boot
October 18, 2014 03:32AM
jst818,

> But without usb attached i still get:
>
Quote

> U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
> Pogo E02
> gcc (Debian 4.6.3-14) 4.6.3
> GNU ld (GNU Binutils for Debian) 2.22
> 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
> ** Bad device usb 0 **
> ** Bad device usb 0 **
> Wrong Image Format for bootm command
> ERROR: can't get kernel image!
> Unknown command 'ide' - try 'help'
> ** Bad device ide 0 **
> ** Bad device ide 0 **
> Wrong Image Format for bootm command
> ERROR: can't get kernel image!
> resetting ...
>
> Why it doesnt boot into recue ?

Because your bootcmd does not have rescue boot option. Put it on boocmd like this so if no disk drive, then it will boot into rescue system:
bootcmd=run bootcmd_usb; run bootcmd_sata; run bootcmd_rescue; reset

> what is at 0xc0000 (nand)

It's where the envs are located (total of 1 block).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 problems with u-boot
October 18, 2014 05:03AM
Than for your responses.
Now rescue is working & booting from usb.


+ i finaly managed to restore to life my USB to TTL Converter:
http://blog.qnology.com/2013/10/pogoplug-e02-v2-serial-connection.html

my initial connection was:
gnd -> gnd
txd -> txd
rxd -> rxd

But when you look picture carefully you see txd is connected with rxd (and rxd to txd).

http://4.bp.blogspot.com/-nn6bFC_RWqs/UmCvUBMt9zI/AAAAAAAAK9Y/kgZXkBkD5gM/s1600/Pogoplug+V2+Serial+Console+Connection.jpg



Edited 1 time(s). Last edit at 10/18/2014 05:03AM by jst818.
Re: Pogoplug E02 problems with u-boot
October 18, 2014 04:46PM
FYI, in case others coming across this while looking to solve serial connection problem.

In my observation, the serial module type PL2303 pinout is a "true" pinout so so we always have to cross TXD and RXD lines when connecting to the plug. RXD-TXD, TXD-RXD.

otoh, the serial module type CP2102 pinout is already crossed (i.e. the marker actually tell you what line on the plug to connect to). So they should be connected RXD-RXD, TXD-TXD.

YMMV.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug E02 problems with u-boot
October 22, 2014 05:58PM
I did mention the following and have it in nice bold black in the picture :)

Make sure GND on the Pogoplug is connected to GND on the USB to TTL converter.
TXD on the Pogoplug should connect to RXD on the USB to TTL converter.
RXD on the Pogoplug should connect to TXD on the USB to TTL converter.


jst818 Wrote:
-------------------------------------------------------
> Than for your responses.
> Now rescue is working & booting from usb.
>
>
> + i finaly managed to restore to life my USB to
> TTL Converter:
> http://blog.qnology.com/2013/10/pogoplug-e02-v2-se
> rial-connection.html
>
> my initial connection was:
> gnd -> gnd
> txd -> txd
> rxd -> rxd
>
> But when you look picture carefully you see txd is
> connected with rxd (and rxd to txd).
>
> http://4.bp.blogspot.com/-nn6bFC_RWqs/UmCvUBMt9zI/
> AAAAAAAAK9Y/kgZXkBkD5gM/s1600/Pogoplug+V2+Serial+C
> onsole+Connection.jpg
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: