Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- target_dir="./images/mymod"
- image="./beta_20170109.dd"
- dtb="devicetree.dtb"
- kernel="zImage"
- # Start QEMU
- ./qemu/aarch64-softmmu/qemu-system-aarch64 \
- -M arm-generic-fdt-7series -machine linux=on -m 1024 \
- -serial null -serial mon:stdio -nographic -boot mode=3 \
- -dtb $target_dir/$dtb \
- -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" \
- -drive file=$target_dir/$image,if=sd,format=raw,index=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement