Qemu emulation platform for Versatile-express
CPU Information Processor : ARMv7 Processor rev 0 (v7l) processor : 0 BogoMIPS : 756.94 Features : swp half thumb fastmult vfp edsp neon vfpv3 tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc09 CPU revision : 0 Hardware : ARM-Versatile Express Revision : 0000 Serial : 0000000000000000 boot.log |
$ qemu-img create hd.img 1G $ mkfs.ext2 -F -m 0 -b 1024 hd.img
$ sudo mount -o loop -t ext2 hd.img /mnt $ sudo rm -rf /mnt/lost+found $ sudo tar -C /mnt -pxvf crux-arm-rootfs-3.3.tar.xz $ sudo tar -C /mnt -pxvf modules-4.9.6.tar.xz
configure certain files.
$ qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 1024 -kernel zImage-4.9.6 -sd hd.img -dtb vexpress-v2p-ca9.dtb -append "rw console=ttyAMA0 console=tty root=/dev/mmcblk0"
T0:23:respawn:/sbin/agetty -L ttyAMA0 9600 vt100
ttyAMA0
# dd if=/dev/zero of=/var/swap bs=128K count=1024 1024+0 records in 1024+0 records out 134217728 bytes (134 MB) copied, 22.2331 s, 6.0 MB/s # mkswap /var/swap Setting up swapspace version 1, size = 131068 KiB no label, UUID=882f6a5c-12a8-4cbd-9e45-d0cdaac2c2f7 # swapon /var/swap
$ qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -kernel zImage-4.9.6 -initrd initrd.gz -dtb vexpress-v2p-ca9.dtb -append "root=/dev/ramdisk console=tty"
$ qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -nographic -kernel zImage-4.9.6 -initrd initrd.gz -dtb vexpress-v2p-ca9.dtb -append "root=/dev/ramdisk console=ttyAMA0"