Difference between revisions of "QEMU"
From ArmadeusWiki
m (→Links) |
(→Launch it) |
||
Line 19: | Line 19: | ||
[armadeus]$ qemu-system-arm -m 32 -M versatilepb -kernel vmlinuz-2.6.18-5-versatile \ | [armadeus]$ qemu-system-arm -m 32 -M versatilepb -kernel vmlinuz-2.6.18-5-versatile \ | ||
-initrd rootfs.arm_nofpu.ext2.gz -append "root=/dev/ram" -hda ./rootfs.arm_nofpu2.img | -initrd rootfs.arm_nofpu.ext2.gz -append "root=/dev/ram" -hda ./rootfs.arm_nofpu2.img | ||
− | * When system has booted, we will create the "hard disk" image | + | * When system has booted, we will create the "hard disk" image: |
+ | # mkdir /tmp/dev | ||
+ | # mknod /tmp/dev/sda b 8 0 | ||
+ | # mknod /tmp/dev/sda b 8 1 | ||
+ | # fdisk /tmp/dev/sda | ||
+ | n p 1 <enter> <enter> | ||
+ | # mkfs.ext2 /tmp/dev/sda1 | ||
==Links== | ==Links== |
Revision as of 22:49, 27 October 2007
UNDER CONSTRUCTION
Well, you don't have enough money to buy an Armadeus board and just want to be part of the "Software" side of the project ? Then QEMU can be a good choice for you !!
Just be aware that currently Armadeus hardware is not emulated under QEMU, we are just using an other board hard and linux kernel to launch our Rootfs an test our software which is not custom hardware related (ie User interface, Network, etc...)
Installation
- on Debian just do a:
[armadeus]$ sudo apt-get install qemu
Get/generate simulation images
- In our tests we used the QEMU Versatile PB emulated hardware. To get a compatible Linux kernel for this board then:
[armadeus]$ wget http://people.debian.org/~aurel32/arm-versatile/vmlinuz-2.6.18-5-versatile
- Generate your Armadeus Rootfs as an EXT2 image, and zip it:
[aramdeus]$ gzip -9 buildroot/rootfs.arm_nofpu.ext2
Launch it
- At first boot, you have to launch the system as a Ramdisk:
[armadeus]$ qemu-system-arm -m 32 -M versatilepb -kernel vmlinuz-2.6.18-5-versatile \ -initrd rootfs.arm_nofpu.ext2.gz -append "root=/dev/ram" -hda ./rootfs.arm_nofpu2.img
- When system has booted, we will create the "hard disk" image:
# mkdir /tmp/dev # mknod /tmp/dev/sda b 8 0 # mknod /tmp/dev/sda b 8 1 # fdisk /tmp/dev/sda n p 1 <enter> <enter> # mkfs.ext2 /tmp/dev/sda1