Reboot Pogoplug V2 to default OS without removing USB?

This forum is for discussion about general software issues.

Reboot Pogoplug V2 to default OS without removing USB?

Postby grayman4hire » Thu Oct 31, 2013 7:44 pm

Hello,

I'm working remotely and looking for some quick help.

I would like to reboot my Pogoplug E02 (V2) running ALARM to the default Pogoplug OS without removing the USB drive.

I assume I just need to modify the uboot bootcmd env setting?

Can anyone help? Thanks

gray
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: Reboot Pogoplug V2 to default OS without removing USB?

Postby moonman » Fri Nov 01, 2013 9:14 am

You can edit your bootcmd, or create a script that does it for you and then reboots

The default bootcmd on mine:
$this->bbcode_second_pass_code('', 'bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset')

So the script:

to_stock:
$this->bbcode_second_pass_code('', '#!/bin/sh

fw_setenv bootcmd 'run pogo_bootcmd; reset'
reboot')

to_default:
$this->bbcode_second_pass_code('', '#!/bin/sh

fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'
reboot')

Never tested this, so have a serial or netconsole ready in case it doesn't work.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Reboot Pogoplug V2 to default OS without removing USB?

Postby WarheadsSE » Fri Nov 01, 2013 11:49 am

I might suggest making the modifications something akin to my to_linux and to_stock configuration for the NSA's.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm



Return to General

Who is online

Users browsing this forum: No registered users and 17 guests