Welcome! Log In Create A New Profile

Advanced

How to use usbboot? soft-bricked v4 pogoplug

Posted by scales11 
scales11
How to use usbboot? soft-bricked v4 pogoplug
December 14, 2016 09:46PM
Hello all.

I tried to install the lastest version of uboot and switch over to sd card booting on my pogoplug, but I messed up somewhere and it doesnt boot on its own. There are no lights by default, but I can make it boot using kwboot.

My trouble now is once I am controlling it via serial, how do I tell it to try to boot from the rootfs usb stick that I just made?

Ideally I would like to get archlinuxarm on it, and I am happy to restore it to stock before continuing. Currently I have a rootfs usb stick that I made while following this post:
http://forum.doozan.com/read.php?2,12096

I tried usbboot, but I just get "no device specified". Also, usbboot /dev/sda1 and usbboot USB0 did not work either (these were done after I issued the command usb start)

Attached are my printenv along with my usb start output in case it helps.

Thank you.


Pogov4> printenv
baudrate=115200
bootcmd=run boot_nand
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=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=f78
mainlineLinux=no
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
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
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: 1564/131068 bytes



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

------
mod edit: use code tags



Edited 1 time(s). Last edit at 12/14/2016 10:21PM by bodhi.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 14, 2016 10:26PM
Please post the entire serial console log (from the banner to the kernel loading, i.e everything). And include the output of printenv as you did.

If serilal console did not show anything, that meant u-boot image was not flashed properly. In that case, post the entire serial console running kwboot, include the kwboot command.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 15, 2016 05:41AM
Thank you very much for your reply Bodhi, I have read many of your posts and your responsiveness is incredible!

