Advertisement
z3ntu

boot-from-sourcetree.sh

Mar 2nd, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/bash -ex
  2. pwd=$(pwd)
  3.  
  4. if [ $(basename $pwd) != "linux" ]; then
  5.     echo "Please run from the linux source tree with arch/arm/boot/zImage"
  6.     exit 1
  7. fi
  8.  
  9. cat arch/arm/boot/zImage arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dtb > ../zImage-dtb
  10. cd ..
  11. ./make_bootimg.sh
  12. cd out
  13. sign_img mainline-boot.img
  14. fastboot boot mainline-boot.img.signed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement