[Dogfood] OTA helper script

RESOLVED WONTFIX

Status

Firefox OS
General
RESOLVED WONTFIX
5 years ago
3 years ago

People

(Reporter: gerard, Assigned: gerard)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 5 obsolete attachments)

(Assignee)

Description

5 years ago
For easier and smoother Gecko/Gaia derivatives frequent dogfooding updates I have been working on a small shell script that aims at building a MAR update package, and making it usable by the phone. Especially, I hope that this avoids the constant reset-gaia step.

For now, this still relies on a couple of manual steps:
 - have an Ad-Hoc "B2G_UpdateTest" WiFi network configured on your laptop, frequency 2.412GHz
 - have B2G_UPDATER=1 and VARIANT=userdebug in .userconfig, to get Gecko and Gaia into the MAR package
 - build gecko
 - create a _b2g_updates/ subdir in your B2G dir, and have it served by an HTTP server

The script will take care of:
 - building the MAR package
 - create a channel in the _b2g_updates/ directory
 - prepare a wpa_supplicant config for the update process
 - changes pref.js to point to your update server
 - pushing the wpa supplicant config
 - stopping and starting b2g

WiFi should connect and the update process should start.
(Assignee)

Updated

5 years ago
Assignee: nobody → lissyx+mozillians
(Assignee)

Comment 1

5 years ago
Created attachment 825947 [details]
WIP helper OTA script

Please find attached a WIP script.
(Assignee)

Comment 2

5 years ago
Created attachment 825973 [details]
WIP helper OTA script v2

\o/ I could push an OTA update this way
Attachment #825947 - Attachment is obsolete: true
In a dream world we would get mar packages from try builds, and a mime handler for .mar that let us install them just by linking.
(Assignee)

Comment 4

5 years ago
(In reply to Fabrice Desré [:fabrice] from comment #3)
> In a dream world we would get mar packages from try builds, and a mime
> handler for .mar that let us install them just by linking.

That would be a much more awesome way :)
(Assignee)

Comment 5

5 years ago
Created attachment 8336073 [details]
WIP helper OTA script v3

Should restore WiFi and prefs once the update is done, and also provide a way to not use Ad-Hoc WiFi network (still default).
Attachment #825973 - Attachment is obsolete: true
(Assignee)

Comment 6

5 years ago
Created attachment 8338419 [details]
WIP helper OTA script v4

Factored, tested, and starts HTTP server if none.
Attachment #8336073 - Attachment is obsolete: true
(Assignee)

Comment 7

5 years ago
Created attachment 8338483 [details]
WIP helper OTA script v5

Ensure remount when reverting config
Attachment #8338419 - Attachment is obsolete: true
(Assignee)

Comment 8

5 years ago
There are still two issues:
 - script has to be copied to your B2G/ folder
 - if there is already an http server binding but not serving our directory, it might fail
(Assignee)

Comment 9

5 years ago
Created attachment 8339314 [details]
WIP helper OTA script v6

This version should automate as much as possible, and avoid failing because of a previously running server on the same port.

User now just have to:
 - go force an update checking
 - trigger download
 - trigger install

Everything else is handled by the script. Worked very well on my Inari.
Attachment #8338483 - Attachment is obsolete: true
(Assignee)

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.