Below is what I see during serial boot. it is very possible that I messed up the uboot image or something else.

ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...\^C
ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message
ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message
ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Re: How to use usbboot? soft-bricked v4 pogoplug
December 15, 2016 05:38PM
scales11 Wrote:
-------------------------------------------------------
> Thank you very much for your reply Bodhi, I have
> read many of your posts and your responsiveness is
> incredible!
>
> Below is what I see during serial boot. it is
> very possible that I messed up the uboot image or
> something else.
>
>
> ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B
> 115200 /dev/ttyACM0 -b
> uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
> Sending boot message. Please reboot the
> target...\^C
> ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B
> 115200 /dev/ttyACM0 -b
> uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
> Sending boot message. Please reboot the
> target...|
> Sending boot image...
>   0 % [+++++++++++++++++xmodem: Bad message
> ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B
> 115200 /dev/ttyACM0 -b
> uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
> Sending boot message. Please reboot the
> target...|
> Sending boot image...
>   0 % [+++++++++++++++++xmodem: Bad message
> ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B
> 115200 /dev/ttyACM0 -b
> uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
> Sending boot message. Please reboot the
> target...\
> Sending boot image...
>   0 %
> [.................................................
> .....................]
>   1 %
> [.................................................
> .....................]
>   3 %
> [.................................................
> .....................]
>   5 %
> [.................................................
> .....................]
>   6 %
> [.................................................
> .....................]
>   8 %
> [.................................................
> .....................]
>  10 %
> [.................................................
> .....................]
>  11 %
> [.................................................
> .....................]
>  13 %
> [.................................................
> .....................]
>  15 %
> [.................................................
> .....................]
>  17 %
> [.................................................
> .....................]
>  18 %
> [.................................................
> .....................]
>  20 %
> [.................................................
> .....................]
>  22 %
> [.................................................
> .....................]
>  23 %
> [.................................................
> .....................]
>  25 %
> [.................................................
> .....................]
>  27 %
> [.................................................
> .....................]
>  29 %
> [.................................................
> .....................]
>  30 %
> [.................................................
> .....................]
>  32 %
> [.................................................
> .....................]
>  34 %
> [.................................................
> .....................]
>  35 %
> [.................................................
> .....................]
>  37 %
> [.................................................
> .....................]
>  39 %
> [.................................................
> .....................]
>  41 %
> [.................................................
> .....................]
>  42 %
> [.................................................
> .....................]
>  44 %
> [.................................................
> .....................]
>  46 %
> [.................................................
> .....................]
>  47 %
> [.................................................
> .....................]
>  49 %
> [.................................................
> .....................]
>  51 %
> [.................................................
> .....................]
>  53 %
> [.................................................
> .....................]
>  54 %
> [.................................................
> .....................]
>  56 %
> [.................................................
> .....................]
>  58 %
> [.................................................
> .....................]
>  59 %
> [.................................................
> .....................]
>  61 %
> [.................................................
> .....................]
>  63 %
> [.................................................
> .....................]
>  64 %
> [.................................................
> .....................]
>  66 %
> [.................................................
> .....................]
>  68 %
> [.................................................
> .....................]
>  70 %
> [.................................................
> .....................]
>  71 %
> [.................................................
> .....................]
>  73 %
> [.................................................
> .....................]
>  75 %
> [.................................................
> .....................]
>  76 %
> [.................................................
> .....................]
>  78 %
> [.................................................
> .....................]
>  80 %
> [.................................................
> .....................]
>  82 %
> [.................................................
> .....................]
>  83 %
> [.................................................
> .....................]
>  85 %
> [.................................................
> .....................]
>  87 %
> [.................................................
> .....................]
>  88 %
> [.................................................
> .....................]
>  90 %
> [.................................................
> .....................]
>  92 %
> [.................................................
> .....................]
>  94 %
> [.................................................
> .....................]
>  95 %
> [.................................................
> .....................]
>  97 %
> [.................................................
> .....................]
>  99 % [....................................]
> [Type Ctrl-\ + c to quit]
> 
> 
> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47
> -0700)
> Pogoplug V4
> 
> SoC:   Kirkwood 88F6192_A1
> DRAM:  128 MiB
> WARNING: Caches not enabled
> NAND:  128 MiB
> MMC:   kwsdio: 0
> In:    serial
> Out:   serial
> Err:   serial
> Net:   egiga0
> Hit any key to stop autoboot:  0 
>

Ok, the latest uboot makes this painless!

See this thread:
http://forum.doozan.com/read.php?3,30438,30439#msg-30439

Use the instruction in that post: create a usb rootfs, copy the default env text to the rootfs /boot folder, modify the variable dtb_file to point to the pogo v4 DTB, and boot using kwboot with this rootfs.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 15, 2016 09:48PM
Thanks for the reply Bodhi, unfortunately I am still stuck. I did as above and here is what I get. By the way, is there a shortcut if I wanted to use Archlinuxarm? I assumed these steps were necessary for booting debian so I could then re-flash the uboot.


ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...|^C
ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message
ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
## Error: "boot_nand" not defined
Pogov4> setenv bootcmd 'run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset' 
Pogov4> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK
Pogov4> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
EHCI timed out on TD - token=0x90008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80

Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 12:16AM
scales11 Wrote:
-------------------------------------------------------
> Thanks for the reply Bodhi, unfortunately I am
> still stuck. I did as above and here is what I
> get. By the way, is there a shortcut if I wanted
> to use Archlinuxarm? I assumed these steps were
> necessary for booting debian so I could then
> re-flash the uboot.

There is no shortcut to boot Arch. It is actually a little more complicate, because Arch rootfs /boot folder is slightly different (where the DTB files are). But if that's your ultimate goal, then let me know.

> scanning bus 0 for devices... 2 USB Device(s)
> found
> scanning usb for storage devices... 1
> Storage Device(s) found
> EHCI timed out on TD - token=0x90008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x1f8c80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x1f8c80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
> EHCI timed out on TD - token=0x80008d80
>

Your problem right now is the USB drive itself. When you see this "timeout on TD", it means the drive did not "spin up" fast enough for u-boot to read it. It helps to use a different USB flash drive (use Sandisk brand if you have it).

Pogov4> setenv bootcmd 'run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset'

The above is wrong. If you put the default envs in /boot/uEnv.txt in the Debian rootfs, there is no need to set the bootcmd like that. Just boot the Debian rootfs without interrupting it. Run kwboot, and let it go to see how far you got.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 02:07PM
Ok I will give that a try.

Since my end goal is to be able to install the latest version of uboot and use archlinuxarm on this pogoplug, perhaps it would help if I understood uboot and kwboot a little better. I am fairly familiar with linux basics, though I have never done much with the kernel. Here is my current impression of how each of these componenets work. Any comments to help set me straight would be helpful.

kwboot - A tool that can communicate with a device at a low level allowing it to assist during the boot process should the internal memory become corrupt or broken (in my case broken by me :( )

uboot - an boot loader or boot environment installed to the built in nand memory.

bootable media - the equivelant of a hard drive in a desktop-PC, holds whatever OS is installed on it.


I am still searching forums looking for clean and simple guides to answer or accomplish the following questions. I know that some of my questions can be answered, but figured I would ask them anyway and come back with links or notes later.


Questions:
1. Where is the original pogoplug software kept?

2. Does uboot replace the original pogoplug software?

3. What settings in uboot correspond to the OS? ie. Why would a uboot setup to work with debian, NOT work with Archlinuxarm?

4. What settings within Archlinuxarm would I need to change to work with uboot?

5. What settings determine how to boot from an SD card instead of a usb stick?
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 02:26PM
scales11,


> Since my end goal is to be able to install the
> latest version of uboot and use archlinuxarm on
> this pogoplug,

OK. This is quite doable.

> kwboot - A tool that can communicate with a device
> at a low level allowing it to assist during the
> boot process should the internal memory become
> corrupt or broken (in my case broken by me :( )
>

kwboot is a tool that can load u-boot image to a kirkwood box that supports UART booting. If the box senses the present of kwboot at the other end of the serial line (ie. UART 0) then it will accept u-boot image and load it to memory and start it. This is how I usually test a new u-boot before flashing it to NAND or SPI flash for real.

> uboot - an boot loader or boot environment
> installed to the built in nand memory.

u-boot image is usually stored in NAND or SPI flash (mtd0). So is the u-boot envs.

> bootable media - the equivelant of a hard drive in
> a desktop-PC, holds whatever OS is installed on
> it.
>

USB, SD card, HDD all bootable media for Pogo V4. The rootfs must reside on a disk partition (that u-boot can find). The OS (rootfs) contain the kernel files and other files.

> 1. Where is the original pogoplug software kept?

In NAND for Pogo V4.


>
> 2. Does uboot replace the original pogoplug
> software?
>

The new u-boot replaces the stock u-boot on NAND mtd0. Stock OS remains intact.

> 3. What settings in uboot correspond to the OS?
> ie. Why would a uboot setup to work with debian,
> NOT work with Archlinuxarm?
>

Arch rootfs is a little different. Very minor difference. I just never got around to add a couple necessary envs to boot Arch.

> 4. What settings within Archlinuxarm would I need
> to change to work with uboot?

I'll need to do this test and give instruction. Instead of helping you with a quick fix, perhaps I would do this so that it can be incorporated into the next release of the default envs.

> 5. What settings determine how to boot from an SD
> card instead of a usb stick?

It's all scripted in the default envs image that you've flashed during installing new u-boot.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 12/16/2016 02:28PM by bodhi.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 06:12PM
Hi scales11,

>
> > Since my end goal is to be able to install the
> > latest version of uboot and use archlinuxarm on
> > this pogoplug,
>
> OK. This is quite doable.

> > 4. What settings within Archlinuxarm would I
> need
> > to change to work with uboot?
>
> I'll need to do this test and give instruction.
> Instead of helping you with a quick fix, perhaps I
> would do this so that it can be incorporated into
> the next release of the default envs.
>

How about being my tester for this boot option (I can't find my old Arch rootfs)?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 06:36PM
Well Bodhi, good news, here is what I got after I cloned my existing usb drive to another one:

ubuntu@ubuntu:~/kwboot-tool$ sudo ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -p
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
3165162 bytes read in 386 ms (7.8 MiB/s)
7179935 bytes read in 509 ms (13.5 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-12-14  16:38:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165098 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 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.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    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=ext2 mtdparts=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: 113632K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17440K 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 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 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.000014] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000495] Console: colour dummy device 80x30
[    0.000544] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.090136] pid_max: default: 32768 minimum: 301
[    0.090300] Security Framework initialized
[    0.090417] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090449] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091656] Initializing cgroup subsys io
[    0.091708] Initializing cgroup subsys devices
[    0.091745] Initializing cgroup subsys freezer
[    0.091793] Initializing cgroup subsys net_cls
[    0.091921] CPU: Testing write buffer coherency: ok
[    0.092628] Setting up static identity map for 0x8200 - 0x8258
[    0.093089] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.098780] devtmpfs: initialized
[    0.105805] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106512] prandom: seed boundary self test passed
[    0.112242] prandom: 100 self tests passed
[    0.112300] pinctrl core: initialized pinctrl subsystem
[    0.114422] NET: Registered protocol family 16
[    0.115163] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140164] cpuidle: using governor ladder
[    0.170164] cpuidle: using governor menu
[    0.170825] Feroceon L2: Enabling L2
[    0.170890] Feroceon L2: Cache support initialised.
[    0.171456] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.179039] No ATAGs?
[    0.212288] vgaarb: loaded
[    0.212811] usbcore: registered new interface driver usbfs
[    0.212930] usbcore: registered new interface driver hub
[    0.213050] usbcore: registered new device driver usb
[    0.214687] clocksource: Switched to clocksource orion_clocksource
[    0.296308] NET: Registered protocol family 2
[    0.297478] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.297522] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.297553] TCP: Hash tables configured (established 1024 bind 1024)
[    0.297664] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.297699] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.297978] NET: Registered protocol family 1
[    0.298559] RPC: Registered named UNIX socket transport module.
[    0.298577] RPC: Registered udp transport module.
[    0.298588] RPC: Registered tcp transport module.
[    0.298599] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.298998] Unpacking initramfs...
[    1.249246] Freeing initrd memory: 7012K (c1100000 - c17d9000)
[    1.249460] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.251077] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.251181] audit: initializing netlink subsys (disabled)
[    1.251256] audit: type=2000 audit(1.240:1): initialized
[    1.251758] Initialise system trusted keyring
[    1.252343] zbud: loaded
[    1.252762] VFS: Disk quotas dquot_6.6.0
[    1.252849] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.253629] NFS: Registering the id_resolver key type
[    1.253724] Key type id_resolver registered
[    1.253738] Key type id_legacy registered
[    1.253775] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.253796] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.254120] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.254961] Key type big_key registered
[    1.284091] Key type asymmetric registered
[    1.284125] Asymmetric key parser 'x509' registered
[    1.284271] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.284303] io scheduler noop registered
[    1.284325] io scheduler deadline registered
[    1.284416] io scheduler cfq registered (default)
[    1.286036] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 36
[    1.286060] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 37
[    1.286078] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 38
[    1.286096] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 39
[    1.286114] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 40
[    1.286131] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 41
[    1.286148] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 42
[    1.286166] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 43
[    1.286184] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 44
[    1.286201] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 45
[    1.286219] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 46
[    1.286236] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[    1.286253] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 48
[    1.286271] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[    1.286759] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    1.287745] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    1.288349] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    1.289568] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    1.289597] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.289617] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.289637] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.290224] PCI: bus0: Fast back to back transfers disabled
[    1.290263] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.304799] PCI: bus1: Fast back to back transfers disabled
[    1.305056] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.305087] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    1.305121] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[    1.305152] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[    1.305180] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.305203] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.305343] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.305499] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    1.305937] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.345734] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.346068] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.385697] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.386401] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.388539] console [ttyS0] disabled
[    1.388631] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[    2.184362] console [ttyS0] enabled
[    2.189787] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.196172] nand: Hynix H27U1G8F2BTR-BC
[    2.199998] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.207574] Scanning device for bad blocks
[    2.296184] 5 cmdlinepart partitions found on MTD device orion_nand
[    2.302431] Creating 5 MTD partitions on "orion_nand":
[    2.307588] 0x000000000000-0x000000200000 : "u-boot"
[    2.314437] 0x000000200000-0x000000500000 : "uImage"
[    2.321242] 0x000000500000-0x000000800000 : "uImage2"
[    2.328091] 0x000000800000-0x000001000000 : "failsafe"
[    2.335075] 0x000001000000-0x000008000000 : "root"
[    2.343509] libphy: Fixed MDIO Bus: probed
[    2.348189] libphy: orion_mdio_bus: probed
[    2.359361] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.442864] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    3.451800] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.458380] ehci-pci: EHCI PCI platform driver
[    3.462918] ehci-orion: EHCI orion driver
[    3.467203] orion-ehci f1050000.ehci: EHCI Host Controller
[    3.472713] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    3.480614] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    3.504734] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.511037] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.517842] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.525062] usb usb1: Product: EHCI Host Controller
[    3.529927] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    3.536543] usb usb1: SerialNumber: f1050000.ehci
[    3.542323] hub 1-0:1.0: USB hub found
[    3.546185] hub 1-0:1.0: 1 port detected
[    3.551012] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.556335] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    3.565137] xhci_hcd 0000:01:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x00000010
[    3.573849] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    3.580657] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.587874] usb usb2: Product: xHCI Host Controller
[    3.592740] usb usb2: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    3.599356] usb usb2: SerialNumber: 0000:01:00.0
[    3.605050] hub 2-0:1.0: USB hub found
[    3.608839] hub 2-0:1.0: 2 ports detected
[    3.613582] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.618885] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    3.626414] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.634666] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    3.641469] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.648819] usb usb3: Product: xHCI Host Controller
[    3.653687] usb usb3: Manufacturer: Linux 4.4.0-kirkwood-tld-1 xhci-hcd
[    3.660310] usb usb3: SerialNumber: 0000:01:00.0
[    3.665941] hub 3-0:1.0: USB hub found
[    3.669729] hub 3-0:1.0: 2 ports detected
[    3.675251] mousedev: PS/2 mouse device common for all mice
[    3.864733] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.015866] usb 1-1: New USB device found, idVendor=0781, idProduct=5576
[    4.022564] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.029721] usb 1-1: Product: Cruzer Facet
[    4.033803] usb 1-1: Manufacturer: SanDisk
[    4.037915] usb 1-1: SerialNumber: 4C532000060525114554
[    4.684727] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.690414] i2c /dev entries driver
[    4.695814] hidraw: raw HID events driver (C) Jiri Kosina
[    4.701784] drop_monitor: Initializing network drop monitor service
[    4.708462] NET: Registered protocol family 17
[    4.713287] Key type dns_resolver registered
[    4.718830] registered taskstats version 1
[    4.722983] Loading compiled-in X.509 certificates
[    4.727895] zswap: loaded using pool lzo/zbud
[    4.745032] Key type encrypted registered
[    4.749946] hctosys: unable to open rtc device (rtc0)
[    4.758482] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    4.866386] systemd-udevd[84]: starting version 215
[    4.874126] random: systemd-udevd urandom read with 7 bits of entropy available
[    5.154630] SCSI subsystem initialized
[    5.167103] mvsdio f1090000.mvsdio: Got CD GPIO
[    5.200332] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.251181] sata_mv f1080000.sata: slots 32 ports 1
[    5.278747] scsi host0: usb-storage 1-1:1.0
[    5.292074] usbcore: registered new interface driver usb-storage
[    5.312622] scsi host1: sata_mv
[    5.325343] ata1: SATA max UDMA/133 irq 32
[    5.341525] usbcore: registered new interface driver uas
[    5.674749] ata1: SATA link down (SStatus 0 SControl F300)
[    6.276137] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Facet     1.26 PQ: 0 ANSI: 5
[    6.296827] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    6.306436] sd 0:0:0:0: [sda] Write Protect is off
[    6.312039] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.329122]  sda: sda1
[    6.336038] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.347742] 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
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   20.939979] EXT2-fs (sda1): error: couldn't mount because of unsupported optional features (4)
mount: 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
[   21.128646] uhci_hcd: USB Universal Host Controller Interface driver
[   21.147234] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   21.166974] usbcore: registered new interface driver usbhid
[   21.172536] 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) 

scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 06:40PM
Bodhi,

I am happy to beta test. Judging from the insane number of comments on these forums, you do a heck of a lot of work/responding. Since I am directly benefiting, its probably the least I can do.

I am going to search a bit and see what my next step is to fix the device so it can boot on its own.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 07:26PM
scales11 Wrote:
-------------------------------------------------------
> Bodhi,
>
> I am happy to beta test. Judging from the insane
> number of comments on these forums, you do a heck
> of a lot of work/responding. Since I am directly
> benefiting, its probably the least I can do.
>
> I am going to search a bit and see what my next


> step is to fix the device so it can boot on its
> own.

Cool!

Your rootfs mounting has problem above. The bootargs need adjustment. Interrupt uboot, at console:
setenv set_bootargs_usb 'setenv bootargs console=$console root=LABEL=rootfs rootdelay=$rootdelay  $mtdparts'
boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 08:20PM
Great, that did it.

Now I have the console via serial connection. I am logged in as root.

I think I will exit the serial connection though and ssh in via network.

I will build a new archlinux arm sd card and wait for direction.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 16, 2016 09:50PM
scales11 Wrote:
-------------------------------------------------------
> Great, that did it.
>
> Now I have the console via serial connection. I
> am logged in as root.
>
> I think I will exit the serial connection though
> and ssh in via network.
>
> I will build a new archlinux arm sd card and wait
> for direction.

Cool!

Have you flashed the default envs image now? Remember to save your current envs as instructed in section "8. Flashing default u-boot envs image".

To test boot Arch with u-boot-2016.05-tld-1:

- Make sure you have flashed the default envs image and adjusted envs to boot normally.
- Boot with serial console connected (not kwboot, just boot normally). Interrupt serial console, and execute the following commands:

TBD - will post here soon.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 17, 2016 12:14PM
I was following the uboot-kirkwood flashing tutorial:
http://forum.doozan.com/read.php?3,12381

and when I was on step one checking my mtd partitions, here is what I got:

root@debian:~# cat /proc/mtd
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"

Should I modify that so it matches what you have in the tutorial? If so....how?
Re: How to use usbboot? soft-bricked v4 pogoplug
December 17, 2016 01:58PM
How to boot Arch Linux ARM with bodhi's u-boot
December 17, 2016 02:03PM
Scales11,

Here is what need to be done to be able to boot both Debian and Arch. From information in Arch script, it is easy to set up.

Testing the boot option using the Pogo V4:

1. Following instruction in the u-boot thread, flash u-boot-2016.05-tld-1 and its default envs image uboot.2016.05-tld-1.environment.img and adjusted envs (arcNumber, ipaddr, ethaddr, dtb_file ....) to boot normally into Debian.

2. Shutdown the box, remove Debian rootfs, insert the Arch rootfs (USB, SD card, or HDD).

3. With serial console connected (not kwboot, just boot normally with regular serial console tool such as picocom, putty, or screen). Power up, interrupt serial console, and execute the following commands:

setenv dtb_file_alt '/boot/dtbs/kirkwood-pogoplug_v4.dtb'
setenv load_dtb 'echo loading DTB file ... ; if load $bootdev $device $load_dtb_addr $dtb_file; then echo $dtb_file; else if load $bootdev $device $load_dtb_addr $dtb_file_alt; then echo $dtb_file_alt; else echo *** DTB file not found; fi; fi'
boot

Note that there is 2 other alternatives to test this boot option (one is using uEnv.txt), even if no serial console is connected. However, serial console would be the best tool to see if this procedure will be executed correctly.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 3 time(s). Last edit at 07/31/2017 09:48PM by bodhi.
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 18, 2016 07:14AM
I was following the guide, step 8, section B and I ran into the following. Note: So far this is the only error that I have seen, everything else looked fine. I do not know if I can skip this step or just continue.

root@debian:/media/usbstick# tools/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.bodhi/uboot.2016.05-tld-1.environment.img 

Writing data to block 6 at offset 0xc0000

root@debian:/media/usbstick# fw_setenv arcNumber 3960

Warning: Bad CRC, using default environment

root@debian:/media/usbstick#


Also, I am unsure what you mean by "and adjusted envs (arcNumber, ipaddr, ethaddr, dtb_file ....)" from your earlier post. I cant recall what the mac address is on this pogoplug, I can change the ipaddr setting, but i am not sure what to change them to...my default gateway (aka router)? I believe I need to change the settings before I flash....
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 18, 2016 09:06AM
Well I proceeded to follow the guide despite the error, rebooted (still using the debian rootfs). Below is what I get.

I followed the whole guide in the uboot thread that you linked to, correctly I think...



Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
machid=f78
stderr=serial
stdin=serial
stdout=serial

Environment size: 352/131068 bytes
Pogov4> 

Re: How to use usbboot? soft-bricked v4 pogoplug
December 18, 2016 02:30PM
scales11,

This is good:
root@debian:/media/usbstick# tools/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.bodhi/uboot.2016.05-tld-1.environment.img 

Writing data to block 6 at offset 0xc0000

This should not happened immediately after the above command:
root@debian:/media/usbstick# fw_setenv arcNumber 3960

Warning: Bad CRC, using default environment

It is good that u-boot was flashed successfully. What's not good is the default evns were unsucessfully flashed for some reason.
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
machid=f78
stderr=serial
stdin=serial
stdout=serial

