@@ -25,12 +25,12 @@ To flash Android on a sdcard, use *deploy-sd.img*
25
25
To flash Android on eMMC, use * deploy-sd-for.emmc.img*
26
26
27
27
### Step 2
28
- Insert recovery sdcard into the target board.
28
+ Ensure you have installed the adb package: ``` $ sudo apt install adb ``` (required to set up udev rules)
29
+ Insert recovery sdcard into the phone.
29
30
Connect the phone and your PC using a typec cable.
30
- Power up the phone.
31
+ Power up the phone. Blue LED indicates that the phone is in bootloader mode, and you can proceed with flashing.
31
32
32
33
### Step 3
33
- Ensure you have installed the adb package: ``` $ sudo apt install adb ``` (required to set up udev rules)
34
34
Run .* /flash-sd.sh* utility for flashing Android to sdcard or * ./flash-emmc.sh* for flashing Android to eMMC
35
35
36
36
* After several minutes flashing should complete, and Android should boot*
@@ -53,7 +53,7 @@ sudo apt-get install -y git-core gnupg flex bison build-essential zip curl zlib1
53
53
54
54
- Install additional packages
55
55
``` bash
56
- sudo apt-get install -y swig libssl-dev flex bison device-tree-compiler mtools git gettext libncurses5 libgmp-dev libmpc-dev cpio rsync dosfstools kmod gdisk lz4 meson cmake libglib2.0-dev
56
+ sudo apt-get install -y swig libssl-dev flex bison device-tree-compiler mtools git gettext libncurses5 libgmp-dev libmpc-dev cpio rsync dosfstools kmod gdisk lz4 meson cmake libglib2.0-dev git-lfs
57
57
```
58
58
59
59
<br />
@@ -64,6 +64,15 @@ sudo apt-get install -y python3-pip pkg-config python3-dev ninja-build
64
64
sudo pip3 install mako jinja2 ply pyyaml
65
65
```
66
66
67
+ - Install the ` repo ` tool
68
+ ``` bash
69
+ sudo apt-get install -y python-is-python3 wget
70
+ wget -P ~ /bin http://commondatastorage.googleapis.com/git-repo-downloads/repo
71
+ chmod a+x ~ /bin/repo
72
+ ```
73
+
74
+ ** NOTE: After this step, you may need to log out and log in to the system to make $HOME/bin added to the PATH environment variable.**
75
+
67
76
### Fetching the sources and building the project
68
77
69
78
``` bash
@@ -77,12 +86,15 @@ cd pine64-pinephone
77
86
./unfold_aosp.sh && ./build.sh
78
87
```
79
88
89
+ ** NOTE: If you're using ` git ` for the first time, it may ask you to configure the user name and email address and confirm the colored terminal.
90
+ Please follow the suggestion you see on the screen in this case.**
91
+
80
92
### Building LineageOS
81
93
82
94
To enable GMS (microg), set the environment variable ` export WITH_GMS=true ` .
83
95
84
96
``` bash
85
- ./unfold_lineage .sh && ./build.sh
97
+ ./unfold_lineageos .sh && ./build.sh
86
98
```
87
99
88
100
### Notes
0 commit comments