Welcome! Log In Create A New Profile

Advanced

How do i recover from this.......

Posted by Gravelrash 
How do i recover from this.......
February 24, 2015 03:06PM
I will be using this to build an image for a user on here.....

Good News / Bad News time

Good News
I can serial console to the unit and extract the settings listed below. it appears to be running the later uboot
U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:52:18)
Pogo E02


Bad News
The env settings seem to be all over the place and are attached to this post - what can be seen on the console is the following, which is a good start


U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:52:18)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Unknown command '‘run' - try 'help'
PogoE02>



can anyone offer a simple solution to input a set of env statements from the console that will allow me to boot a debian stick from which i can then reflash all the settings to get this working again??

I guestimate it will be something like the following, however it doesn't work.
usb reset
setenv bootargs root=/dev/sda1 rw rootwait mtdparts=orion_nand:1M(u-boot),-(rootfs)
load usb 0:1 0x810000 /boot/uImage
bootm 0x810000

The debian stick outputs the following
PogoE02>  usb reset
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
PogoE02>              setenv bootargs root=/dev/sda1 rw rootwait mtdparts=orion_nand:1M(u-boot),-(rootfs)
PogoE02>  load usb 0:1 0x810000 /boot/uImage
2832460 bytes read in 300 ms (9 MiB/s)
PogoE02>              bootm 0x810000
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-3.17.0-kirkwood-tld-1
   Created:      2015-02-23  19:46:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2832396 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Then just sits there doing nothing.

An Arch stick outputs the following before
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
PogoE02>              setenv bootargs root=/dev/sda1 rw rootwait mtdparts=orion_nand:1M(u-boot),-(rootfs)
PogoE02>  load usb 0:1 0x810000 /boot/uImage
4054464 bytes read in 325 ms (11.9 MiB/s)
PogoE02>  bootm 0x810000
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-3.19.0-1-ARCH
   Created:      2015-02-10   4:56:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4054400 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Then sits there doing nothing

The env settings look to be a mashup of both Arch and Bodhi settings and i dont have the knowledge to correct this on my own, it would be a shame to consign a Pogo to the bin when what looks like an environment variable mashup that COULD be sorted.

============================
Breaking stuff since 1994 :-)
============================



Edited 2 time(s). Last edit at 02/25/2015 07:07AM by Gravelrash.
Attachments:
open | download - Env-settings (1.6 KB)
Re: How do i recover from this.......
February 24, 2015 03:15PM
@Gravelrash,

> The env settings look to be a mashup of both Arch
> and Bodhi settings

:)) It happens!

Use this to reset the envs to a default state in serial console:
http://forum.doozan.com/read.php?3,18105,18124#msg-18124

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How do i recover from this.......
February 24, 2015 03:27PM
Bodhi, THANKYOU for the link, i will attempt this tomorrow and if all goes well i will rejoice in the knowledge of another Pogo saved from the parts bin.
Re: How do i recover from this.......
February 25, 2015 01:45PM
@ "Mr Bodhi"

Thankyou!!

Ii now have the unit up and running again - its not a pain i would like to go through too often tho....

as i type this i am prepping the image for the keen new user of the forum.

Gravelrash
Re: How do i recover from this.......
February 25, 2015 02:38PM
@Gravelrash,

Please don't be offended if my questions sound like I'm against the idea of an image for noobs (or even doubting your technical ability). I'm agnostic on this. IMO, I think people who starts hacking Linux should at least learn how to create a bootable rootfs with tar, fdisk,.. commands on Live CD, or a Ubuntu box. OTOH, I understood the appeal of the rPi community approach with an image.

- Have you thought through the issues of different versions of u-boots on a given box?
- An image can only target a specific box such as Pogo E02, Pog V4,.... To make it Kirkwood-wide, it will require a modern u-boot and scripting. Are you planing to create an installation script?

Just food for thought. It's not an argument against the idea.

PS.

Also, I should mention that davygravy already has released an image (older kernel version and less number of Kirkwood boxes support). Perhaps that could serve as an idea in this.

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



Edited 1 time(s). Last edit at 02/25/2015 02:51PM by bodhi.
Re: How do i recover from this.......
February 25, 2015 03:25PM
@Bodhi

Im far far from offended at you comments. I totally agree with you when you indicate that the best practice would be for the user to go through the learning curve, i imagine that at some time or other all of us have been through it.

My intention is to offer help to an obviously keen and lesser skilled linux user than I in the most altruistic of fashions, in that, this forum has offered me so much help and support, that if i can offer a "helping hand" to someone else then karma demands it.

It will definitely be aimed solely at one particular box the Pogov2 with the 2014* uboot. the image would include in an installation directory with the binaries/software tools necessary to upgrade the uboot to this level (taken from the arch install routinet). Without an installation script to do the work for them. From what i can gather arch to debian seems to be the way users on here go. (personally i run 4 different distros on my devices as each distro has its pro's and cons)

I dont have the time or resources to make anything more than a "one off" and certainly wont be taking it to the level or the Rpi! Much as i would want to :)
Re: How do i recover from this.......
February 25, 2015 03:38PM
Gravelrash,

> if i can
> offer a "helping hand" to someone else then karma
> demands it.

Tip of the hat!

> It will definitely be aimed solely at one
> particular box the Pogov2 with the 2014* uboot.

I think this specific target is good (as widely used as the V4/mobile, if not more so), and achievable without too much effort.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How do i recover from this.......
February 27, 2015 06:11PM
@bodhi

Do you have a link to the image and install routine issued by davygravy. I'd like a look.
Re: How do i recover from this.......
February 27, 2015 06:39PM
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: