armoon

build rock960 spl

Aug 16th, 2019
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. set +x
  3.  
  4. export ARCH=arm64
  5. export CROSS_COMPILE=aarch64-linux-gnu-
  6. make mrproper
  7. git pull origin
  8.  
  9. cp ../rkbin/./bin/rk33/rk3399_bl31_v1.29.elf ./bl31.elf
  10. make rock960-rk3399_defconfig
  11. make
  12. make u-boot.itb
  13.  
  14. tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl.bin idbspl.img
  15.  
  16. cd ../rkbin
  17. tools/trust_merger RKTRUST/RK3399TRUST.ini
  18. cd -
  19.  
  20. cp -v ../rkbin/trust.img .
  21.  
  22. sudo dd if=idbspl.img of=/dev/mmcblk0 bs=1k seek=32
  23. sudo dd if=u-boot.itb of=/dev/mmcblk0 bs=1k seek=8192
  24. sudo dd if=trust.img of=/dev/mmcblk0 seek=24576 conv=notrunc
RAW Paste Data