Академический Документы
Профессиональный Документы
Культура Документы
How To
A
RM Linux is a port of the Linux
Kernel to ARM processor-based
machines. The ARM Linux kernel
is being ported, or has been
ported to more than 500 different
machine variations, including complete
computers, network computers, hand-held
devices and evaluation boards.
In this article, we will see how we can use
the Qemu ARM PC Emulator, ‘qemu-arm-
system’, to boot a DirectFB graphical user
interface-based ARM Linux kernel image.
Cross compilation
Before we proceed, I shall introduce to you
the concept of ‘cross compilation’. According
to Wikipedia, “A cross compiler is a compiler
capable of creating executable code for a
platform other than the one on which the
compiler is run. Cross compiler tools are
generally used to generate compiles for
embedded systems or multiple platforms. It is
a tool that one must use for a platform where
it is inconvenient or impossible to compile on
that platform, like micro-controllers that run
with a minimal amount of memory...”
In a cross compilation process we have a
‘host’ system and a ‘target’ system. The ‘host’
system is the one that is being used for cross
compiling the kernel—in this case, an i686
machine. The ‘target’ system is the one for
cmyk
How To
$ qemu-system-arm
QEMU PC emulator version 0.8.2, Copyright (c) 2003-2005 Fabrice
Bellard
usage: qemu [options] [disk_image]
$ qemu-system-arm -M ?
Supported machines are:
integratorcp926 ARM Integrator/CP (ARM926EJ-S) (default)
integratorcp1026 ARM Integrator/CP (ARM1026EJ-S)
versatilepb ARM Versatile/PB (ARM926EJ-S)
versatileab ARM Versatile/AB (ARM926EJ-S) Figure 3: The graphical demo demonstrating DirectFB usage
cmyk
How To
References
Figure 2 shows the terminal output. The output verifies
l ARM architecture—http://en.wikipedia.org/wiki/ARM_ar-
that we are now on an emulated ARM architecture.
chitecture
You can also try out the graphical demo that l The ARM Linux Project—http://www.arm.linux.org.uk
demonstrates the usage of DirectFB as follows: l Tiny QEMU ARM system with a DirectFB interface—
http://free-electrons.com/community/demos/qemu-
$ run_demo arm-directfb/
l Cross compilation—http://en.wikipedia.org/wiki/Cross_
Tools that have been used to construct the above ARM- compiler
l QEMU—http://fabrice.bellard.free.fr/qemu/
Linux image are:
l Running Linux for ARM processors under QEMU—
1. Buildroot (http://buildroot.uclibc.org/) is a set of http://www.nepotismia.com/linux/qemu/arm/
Makefiles and patches that make it easy to generate a
cross-compilation toolchain and root filesystem for the
By: Amit Kumar Saha. The author is a technical writer, a
target Linux system using the uClibc C library (http://
contributor to Open Source projects and a researcher. More
uclibc.org/).
on his works is available at http://amitsaha.in.googlepages.
2. BusyBox (http://busybox.net/) combines tiny versions
com
of many common UNIX utilities into a single small
cmyk