[SOLVED] PPv4: How to get revert to stock to work

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED] PPv4: How to get revert to stock to work

Postby winestock » Fri Feb 22, 2013 12:18 am

I have tried many times, using a hard drive and USB flash drive, to revert my PPv4 using these instructions: http://archlinuxarm.org/platforms/armv5 ... s-ui-tabs3. Never seems to work. When I plug in a HD or USB flash drive that is formatted as FAT32 with the "revert" directory, the Pogoplug light just flashes green and never turns red. The final evidence that the revert failed is when I replug in my arm linux-kirkwood HD and boot the Pogoplug, I am able to ssh back in to the arm linux using my arm linux user. I have tried this on both of my PPV4 and it does not work on either one. So the question is why can't I get the revert to work? Has anybody got the revert to work for their PPv4?

I would like this just in case I ever decide I want to sell the PPv4.
Last edited by winestock on Sat Feb 23, 2013 2:13 pm, edited 1 time in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: How to get revert to stock to work

Postby winestock » Fri Feb 22, 2013 6:13 pm

By the way, who wrote these instructions: http://archlinuxarm.org/platforms/armv5 ... s-ui-tabs3?
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: How to get revert to stock to work

Postby bodhi » Fri Feb 22, 2013 8:39 pm

Do you have serial console access? much easier to figure out why if you do.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: PPv4: How to get revert to stock to work

Postby winestock » Fri Feb 22, 2013 10:19 pm

$this->bbcode_second_pass_quote('bodhi', 'D')o you have serial console access? much easier to figure out why if you do.


Unfortunately, I don't have a serial cable access. Wish I could use netconsole.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: How to get revert to stock to work

Postby bodhi » Sat Feb 23, 2013 1:02 am

Yeah, too bad netconsole is not supported.

Perhaps you could post your uBoot envs, we can take a look to see if they are still the same as were when you first installed ALARM. The relevant envs are:

$this->bbcode_second_pass_quote('', 'l')oad_nand=nboot 0x800000 0 0x200000
load_nand2=nboot 0x800000 0 0x500000
boot=bootm 0x800000
boot_nand=run load_nand boot || run load_nand2 boot
alarm_revert=if fatls usb 0:1 /revert; then setenv mainlineLinux no; setenv arcNumber; setenv bootcmd run boot_nand; saveenv; reset; fi
alarm_boot=ide reset; run alarm_revert; if ide part 0; then run alarm_ide; else setenv isDisk no; fi; run alarm_usb
bootcmd=if usb start; then run alarm_boot; else nand read 0x800000 0x100000 0x73d0c; go 0x800000; fi


Also, have you tried the other USB ports other than the top one?
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: PPv4: How to get revert to stock to work

Postby winestock » Sat Feb 23, 2013 2:24 am

$this->bbcode_second_pass_quote('bodhi', 'Y')eah, too bad netconsole is not supported.

Perhaps you could post your uBoot envs, we can take a look to see if they are still the same as were when you first installed ALARM. The relevant envs are:

$this->bbcode_second_pass_quote('', 'l')oad_nand=nboot 0x800000 0 0x200000
load_nand2=nboot 0x800000 0 0x500000
boot=bootm 0x800000
boot_nand=run load_nand boot || run load_nand2 boot
alarm_revert=if fatls usb 0:1 /revert; then setenv mainlineLinux no; setenv arcNumber; setenv bootcmd run boot_nand; saveenv; reset; fi
alarm_boot=ide reset; run alarm_revert; if ide part 0; then run alarm_ide; else setenv isDisk no; fi; run alarm_usb
bootcmd=if usb start; then run alarm_boot; else nand read 0x800000 0x100000 0x73d0c; go 0x800000; fi


Also, have you tried the other USB ports other than the top one?


This is the u-boot enviroment:
$this->bbcode_second_pass_code('', '
bootdelay=1
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
MALLOC_len=1
ethprime=egiga0
netbsd_en=no
vxworks_en=no
load_nand=nboot 0x800000 0 0x200000
load_nand2=nboot 0x800000 0 0x500000
boot=bootm 0x800000
boot_nand=run load_nand boot || run load_nand2 boot
disaMvPnp=no
ethmtu=1500
usb0Mode=host
nandEcc=1bit
hddPowerCtrl=no
pcieTune=no
ethact=egiga0
ethaddr=00:25:31:05:37:97
cesvcid=QEHT83NUPXDZKR953VA35PL2KA
ceboardver=PPV4A3
bootargs=console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=4,2048 rootfstype=ubifs
arcNumber=3960
mainlineLinux=yes
bootcmd=if usb start; then run alarm_boot; else nand read 0x800000 0x100000 0x73d0c; go 0x800000; fi
alarm_boot=ide reset; run alarm_revert; if ide part 0; then run alarm_ide; else setenv isDisk no; fi; run alarm_usb
alarm_revert=if fatls usb 0:1 /revert; then setenv mainlineLinux no; setenv arcNumber; setenv bootcmd run boot_nand; saveenv; reset; fi
rootfstype=ext3
alarm_args=setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype
alarm_which=if test $isDisk = yes; then setenv device /dev/sdb1; else setenv device /dev/sda1; fi
alarm_ide=if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi
alarm_usb=if ext2load usb 0:1 0x800000 /boot/uImage; then run alarm_which; run alarm_args; bootm 0x800000; fi
')

I just tried all USB ports and even the Sata port. All I get is a green flashing light, no red light indication. After I unplug the USB FAT32 format hard drive and plug-in the Alarm HD I can ssh back into arm linux-kirkwood.

Just curious if there is a version of nboot built to run under alarm? I was thinking that maybe it would be possible to do the same as uboot:
$this->bbcode_second_pass_code('', '
nboot 0x800000 0 0x200000
nboot 0x800000 0 0x500000
')
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: How to get revert to stock to work

Postby bodhi » Sat Feb 23, 2013 5:41 am

Seems like it never got pass this point:
$this->bbcode_second_pass_quote('', 'i')f fatls usb 0:1 /revert


FYI, I've reverted the PPv4 a couple times successfully, right after I installed Arch long ago to see if it works. It's strange that it did not work for you with the same procedure! One thing to consider is the USB thumb drive I used was notoriously unreliable, too (Transcend brand), so I don't think it has anything to do with the type of USB thumb.

If you are adventurous, you can set the env to revert to use ext2ls instead of fatls and use Ext2 thumb drive to revert. See if it will make any difference.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am
Top

Re: PPv4: How to get revert to stock to work

Postby moonman » Sat Feb 23, 2013 7:21 am

Can't you just set those envieonment variables wihin alarm and reboot?

All it does is check if contents of fat32 drive (only 1st USB port) are "revert", if so just sets
$this->bbcode_second_pass_code('', 'setenv mainlineLinux no
setenv arcNumber
setenv bootcmd run boot_nand')

so if I were using fw_setenv (don't know what is used on PPV4 since I don't own one) I would do this:

$this->bbcode_second_pass_code('', 'fw_setenv mainlineLinux 'no'
fw_setenv arcNumber #deletes the variable
fw_setenv bootcmd 'run boot_nand'')
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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: PPv4: How to get revert to stock to work

Postby winestock » Sat Feb 23, 2013 11:59 am

$this->bbcode_second_pass_quote('moonman', 'C')an't you just set those envieonment variables wihin alarm and reboot?

All it does is check if contents of fat32 drive (only 1st USB port) are "revert", if so just sets
$this->bbcode_second_pass_code('', 'setenv mainlineLinux no
setenv arcNumber
setenv bootcmd run boot_nand')

so if I were using fw_setenv (don't know what is used on PPV4 since I don't own one) I would do this:

$this->bbcode_second_pass_code('', 'fw_setenv mainlineLinux 'no'
fw_setenv arcNumber #deletes the variable
fw_setenv bootcmd 'run boot_nand'')


fw_printenv does not work correctly with the PPv4. I would need to use blparam instead:

$this->bbcode_second_pass_code('', '
blparam setenv mainlineLinux no
blparam setenv arcNumber
blparam setenv bootcmd run boot_nand
')

I might try the ext2ls idea first that bodhi suggests.
Last edited by winestock on Sat Feb 23, 2013 12:45 pm, edited 4 times in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: How to get revert to stock to work

Postby winestock » Sat Feb 23, 2013 12:02 pm

$this->bbcode_second_pass_quote('bodhi', 'S')eems like it never got pass this point:
$this->bbcode_second_pass_quote('', 'i')f fatls usb 0:1 /revert


FYI, I've reverted the PPv4 a couple times successfully, right after I installed Arch long ago to see if it works. It's strange that it did not work for you with the same procedure! One thing to consider is the USB thumb drive I used was notoriously unreliable, too (Transcend brand), so I don't think it has anything to do with the type of USB thumb.

If you are adventurous, you can set the env to revert to use ext2ls instead of fatls and use Ext2 thumb drive to revert. See if it will make any difference.


I know it is not related to the HD itself because that is the same HD ai use to boot alarm linux-kirkwood. I have also tried a USB thumb drive, no dice either.

I just tried changing fatls to ext2ls and it works. I reverted back to the stock pogoplug OS:
$this->bbcode_second_pass_code('', '
uname -a
Linux Pogoplug 2.6.31.8 #5 Wed Sep 28 12:09:12 PDT 2011 armv5tel GNU/Linux
')

I also tried:
$this->bbcode_second_pass_code('', '
blparam setenv mainlineLinux no
blparam setenv arcNumber
blparam setenv bootcmd run boot_nand
')
That also works. In the end I think I am going to go with mooman's idea as it does not require that I reformat a HD and I can create a small shell script to perform the revert.

Thank you for all your help.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests