In the beginning I did the flashall as described on code.fairphone.com, but I think it is better to only flash what you really need, i.e.
recovery: fastboot flash recovery recovery.img
system: fastboot flash system system.img
In the latter case fastboot flash -w … might be interesting, this wipes the partition and settings, so if the two ROMs are not fully compatible there won’t be any problems.
If you want to use flashall, you need boot.img, recovery.img and system.img as well as the file android-info.txt, if you don’t flash from your environment
(edit: put this in the wiki also)
I’ve encountered the same problem when creating the Docker image. I was able to solve it by adding a dpkg --add-architecture i386 before calling apt-get.
BTW: The Docker image is now on Docker hub. You can get it as simply as
What is wrong with the && sh fp2-sibon-2.0.0-blobs.sh part? Do you mean I should extract fp2-sibon-2.0.0-blobs.tgz to stdout and directly pipe it into sh? Why?
I tried to build on Gentoo. Everything seemed to work at first, but finally I also got the „out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp“ error. Maybe it is caused by the newer version of Make.
To go round any other incompatibilities I go on with jftr’s Docker image now. Thanks for that!
Just started building. I realized some messages about missing unzip command. Is it required or missing in Docker image respectively?
Indeed, it is not available. Does the makefile need it? gunzip is available though. Are these errors or info messages? The build script could for instance first try unzip and – if not available – fall back to gunzip.
I can easily add it if it is necessary.
Edit: Since I’m already at it: Is anything else missing?
I have no clue what it does … I assume it updates the API list. We need someone who will test the images created here ;). Could you update the wiki so that people will understand the difference between a normal build and the one inside docker and how they can get their files?
Building was successful for me. And also flashing worked without problems.
Unfortunately phone doesn’t boot. It’s stuck on the boot screen.
I already tried to wipe with “-w” but no success too. Does anybody have an idea?
Edit:
Fastboot in Docker can’t find my phone. So I needed to do it in my host system. May that be the problem?
The Docker image is only meant for compiling and not for a connection to your smartphone. It could probably be added but I have not done it yet. I don’t know how easily it is possible to connect to a USB device from Docker.
I updated the Docker image, synced again, put the blobs in again and finally built again.
Now my system.img is bigger:
-rw-r–r-- 1 root root 453558248 Jan 10 16:37 out/target/product/FP2/system.img
And it works. Took some time for first start, but now it seems to run smooth.
Thanks for your help.