Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. target_dir="./images/mymod"
  4. image="./beta_20170109.dd"
  5. dtb="devicetree.dtb"
  6. kernel="zImage"
  7.  
  8. # Start QEMU
  9. ./qemu/aarch64-softmmu/qemu-system-aarch64 \
  10. -M arm-generic-fdt-7series -machine linux=on -m 1024 \
  11. -serial null -serial mon:stdio -nographic -boot mode=3 \
  12. -dtb $target_dir/$dtb \
  13. -kernel $target_dir/$kernel -append "root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 systemd.log_level=warning systemd.log_target=console kernel.sysrq=1 init=/usr/lib/systemd/systemd" \
  14. -drive file=$target_dir/$image,if=sd,format=raw,index=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement