Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all articles
Browse latest Browse all 902

How to use usbboot? soft-bricked v4 pogoplug (2 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 902

Trending Articles