arizawan

Run arm Raspbian On MacOS Catalina

Jun 22nd, 2020
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # https://gist.github.com/tinjaw/5bc5527ff379e8dd299a0b67e2bc9b62
  4. # https://github.com/dhruvvyas90/qemu-rpi-kernel/
  5.  
  6. # default user : pi
  7. # default pass : raspberry
  8.  
  9. ## MacOS Catalina
  10. #brew install qemu
  11.  
  12. export QEMU=$(which qemu-system-arm)
  13. export TMP_DIR=~/Desktop/qemu-rpi
  14. export RPI_KERNEL=${TMP_DIR}/kernel-qemu-4.19.50-buster
  15. export RPI_FS=${TMP_DIR}/2020-05-27-raspios-buster-lite-armhf.img
  16. export PTB_FILE=${TMP_DIR}/versatile-pb.dtb
  17.  
  18. cd $TMP_DIR
  19.  
  20. echo "Run this command : "
  21. echo ""
  22. echo "$QEMU -kernel ${RPI_KERNEL} -cpu arm1176 -m 256 -M versatilepb -dtb ${PTB_FILE} -no-reboot -serial stdio -append \"root=/dev/sda2 panic=1 rootfstype=ext4 rw\" -drive \"file=${RPI_FS},index=0,media=disk,format=raw\" -net user,hostfwd=tcp::5022-:22 -net nic"
Add Comment
Please, Sign In to add comment