Closed
Bug 1015113
Opened 11 years ago
Closed 10 years ago
[Flame] Build bootloader
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
(Whiteboard: [systemsfe])
Attachments
(5 files, 1 obsolete file)
52 bytes,
text/x-github-pull-request
|
mwu
:
review+
|
Details | Review |
51 bytes,
text/x-github-pull-request
|
mwu
:
review+
|
Details | Review |
47 bytes,
text/x-github-pull-request
|
mwu
:
review+
|
Details | Review |
47 bytes,
text/x-github-pull-request
|
mwu
:
review+
|
Details | Review |
51 bytes,
text/x-github-pull-request
|
mwu
:
review+
|
Details | Review |
The Flame's bootloader can be built from source, and it seems to be producing a working bootloader.
> $ fastboot oem mem
> ...
> (bootloader) Usage: fastboot oem mem capacity
> (bootloader) capcity should between 128 and 1024, 0 for auto detection
> FAILED (remote: unknown reason)
> finished. total time: 0.003s
This way I could hack the bootloader and make it able to set memory to 128M.
The remote to use is git://github.com/t2m-foxfone/kernel_lk, branch foxfone-one. It should be checked out in bootable/bootloader/lk. Then setting TARGET_NO_BOOTLOADER to false, it gets built.
Assignee | ||
Comment 1•11 years ago
|
||
Michael, should we fork their kernel_lk repo on our side ?
Flags: needinfo?(mwu)
Comment 2•11 years ago
|
||
Sure, if you think we'll want to make our own local changes.
Flags: needinfo?(mwu)
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #2)
> Sure, if you think we'll want to make our own local changes.
Well we can already fix the fastboot oem mem command, I do have it locally. However, I cannot fork in the mozilla-b2g account.
Assignee | ||
Comment 4•11 years ago
|
||
Please find attached a link to the github pull request that adds the new project in the manifest.
Attachment #8430035 -
Flags: review?(mwu)
Assignee | ||
Comment 5•11 years ago
|
||
Please find attached a link to the github pull request that triggers the building of the bootloader.
Attachment #8430038 -
Flags: review?(mwu)
Comment 6•11 years ago
|
||
Comment on attachment 8430038 [details] [review]
Device update
I think we can just remove this line altogether. See if you can do that. If not, this is fine.
Attachment #8430038 -
Flags: review?(mwu) → review+
Comment 7•11 years ago
|
||
Comment on attachment 8430035 [details] [review]
Manifest update
Make sure this repo is mirrored to git.mozilla.org before merging. We may also need releng to add support for a new remote, since they replace all remotes with remotes pointing to git.mozilla.org mirrors.
Attachment #8430035 -
Flags: review?(mwu) → review+
Updated•11 years ago
|
Whiteboard: [systemsfe]
Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #7)
> Comment on attachment 8430035 [details] [review]
> Manifest update
>
> Make sure this repo is mirrored to git.mozilla.org before merging. We may
> also need releng to add support for a new remote, since they replace all
> remotes with remotes pointing to git.mozilla.org mirrors.
Michael, I've updated the references in my PR to match the new repos. Are we good to go or do we need bits from releng?
Flags: needinfo?(mwu)
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 11•10 years ago
|
||
Michael, I finally found some time to fix the remaining bit that was blocking landing the building of the bootloader. Mainly, we need a version.inc file that contains the bootloader version.
I've hacked the extract-files.sh script to pull it at the same time than blobs.
So far, after building, this seems to be okay:
> alex@portable-alex:~/codaz/Mozilla/b2g/devices/Flame/B2G.KK$ ls out/target/product/flame/emmc_appsboot.mbn
> -rw-r--r-- 1 alex alex 273K sept. 2 11:06 out/target/product/flame/emmc_appsboot.mbn
> alex@portable-alex:~/codaz/Mozilla/b2g/devices/Flame/B2G.KK$ ls ../images/v166/emmc_appsboot.mbn
> -rw-r--r-- 1 alex alex 273K août 28 17:04 ../images/v166/emmc_appsboot.mbn
> alex@portable-alex:~/codaz/Mozilla/b2g/devices/Flame/B2G.KK$ md5sum ../images/v166/emmc_appsboot.mbn
> e2bcbb84cba12d890fe44c2050c58a37 ../images/v166/emmc_appsboot.mbn
> alex@portable-alex:~/codaz/Mozilla/b2g/devices/Flame/B2G.KK$ md5sum out/target/product/flame/emmc_appsboot.mbn
> e2bcbb84cba12d890fe44c2050c58a37 out/target/product/flame/emmc_appsboot.mbn
I get the very same md5 for the rebuilt bootloader compared to the one from the v166 base image.
How do we coordinate for updating the backup-flame directory to avoid breaking builds for pvtbuilds?
Attachment #8430038 -
Attachment is obsolete: true
Attachment #8482615 -
Flags: review?(mwu)
Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 2.1 S4 (12sep)
Assignee | ||
Comment 12•10 years ago
|
||
Michael, do you have some time to review this?
Flags: needinfo?(mwu)
Comment 13•10 years ago
|
||
Comment on attachment 8482615 [details] [review]
KK Device update: building bootloader
Review comments on PR.
Attachment #8482615 -
Flags: review?(mwu)
Flags: needinfo?(mwu)
Assignee | ||
Comment 14•10 years ago
|
||
Thanks. I've replied there, but I'm unsure for the bootloader version: I noticed this was reflecting/linked to the baseimage version, so is hardcoding it such a good idea?
Flags: needinfo?(mwu)
Comment 15•10 years ago
|
||
If it's being updated with every base image update, then it's not really useful. Maybe we can disable reporting the bootloader version when doing our own builds? I'm guessing this might be used for FOTA updates, but those aren't particularly meaningful if you've reflashed everything yourself.
Flags: needinfo?(mwu)
Assignee | ||
Comment 16•10 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #15)
> If it's being updated with every base image update, then it's not really
> useful. Maybe we can disable reporting the bootloader version when doing our
> own builds? I'm guessing this might be used for FOTA updates, but those
> aren't particularly meaningful if you've reflashed everything yourself.
We can do this, yes.
Assignee | ||
Comment 17•10 years ago
|
||
Comment on attachment 8482615 [details] [review]
KK Device update: building bootloader
Just switching on the bootloader building.
Attachment #8482615 -
Attachment description: Device update with bootloader version pull → JB Device update: building bootloader
Attachment #8482615 -
Flags: review?(mwu)
Assignee | ||
Comment 18•10 years ago
|
||
Attachment #8488998 -
Flags: review?(mwu)
Assignee | ||
Comment 19•10 years ago
|
||
Attachment #8488999 -
Flags: review?(mwu)
Assignee | ||
Updated•10 years ago
|
Attachment #8482615 -
Attachment description: JB Device update: building bootloader → KK Device update: building bootloader
Assignee | ||
Comment 20•10 years ago
|
||
Attachment #8489000 -
Flags: review?(mwu)
Assignee | ||
Comment 21•10 years ago
|
||
Michael, this should match your review:
- we stop including the version.inc when building the bootloader
- we just turn off bootloader build disabling
The kernel_lk patches must be merged BEFORE the device update ones.
Updated•10 years ago
|
Attachment #8482615 -
Flags: review?(mwu) → review+
Updated•10 years ago
|
Attachment #8488998 -
Flags: review?(mwu) → review+
Updated•10 years ago
|
Attachment #8488999 -
Flags: review?(mwu) → review+
Comment 22•10 years ago
|
||
Comment on attachment 8489000 [details] [review]
JB Device update: building bootloader
Everything looks good, thanks!
Attachment #8489000 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 23•10 years ago
|
||
Assignee | ||
Comment 24•10 years ago
|
||
Assignee | ||
Comment 25•10 years ago
|
||
Looks like everything is okay now for this bug.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•