Welcome! Log In Create A New Profile

Advanced

Unbrick a Pogoplug Pro (v3/OXNAS?)

Posted by maldridge 
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
December 18, 2017 11:33PM
Holy sysvinit batman, its booted!

I'll go ahead and try to do a firmware reflash from here and see if I can get back to a state I can boot from the NAND.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
December 19, 2017 12:08AM
maldridge Wrote:
-------------------------------------------------------
> Holy sysvinit batman, its booted!
>
> I'll go ahead and try to do a firmware reflash
> from here and see if I can get back to a state I
> can boot from the NAND.


Super :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
December 19, 2017 12:48AM
Cool, so I have now functioning u-boot on there and all seems well again. To recap, here's what I noted through this process:

One of the scripts dd's some things to ${disk}1 which corrupts the partition and makes it unbootable.

The default env vars in the shv tarball don't boot. They hunt for a wildly obsolete kernel.

The choice of format utilities is important, not all of them put the 2048 offset at the front of the disk. This can be forced when absent but it turns out to be important for the SPL stage.

Once again, thank you for your incredible help in getting this board to live again!
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
December 19, 2017 06:00AM
maldridge Wrote:
-------------------------------------------------------
> Cool, so I have now functioning u-boot on there
> and all seems well again. To recap, here's what I
> noted through this process:
>
> One of the scripts dd's some things to ${disk}1
> which corrupts the partition and makes it
> unbootable.
>
> The default env vars in the shv tarball don't
> boot. They hunt for a wildly obsolete kernel.
>
> The choice of format utilities is important, not
> all of them put the 2048 offset at the front of
> the disk. This can be forced when absent but it
> turns out to be important for the SPL stage.
>
> Once again, thank you for your incredible help in
> getting this board to live again!

Thanks for the recap. It will great for users looking to unbrick this box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 12, 2018 10:39PM
After reading this thread I would like to know the exact sequence that got you through it. I would like to get to the point of restoring nand with the correct boot.
Don't really care about booting into Debian with SATA. Thanks
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 12, 2018 10:49PM
Hi Chuck,

I have written instruction to install Pogo V3 u-boot in serial console here:

https://forum.doozan.com/read.php?3,42599,44024#msg-44024

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 12, 2018 10:59PM
Thank you Sir. I will give it a try. I have one Pogoplug Pro running Debian with Samba. Works great. I goofed this one awhile back. Now want to get it going.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 13, 2018 04:45PM
Would it be possible to boot a working Debian system from my other Pogoplug Pro on my crashed nand Pro?
The working one is running off usb but I can DD it to another SATA drive.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 13, 2018 08:35PM
@Chuck99, can you get to the Oxnas prompt on the none working one?

and yes you can copy the working PPP usb but I would recommend using the same size usb drive to DD to copy your system, preferably a Sandisk 16gb. I have had a lot of luck doing this with my second PPP (pogoplug pro)

Echowarrior108
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 13, 2018 09:04PM
Quote
echowarrior
and yes you can copy the working PPP usb but I would recommend using the same size usb drive to DD to copy your system, preferably a Sandisk 16gb. I have had a lot of luck doing this with my second PPP (pogoplug pro)

My recomendation is never used dd, if you can just cp or tar as root user.

Quote
Chuck
Would it be possible to boot a working Debian system from my other Pogoplug Pro on my crashed nand Pro?
The working one is running off usb but I can DD it to another SATA drive.

Yes. You'd just clone it using cp or tar to that SATA drive. And as long as you are root, it will work with cp or tar.

Wiki thread

Quote

Backup and Cloning rootfs

CrashPlan 4.3.0
Backup/Restore rootfs using tar command
Adjust udev rules after cloning rootfs
Stock Pogoplug rootfs
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs


https://forum.doozan.com/read.php?2,35372,35382#msg-35382
https://forum.doozan.com/read.php?2,12096,24034#msg-24034

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 14, 2018 01:46PM
thanks for heads up:)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 17, 2018 11:01PM
I have gone through this thread over and over. I have not been able to understand all the twists and turns. I still don't know how you can run the disk_create file and still be able to use the partitions after. on my computer it makes partition one bad. I can get to the uboot commands fine but without USB commands can not restore the clobbered Nand. Any ideas. Thanks, Chuck
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 12:22AM
Chuck,

> I can get to the uboot commands
> fine

So what did you see from power up to the u-boot prompt?

> but without USB commands can not restore the
> clobbered Nand.

That's odd. Stock u-boot has usb command.

------


Power up with serial console connected, and:

printenv
help

Post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 01:42AM
Not the boot that is loaded. It is same as maldridge shows in the beginning of this thread. When I let it go on to boot it ends up with same msg he shows.
Is it that there something in my LinuxMint? Why does disk_create clobber partition 1. It also makes it almost impossible to reformat drive. Windows can fix the drive ok. fdisk will not fix it. The undo script works sometimes. The uboot that loads has everything except USB support. If I do setenv it modifies the uboot on disk. I expect that to happen since that is where uboot resides. If you follow the sequence of the thread you format the patitions, then run disk_create and then put boot and rootfs on. Can not do.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 01:45AM
May be the the USB to SATA clamshell is the problem. I will try to do it on a V4 and see with real SATA interface.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 11:49AM
Thanks Bodhi, I found another usb-sata adapter and things are much better. will let you know. I think it is going to work.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 01:49PM
Now with new adapter I ran pogoSATA.sh and it did create the magic sauce and 3 partitions. Still has no USB support. Will attach logs later on today I hope. I ordered the latest & greatest USB-SATA adapter on Amazon but this one made a big difference. I understand older ones don't support SATAIII.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 04:18PM
Chuck,

> Now with new adapter I ran pogoSATA.sh and it did
> create the magic sauce and 3 partitions. Still
> has no USB support.

Cool! then it would be easy to flash directly to NAND. Use the instruction in the post above:

https://forum.doozan.com/read.php?3,42599,44024#msg-44024

Quote

How to flash new uboot.2015.10-tld-2 for Pogo V3 OXNAS in serial console

A. Using an HDD attached to the SATA port

But don't do ide reset in step 6

6. Start up the HDD and verify the files can be accessed: 

#### ide reset  
ext2ls ide 0:1 /

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



Edited 1 time(s). Last edit at 10/18/2018 04:39PM by bodhi.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 05:37PM
I was able to get USB access and followed the nand routine very carefully and each step seem to be what was expected. I have flashed a lot of nand so I was surprised that it did not work. I will try again later today. I created the pogoSATA.sh drive. worked like it should. Then did help and could see the USB system was there. Made another drive like you said. Verified the contents. Did nand erase, ext2load, flashed spl, flashed env, flashed uboot. looked good. I must have missed something..
When I let it try to boot it did not work but did not have time to capture logs.. thanks!
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 18, 2018 07:27PM
booted into Debian 4.1.0
pretty cool.
now need to remember how to flash V3 from Debian. Got one error just before countdown. safe boot not defined.



Edited 1 time(s). Last edit at 10/18/2018 07:29PM by Chuck99.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 01:22PM
Can someone tell me how to process nanddump.dms to execute.
Thanks to Bodhi for making available such a fantastic script pogoSATA.sh it works great when you don't have bad hardware USB-SATA clamshell.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 03:10PM
Hi Chuck,

> Can someone tell me how to process nanddump.dms to
> execute.

Not sure I understood your question. Can you elaborate more?

If you want to back NAND,

cat /proc/mtd


and then then do one nanddump for each mtd, eg. dump mtd0
nanddump --noecc --omitoob  -f mtd0.pogo_v3 /dev/mtd0
and so on.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 04:20PM
I think I am stuck trying to flash ram but the flash ram is on the ide boot.
forget the nand dump thing.
I get to countdown. nand erase 0xc0000
load image spl img. into 0x800000
nand write it All seems normal.
nand dump it and nand is all zeros now.
after erase it is all FF.
nand write did not change nand. i assume it wrote it to hard drive.
how do you actually flash the real nand?
the pogoSATA.sh works great now. I can boot every time.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 05:24PM
here is where I am now. everything seems to work except flashing the real nand.
Attachments:
open | download - Chuck99_env.txt (1.2 KB)
open | download - Chuck99_DebianBoot.txt (18 KB)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 08:24PM
Hi Chuck,

I see. At this point the u-boot and SPL are from the SATA drive.

You can flash u-boot and SPL to NAND now when you are inside Debian. So just follow the instruction in the release thread:

https://forum.doozan.com/read.php?3,16017

Check you mtd

cat /proc/mtd

If it is shown as below,
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
then proceed to flash to NAND as descrbied the instruction (it was written to be executed in Debian or stock OS).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 09:07PM
mtds are just like you said. I can not get the nand tools to run.. says bad command have done chmod +x to no avail. I can copy files back and forth between usb and ide but under uboot it now gets timeouts. It worked before but i did something to screw up usb. I can ext2ls or fatls to usb and it works but if i try to ext2load i get time-outs.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 09:28PM
Chuck,

> mtds are just like you said. I can not get the
> nand tools to run.. says bad command have done
> chmod +x to no avail. I can copy files back and
> forth between usb and ide but under uboot it now
> gets timeouts. It worked before but i did
> something to screw up usb. I can ext2ls or fatls
> to usb and it works but if i try to ext2load i
> get time-outs.

The USB drive probably has error. Have you tried to run e2fsck for it on another box?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 09:34PM
I have tried more than one, reformatted, I will do what you say. I also used fat32, ext2,ext3,ext4. all fail same. very strange. I think I screwed up when I nand erase 0x0 0x800000. said it clear all nand I think. still boots debian just fine.
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 09:40PM
Chuck,

> still boots debian just fine.

Then it should be OK. One more thing, is the USB drive the only drive plugged in?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick a Pogoplug Pro (v3/OXNAS?)
October 19, 2018 09:53PM
No, it will not run the nand tools. I downloaded them again from gethub to make sure they were good.
only one USB stick and Sata boot drive plugged in.
I tried flashing nand both ways. Usb start works fine says i have 3 devices and 1 drive.
It pretends to flash ok but always zeros out the nand. I thought may be the files were all zeros but that is not the case.
chmod +x nanddump or nandwrite works fine but command not found when executing them. I'm loosing my mind.
Author:

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: