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.
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.
(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 :)
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
Created attachment 8338419 [details] WIP helper OTA script v4 Factored, tested, and starts HTTP server if none.
Attachment #8336073 - Attachment is obsolete: true
Created attachment 8338483 [details] WIP helper OTA script v5 Ensure remount when reverting config
Attachment #8338419 - Attachment is obsolete: true
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
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
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.