Advertisement
Guest User

Untitled

a guest
May 19th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # FIP taken from https://github.com/hardkernel/u-boot/archive/odroidc2-v2015.01.tar.gz
  4.  
  5. FIPDIR="fip"
  6. DEV="/dev/disk/by-id/usb-TS-RDF5_SD_Transcend_000000000037-0:0"
  7.  
  8. if [ ! -L "$DEV" ]; then
  9. echo "Device $DEV not present"
  10. exit
  11. fi
  12.  
  13. make -j12
  14.  
  15. ${FIPDIR}/fip_create --bl30 ${FIPDIR}/gxb/bl30.bin \
  16. --bl301 ${FIPDIR}/gxb/bl301.bin \
  17. --bl31 ${FIPDIR}/gxb/bl31.bin \
  18. --bl33 u-boot.bin \
  19. fip.bin
  20.  
  21. ${FIPDIR}/fip_create --dump fip.bin
  22. cat ${FIPDIR}/gxb/bl2.package fip.bin > boot_new.bin
  23.  
  24. ${FIPDIR}/gxb/aml_encrypt_gxb --bootsig \
  25. --input boot_new.bin \
  26. --output u-boot.img
  27.  
  28. sudo dd if=${FIPDIR}/bl1.bin.hardkernel of=$DEV conv=fsync,notrunc bs=1 count=442
  29. sudo dd if=${FIPDIR}/bl1.bin.hardkernel of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
  30. sudo dd if=u-boot.img of=$DEV conv=fsync,notrunc bs=512 skip=96 seek=97
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement