Project

General

Profile

GalaxyNote80N51xxBuild » History » Version 2

Fil Lupin, 05/01/2019 02:16 PM
replicant 6 precision

1 1 Wolfgang Wiedmeyer
h1. Galaxy Note 8.0 (N51xx) Build
2
3
This page explains how to build Replicant for the Galaxy Note 8.0 models.
4
5
h2. Prerequisites
6
7
Before building, you must make sure that:
8
* You have installed the build dependencies: [[BuildDependenciesInstallation]]
9
* You have downloaded Replicant 6.0 sources: [[ReplicantSourceCode]]
10
* Your sources are up to date: [[ReplicantSourceCode#DownloadingUpdating-the-source-code|Downloading/Updating the source from the repos]]
11
* Your terminal is running in the directory where the sources were downloaded
12
 
13
h2. Warning
14
15
*Do not build as root, always build as user.*
16
17
See the [[BuildTips|build tips]] if you are facing issues.
18
19
h2. Building
20
21
All of the following build commands need to be run in the source tree root folder.
22
23 2 Fil Lupin
First, the toolchain needs to be built for replicant 6:
24 1 Wolfgang Wiedmeyer
<pre>
25
./vendor/replicant/build-toolchain
26
</pre>
27
28
*If you have executed any of the commands below and you want to run the toolchain build again, you will need to open a new shell.*
29
30
Then, prepare the shell environment for the Replicant build:
31
32
h3. N5100
33
34
<pre>
35
. build/envsetup.sh
36
lunch replicant_n5100-userdebug
37
</pre>
38
39
h3. N5110
40
41
<pre>
42
. build/envsetup.sh
43
lunch replicant_n5110-userdebug
44
</pre>
45
46
Now you can start the build:
47
48
<pre>
49
parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
50
make -j$parallel_tasks bacon
51
</pre>
52
53
The @-jn@ argument indicates the number of parallel tasks during the build. You can remove it from the command line to have only one task at a time.
54
@$parallel_tasks@ holds an optimized number of parallel tasks for your hardware. You may want to reduce this number if e.g. the computer runs out of RAM during the build.
55
56
Finally, sign the resulting images:
57
58
h3. N5100
59
60
<pre>
61
./vendor/replicant/sign-build n5100
62
</pre>
63
64
h3. N5110
65
66
<pre>
67
./vendor/replicant/sign-build n5110
68
</pre>
69
70
The first time you run the script, it will ask you a few questions that are needed to generate the necessary signing keys.
71
72
h2. Output files
73
74
The produced files are located at:
75
* built target images: @out/dist/n5100/@ or @out/dist/n5110/@
76
* built host tools: @out/host/linux-x86/bin/@