diff options
authorWolfgang Wiedmeyer <>2017-05-07 18:04:59 +0200
committerWolfgang Wiedmeyer <>2017-05-07 18:04:59 +0200
commit4d2e7e4e28aabb0872c5389b7635efff69df5673 (patch)
parent9a6d318cee099cc895924977c4836ab07deb6f92 (diff)
updated Stretch chroot guide for Replicant 6.0
1 files changed, 5 insertions, 27 deletions
diff --git a/content/debian-stretch-debootstrap-replicant.rst b/content/debian-stretch-debootstrap-replicant.rst
index d61b73d..7f75c13 100644
--- a/content/debian-stretch-debootstrap-replicant.rst
+++ b/content/debian-stretch-debootstrap-replicant.rst
@@ -1,5 +1,6 @@
:title: Setting up a Debian Stretch build environment for Replicant 6.0 using debootstrap
:date: 2016-12-28 23:10
+:modified: 2016-05-07 18:10
:tags: debootstrap, toolchain, free software
:category: General
:author: Wolfgang Wiedmeyer
@@ -73,15 +74,7 @@ Before installing all the necessary build dependencies, locales needs to be conf
# apt-get install locales
# dpkg-reconfigure locales
-Then install all dependencies:
-.. code-block:: console
- # apt-get build-dep gcc binutils llvm-defaults
- # apt-get install gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libemma-java libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libandroidsdk-ddmlib-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java repo ca-cacert curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc python-mako schedtool gradle dirmngr libandroidsdk-sdklib-java eclipse-jdt libgradle-android-plugin-java android-sdk-build-tools android-sdk-platform-23 aapt lzop
- dpkg-reconfigure ca-certificates and enable cacert certs
+Then install `all dependencies <>`_.
Add a user for building Replicant 6.0:
@@ -102,25 +95,10 @@ Switch to your user:
-Create the directory where you want the Replicant 6.0 sources to be. And run all the needed commands to get the sources, build it for the Galaxy S3 and flash it to the device:
+From now on, you can follow the `respective build page for your device <>`_ (given that Replicant 6.0 is supported on your device).
-.. code-block:: console
- $ repo init -u -b replicant-6.0
- $ repo sync
- $ ./vendor/replicant/get-prebuilts # also checks the signature of the downloaded apk (see
- $ ./vendor/replicant/build-toolchain
- $ . build/
- $ lunch replicant_i9300-userdebug
- $ make -j $(nproc) bacon
- $ ./vendor/replicant/sign-build
- $ heimdall flash --BOOT out/dist/recovery.img --RECOVERY out/dist/recovery.img # while in Downloading mode
- $ adb sideload out/dist/ # sideloading in recovery mode
-If you want to get the latest stuff, you can sync with the development branch:
+Some ``repo`` commands fail if the shared memory is not mounted inside the chroot. So if you use ``repo`` from inside the chroot, mount ``dev/shm``:
.. code-block:: console
- $ repo init -u -b replicant-6.0-dev
-But depending on the current development state, the resulting image may have some serious bugs or the build could be broken.
+ # mount --bind /dev/shm $YOUR_CHROOT_DIR/dev/shm