forked from buhonghao/Redpill_CustomBuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getdtb.sh
21 lines (17 loc) · 926 Bytes
/
getdtb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
cd ~
rm -rf dtbpatch dtc output.dtb output.dts
# wget --no-check-certificate https://raw.githubusercontent.com/pocopico/rp-ext/main/dtbpatch/releases/dtbpatch
wget --no-check-certificate https://fastly.jsdelivr.net/gh/pocopico/rp-ext@main/dtbpatch/releases/dtbpatch
chmod a+x dtbpatch
./dtbpatch /etc.defaults/model.dtb output.dtb
# wget --no-check-certificate https://raw.githubusercontent.com/pocopico/rp-ext/main/dtbpatch/releases/dtc
wget --no-check-certificate https://fastly.jsdelivr.net/gh/pocopico/rp-ext@main/dtbpatch/releases/dtc
chmod a+x dtc
./dtc -I dtb -O dts output.dtb > output.dts
echo Please enter the following link on your PC to download the dtb file:
curl -fsSL --insecure -w '\n' --upload-file output.dtb https://transfer.sh
echo
echo Please enter the following link on your PC to download the dts file:
curl -fsSL --insecure -w '\n' --upload-file output.dts https://transfer.sh
echo