Skip to content

Commit 43a1fbb

Browse files
authored
Add initial README for installation
1 parent 7e36499 commit 43a1fbb

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

README.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,90 @@
11
# android-7.1
22
Main repository with Android 7.1 releases
3+
4+
## Prepare device for flashing
5+
6+
1. Compile and install `rkflashtool`:
7+
8+
```
9+
git clone https://github.com/ayufan-rock64/rkflashtool
10+
make -C rkflashtool
11+
sudo make -C rkflashtool install
12+
```
13+
14+
1. Connect USB A-to-A cable to upper USB 2.0 port and your computer,
15+
16+
1. Start Rock64 in Loader mode:
17+
18+
1. Press and hold Recovery Bt
19+
2. Press Reset Btn,
20+
3. Stop holding Recovery Btn after 3s.
21+
22+
To verify device run:
23+
24+
```bash
25+
rkflashtool n
26+
...
27+
```
28+
29+
You can also start device in Maskrom mode:
30+
1. Shorten eMMC PIN,
31+
2. Start device.
32+
33+
1. Download and extract one of the releases (without `-update.zip` at end), ex.: https://github.com/ayufan-rock64/android-7.1/releases/download/0.1.0/android-7.1-rock-64-rk3328_box-v0.1.0-r37.zip,
34+
35+
## Install on Linux/OSX
36+
37+
1. Create a installation script:
38+
39+
```bash
40+
sudo tee /usr/local/bin/rkinstall <<EOF
41+
#!/bin/bash
42+
43+
set -xe
44+
45+
rkflashtool P < parameter.txt
46+
for i in uboot trust misc kernel boot recovery system; do
47+
rkflashtool w $i < $i.img
48+
done
49+
rkflashtool b
50+
EOF
51+
52+
sudo chmod +x /usr/local/bin/rkinstall
53+
```
54+
55+
2. Execute script from within directory:
56+
57+
```bash
58+
$ rkinstall
59+
```
60+
61+
## Upgrade on Linux/OSX
62+
63+
1. Create upgrade script
64+
65+
```bash
66+
sudo tee /usr/local/bin/rkupgrade <<EOF
67+
#!/bin/bash
68+
69+
set -xe
70+
71+
rkflashtool P < parameter.txt
72+
for i in uboot trust kernel boot recovery system; do
73+
rkflashtool w $i < $i.img
74+
done
75+
76+
rkflashtool b
77+
EOF
78+
79+
sudo chmod +x /usr/local/bin/rkupgrade
80+
```
81+
82+
2. Execute upgrade script from within directory:
83+
84+
```bash
85+
$ rkupgrade
86+
```
87+
88+
## Author
89+
90+
Kamil Trzciński, 2017, https://ayufan.eu

0 commit comments

Comments
 (0)