Browsing All posts tagged under »qemu«

QEMU 1.5.0 released, a backward compatibility warning

May 21, 2013

19

In my personal projects I used QEMU extensively to emulate ARM devices, these are some of my posts on the subject: Hello world for bare metal ARM using QEMU U-boot for ARM on QEMU Busybox for ARM on QEMU Booting Linux with U-Boot on QEMU ARM Linux NFS Root under QEMU ARM emulator Debugging ARM programs inside QEMU QEMU ARM semihosting Emulating […]

ARM926 interrupts in QEMU

April 15, 2012

36

In this post I prepared what I think is the simplest example on how to manage interrupts for the widespread ARM926 core. From this example one can expand the complexity of the interrupt management at will. I’m going to test the functionality with QEMU, emulating the Versatile Platform Baseboard. I based this example on my […]

Compile Linux kernel 3.2 for ARM and emulate with QEMU

March 31, 2012

147

This is a tutorial to: 1. Get Linux kernel 3.2 source code 3. Configure and compile for Versatile Express ARM Cortex-A9 platform 4. Prepare and create a ramdisk using initramfs schema 5. Emulate kernel boot and ramdisk execution using QEMU

FOSDEM 2012 videos

March 18, 2012

0

The videos of the last Free and Open source Software Developers’ European Meeting 2012 have been uploaded. The most interesting videos for me are the following: ARM BoF: state of the ARM architecture porting of various Linux distros (54:40 video) Debian secrets: useful information to get started on using or developing Debian (41:24 video) Multiarch: why […]

Encrypted Linux on USB key

January 3, 2012

20

In this post I suggest a way to have an encrypted Linux installation on a USB key, which to me is useful when I travel and I want to securely access the functionality that desktop Linux offers. I want to have no fear that what I take with me will be stolen, even if what I take with me is a full Linux OS, together with my data and maybe some online passwords saved in the browser.

Using CodeSourcery bare metal toolchain for Cortex-M3

September 3, 2011

61

Using the CodeSourcery arm-none-eabi toolchain to compile a minimal "Hello World" example for Stellaris lm3s6965 microcontroller. The microcontroller is emulated through QEMU and the output is written to a serial port.

Compiling Linux kernel 3.0 with Emdebian ARM toolchain

July 24, 2011

16

The Emdebian project works to bring Debian on embedded platforms, with repositories of custom distributions and toolchains to cross-compile software. I wanted to try their ARM toolchains, and coincidentally the Linux kernel 3.0 has been released in these days, so I tried to cross-compile it and emulate it on QEMU. These tests have been done […]

Inline assembly instructions in GCC

May 17, 2011

1

In embedded software programming there’s often the need to use assembly-level instructions to reach all the functionalities of the processing core. But when the developing is done almost exclusively in C, it is sometimes a burden, often an added complexity and possibly a nuisance to code separate assembly files containing the needed functions. Other than […]

QEMU raw images real size

May 8, 2011

3

Today I noticed a nice thing about using “raw” hard disk images with QEMU: the images are sparse files. What does it mean? Sparse files are an useful feature of many file system formats that saves space in case of files that contain chunks of zero data. My host’s file system is formatted with ext4, […]

Using Newlib in ARM bare metal programs

December 16, 2010

32

Implementing a minimal standard C library for embedded ARM target using Newlib and the CodeSourcery toolchain, and emulating the execution with QEMU.