Closed Bug 915034 Opened 11 years ago Closed 11 years ago

land flash.sh patches to fix gaia flash for hamachi

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: huseby, Assigned: nhirata)

Details

Attachments

(2 files)

running ./flash.sh gaia on a hamachi device sometimes breaks things. :nhirata and :mwu worked out a script that flashes gaia correctly for the hamachi. let's modify the main flash.sh script so that it does things correctly.
here's the bug for modifying ./flash.sh to do the gaia flash correctly for hamachi devices.
Flags: needinfo?(nhirata.bugzilla)
Attached file fullflash_gecko_ril_gaia.sh (deleted) —
The fullflash script is something that mwu and I spent time troubleshooting to get gaia to flash and work at the end. We would want to take the gaia flashing part from this and apply it to the flash script.
Flags: needinfo?(nhirata.bugzilla)
Attached file 275.html (deleted) —
Found out there's no need to use the stuff in the fullflash script. A quick change to do reset-gaia should do the trick. I did a test to make sure it works. Having said that, I think we need to follow up and figure out why install-gaia is having issues. Filed bug 915484
Hmm, this would destroy data, which is a bit scary but probably acceptable. I think the core problem is that gaia flashes to /data by default, but normal builds (like vendor builds) always puts gaia in /system. If gaia is installed to both places, things break. The ideal solution would probably be to always install gaia to /system by default. Do gaia developers need to install to /data?
Assigning this to Naoki since he's working on it. Naoki, the ball is in your court.
Assignee: nobody → nhirata.bugzilla
Status: NEW → ASSIGNED
Flags: needinfo?(nhirata.bugzilla)
My flashing script in [1] finds if my device is in production or in eng mode, and will flash in the correct location. Might be a good idea to do this in our build system ? [1] https://github.com/julienw/config-files/blob/master/gf
(In reply to Julien Wajsberg [:julienw] from comment #6) > My flashing script in [1] finds if my device is in production or in eng > mode, and will flash in the correct location. > > Might be a good idea to do this in our build system ? > > [1] https://github.com/julienw/config-files/blob/master/gf Just doing the right thing is definitely preferred here. It looks like your script does the right thing, from a quick glance. Anybody want to put that logic in the gaia flash code? Putting it in gaia makes it work for people flashing from either flash.sh or the gaia directory.
Whoa, Julien. Thanks for the script... I'll look at both and see if I can fix it up tonight if no one else gets to it today.
Flags: needinfo?(nhirata.bugzilla)
julienw, did you want me to merge the optimize and the other stuff? I can do that, I think we should file a separate bug. mwu, I squashed stuff down, and I think I'm ready for a review.
Flags: needinfo?(mwu)
I removed the production=1 as it wasn't needed for the flash.sh; (I had pulled all the production=1 stuff into one if from julien's script) I gave it a quick test again just to be certain for a production and dev version of gaia (flash.sh gaia) just to be certain. Both worked as expected.
Comment on attachment 803434 [details] 275.html This logic belongs on the gaia side, but this is better than before and hacking a shell script into makefiles is a bit awkward.
Attachment #803434 - Flags: review?(mwu) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I'll relook at putting the logic into the Makefile in gaia instead in Bug 915484
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: