Le samedi 29 janvier 2011 à 15:08 +0100, Loïc Minier a écrit : 
> Hey!
[...] 
> Before we dive into the fix, let me try to summarize:
>  * original (old) u-boot found in OpenMoko Freerunner flash had a bug
>  * this bug has been fixed, and only people running the original u-boot
>    binary suffer from it

Accurate summary.

> It is also my understanding that the recommended bootloader for
>  Freerunner is Qi and not u-boot.

Well, that's a questionable recommandation.

> The Freerunner appers to still be on sale, are new phones shipped with
>  a broken u-boot?  When users get their Freerunner, do they typically
>  get a firmware update which will flash a new bootloader (Qi or u-boot)?

As far as I know, all GTA02 phones are shipped with a broken u-boot.
This may not be the case with the forthcoming GTA04 model. It should be
a good thing to check before the GTA04 is mass-produced.

When users get their Freerunner (GTA02), they can do whatever they want,
including switching from u-boot to Qi.
However, the "backup" bootloader remains a broken u-boot.

> As I understand it, it's really easy to flash u-boot on a Freerunner,
>  and while it's not something we should be done lightly, it seems to
>  have been done in a relatively safe way, and there is only a little
>  chance that you would brick your hardware.

Indeed. Plus, unless you somehow manage to overwrite the NOR u-boot,
your device isn't really bricked, as you can enter NOR u-boot by holding
AUX while booting.

> My preference would be for Debian to:
>  * communicate on this u-boot bug and point at Qi/updated u-boot
>    binaries and at http://wiki.openmoko.org/wiki/NeoTool to flash it
>    (we should package it?)

We should definitely communicate on this bug somewhere on the OpenMoko
wiki.

> * either provide a standalone mini-image which will just upgrade u-boot
>    to a recent and corrected version

I'm against that, as it is really easy to upgrade NAND u-boot or replace
it by Qi. I don't think we can make it much easier.
Furthermore, the installer should rely on the bootloader that's
available on all GTA02: the u-boot version stored in NOR.

> * or fix installer images for Freerunner to be built using the
>    workaround described in the bug report (padding the image before
>    passing it to mkimage)

It's the easiest, and IMHO, the cleanest way to do this.

> Possibly a third way to address this would be if the Freerunner can
>  load the bootloader from e.g. serial or SD, bypassing the flash one?
>  If that's the case, we could provide installer media using a recent and
>  corrected u-boot.

As far as I know, it can't.

> I'm very much against working around bugs in old u-boot binaries
>  permanently in mkimage, and I don't think there is any chance of
>  upstream taking such a patch; even less so with a new command-line
>  flag.  We could also have a trivial freerunner-mkimage wrapper
>  achieving the same thing, but again, I very much dislike these options.

I can understand that, and indeed, upstream is not keen on accepting
such a workaround.
I don't have a strong opinion on a freerunner-mkimage wrapper, but it
isn't needed if we fix the really specific images we need boot.

So, I guess this bug should be closed, and worked around in the really
specific places we need to.

Regards,
Thibaut Girka.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to