Linux ARM guest in QEMU

Linux ARM can be installed in an ARM CPU guest of QEMU, which runs under a Windows in an x86 CPU. Let's head straight to deploying an Arch Linux ARM, then. Running an Arch Linux instance as a QEMU guest is not that hard because of all the available resources we can download from the internet. For demo purposes, we will be using a pre-installed image of Arch Linux and running it in QEMU. Prepare to download these files:

In this book, we will install QEMU on a Windows host. While installing, take note of where QEMU was installed. This is particularly important, as QEMU's path will be used later.

Extract the image file from archlinuxarm-29-04-2012.img.zip to a new directory, and copy zImage-devtmpfs into the same directory.

Open a command line in the image and kernel file's directory. Then, execute the following line:

"c:Program Filesqemuqemu-system-arm.exe" -M versatilepb -cpu arm1136-r2 -hda archlinuxarm-29-04-2012.img -kernel zImage-devtmpfs -m 192 -append "root=/dev/sda2" -vga std -net nic -net user

Here, change C:Program Filesqemu to the path where QEMU was installed. This should fire up QEMU with Arch Linux running, as shown here:

Now, log in using these credentials:

alarmpi login: root
Password: root

You can go ahead and play with it like a regular Linux console. Arch Linux is a popular OS installed by enthusiasts of Raspberry Pi.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.159.10