Closed
Bug 1155035
Opened 10 years ago
Closed 10 years ago
[Flame KK] Can't perform FOTA from 2.0/2.1 to 2.2
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:2.2+, b2g-v2.0 fixed, b2g-v2.1 fixed, b2g-v2.2 fixed, b2g-master fixed)
People
(Reporter: gchang, Assigned: etsai)
References
Details
Attachments
(7 files)
6.38 KB,
text/x-log
|
Details | |
19.49 KB,
text/x-log
|
Details | |
6.99 KB,
text/plain
|
Details | |
51 bytes,
text/x-github-pull-request
|
seinlin
:
review+
|
Details | Review |
52 bytes,
text/x-github-pull-request
|
seinlin
:
review+
kkuo
:
approval-mozilla-b2g37+
|
Details | Review |
52 bytes,
text/x-github-pull-request
|
kkuo
:
approval-mozilla-b2g32+
|
Details | Review |
52 bytes,
text/x-github-pull-request
|
kkuo
:
approval-mozilla-b2g34+
|
Details | Review |
Trying to upgrade 2.0 to 2.2 using FOTA, but got errors when entering recovery mode.
The errors in recovery mode is "failed to open /sdcard/updates/fota/update.zip (No such file or directory)"
But, the file exists in that directory.
adb shell
root@flame:/ # ls /sdcard/updates/fota/
precomplete
update.zip
STR:
1. Build 2.2 fota image locally and put the image in local server.
2. Flash flame with below build information
Build ID 20150415000204
Gaia Revision 84898cadf28b1a1fcd03b726cff658de470282f0
Gaia Date 2015-04-03 21:42:36
Gecko Revision https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/de92ad41847a
Gecko Version 32.0
Device Name flame
Firmware(Release) 4.4.2
3. Change ota url to local server by using ./change_ota_url.sh in https://github.com/Mozilla-TWQA/B2G-flash-tool
4. Go to Settings > Device information
5. Tap "Check now" button
6. Perform upgrade in notification bar
### Expected:
1. The device should be upgraded to 2.2
### Actual:
1. The device failed to upgrade to 2.2
### Reproduce rate
always
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Got the same error while performing FOTA from 2.1 to 2.2.
Summary: [Flame KK] Can't perform FOTA from 2.0 to 2.2 → [Flame KK] Can't perform FOTA from 2.0/2.1 to 2.2
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
blocking-b2g: --- → 2.2?
Reporter | ||
Comment 4•10 years ago
|
||
2.1 build information is shown below.
Build ID 20150415161202
Gaia Revision bbe983b4e8bebfec26b3726b79568a22d667223c
Gaia Date 2015-04-09 13:52:48
Gecko Revision https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/c54aa1be51d6
Gecko Version 34.0
Device Name flame
Firmware(Release) 4.4.2
Comment 5•10 years ago
|
||
dhylands, would you know what's going on here from the attached log?
Flags: needinfo?(dhylands)
Updated•10 years ago
|
blocking-b2g: 2.2? → 2.2+
Comment 7•10 years ago
|
||
The recovery log says:
I:Update location: /sdcard/updates/fota/update.zip
E:failed to open /sdcard/updates/fota/update.zip (No such file or directory)
which usually means that something about librecovery.so is incorrect or misconfigured.
But it could be other reasons as well.
Flags: needinfo?(dhylands)
Assignee | ||
Comment 8•10 years ago
|
||
After sync with Gerry, he flashed base image 18D then pvt build.
However, pvt build will not flash recovery partition, it's difficult to debug using T2M's recovery image for me. Besides, we can't update using T2M's recovery image without same sign key, so I change the base condition.
I use base image 18D, extract images from pvt build, using flash.sh in 18D with our own recovery image. After download update.mar and reboot, there is black screen and recovery hangs. I think we need to find out why recovery mode from Mozilla doesn't work, then we can go to next step.
Comment 9•10 years ago
|
||
(In reply to Eric Tsai from comment #8)
> After sync with Gerry, he flashed base image 18D then pvt build.
> However, pvt build will not flash recovery partition, it's difficult to
> debug using T2M's recovery image for me. Besides, we can't update using
> T2M's recovery image without same sign key, so I change the base condition.
> I use base image 18D, extract images from pvt build, using flash.sh in 18D
> with our own recovery image. After download update.mar and reboot, there is
> black screen and recovery hangs. I think we need to find out why recovery
> mode from Mozilla doesn't work, then we can go to next step.
The last time I played with recovery on my Flame, it was working flawlessly.
Flags: needinfo?(lissyx+mozillians)
Comment 10•10 years ago
|
||
And I just tested on a self-built recovery from two days ago, no problem to get into recovery mode.
Assignee | ||
Comment 11•10 years ago
|
||
I guess no screen in recovery mode is related with bug 1079318. But now I use recovery.img in v18D_nightly and I can see recovery UI now.
I think we can use v18D_nightly as base image and flash pvt build now to test FOTA.
Comment 12•10 years ago
|
||
> Command: "/sbin/recovery" "--update_package=/storage/sdcard1/updates/fota/update.zip"
The /storage/sdcard1 mountpoint is not what I have when flashing v18D. Using v18D provided by T2M, the recovery command I have is:
> 04-17 13:02:00.718 1690 1690 D librecovery: Rebooting into recovery: --update_package=/storage/sdcard0/updates/fota/update.zip
I don't have any problem applying a FOTA update package for master on top of 2.0, our recovery boots as expected and picksup the update package.
Build target tested was gecko-update-fota.
Comment 13•10 years ago
|
||
And it's fine for me with gecko-update-fota-full too.
Comment 14•10 years ago
|
||
I think you need to start from your own build of 2.0, flash that on the device so you have our librecover.so
Then create a full fota : ( https://wiki.mozilla.org/B2G/Updating#Generating_a_complete_FOTA_update_zip_and_target_files_zip ) and then try to flash that. I don't think an incremental FOTA will work...
Assignee | ||
Comment 16•10 years ago
|
||
Alex, can you share your configuration for FOTA? I've tried:
1) flash v18d_nightly_v2 base image (System recovery <3e> KOT49H test-keys) + my own build update.zip from adb sideload: assertion failed for getprop("ro.build.product"). Skip the assertion check then fail in format data, error message: expects 4 args, got 5. So I stop test here.
2) flash my own 2.0 build boot/recovery/system/data + my own 2.2 build update.zip from adb sideload: no screen but I can sideload by guessing the key sequence. I can sideload and update 2.2 to my flame. Just curious about how can you build recovery correctly.
Comment 17•10 years ago
|
||
(In reply to Eric Tsai from comment #16)
> Alex, can you share your configuration for FOTA? I've tried:
> 1) flash v18d_nightly_v2 base image (System recovery <3e> KOT49H test-keys)
> + my own build update.zip from adb sideload: assertion failed for
> getprop("ro.build.product"). Skip the assertion check then fail in format
> data, error message: expects 4 args, got 5. So I stop test here.
That's expected
>
> 2) flash my own 2.0 build boot/recovery/system/data + my own 2.2 build
> update.zip from adb sideload: no screen but I can sideload by guessing the
> key sequence. I can sideload and update 2.2 to my flame. Just curious about
> how can you build recovery correctly.
My recovery was probably built from master, I don't know the status of v2.0 regarding this.
Assignee | ||
Comment 18•10 years ago
|
||
Update, follow https://developer.mozilla.org/en-US/Firefox_OS/Building#Building_an_official-style_engineering_build the recovery image works for me now.
Assignee | ||
Comment 20•10 years ago
|
||
I think the problem for flame is in librecovery/librecovery.c, convertExternalStoragePath. I guess it uses RECOVERY_EXTERNAL_STORAGE in B2G/device/t2m/flame/BoardConfig.mk:
RECOVERY_EXTERNAL_STORAGE := /storage/sdcard1
to build destPath: "/storage/sdcard1/updates/fota/update.zip"
I change the RECOVERY_EXTERNAL_STORAGE to /storage/sdcard0 then the FOTA works.
Flags: needinfo?(etsai)
Comment 21•10 years ago
|
||
(In reply to Eric Tsai from comment #20)
> I think the problem for flame is in librecovery/librecovery.c,
> convertExternalStoragePath. I guess it uses RECOVERY_EXTERNAL_STORAGE in
> B2G/device/t2m/flame/BoardConfig.mk:
> RECOVERY_EXTERNAL_STORAGE := /storage/sdcard1
> to build destPath: "/storage/sdcard1/updates/fota/update.zip"
> I change the RECOVERY_EXTERNAL_STORAGE to /storage/sdcard0 then the FOTA
> works.
Well, I agree that's something I always found not very cool because it makes you depending on an external sdcard while the device already has internal sdcard memory, but the discusion already took place on this and people wants to stick to /storage/sdcard1/ for this usecase.
Assignee | ||
Comment 22•10 years ago
|
||
Change recovery external storage from /storage/sdcard1 to /storage/sdcard0
Attachment #8597782 -
Flags: review?(kli)
Assignee | ||
Comment 23•10 years ago
|
||
Update device-flame revision from hashtag to "kitkat". Will request approval-mozilla-b2g37 after r+
Attachment #8597783 -
Flags: review?(kli)
Comment 24•10 years ago
|
||
Comment on attachment 8597782 [details] [review]
BoardConfig.mk PR to kitkat
Thanks! LGTM.
Attachment #8597782 -
Flags: review?(kli) → review+
Comment 25•10 years ago
|
||
Comment on attachment 8597783 [details] [review]
flame-kk.xml PR to v2.2
LGTM. Please request approval to land into v2.2. I think v2.0 and v2.1 would also need this fix.
Attachment #8597783 -
Flags: review?(kli) → review+
Assignee | ||
Comment 26•10 years ago
|
||
flame-kk.xml PR for branch v2.0
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): this bug, 1155035
User impact if declined: Developer is unable to flash FOTA package for branch 2.0
Testing completed: Locally verified on branch 2.0
Risk to taking this patch (and alternatives if risky): Low, easy to backout
String or UUID changes made by this patch: none
Attachment #8598388 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Comment 27•10 years ago
|
||
flame-kk.xml PR for branch v2.1
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): this bug, 1155035
User impact if declined: Developer is unable to flash FOTA package for branch 2.1
Testing completed: Locally verified on branch 2.1
Risk to taking this patch (and alternatives if risky): Low, easy to backout
String or UUID changes made by this patch: none
Attachment #8598389 -
Flags: approval-mozilla-b2g34?
Assignee | ||
Comment 28•10 years ago
|
||
Comment on attachment 8597783 [details] [review]
flame-kk.xml PR to v2.2
flame-kk.xml PR for branch v2.2
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): this bug, 1155035
User impact if declined: Developer is unable to flash FOTA package for branch 2.2
Testing completed: Locally verified on branch 2.2
Risk to taking this patch (and alternatives if risky): Low, easy to backout
String or UUID changes made by this patch: none
Attachment #8597783 -
Flags: approval-mozilla-b2g37?
Updated•10 years ago
|
Attachment #8597783 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 29•10 years ago
|
||
Hi! Eric,
Since you are working on this case.
Over to you. Thanks
--
Keven
Assignee: nobody → etsai
Updated•10 years ago
|
Attachment #8598388 -
Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32+
Updated•10 years ago
|
Attachment #8598389 -
Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Comment 30•10 years ago
|
||
kitkat: https://github.com/mozilla-b2g/device-flame/commit/a9f3f8fb8b0844724de32426b7bcc4e6dc4fa2ed
v2.2: https://github.com/mozilla-b2g/b2g-manifest/commit/aee786f8c1c0f6a91aadee41f04737083367ca31
v2.1: https://github.com/mozilla-b2g/b2g-manifest/commit/538526c319248594ab1c8e209d261f488f37a8e2
v2.0: https://github.com/mozilla-b2g/b2g-manifest/commit/68f65c9682d9f40d4b70e55cf741cb798f26b2be
Status: NEW → RESOLVED
Closed: 10 years ago
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S11 (1may)
Comment 31•10 years ago
|
||
This fix causes a regression as bug 1160671. We need to re-land the patch as bug 1160671 comment 9.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 32•10 years ago
|
||
As discussed in bug 1160671, re-land all patches.
kitkat-v2: https://github.com/mozilla-b2g/device-flame/commit/ab265fb203390c70b8f2a054f38cf4b2f2dad70a
v2.2: https://github.com/mozilla-b2g/b2g-manifest/commit/b6d82267f0eabd6c0483c46723554373433d2be5
v2.1: https://github.com/mozilla-b2g/b2g-manifest/commit/5946c7913dcc71c5393bca53ac3c0f7610ba7106
v2.0: https://github.com/mozilla-b2g/b2g-manifest/commit/5d297be7039c9d8b728ffbf8700a0d57c4c4c289
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•10 years ago
|
QA Whiteboard: [COM=OTA]
You need to log in
before you can comment on or make changes to this bug.
Description
•