Welcome! Log In Create A New Profile

Advanced

[SOLVED] Getting error trying to install uboot on pogoplug V4 - already flash erased..help

Posted by november17 
Hello!

I initially had a pogoplug that I had used the Qnology guide to install uboot about a year and a half ago, it worked great. Unfortunately, the pogo had an accident so I bought a new one (Pogoplug Mobile V4-A1-01). After trying to get SSH access and realizing I couldn't anymore, I bought a USB->TTL converter and wired it up and PuTTYed into it. Unfortunately, quickly into the process I realized Qnology's download links are no longer valid so I went ahead and started using the guide that is pinned at top of this page. Unfortunately it is not working and I think it may be related to it being a fresh flash? I'm not sure exactly what is going on but I keep getting an error. Namely:

/tmp # tar -xf uboot.2016.05-tld-1.pogo_v4.bod
tar: invalid tar magic

Just some background, I'm completely Linux-tarded and terminal-tarded and kept noodling around with it, unzipped in windows then somehow managed to WGET the untarred file over to the TMP folder (at least, I thought I did).

/tmp # /tmp/flash_erase /dev/mtd0 0 4
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
/tmp # /tmp/nandwrite /dev/mtd0 /tmp/uboot.2016.05-tld-1.pogo_v4.mtd0.kwb
Input file is not page-aligned. Use the padding option.
Data was only partially written due to error
: Success

Now getting the above error. I'm not sure exactly what I did wrong. I do think what happened was I was unsuccessful in getting the proper file over to the Pogo but I have no clue how to do it with terminal. I can't figure out how to WGET from my windows based computer, dropbox, or any of the other solutions I've tried (e.g. my router based NAS, any of the web based mirrors I've found.)

That's where I'm at and now I'm afraid to close the COM session or reboot my Pogo since I flash erased the POGO at this point. Hopefully my power doesn't go out or something. If anyone can help me or point me in the direction I need to go, it would be greatly appreciated. I tried reading over the directions in the pinned folder as carefully as possible but again, I'm linux-tarded and I don't think I did it right (I even had to google how to delete stuff in the linux terminal).

-----
mod edit: marked as solved.



Edited 1 time(s). Last edit at 12/03/2016 02:20PM by bodhi.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 01:46PM
november17,

>
> Now getting the above error. I'm not sure exactly
> what I did wrong. I do think what happened was I
> was unsuccessful in getting the proper file over
> to the Pogo but I have no clue how to do it with
> terminal.

From your post, I assume that you are inside Pogo OS at /tmp ?

Try:

uname -a
ping 8.8.8.8

If you can get to the net from there with ping 8.8.8.8 then I can upload the files here in the forum for you to retrieve with wget.

And you are right not to reboot, just let it run like this so you can fix the error.

-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 11/27/2016 01:49PM by bodhi.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 04:08PM

/tmp # uname -a
Linux PogoplugMobile 2.6.31.8 #4 Tue Aug 23 13:00:50 PDT 2011 armv5tel GNU/Linux
/tmp # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=46 time=15.129 ms
64 bytes from 8.8.8.8: seq=1 ttl=46 time=13.657 ms
64 bytes from 8.8.8.8: seq=2 ttl=46 time=13.139 ms
64 bytes from 8.8.8.8: seq=3 ttl=46 time=10.741 ms
64 bytes from 8.8.8.8: seq=4 ttl=46 time=11.041 ms
64 bytes from 8.8.8.8: seq=5 ttl=46 time=10.840 ms
64 bytes from 8.8.8.8: seq=6 ttl=46 time=11.581 ms
64 bytes from 8.8.8.8: seq=7 ttl=46 time=11.262 ms
64 bytes from 8.8.8.8: seq=8 ttl=46 time=10.791 ms
64 bytes from 8.8.8.8: seq=9 ttl=46 time=12.483 ms
64 bytes from 8.8.8.8: seq=10 ttl=46 time=11.928 ms