Environment size: 352/131068 bytes
Pogov4>

---------

Ok you can do this to get the default envs populated at the u-boot prompt, and boot into Debian to reflash the envs image:
http://forum.doozan.com/read.php?3,29362,29390#msg-29390

Note the part about adjusting the envs in the linked post. I've modified that for the Pogo V4 (bold) below. You can set your ethaddr to the real one here (italic):

Quote

Adjust the other specific envs and then boot the rootfs:
setenv devices 'usb mmc ide'
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv dtb_file '/boot/dts/kirkwood-pogoplug_v4.dtb'

boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 24, 2016 07:01AM
Sorry for the delay, got busy and did not have time to get back to this. I tried the above post, but after powering off my pogo, something has changed. Now I can no longer boot to my rootfs debian usb. Also I was unable to set the default envs and re-flash as you mentioned. Thoughts?


 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Pogov4> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
** File not found /boot/uboot.2016.05-tld-1.environment.scr **
Pogov4> ls usb 0:1 0x800000
** Can not find directory. **
Pogov4> ls usb 0:1         
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 proc
<DIR>       4096 sbin
<DIR>       4096 dev
<DIR>       4096 root
<DIR>       4096 usr
<DIR>       4096 opt
<DIR>       4096 boot
<DIR>       4096 bin
<DIR>       4096 etc
<DIR>       4096 tmp
<DIR>       4096 mnt
<DIR>       4096 var
<DIR>       4096 home
<DIR>       4096 media
<DIR>       4096 sys
<DIR>       4096 run
<DIR>       4096 lib
<DIR>       4096 srv
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
machid=f78
stderr=serial
stdin=serial
stdout=serial
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 24, 2016 11:40AM
Here is what I get if I try to boot:

Pogov4> boot
No link on egiga0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Re: How to use usbboot? soft-bricked v4 pogoplug
December 24, 2016 02:54PM
scales11,

On another Linux box, check your rootfs, what happened to the script file? it is not on it anymore.

Pogov4> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
** File not found /boot/uboot.2016.05-tld-1.environment.scr **

And don't boot with kwboot, you have flashed the new u-boot to NAND, so from now on it is the image that the box will run. Just connect serial console using picocom, putty, or screen (depending on the host box you are using).

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scalees11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 25, 2016 07:30AM
Actually the script file is still there. If I try to boot without using kwboot, I still do not get a light, only the ethernet light flashes for a moment.

Nothing if I connect to serial.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 25, 2016 03:15PM
scalees11 Wrote:
-------------------------------------------------------
> Actually the script file is still there. If I try
> to boot without using kwboot, I still do not get a
> light, only the ethernet light flashes for a
> moment.
>
> Nothing if I connect to serial.


Ok then boot with kwboot again, interrupt serial console,

printenv
usb start
ext2ls usb 0:1 /boot

If the script file is still on this USB drive /boot, it would show up in the output. Please post the log here.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 26, 2016 07:30PM
Ok, here is what I have:


 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
machid=f78
stderr=serial
stdin=serial
stdout=serial

Environment size: 352/131068 bytes
Pogov4> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Pogov4> ext2ls usb 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
          140949 config-4.4.0-kirkwood-tld-1
         3154832 vmlinuz-4.4.0-kirkwood-tld-1
         7179935 uInitrd
         7179871 initrd.img-4.4.0-kirkwood-tld-1
         2240040 System.map-4.4.0-kirkwood-tld-1
<DIR>       4096 dts
         3165162 uImage
         7511582 linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
         3154832 zImage-4.4.0-kirkwood-tld-1
         3165098 zImage.fdt
         3154896 uImage.org
            2776 uEnv.txt
            3232 uboot.2016.05-tld-1.environment.scr
Pogov4> 
Re: How to use usbboot? soft-bricked v4 pogoplug
December 27, 2016 12:52AM
Scales11,

> Pogov4> ext2ls usb 0:1 /boot
> <DIR> 4096 .
> <DIR> 4096 ..
> 140949 config-4.4.0-kirkwood-tld-1
> 3154832 vmlinuz-4.4.0-kirkwood-tld-1
> 7179935 uInitrd
> 7179871 initrd.img-4.4.0-kirkwood-tld-1
> 2240040 System.map-4.4.0-kirkwood-tld-1
> <DIR> 4096 dts
> 3165162 uImage
> 7511582
> linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
> 3154832 zImage-4.4.0-kirkwood-tld-1
> 3165098 zImage.fdt
> 3154896 uImage.org
> 2776 uEnv.txt
> 3232
> uboot.2016.05-tld-1.environment.scr
> Pogov4>

The file is there! So if this command failed
ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr

Then you should check for file system error (fsck using another Linux box), and then mount it and try to print out the content (cat). See if Linux command line can see the file.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 27, 2016 06:32AM
Well I found the issue:

~$ sudo fsck /dev/sdc
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

I think I made the partition table DOS instead of gpt. I am going to reformat my drive and try again.

However, I still think there is an issue with the pogoplug, because even if there is no media in it, the light never comes on during boot.
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 27, 2016 12:44PM
Well, I am confused.

1. I made a mistake and formatted my old working rootfs usb stick (used it for something else)

2. I am struggling to make a new one and I cannot recall which "HOW-TO" I followed. I am using this one:
http://forum.doozan.com/read.php?2,12096
but frankly, it is confusing.
-I extracted the debian 4.4.0 (Updated 20 Feb 2016) file and followed those steps, skipping the parts that say (skip if you are installing the new uboot).
-I then started the steps under (Oct 2016) with the newest kernel (4.9.0)
-I do not understand why I am supposed to use dpkg -i...since I am doing this from a ubuntu machine, it would try to install the kernel locally, which fails because my system is not of the arm architecture.

Can you please link me to the correct steps that I should be following?

...I feel like I am taking 1 step forward and 10 backward.
Re: How to use usbboot? soft-bricked v4 pogoplug
December 27, 2016 02:04PM
scales11,


> 2. I am struggling to make a new one and I cannot
> recall which "HOW-TO" I followed. I am using this
> one:
> http://forum.doozan.com/read.php?2,12096
> but frankly, it is confusing.
> -I extracted the debian 4.4.0 (Updated 20 Feb
> 2016) file and followed those steps, skipping the
> parts that say (skip if you are installing the new
> uboot).

Right here. You've completed the rootfs. Any kernel upgrade need to be on live system.

Note the instruction said you're done in step 5:

Quote

5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box.


> -I then started the steps under (Oct 2016) with
> the newest kernel (4.9.0)
> -I do not understand why I am supposed to use dpkg
> -i...since I am doing this from a ubuntu machine,
> it would try to install the kernel locally, which
> fails because my system is not of the arm
> architecture.
>

dpkg -i can only be done on the live system.

(The only way that dpkg would be applicable using x86 architecture-base Linux to install ARM kernel is: if instruction has a step using qemu).


And btw, you had a typo previously (should be sdc1):

~$ sudo fsck /dev/sdc1

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 12/27/2016 02:06PM by bodhi.
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: