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)
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.
Reporter | ||
Comment 1•11 years ago
|
||
here's the bug for modifying ./flash.sh to do the gaia flash correctly for hamachi devices.
Flags: needinfo?(nhirata.bugzilla)
Assignee | ||
Comment 2•11 years ago
|
||
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)
Assignee | ||
Comment 3•11 years ago
|
||
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
Assignee | ||
Updated•11 years ago
|
Attachment #803434 -
Flags: review?(mwu)
Comment 4•11 years ago
|
||
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?
Reporter | ||
Comment 5•11 years ago
|
||
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)
Comment 6•11 years ago
|
||
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
Comment 7•11 years ago
|
||
(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.
Comment 8•11 years ago
|
||
The important bit is [1]
[1] https://github.com/julienw/config-files/blob/master/gf#L69-L71
Assignee | ||
Comment 9•11 years ago
|
||
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)
Assignee | ||
Comment 10•11 years ago
|
||
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.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(mwu)
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
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 13•11 years ago
|
||
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+
Assignee | ||
Comment 14•11 years ago
|
||
Pushed to B2G/master:
https://github.com/mozilla-b2g/B2G/commit/9b073c720960c39820a4fd7e44a394171c060a41
Flags: needinfo?(mwu)
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•11 years ago
|
||
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.
Description
•