If you did that, I would be forever in your debt. I seriously spent 5 hours trying to solve this last night (that's half the fun of hacking things) but I'm finally to the end of my rope.



Edited 1 time(s). Last edit at 11/27/2016 04:11PM by november17.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 06:04PM
november17 Wrote:
-------------------------------------------------------
>
> 
> /tmp # uname -a
> Linux PogoplugMobile 2.6.31.8 #4 Tue Aug 23
> 13:00:50 PDT 2011 armv5tel GNU/Linux
> /tmp # ping 8.8.8.8
> PING 8.8.8.8 (8.8.8.8): 56 data bytes
> 64 bytes from 8.8.8.8: seq=0 ttl=46 time=15.129
> ms
> 64 bytes from 8.8.8.8: seq=1 ttl=46 time=13.657
> ms
> 64 bytes from 8.8.8.8: seq=2 ttl=46 time=13.139
> ms
> 64 bytes from 8.8.8.8: seq=3 ttl=46 time=10.741
> ms
> 64 bytes from 8.8.8.8: seq=4 ttl=46 time=11.041
> ms
> 64 bytes from 8.8.8.8: seq=5 ttl=46 time=10.840
> ms
> 64 bytes from 8.8.8.8: seq=6 ttl=46 time=11.581
> ms
> 64 bytes from 8.8.8.8: seq=7 ttl=46 time=11.262
> ms
> 64 bytes from 8.8.8.8: seq=8 ttl=46 time=10.791
> ms
> 64 bytes from 8.8.8.8: seq=9 ttl=46 time=12.483
> ms
> 64 bytes from 8.8.8.8: seq=10 ttl=46 time=11.928
> ms
> 
>
>
> If you did that, I would be forever in your debt.
> I seriously spent 5 hours trying to solve this
> last night (that's half the fun of hacking things)
> but I'm finally to the end of my rope.

Ah, that's good. I'll upload the files when I can get to my server.

-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
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 07:10PM
Thank you so very very much. I really appreciate your assistance.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 10:46PM
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 27, 2016 10:48PM
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 28, 2016 01:56PM
/tmp # tar -xf uboot.2016.05-tld-1.pogo_v4.bodhi.tar
tar: invalid tar magic

Same thing. I wonder if its because the unpacking software is outdated.

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 28, 2016 11:53PM
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 29, 2016 12:03AM
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 29, 2016 02:00AM
/tmp # /tmp/nandwrite /dev/mtd0 /tmp/uboot.2016.05-tld-1.pogo_v4.mtd0.kwb
Input file is not page-aligned. Use the padding option.
Data was only partially written due to error
: Success
/tmp #

Gah. Same error using the file you provided. I think I need to restart from the top. I'm really wondering if its my own user error somehow. The saga continues tomorrow :) I may have some more questions I really hope you don't mind.

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile



Edited 1 time(s). Last edit at 11/29/2016 02:10AM by november17.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 29, 2016 02:54AM
november17,

OK :) power down, power up, boot back into pogo OS as before, and go through whole u-boot installation procedure.

-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 11/29/2016 02:54AM by bodhi.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 29, 2016 02:19PM
/tmp # ls -r
var
uboot.environment
uboot.2016.05-tld-1.pogo_v4.bodhi.tar
uboot.2016.05-tld-1.pogo_v4.bod
uboot.2014.07-tld-1.pogo_v4.bodhi.mtd0.kwb
resolv.conf
nandwrite
nanddump
hbplug.log
fw_setenv
fw_printenv
fw_env.config
flash_erase
file.php?3,file=1236,filename=uboot.2016.05-tld-1.pogo_v4.mtd0.kwb,download=1
file.php?3,file=1236,filename=uboot.2016.05-tld-1.pogo_v4.mtd0.kwb
file.php?3,file=1234,filename=uboot.2016.05-tld-1.environment.bodhi.tar,download=1
file.php?3,file=1233,filename=uboot.2016.05-tld-1.pogo_v4.bodhi.tar,download=1
/tmp #

No way I'm rebooting I cleared the flash. I figured out the problem I think ,though. I just needed to get some sleep. Linux is hard. lol.
^^^


/tmp # /tmp/nandwrite /dev/mtd0 /tmp/file.php?3,file=1236,filename=uboot.2016.05
-tld-1.pogo_v4.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
/tmp #

Bingo, baby. Bingo. You're the man, Bodhi.

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile



Edited 1 time(s). Last edit at 11/29/2016 02:22PM by november17.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 29, 2016 04:20PM
november17 Wrote:
-------------------------------------------------------
>
> /tmp # ls -r
> var
> uboot.environment
> uboot.2016.05-tld-1.pogo_v4.bodhi.tar
> uboot.2016.05-tld-1.pogo_v4.bod
> uboot.2014.07-tld-1.pogo_v4.bodhi.mtd0.kwb
> resolv.conf
> nandwrite
> nanddump
> hbplug.log
> fw_setenv
> fw_printenv
> fw_env.config
> flash_erase
> file.php?3,file=1236,filename=uboot.2016.05-tld-1.
> pogo_v4.mtd0.kwb,download=1
> file.php?3,file=1236,filename=uboot.2016.05-tld-1.
> pogo_v4.mtd0.kwb
> file.php?3,file=1234,filename=uboot.2016.05-tld-1.
> environment.bodhi.tar,download=1
> file.php?3,file=1233,filename=uboot.2016.05-tld-1.
> pogo_v4.bodhi.tar,download=1
> /tmp #
> 
>
>
> No way I'm rebooting I cleared the flash. I
> figured out the problem I think ,though. I just
> needed to get some sleep. Linux is hard. lol.
> ^^^
>
>
> 
> /tmp # /tmp/nandwrite /dev/mtd0
> /tmp/file.php?3,file=1236,filename=uboot.2016.05
> -tld-1.pogo_v4.mtd0.kwb
> Writing data to block 0 at offset 0x0
> Writing data to block 1 at offset 0x20000
> Writing data to block 2 at offset 0x40000
> Writing data to block 3 at offset 0x60000
> /tmp #
> 
>
>
> Bingo, baby. Bingo. You're the man, Bodhi.

Cool! Now you can reboot and deal with the default envs after booted into Debian. Create USB rootfs and boot with it (because the internal default envs are set to boot with USB).

-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
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
November 30, 2016 01:57AM

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

I feel so accomplished :D

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile



Edited 6 time(s). Last edit at 11/30/2016 02:39AM by november17.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
December 01, 2016 09:16PM
I figured out why I was having so much trouble in console. I wasn't logged in. Thats why the tar command wasn't working. I had previously used SSH and didn't have that problem.


~ # login
PogoplugMobile login: root
Password:
login[731]: root login on 'console'
~ #

So, for future reference, on a stock serial console login if there seem to be odd issues with executables not working right, the command is "login"

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
December 01, 2016 09:40PM
november17 Wrote:
-------------------------------------------------------
> I figured out why I was having so much trouble in
> console. I wasn't logged in.

:))

-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
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
December 02, 2016 01:17AM
Just got my third stock PogoPlug Mobile flashed (I bought several of them that I'm going to re-purpose for little projects). I do have to say one of the biggest drawbacks is trying to find the Debian OS in WGETable form since stock WGET only supports HTTP and FTP. I need to find a workaround for that.

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile



Edited 1 time(s). Last edit at 12/02/2016 01:19AM by november17.
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
December 02, 2016 01:35PM
november17 Wrote:
-------------------------------------------------------
> Just got my third stock PogoPlug Mobile flashed (I
> bought several of them that I'm going to
> re-purpose for little projects). I do have to say
> one of the biggest drawbacks is trying to find the
> Debian OS in WGETable form since stock WGET only
> supports HTTP and FTP. I need to find a workaround
> for that.

I know. It is now kind of chichken/egg problem. All the cloud drives and GitHub went https.

I need to ask Jeff for permission to upload files that are greater than 1MB to this site. The new wget size is 2.2MB.

You can solve this now by copying this wget from here to your USB drive or a local network drive:
https://github.com/pepaslabs/pogoplug_static_binaries

-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
Re: Getting error trying to install uboot on pogoplug V4 - already flash erased..help
December 03, 2016 01:35PM
Cool! Thanks!

Quote

"When I was a little boy, I used to pray every night for a new bicycle. Then I realised, the Lord, in his wisdom, doesn't work that way. So I just stole one and asked Him to forgive me." - Emo Phillips

GitHub Profile
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: