Created
October 14, 2019 08:46
-
-
Save superna9999/fe7c7169adbd8654eed591009982e005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FIPDIR=$1 | |
mkdir fip | |
cp $FIPDIR/gxl/bl2.bin fip/ | |
cp $FIPDIR/gxl/acs.bin fip/ | |
cp $FIPDIR/gxl/bl21.bin fip/ | |
cp $FIPDIR/gxl/bl30.bin fip/ | |
cp $FIPDIR/gxl/bl301.bin fip/ | |
cp $FIPDIR/gxl/bl31.img fip/ | |
cp u-boot.bin fip/bl33.bin | |
$FIPDIR/blx_fix.sh \ | |
fip/bl30.bin \ | |
fip/zero_tmp \ | |
fip/bl30_zero.bin \ | |
fip/bl301.bin \ | |
fip/bl301_zero.bin \ | |
fip/bl30_new.bin \ | |
bl30 | |
python2.7 $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0 | |
$FIPDIR/blx_fix.sh \ | |
fip/bl2_acs.bin \ | |
fip/zero_tmp \ | |
fip/bl2_zero.bin \ | |
fip/bl21.bin \ | |
fip/bl21_zero.bin \ | |
fip/bl2_new.bin \ | |
bl2 | |
$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl30_new.bin | |
$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl31.img | |
$FIPDIR/gxl/aml_encrypt_gxl --bl3enc --input fip/bl33.bin | |
$FIPDIR/gxl/aml_encrypt_gxl --bl2sig --input fip/bl2_new.bin --output fip/bl2.n.bin.sig | |
$FIPDIR/gxl/aml_encrypt_gxl --bootmk \ | |
--output fip/u-boot.bin \ | |
--bl2 fip/bl2.n.bin.sig \ | |
--bl30 fip/bl30_new.bin.enc \ | |
--bl31 fip/bl31.img.enc \ | |
--bl33 fip/bl33.bin.enc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment