me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

Compile for QEMU #111

Open JonnyTech opened 3 years ago

JonnyTech commented 3 years ago

How can I compile for a QEMU instance of RaspberryPi (for testing purposes)? Using emulation method described here: https://github.com/dhruvvyas90/qemu-rpi-kernel

pi@raspberrypi:~ $ cat /proc/cpuinfo 
processor   : 0
model name  : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 582.45
Features    : half thumb fastmult vfp edsp java tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : ARM-Versatile (Device Tree Support)
Revision    : 0000
Serial      : 0000000000000000

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.50+ #1 Tue Nov 26 01:49:16 CET 2019 armv6l GNU/Linux

pi@raspberrypi:~ $ sudo ./test.ino.bplus.bin 
UNKNOWN_REVISION: 0x00000000, MODEL: 0xFFFFFFFF