Closed
Bug 1095380
Opened 10 years ago
Closed 10 years ago
Unable to apply FOTA on v188
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: gerard-majax, Unassigned)
References
Details
(Keywords: regression)
Attachments
(2 files)
STRs:
0. Flash v188
1. Do your own build, and flash. (boot.img, userdata.img, system.img)
2. Build Gecko/Gaia MAR:
$ ./build.sh gecko-update-fota
3. Apply:
$ python tools/update-tools/test-update.py
out/target/product/flame/fota-flame-update.mar
4. Gecko will reboot, detect an OTA. Apply.
Expected:
It reboots in recovery mode and applies update.
Actual:
It reboots in recovery mode and fails to apply the update.
My device only has the internal sdcard.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
> $ adb shell ls -al /storage/sdcard0/updates/fota/update.zip
> -rwxrwxr-x root sdcard_rw 62957810 2014-11-07 09:40 update.zip
Any idea why we send a /storage/sdcard1/ when triggering the recovery mode ?
Flags: needinfo?(gsvelto)
Flags: needinfo?(dhylands)
Reporter | ||
Comment 4•10 years ago
|
||
I suspect this is coming from librecovery ...
Reporter | ||
Comment 5•10 years ago
|
||
Forcing librecovery to use /storage/sdcard0/ I'm blocked because v188 has not the proper keys.
Flags: needinfo?(wehuang)
Comment 6•10 years ago
|
||
Yeah - librecovery does the mapping to the path used.
So it may depend on whether you're using the librecovery that comes with the base image, or the one which we build.
The one we build is only flashed if you do a full flash. If you do a shallow flash (or just OTA updates), the I don't think that librecovery is changed.
Flags: needinfo?(dhylands)
Comment 7•10 years ago
|
||
The /storage/sdcard1 mount point comes from the BoardConfig.mk file, see here:
https://github.com/mozilla-b2g/device-flame/blob/3e9d023ceead45b4abab535cf26243e640bfcda8/BoardConfig.mk#L17
It's picked up here:
https://github.com/mozilla-b2g/librecovery/blob/acd2abcd2114710e9bd87453218eba6ddcb0a314/librecovery.c#L158
Maybe I'm confused, but hadn't we discussed already of using our own recovery image wherever possible? I'm horribly short on sleep today so my memory is not at its best. Still, we can flash our self-built recovery image via fastboot like we did on the Hamachi and move forward from there, right?
Flags: needinfo?(gsvelto)
Reporter | ||
Comment 8•10 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #7)
> The /storage/sdcard1 mount point comes from the BoardConfig.mk file, see
> here:
>
> https://github.com/mozilla-b2g/device-flame/blob/
> 3e9d023ceead45b4abab535cf26243e640bfcda8/BoardConfig.mk#L17
>
> It's picked up here:
>
> https://github.com/mozilla-b2g/librecovery/blob/
> acd2abcd2114710e9bd87453218eba6ddcb0a314/librecovery.c#L158
Yep, but this means that we expect to use the *external* sdcard, which is optionnal. Is this really what we want ?
>
> Maybe I'm confused, but hadn't we discussed already of using our own
> recovery image wherever possible? I'm horribly short on sleep today so my
> memory is not at its best. Still, we can flash our self-built recovery image
> via fastboot like we did on the Hamachi and move forward from there, right?
We cannot: see bug 1067005, when we build ourselves on KK it does not boots properly.
So yes, we should be able to use our own recovery, but for now it does not work, and nobody seems to be working on this for now.
Flags: needinfo?(gsvelto)
Comment 9•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #8)
> Yep, but this means that we expect to use the *external* sdcard, which is
> optionnal. Is this really what we want ?
We've seen FOTA being used to flash images from the SD-card so it's probably a reasonable default (i.e. you don't need adb access to upload the FOTA image, you load it on the card from another machine/device). It's inconvenient for the use-case where you download the image since then you'd need an SD-card in order to upgrade.
> We cannot: see bug 1067005, when we build ourselves on KK it does not boots
> properly.
> So yes, we should be able to use our own recovery, but for now it does not
> work, and nobody seems to be working on this for now.
We can't really do much then without help from the vendor :-( Who's in charge of keeping us in touch with T2M?
Flags: needinfo?(gsvelto)
Comment 10•10 years ago
|
||
Hi Alexandre, and Gabriele:
Sorry for catching up late, would you help me understand more about the need for Flame's vendor (T2M)? My last update is like mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1084041#c14, that T2M has provided some suggestion for the "can't mount SD card" issue w/ our own build.
Updated•10 years ago
|
Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(gsvelto)
Reporter | ||
Comment 11•10 years ago
|
||
(In reply to Wesly Huang from comment #10)
> Hi Alexandre, and Gabriele:
>
> Sorry for catching up late, would you help me understand more about the need
> for Flame's vendor (T2M)? My last update is like mentioned in
> https://bugzilla.mozilla.org/show_bug.cgi?id=1084041#c14, that T2M has
> provided some suggestion for the "can't mount SD card" issue w/ our own
> build.
We need to fix building a working recovery ourselves.
Flags: needinfo?(lissyx+mozillians)
Comment 12•10 years ago
|
||
As Alexandre said the current recovery partition doesn't fit the bill and we have to build one ourselves instead.
Flags: needinfo?(gsvelto)
Comment 13•10 years ago
|
||
Thanks Alexandre, and Gabriele, then please let me know if any support needed from vendor then I will follow.
Reporter | ||
Comment 14•10 years ago
|
||
(In reply to Wesly Huang from comment #13)
> Thanks Alexandre, and Gabriele, then please let me know if any support
> needed from vendor then I will follow.
It's probably viral that you should ask for what he needs from vendor. I hacked recovery in the JB days, but I don't have time right now to hack it.
Flags: needinfo?(wehuang)
Flags: needinfo?(vwang)
Updated•10 years ago
|
Flags: needinfo?(whuang)
Reporter | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Updated•10 years ago
|
Flags: needinfo?(whuang)
Comment 15•10 years ago
|
||
I think this question is same as https://bugzilla.mozilla.org/show_bug.cgi?id=1067005#c11
remove ni here and keep the ni in bug 1067005.
So far I still can not build our own recovery image with latest code. (it works in preview version)
Need some feedback from partner.
Flags: needinfo?(vwang)
Comment 16•10 years ago
|
||
clear my ni as this is followed by bug 1067005 which is fixed now.
Flags: needinfo?(wehuang)
You need to log in
before you can comment on or make changes to this bug.
Description
•