Fairphone 2 build

@Novski Can you also ensure, if you are using an updated upstream blobset, that the layout of |TARGET_DEVICE_BLOBS_SRC_DIR := vendor/qcom/proprietary/target/product/FP2/| has not been changed ? Maybe they just modified the paths and this is why it screws you for generating the blob list file.

Download and extract the set of blobs references in download-blobs.sh and compare the tree structure with your new blobs :slight_smile:

No, that is not your problem. Assertion failures would only happen on a B2G_DEBUG=1 build. A non debug build (which is the default) would work.

Thats why im askingā€¦ I can abort here if there is no need, but i think itā€™s better to have somebody working slow than nobody at all. Mozilla support is gone and the only people left are some entusiasticaly connected peoples. There are verry few programmers with knowledge of B2G anyway so if you take some more time to explaine me the details (and the words used as synonym so oftenly) i will learn how to manage code faster.

i found echos in that file that seam to be same as b2g-installer popupsā€¦

does that mean that the proptietay-files.txt file is generated during the build? I donā€™t think soā€¦

what does ā€œupstreamā€ mean, the only upstream i know is in waterā€¦ :grin:

Thanks for clarification. I will start debuging that when i have more timeā€¦

Hello,
iā€™m struggling to flash fxos on my fp2.
I have downgraded to 1.2.8 and ā€œUSB debbugging connectedā€ on the screen.
i have Ubuntu, i run nightly with ADB helper. In a new profile i open about:b2g-installer, connect my device. The files are opening, but the b2g-installer still doesnā€™t see the device.

Iā€™m a simple user, have no specific knowledge on the topic. Iā€™ve been told to run this:

patata@librem13:~$ adb devices

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
    List of devices attached

Then iā€™ve been told to add udev rules, but i donā€™t know how to do that. iā€™d like to see full procedure in the manual.

Please use the VM to make sure.

go to settings and scroll all the way down. Tap on the last entry of the list and scroll all down to the buildNr. and tap that one 10 times.
As soon as you have developer go back to settings ā€œfirst pageā€ and tap on developer. Second last entry.
Enable USB Debuging.
Then you have to uncheck all options in the connection notification pull down.

It will then be recognized but the available B2G OS version has a bug and will not pull the blobs correctly so ther is no point to flash your device by nowā€¦ I will fix that soon.

The problem is that most of your questions are not B2G specific at all. Basic knowledge of make, gcc, git are really needed to be able to pursue, but it has nothing specific with the project. And if you lack those knowledges, then itā€™s even harder for us to help you :slight_smile:

What are the ā€œechos in that file that seems to be same as b2g-installer popupsā€ ? I really doubt, because I wrote both :slight_smile:

The proprietary-file.txt is being used by the build system to copy/install the blobs, and read . Blob-free detection of blobs does not rely on this. Basically, what the gonk-misc/Android.mk shell magic does is that is computes sha1 to identify the blobs. So we read the filenames from proprietary-file.txt, but we re-build a mapping of blobs.

uncheck all options in the connection notification pull down

Thanks Novski, that was it!

It is not that I donā€™t want to help you, but you are asking me to teach you git, make, etc. ; which I am sorry, but I am not fitted for. I see you wanting to help, and I am happy to help you into the B2G-specifics details, but sorry, there are other prereq needed and you have to learn them by yourself ; namely, I already linked you online books for Git for example.

You need to separate what you designates as details in two sets: general knowledges ; B2G-specifics. There are a lot of the those, B2G-specifics, but once you have general knowledges, itā€™s not that hard to navigate through.

I really like what you are doing, taking care of B2G, and obviously you are making progresses, but there is a point where I cannot help you more if you dont, on your own side, learn some basics (again, those will be useful anywhere). There is nothing fundamentally complex either in those, but you need to understand. Giving you quick exact solution is not really helping you if you donā€™t know what it means :slight_smile:

So, to summarize: the resulting list of blobs in the blobfree distribution has an extra system/ ; this is coming from the code living in gonk-misc/Android.mk that plays around the blobs. You need to read the code there (itā€™s shell in makefile, not trivial but nothing impossible) and specifically the target |$(TARGET_DEVICE_BLOBS_OUT)|. Basically this is producing the list of blobs read by the addon.

The bug 1240352 is the one where the CM-compatible method was introduced (relying on proprietary-files.txt). For fairphone2 the definition is here: https://github.com/mozilla-b2g/device-fairphone2/blob/master/FP2.mk#L16

So it means you need to check the content of the intermediary files like $(PRODUCT_OUT)/$(TARGET_DEVICE)-blobs-sha1-out.txt and others, and verify why you get an extra system/ there.

You also have not yet documented:

  • are you building with the same blobs as Juan did? Again, it is very possible they changed the layout somehow.
  • directory listing of the blobs Juan used
  • directory listing of the blobs you are using

And again, I cannot but advise you to read all comments on the blobfree parts of Android.mk at https://github.com/mozilla-b2g/gonk-misc/blob/master/Android.mk#L172 that explains, hopefully, a lot of why and how.

As first i whant to make the build work smoth. For that i created the pull request (PR) of fairphone.xml in the bug. https://bugzilla.mozilla.org/show_bug.cgi?id=1294725#add_comment
I donā€™t know how it now gets to the mozilla-b2g/b2g-manifest but i think somebody here will be able to tell me how that worksā€¦

1 Like

That is merged now :slight_smile:

1 Like

Hi to all, I introduced an issue in the fairphone.xml file thats now fixed. The merge of PR https://github.com/mozilla-b2g/b2g-manifest/pull/453 will soon be done and at that point Fairphone is ported successfuly to B2G.
Alltroug we will still have to do some work to get the latest bloobs pulled. It will be possible to test and Develop around FP2.

Future of B2GOS on Fairphone 2:
As there was a good update to FPOS1.6.1 wich made the proximity sensor working great, i wold like to wait until the Fairphone Open 16.08 will be released with the same blobs as FPOS1.6.1 and then build the new blob-download upon that point. Also the blobfree-build will be made upon that point soon after.
In the mean time i will try to make the blobfree-build work upon the momentary build of B2G.

2 Likes

Good Job, @Novski, thank you very much for your efforts! :smiley:

Well the good news is I tested it. The bad news is it still doesnā€™t build.

It throughs me the WebRTC error you once mentioned is because of libatomic stuff (Post 50)

I think i now understand this post :grin:

This is what worked by applying manualy:

As @lissyx made me the fork in B2G i didnā€™t thaught of the second dependency. And since i remove framework/native in my fairphone.xml i think i remove the part that fixes that C++ problem as well.
Is that thaught right?
What can i do?

That would be surprising since your manifest does reference FP2 specific branch for frameworks/native:

Thatā€™s under the assumption you really experience the exact same error, of course :slight_smile:

Make sure |./config.sh fairphone2| executes completely and correctly, maybe you messed up something by switching between repos and branches. I know itā€™s not fun but in the worst case, start from scratch :slight_smile:

That being said, checking:


I donā€™t see the commit e92af361af5155574c3f05b9544aef194b760aa0

Did you finished the PR ? This might be what happens when I donā€™t have a review flag set properly :slight_smile:

no i wasnā€™t ware of the need. Now i did it. https://bugzilla.mozilla.org/show_bug.cgi?id=1294725
You may have got a few strange PR and reverts because i had trouble to make the PR to the b2g-fp2 branch.
Please excuse the fload of e-mailsā€¦

just saw that you wrote me an e-mail.
Lets stay here in discourseā€¦

Itā€™s okay but make sure you have cherry-picked the fix as you did on
discourse, not just applying the same changes.

Might look like a detail but it is quite important for good tracking of
issues and fixes :slight_smile:

The cherry-pick never workedā€¦ i did it manualy. Should i close the PR and try to cherry-pick again?

Yes please cherry pick again :slight_smile:

You have been able to do it in the past so no reason you cannot again!

If you still have that branch you made with the cherry pick just use it and
push to your repo there you can do the pr :slight_smile:

<
https://ci5.googleusercontent.com/proxy/kY0yCMmDzLJk1E96ido5ikNAHe5zh52D3YphR1X2xsrOEU-akWaRVcb05gCxw4tWSLqENnwem5Tm-NtFWoV2NCt4Wc-JGW_Dh5C7jzgcntlxIgUGOQWTDe7tfUEQonn_B38KBuLWG02k6YjYTd1RxOikuyZQHm2_UG72p17U=s0-d-e1-ft#https://discourse.mozilla-community.org/user_avatar/discourse.mozilla-community.org/novski/45/4829_1.png>
Novski
September 7

just saw that you wrote me an e-mail.
Lets stay here in discourseā€¦

Itā€™s okay but make sure you have cherry-picked the fix as you did on
discourse, not just applying the same changes.

Might look like a detail but it is quite important for good tracking of
issues and fixes <
https://ci4.googleusercontent.com/proxy/WXb7N19ymmSjQefzE6_DMhC7WlvMLvTzF_d-xpixnAW2xonFpj0ouJSL5EEFo3qKpy393sIX7TX4NIGY5ZvxpotgugqQUVeKIwjRFdw2Q2lD8LmfQvs1fCzhXHIWDSTtOurmKFdniNA_=s0-d-e1-ft#https://discourse.mozilla-community.org/images/emoji/emoji_one/slight_smile.png?v=2

The cherry-pick never workedā€¦ i did it manualy. Should i close the PR
and try to cherry-pick again?


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci5.googleusercontent.com/proxy/kY0yCMmDzLJk1E96ido5ikNAHe5zh52D3YphR1X2xsrOEU-akWaRVcb05gCxw4tWSLqENnwem5Tm-NtFWoV2NCt4Wc-JGW_Dh5C7jzgcntlxIgUGOQWTDe7tfUEQonn_B38KBuLWG02k6YjYTd1RxOikuyZQHm2_UG72p17U=s0-d-e1-ft#https://discourse.mozilla-community.org/user_avatar/discourse.mozilla-community.org/novski/45/4829_1.png>
Novski
September 7
no i wasnā€™t ware of the need. Now i did it.
https://bugzilla.mozilla.org/show_bug.cgi?id=1294725 You may have got a few
strange PR and reverts because i had trouble to make the PR to the b2g-fp2
branch. Please excuse the fload of e-mailsā€¦