Skip to content

Setup Development Environment

Antonio Vivace edited this page Apr 11, 2018 · 27 revisions
mkdir ~/rasp-qemu
cd ~/rasp-qemu
wget https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-03-14/2018-03-13-raspbian-stretch-lite.zip

[DOWNLOAD IMG RASPBIAN + KERNEL + UNZIP]

unzip 2018-03-13-raspbian-stretch-lite.zip
wget https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.9.59-stretch
wget https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/versatile-pb.dtb
qemu-system-arm -kernel kernel-qemu-4.9.59-stretch \
                  -cpu arm1176 \
                  -m 256 \
                  -M versatilepb \
                  -no-reboot \
                  -serial stdio \
                  -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" \
                  -hda 2018-03-13-raspbian-stretch-lite.img \
              -net nic -net user,hostfwd=tcp::2222-:22 \
              -dtb ./versatile-pb.dtb
ssh-keygen -t rsa -b 2048 -q -f rasp-qemu/rpi_key -P ""
ssh-copy-id pi@localhost -i rpi_key.pub -p 3333
ssh pi@localhost -p 3333 -i rasp-qemu/rpi_key
Clone this wiki locally