Welcome! Log In Create A New Profile

Advanced

Pogoplug Mobile won't boot

Posted by bruce_shen 
Pogoplug Mobile won't boot
October 22, 2015 05:57AM
I've been looking for answer in the forum for days still can't get the Pogoplug Mobile to boot.

The machine is pogoplug mobile.
I modified the uboot following http://forum.doozan.com/read.php?2,11663.
I tried rootfs on both usb drive and SD card following the instruction here(http://forum.doozan.com/read.php?2,12096).
It won't boot. The light is off. No ip is assigned.
I can connect with serial cable.


Here is the env
arcNumber=2097
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run mmc_bootcmd
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:03:87:ac
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
if_netconsole=ping $serverip
ipaddr=192.168.20.129
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_bootcmd=mmc init; mmc init;ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mtddevname=uImage2
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run if_netconsole start_netconsole
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
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
serverip=192.168.20.1
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
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
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
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
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=usb stop; usb start; run usb_scan
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
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_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_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

And here is serial output
U-Boot 2011.12 (Apr 08 2012 - 19:03:41)
Cloud Engines-Pogoplug v4/Mobile:MMC version

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
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... 1 Storage Device(s) found
** Bad partition 1 **

** Unable to use usb 0:1 for fatload **
incorrect device type in data
Partition data not found!
stopping USB..
(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... 1 Storage Device(s) found
** Bad partition 1 **
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
No MMC card found
No MMC card found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>


Any advice is appreciated.

PS, I'm a newbie to linux and rootfs. Please let me know if any other information is needed. Thanks in advance.



Edited 2 time(s). Last edit at 10/22/2015 03:36PM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 22, 2015 04:10PM
bruce_shen,

You are running a much older u-boot than this latest u-boot. But it should work fine.

Try creating the 3.16 rootfs on USB drive, as I described here:
http://forum.doozan.com/read.php?4,23425,23427#msg-23427

Boot with this 3.16 rootfs into Debian, and then consider upgrading u-boot and kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 22, 2015 11:19PM
Thanks for your prompt reply, Bodhi.

I used "Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 md5:3c55093a67ea6166b31c9d111d896727".
It didn't boot either. Same serial output as before.

Maybe i didn't make myself clear. The pogoplug was from a friend. He never cracked it, neither did he enable ssh. He forgot the password. I tried tread http://forum.doozan.com/read.php?3,20706,20716, 2nd way around to get ssh.
2) Backdoor Method (credit to GTVHacker.com)
Make sure your Pogoplug is connected to your network and has internet access.
Check your router or use a network scanning tool (iNet Network Scanner on iPhone) to determine the IP Address of the Pogoplug.
From a Linux computer (e.g. another Pogoplug running Debian/Alarm) run the below curl command.
curl -k "https://root:ceadmin@[PogoplugIPAddress]/sqdiag/HBPlug?action=command&command=dropbear%20start";
Note that the backdoor method is not persistent (SSH access not available after a reboot).
Changed the uboot. Then made a roofs usb drive.


Is there any other steps I missed?



Edited 2 time(s). Last edit at 10/22/2015 11:29PM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 23, 2015 12:03AM
Hi bruce_shen,

USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
** Bad partition 1 **
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

The u-boot envs you listed were good to boot a rootfs such as Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 with USB drive. But the boot error above indicate that your rootfs was not prepared correctly.

> I used
> "Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> md5:3c55093a67ea6166b31c9d111d896727".
> It didn't boot either. Same serial output as
> before.

You should look at the 3.16 rootfs instruction I posted above. Make sure you follow the instruction very closely (i.e. exactly as instructed). I think you might have a mis-step while creating the 3.14 rootfs. Often time people substitue a different command, or skip some step (but that is always wrong thing to do, because instruction must be followed exactly, verbatim)

After you created the 3.16 rootfs, boot with it and capture serial console log and post it here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 23, 2015 12:45AM
There is a mistake in my last post. I did use "Debian-3.16.0-kirkwood-tld-2-rootfs-bodhi.tar.bz2
md5: c70033d09a82832ba75fd9cfa361c2c5", not 3.14.

Your instruction seems pretty clear. Since the u-boot env is good, all I need to do are,
1. format a flash drive to ext3
2. copy Debian-3.16.0-kirkwood-tld-2-rootfs-bodhi.tar.bz2 to it
3. extracted file with "tar -xjf ", and sync
4. Then labelled it to rootfs

Anything I missed? I'll do it again and post the serial output.



Edited 5 time(s). Last edit at 10/23/2015 01:12AM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 23, 2015 01:37AM
It won't boot.

U-Boot 2011.12 (Apr 08 2012 - 19:03:41)
Cloud Engines-Pogoplug v4/Mobile:MMC version

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
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... 1 Storage Device(s) found
** Bad partition 1 **

** Unable to use usb 0:1 for fatload **
incorrect device type in data
Partition data not found!
stopping USB..
(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... 1 Storage Device(s) found
** Bad partition 1 **
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
No MMC card found
No MMC card found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Please take a look when you get time. Thanks again, Bodhi.
Re: Pogoplug Mobile won't boot
October 23, 2015 03:14AM
bruce_shen,

The USB partition is still not regconnized:

> ** Bad partition 1 **
> ** Block device usb 1 not supported
> ** Block device usb 2 not supported
> ** Block device usb 3 not supported
> ** Bad partition 1 **
> ** Bad partition 1 **

So it means you have no boot drive, as far as u-boot is concerned.

1. Did you create this on a laptop? which system?
2. Were you root user when you create the rootfs?

You could mount the USB drive on another Linux box (prefereably the one you used to create this), and check the info on the drive. Assuming it is mounted at /media/sdb1

fdisk -l
mount
e2label /dev/sdb1
ls -lart /media/sdb1/boot

PS.

The next thing to try is to just skip every miscellaneous stuff, and try to boot with USB, see if you will get further, or getting the same error:

- Interrupt serial console
- Execute:

setenv bootcmd 'usb start; run usb_bootcmd; usb stop'
boot

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



Edited 1 time(s). Last edit at 10/23/2015 03:19AM by bodhi.
Re: Pogoplug Mobile won't boot
October 23, 2015 03:49AM
deleted



Edited 1 time(s). Last edit at 10/23/2015 04:02AM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 23, 2015 03:56AM
1. Did you create this on a laptop? which system?
I did the rootfs flash drive on both another pogo E02 (it has debian on it) and vmware (debian 8.2) on my desktop.

2. Were you root user when you create the rootfs?
Yes.

I labelled the flash drive "rootfs".

Files under /boot of the flash drive are,
-rwxr-xr-x  1 root root   2755976 Sep  1  2014 vmlinuz-3.16.0-kirkwood-tld-2
-rw-r--r--  1 root root   1947250 Sep  1  2014 System.map-3.16.0-kirkwood-tld-2
-rw-r--r--  1 root root    126443 Sep  1  2014 config-3.16.0-kirkwood-tld-2
-rw-r--r--  1 root root  22383302 Sep  1  2014 linux-image-3.16.0-kirkwood-tld-2_2_armel.deb
-rw-r--r--  1 root root   6032401 Sep  1  2014 initrd.img-3.16.0-kirkwood-tld-2
-rw-r--r--  1 root root   2756040 Sep  1  2014 uImage
-rw-r--r--  1 root root   6032465 Sep  1  2014 uInitrd
drwxr-xr-x 22 root root      4096 Sep  1  2014 ..
drwxr-xr-x  2 root root      4096 Sep  1  2014 .



Edited 4 time(s). Last edit at 10/23/2015 04:10AM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 23, 2015 04:06AM
I did
- Interrupt serial console
- Execute:
setenv bootcmd 'usb start; run usb_bootcmd; usb stop'
boot
It didn't go any further.
Hit any key to stop autoboot:  0
Pogov4> setenv bootcmd 'usb start; run usb_bootcmd; usb stop'
Pogov4> boot
(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... 1 Storage Device(s) found
stopping USB..
(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... 1 Storage Device(s) found
** Bad partition 1 **
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

Sorry for keeping disturbing you.
PS, I tried 2 different flash drives and SD card.



Edited 3 time(s). Last edit at 10/23/2015 04:11AM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 23, 2015 12:21PM
bruce,

- Interrupt serial console
- Execute:

usb start
usb part
ext2ls usb 0:1 /boot
ext2load usb 0:1 0x800000 /boot/uImage

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 23, 2015 01:51PM
bodhi Wrote:
-------------------------------------------------------
> bruce,
>
> - Interrupt serial console
> - Execute:
>
>
> usb start
> usb part
> ext2ls usb 0:1 /boot
> ext2load usb 0:1 0x800000 /boot/uImage
>

Pogov4> usb start
(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... 1 Storage Device(s) found
Pogov4> usb part
## Unknown partition table
Pogov4> ext2ls usb 0:1 /boot
** Bad partition - usb 0:1 **
Pogov4> ext2load usb 0:1 0x800000 /boot/uImage
** Bad partition 1 **

could it be the flash drives' problem? I used one of the flash drive on another pogoplug E02, it worked fine.
Re: Pogoplug Mobile won't boot
October 23, 2015 02:01PM
I guess I might did something wrong when doing fdisk and format the flash drive.

I'll report back soon.



Edited 2 time(s). Last edit at 10/23/2015 02:10PM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 24, 2015 03:21AM
Finally got it work. I made a mistake making rootfs flash drive. Now, it boots to Debian3.18.5 and kernel 4.2.
:)

I plan to update the U-Boot (http://forum.doozan.com/read.php?3,12381). I believe my U-Boot is the stock one.
dev:    size   erasesize  name
mtd0: 00200000 00020000 "u-boot"
mtd1: 00300000 00020000 "uImage"
mtd2: 00300000 00020000 "uImage2"
mtd3: 00800000 00020000 "failsafe"
mtd4: 07000000 00020000 "root"
Not
mtd0: 00100000 00020000 "u-boot"

Before I follow the instruction to flash U-Boot, anything needs to be done? In that thread, it says "As long as mtd0 is defined as in the following then it will be OK". My mtd0 is not as same as that one.

BTW, pogomobile boots from flash drive, not SD card. Is it because the old U-Boot? SD card should boot after I flash the U-Boot, right?



Edited 4 time(s). Last edit at 10/25/2015 01:39AM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 30, 2015 01:57PM
bruce_shen,

> Before I follow the instruction to flash U-Boot,
> anything needs to be done? In that thread, it says
> "As long as mtd0 is defined as in the following
> then it will be OK". My mtd0 is not as same as
> that one.

It is OK to flash to the Pogo Mobile mtd0. u-boot will use only the 1st 1MB (for its image and the envs), the 2nd 1MB in mtd0 is not used.

>
> BTW, pogomobile boots from flash drive, not SD
> card. Is it because the old U-Boot? SD card should
> boot after I flash the U-Boot, right?

It will boot any type of disk drives.

Caution: once you flash new u-boot, it will be no longer possible to boot stock OS in NAND.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 30, 2015 11:12PM
bodhi Wrote:
-------------------------------------------------------
> bruce_shen,
>
> > Before I follow the instruction to flash
> U-Boot,
> > anything needs to be done? In that thread, it
> says
> > "As long as mtd0 is defined as in the following
> > then it will be OK". My mtd0 is not as same as
> > that one.
>
> It is OK to flash to the Pogo Mobile mtd0. u-boot
> will use only the 1st 1MB (for its image and the
> envs), the 2nd 1MB in mtd0 is not used.
>
> >
> > BTW, pogomobile boots from flash drive, not SD
> > card. Is it because the old U-Boot? SD card
> should
> > boot after I flash the U-Boot, right?
>
> It will boot any type of disk drives.
>
> Caution: once you flash new u-boot, it will be no
> longer possible to boot stock OS in NAND.


Sounds great!

Don't think I need to boot stock OS now.

I'll post the result after update.



Edited 1 time(s). Last edit at 10/30/2015 11:12PM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 30, 2015 11:12PM
Hello Bodhi

Thanks for your reply.

Updated the U-boot. I didn't see any error during the process and saw "U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05)" at booting.

But...
U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
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... 1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

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

......
......
......

[    6.147156] sd 1:0:0:0: [sda] No Caching mode page found
[    6.152473] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    6.173480]  sda: sda1
[    6.184994] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    6.196709] sd 1:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
/dev/sda1: clean, 54627/473280 files, 358172/1892096 blocks
done.
[   15.827168] UBIFS error (pid: 124): cannot open "/dev/sda1", error -22mount: mounting /dev/sda1 on /root failed: Invalid argument
done.
Target filesystem doesn't have requested /sbin/init.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.
modprobe: module i8042 not found in modules.dep

[   16.127611] uhci_hcd: USB Universal Host Controller Interface driver
[   16.146382] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   16.166131] usbcore: registered new interface driver usbhid
[   16.171693] usbhid: USB HID core driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
Do you need the whole output? It is about 300 lines. I cut some of it.

and Env is
arcNumber=3960
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=00:25:31:03:a4:37
if_netconsole=ping $serverip
ipaddr=192.168.20.129
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=f78
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
nc_ready=0
partition=nand0,2
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
rootdelay=10
rootfstype=ubifs $mtdparts $rescue_custom_params
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.20.1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 3038/131068 bytes


I appreciate your always help.

-yang



Edited 4 time(s). Last edit at 10/30/2015 11:18PM by bruce_shen.
Re: Pogoplug Mobile won't boot
October 31, 2015 03:16AM
bruce_shen,

> Card did not respond to voltage select!
>

You SD card has problem recognized by u-boot.

Boot with your existing USB roofs into Debian, and then plug the SD card in, mount it. See if the card works in Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 31, 2015 12:19PM
Hello Bodhi,

I used the "good" USB roofs. Here is the full serial output

U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
Using egiga0 device
ping failed; host 192.168.20.1 is not alive
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... 1 Storage Device(s) found
Card did not respond to voltage select!

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15136768        8f6f49f5-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
3157446 bytes read in 434 ms (6.9 MiB/s)
7122490 bytes read in 619 ms (11 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1
   Created:      2015-10-24   7:30:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3157382 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2015-10-24   7:30:24 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7122426 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Pogoplug v4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ubifs $mtdparts $rescue_custom_params orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 113680K/131072K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 17392K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000013] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000673] Console: colour dummy device 80x30
[    0.000723] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.090133] pid_max: default: 32768 minimum: 301
[    0.090327] Security Framework initialized
[    0.090460] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090493] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091693] Initializing cgroup subsys blkio
[    0.091742] Initializing cgroup subsys devices
[    0.091779] Initializing cgroup subsys freezer
[    0.091829] Initializing cgroup subsys net_cls
[    0.091967] CPU: Testing write buffer coherency: ok
[    0.092644] Setting up static identity map for 0x8200 - 0x8258
[    0.093084] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.098781] devtmpfs: initialized
[    0.106454] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107171] prandom: seed boundary self test passed
[    0.112897] prandom: 100 self tests passed
[    0.112946] pinctrl core: initialized pinctrl subsystem
[    0.115168] NET: Registered protocol family 16
[    0.116058] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140159] cpuidle: using governor ladder
[    0.170155] cpuidle: using governor menu
[    0.170951] Feroceon L2: Enabling L2
[    0.171017] Feroceon L2: Cache support initialised.
[    0.171585] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.179069] No ATAGs?
[    0.212294] vgaarb: loaded
[    0.212857] usbcore: registered new interface driver usbfs
[    0.212979] usbcore: registered new interface driver hub
[    0.213102] usbcore: registered new device driver usb
[    0.214901] clocksource: Switched to clocksource orion_clocksource
[    0.298639] NET: Registered protocol family 2
[    0.299613] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.299653] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.299684] TCP: Hash tables configured (established 1024 bind 1024)
[    0.299791] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.299826] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.300124] NET: Registered protocol family 1
[    0.300722] RPC: Registered named UNIX socket transport module.
[    0.300740] RPC: Registered udp transport module.
[    0.300751] RPC: Registered tcp transport module.
[    0.300763] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.301165] Unpacking initramfs...
[    1.238510] Freeing initrd memory: 6956K (c1100000 - c17cb000)
[    1.238854] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.240474] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.240524] Initialise system trusted keyring
[    1.240689] audit: initializing netlink subsys (disabled)
[    1.240766] audit: type=2000 audit(1.230:1): initialized
[    1.241739] zpool: loaded
[    1.241764] zbud: loaded
[    1.242198] VFS: Disk quotas dquot_6.6.0
[    1.242285] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.243162] NFS: Registering the id_resolver key type
[    1.243230] Key type id_resolver registered
[    1.243243] Key type id_legacy registered
[    1.243282] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.243306] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.243623] jffs2: version 2.2. (NAND) (SUMMARY)  ?? 2001-2006 Red Hat, Inc.
[    1.244387] Key type big_key registered
[    1.273584] Key type asymmetric registered
[    1.273621] Asymmetric key parser 'x509' registered
[    1.273756] bounce: pool size: 64 pages
[    1.273872] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.273897] io scheduler noop registered
[    1.273916] io scheduler deadline registered
[    1.274003] io scheduler cfq registered (default)
[    1.275629] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 36
[    1.275653] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 37
[    1.275672] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 38
[    1.275690] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 39
[    1.275708] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 40
[    1.275726] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 41
[    1.275744] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 42
[    1.275762] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 43
[    1.275780] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 44
[    1.275798] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 45
[    1.275815] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 46
[    1.275833] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[    1.275851] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 48
[    1.275869] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[    1.276356] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    1.277345] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    1.277974] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    1.279203] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    1.279233] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.279253] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.279274] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.279836] PCI: bus0: Fast back to back transfers disabled
[    1.279875] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.280191] PCI: bus1: Fast back to back transfers enabled
[    1.280325] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.280753] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.315950] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.355917] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.356232] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.395918] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.435919] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.436619] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.438773] console [ttyS0] disabled
[    1.438864] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[    2.207282] console [ttyS0] enabled
[    2.212926] nand: Could not find valid ONFI parameter page; aborting
[    2.219341] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.225694] nand: Hynix NAND 128MiB 3,3V 8-bit
[    2.230122] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.237697] Scanning device for bad blocks
[    2.335368] libphy: Fixed MDIO Bus: probed
[    2.339969] libphy: orion_mdio_bus: probed
[    2.350968] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.433050] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:03:87:ac
[    3.442202] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.448780] ehci-pci: EHCI PCI platform driver
[    3.453309] ehci-orion: EHCI orion driver
[    3.457594] orion-ehci f1050000.ehci: EHCI Host Controller
[    3.463103] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    3.471001] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    3.494948] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.501253] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.508058] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.515279] usb usb1: Product: EHCI Host Controller
[    3.520145] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    3.526760] usb usb1: SerialNumber: f1050000.ehci
[    3.532514] hub 1-0:1.0: USB hub found
[    3.536375] hub 1-0:1.0: 1 port detected
[    3.541592] mousedev: PS/2 mouse device common for all mice
[    3.854948] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.017632] usb 1-1: New USB device found, idVendor=13fe, idProduct=4200
[    4.024332] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.031488] usb 1-1: Product: Patriot Memory
[    4.035769] usb 1-1: Manufacturer:
[    4.039943] usb 1-1: SerialNumber: 070B43CD9D29C548
[    4.554944] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.560635] i2c /dev entries driver
[    4.565986] hidraw: raw HID events driver (C) Jiri Kosina
[    4.571992] drop_monitor: Initializing network drop monitor service
[    4.578664] NET: Registered protocol family 17
[    4.583273] Key type dns_resolver registered
[    4.588961] Loading compiled-in X.509 certificates
[    4.593774] registered taskstats version 1
[    4.597994] zswap: loading zswap
[    4.601220] zswap: using zbud pool
[    4.604618] zswap: using lzo compressor
[    4.621388] Key type encrypted registered
[    4.626350] hctosys: unable to open rtc device (rtc0)
[    4.634742] Freeing unused kernel memory: 284K (c07db000 - c0822000)
Loading, please wait...
[    4.740914] systemd-udevd[87]: starting version 215
[    4.757934] random: systemd-udevd urandom read with 6 bits of entropy available
[    4.980571] SCSI subsystem initialized
[    5.011326] mvsdio f1090000.mvsdio: Got CD GPIO
[    5.043552] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.091590] sata_mv f1080000.sata: slots 32 ports 1
[    5.105130] scsi host0: usb-storage 1-1:1.0
[    5.118777] usbcore: registered new interface driver usb-storage
[    5.135214] scsi host1: sata_mv
[    5.151300] ata1: SATA max UDMA/133 irq 32
[    5.163336] usbcore: registered new interface driver uas
[    5.524965] ata1: SATA link down (SStatus 0 SControl F300)
[    6.107037] scsi 0:0:0:0: Direct-Access              Patriot Memory   PMAP PQ: 0 ANSI: 6
[    6.130469] sd 0:0:0:0: [sda] 15138816 512-byte logical blocks: (7.75 GB/7.21 GiB)
[    6.140421] sd 0:0:0:0: [sda] Write Protect is off
[    6.147050] sd 0:0:0:0: [sda] No Caching mode page found
[    6.152368] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    6.173371]  sda: sda1
[    6.184800] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.196567] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
/dev/sda1: clean, 54627/473280 files, 358172/1892096 blocks
done.
[   15.867540] UBIFS error (pid: 124): cannot open "/dev/sda1", error -22mount: mounting /dev/sda1 on /root failed: Invalid argument
done.
Target filesystem doesn't have requested /sbin/init.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.
modprobe: module i8042 not found in modules.dep

