-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathconfig.sh
More file actions
executable file
·44 lines (41 loc) · 751 Bytes
/
config.sh
File metadata and controls
executable file
·44 lines (41 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#r2: dev: 0 part: 1/2
#r64: dev: 1 part: 4/5 (maybe needs fix for root in uboot, boot is checked by checkgpt)
#r2pro: dev: 1 part: 2/3
#r3/r4: dev: 0 part: 5/6
LANG=C
ubootconfig=uEnv.txt
case "$board" in
"bpi-r2")
mmcdev=0
mmcbootpart=1
mmcrootpart=2
arch="armhf"
kernel="5.15" #6.0+ does not support internal wifi
ubootconfigdir=/bananapi/$board/linux/
;;
"bpi-r64")
mmcdev=1
mmcbootpart=4
mmcrootpart=5
arch="arm64"
;;
"bpi-r2pro")
mmcdev=0
mmcbootpart=2
mmcrootpart=3
arch="arm64"
;;
"bpi-r3"|"bpi-r3mini"|"bpi-r4")
mmcdev=0
mmcbootpart=5
mmcrootpart=6
arch="arm64"
if [[ "$board" == "bpi-r3mini" ]];then
device="emmc"
fi
;;
*)
echo "missing/unsupported board $1";exit
;;
esac