Closed Bug 1015113 Opened 11 years ago Closed 10 years ago

[Flame] Build bootloader

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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)

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.
Michael, should we fork their kernel_lk repo on our side ?
Flags: needinfo?(mwu)
Sure, if you think we'll want to make our own local changes.
Flags: needinfo?(mwu)
(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.
Attached file Manifest update
Please find attached a link to the github pull request that adds the new project in the manifest.
Attachment #8430035 - Flags: review?(mwu)
Attached file Device update (obsolete) —
Please find attached a link to the github pull request that triggers the building of the bootloader.
Attachment #8430038 - Flags: review?(mwu)
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 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+
Whiteboard: [systemsfe]
(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)
You should be good to go.
Flags: needinfo?(mwu)
Depends on: 1050267
Blocks: 1050267
No longer depends on: 1050267
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)
Target Milestone: --- → 2.1 S4 (12sep)
Michael, do you have some time to review this?
Flags: needinfo?(mwu)
Comment on attachment 8482615 [details] [review] KK Device update: building bootloader Review comments on PR.
Attachment #8482615 - Flags: review?(mwu)
Flags: needinfo?(mwu)
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)
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)
(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.
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)
Attachment #8488998 - Flags: review?(mwu)
Attachment #8488999 - Flags: review?(mwu)
Attachment #8482615 - Attachment description: JB Device update: building bootloader → KK Device update: building bootloader
Attachment #8489000 - Flags: review?(mwu)
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.
Attachment #8482615 - Flags: review?(mwu) → review+
Attachment #8488998 - Flags: review?(mwu) → review+
Attachment #8488999 - Flags: review?(mwu) → review+
Comment on attachment 8489000 [details] [review] JB Device update: building bootloader Everything looks good, thanks!
Attachment #8489000 - Flags: review?(mwu) → review+
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.

Attachment

General

Creator:
Created:
Updated:
Size: