Closed
Bug 1207568
Opened 9 years ago
Closed 9 years ago
Non booting system when using Nexus 5 L blobfree
Categories
(Firefox OS Graveyard :: B2gInstaller, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
Attachments
(1 file)
STR:
0. Grab a Nexus 5 Lollipop user build (B, not Be on TaskCluster)
1. Flash the blobfree system with the addon
Expected:
Device boots
Actual:
Device does not boots
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → lissyx+mozillians
Assignee | ||
Comment 1•9 years ago
|
||
Flashing full nexus-5-l user build works.
Assignee | ||
Comment 2•9 years ago
|
||
Flashing nexus-5-l user boot partition, device still does not boot.
Assignee | ||
Comment 3•9 years ago
|
||
Flashing nexus-5-l user system partition device boots.
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #3)
> Flashing nexus-5-l user system partition device boots.
The only difference I could spot was:
- recovery-from-boot.p
- bin/install-recovery.sh
Both are not present on the system partition that boots. But are present on the non booting one.
On a system partition built by the addon, once removed the previous recovery stuff, there is still a 4KB difference:
> sending 'system' (303792 KB)...
When the image ready to flash from nexus-5-l.zip:
> sending 'system' (303796 KB)...
Assignee | ||
Comment 5•9 years ago
|
||
On build system:
> make_ext4fs -s -T -1 -S out/target/product/hammerhead/root/file_contexts -l 1073741824 -a system out/target/product/hammerhead/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/hammerhead/system
> Creating filesystem with parameters:
> Size: 1073741824
> Block size: 4096
> Blocks per group: 32768
> Inodes per group: 8192
> Inode size: 256
> Journal blocks: 4096
> Label:
> Blocks: 262144
> Block groups: 8
> Reserved block group size: 63
> Created filesystem with 1103/65536 inodes and 79781/262144 blocks
In addon:
> -s -l 1073741824 -a system
> Creating filesystem with parameters:
> Size: 1073741824
> Block size: 4096
> Blocks per group: 32768
> Inodes per group: 8192
> Inode size: 256
> Journal blocks: 4096
> Label:
> Blocks: 262144
> Block groups: 8
> Reserved block group size: 63
> Created filesystem with 1104/65536 inodes and 79781/262144 blocks
Assignee | ||
Comment 6•9 years ago
|
||
So this is because we do not push the file_contexts for SELinux. Rebuilding by hand a system image with and without, I do reproduce 100%.
Blocks: aries-l
Assignee | ||
Comment 7•9 years ago
|
||
Works on Linux, but we may have a problem with the hacked make_ext4fs on Mac ...
Attachment #8664875 -
Flags: review?(dale)
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8664875 [details] [review]
B2G Installer PR
ok that might be failing to build userdata partition
Attachment #8664875 -
Flags: review?(dale)
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #8)
> Comment on attachment 8664875 [details] [review]
> B2G Installer PR
>
> ok that might be failing to build userdata partition
When calling make_ext4fs we are passing "-a userdata" but file_contexts seems to define "data" and not "userdata".
Assignee | ||
Comment 10•9 years ago
|
||
It looks like system boots without "-S ..." on userdata partition.
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8664875 [details] [review]
B2G Installer PR
Successfully flashed a Nexus 5 L from Android to B2G from a Mac !
Attachment #8664875 -
Flags: review?(dale)
Assignee | ||
Comment 12•9 years ago
|
||
Vosky, once we and this, it's going to bring us usable blobfree from the addon for Nexus 5 Lollipop :)
Flags: needinfo?(vosky78)
Assignee | ||
Comment 13•9 years ago
|
||
... once we land ...
Comment 14•9 years ago
|
||
Comment on attachment 8664875 [details] [review]
B2G Installer PR
I cant test this, no nexus 5 here, however the code looks great and you have tested it so happy to lgtm
Attachment #8664875 -
Flags: review?(dale) → review+
Assignee | ||
Comment 15•9 years ago
|
||
Produced a blobfree Nexus 5 Lollipop earlier today, flashed successfully from a Mac.
Assignee | ||
Comment 16•9 years ago
|
||
Produced a blobfree Nexus 4 Kitkat earlier today, flashed successfully from a Mac.
Assignee | ||
Comment 17•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•