Posts

How to run Linux on QEMU ? How do I learn embedded systems programming without the actual hardware ?

Image
  How to run Linux on QEMU ?  How do I learn embedded systems programming without the actual hardware ? Linux 5.15 on QEMU Yes you can run learn Embedded Systems without actual hardware.   The option is QEMU . QEMU is a emulator . Its free and open-source. It emulates the actual hardware or machine's processor.   Example If you want to work or run Linux OS on Raspberry Pi you don't need actual Raspberry pi hardware. The QEMU acts as hardware (i.e emulator).   Example you can see source code QEMU for emulating Raspberry Pi 2 & 3 .   https://github.com/qemu/qemu/blob/master/hw/arm/raspi.c   The different peripheral of Raspberry Pi  like I2C, SPI, GPIO etc added here. https://github.com/qemu/qemu/blob/master/hw/arm/bcm2835_peripherals.c#L383 The base addresses and offset of different peripheral and how they should work are implemented here.   Raspberry Pi ( BCM2835 ) GPIO Controller :   https://github.com/qemu/qemu/blob/master/h...