uphpmvault & ubootimage

View: New views
4 Messages — Rating Filter:   Alert me  

uphpmvault & ubootimage

by Marc Singer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm in a quandry.  Let me saw, first off, that it would be helpful to
get a sample recovery image.  Eugene, do you have one?  I can arrange
a place for you to copy it, if that helps.

I've written a program (or rather rewritten one I wrote before) to
build uboot images.  It has an option to pad out images within a
multi-image to allow for the alignment of sub-images.  It is useful
for testing out the recovery mode.

I've been successful in building a multi image that starts the kernel.
The ordinary uImages have a load/entry-point of 0x8000.  We cannot use
this for the recovery image because u-boot will clobber itself when it
moves the image.  It will execute the kernel if we change the
load/entry-point to 0x400000, which also happens to be the load
address for the recovery image.

I haven't yet gotten the recipe right to get u-boot to pass a
recognizable initrd image to the kernel.  I have a few more
combinations to try.

The hardest part is that I cannot test the recovery mode because my MV
won't recognize the special-hold-the-button-mode.  I look forward to
hearing how well it works for you.

BTW, I discovered a small bug in uphpmvault.  If you start the
recovery process on the device without first running DHCP, and the
uphpmvault program sees a beacon from the MV that has no IP address,
it will not start the tftp process when the MV *does* get an IP
address.  In this case, you'll have to kill the uphpmvault program and
restart it.

Cheers.



--
To UNSUBSCRIBE, email to debian-arm-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: uphpmvault & ubootimage

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Marc Singer <elf@...> [2008-06-20 20:32]:
> The hardest part is that I cannot test the recovery mode because my MV
> won't recognize the special-hold-the-button-mode.  I look forward to
> hearing how well it works for you.

I haven't tried recently but from earlier tests I seem to recall that
the machine would often ignore my button presses.  It seems it doesn't
wait very long to see if a button is pressed or something.

What I did was to slide out the hard drive.  If u-boot fails to boot
from disk, it will attempt to obtain a rescue image over the net.

--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-arm-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: uphpmvault & ubootimage

by Marc Singer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jun 21, 2008 at 10:15:35AM +0200, Martin Michlmayr wrote:

> * Marc Singer <elf@...> [2008-06-20 20:32]:
> > The hardest part is that I cannot test the recovery mode because my MV
> > won't recognize the special-hold-the-button-mode.  I look forward to
> > hearing how well it works for you.
>
> I haven't tried recently but from earlier tests I seem to recall that
> the machine would often ignore my button presses.  It seems it doesn't
> wait very long to see if a button is pressed or something.
>
> What I did was to slide out the hard drive.  If u-boot fails to boot
> from disk, it will attempt to obtain a rescue image over the net.

...and then you do a hot-plug of the driver before the intaller runs?


>
> --
> Martin Michlmayr
> http://www.cyrius.com/
>


--
To UNSUBSCRIBE, email to debian-arm-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: uphpmvault & ubootimage

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Marc Singer <elf@...> [2008-06-21 07:36]:
> > What I did was to slide out the hard drive.  If u-boot fails to boot
> > from disk, it will attempt to obtain a rescue image over the net.
> ...and then you do a hot-plug of the driver before the intaller runs?

I just looked at the u-boot sources again and you have to press the
reset and button button at the same time.  And you have to do it
immediately after starting the machine, otherwise it's too late.

--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-arm-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

LightInTheBox - Buy quality products at wholesale price