forked from nhtzhanshi/itop4412-scp-2G-uboot2017-11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·36 lines (26 loc) · 816 Bytes
/
build.sh
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
#!/bin/sh
sec_path="./CodeSign4SecureBoot"
ROOT_DIR=$(pwd)
rm -rf u-boot.bin
make -j$CPU_JOB_NUM
if [ ! -f u-boot.bin ]
then
echo "!!!not found u-boot.bin"
fi
cp spl/landrover-spl.bin bl2.bin
####################################################
#cat spl/u-boot-spl.bin pad00.bin > image.bin
#./mkbl2 image.bin bl2.bin 14336
####################################################
cp -rf bl2.bin $sec_path
cp -rf u-boot.bin $sec_path
cd $sec_path
echo "fusing image.bin......"
################ for sd MMC boot ##################
cat E4412_N.bl1.SCP2G.bin bl2.bin env.bin u-boot.bin > image.bin
################# for eMMC boot ####################
#cat E4412_N.bl1.SCP2G.bin bl2.bin u-boot.bin > image.bin
####################################################
mv image.bin $ROOT_DIR
cd $ROOT_DIR
echo "done!!!"