[   16.157498] uhci_hcd: USB Universal Host Controller Interface driver
[   16.176183] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   16.195916] usbcore: registered new interface driver usbhid
[   16.201474] usbhid: USB HID core driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
Re: Pogoplug Mobile won't boot
October 31, 2015 04:24PM
bruce_shen,

Did you boot with only the USB drive ttached? and then plug in the SD card after the system is running?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 31, 2015 06:20PM
USB drive attached only. No SD card at all.


bodhi Wrote:
-------------------------------------------------------
> bruce_shen,
>
> Did you boot with only the USB drive ttached? and
> then plug in the SD card after the system is
> running?
Re: Pogoplug Mobile won't boot
October 31, 2015 06:47PM
bruce_shen,

This is wrong:

rootfstype=ubifs $mtdparts $rescue_custom_params

Power up, interrupt serial console and

setenv rootfstype ext3
boot

After booting successfully into Debian, set it for real

fw_setenv rootfstype ext3

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 31, 2015 07:16PM
Hi bodhi,

That's the reason. Finally, got it worked. Thanks!

Last question, is there anyway that I can boot with USB drive of ext3 and ext4 both?

-yang


bodhi Wrote:
-------------------------------------------------------
> bruce_shen,
>
> This is wrong:
>
>
> rootfstype=ubifs $mtdparts $rescue_custom_params
>
>
> Power up, interrupt serial console and
>
>
> setenv rootfstype ext3
> boot
>
>
> After booting successfully into Debian, set it for
> real
>
>
> fw_setenv rootfstype ext3
> 
Re: Pogoplug Mobile won't boot
October 31, 2015 08:26PM
You can take advantage of the new Debian kernel: it will detect the fs type for you. Try with a Ext4 rootfs:

So do the similar step:

- interrupt serial console and remove the env:

setenv rootfstype
boot


- After boot into Debian, do it for real:

fw_setenv rootfstype

Warning: for others reading this, should only try the above if you have serial console or netconsole!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug Mobile won't boot
October 31, 2015 09:49PM
Hi Bodhi,

I do appreciate your patience and help.

I guess I'm gonna begin to learn something about embedded linux. Maybe can help someone here some day.


-yang
Re: Pogoplug Mobile won't boot
October 31, 2015 10:49PM
@yang,

My pleasure! please stick around. You can always post in Debian section when you start installing packages and have problems in the process of learning Embedded Linux. Others will probably benefit from issues you might run into, or you might be doing something interesting that we have not thought about even.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: