CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors

Supported Devices


Vexpress-aarch64

Introduction

Qemu emulation platform for Versatile-express aarch64 (ARM64bits)

CPU Information

processor : 0
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd07
CPU revision : 0

boot.log

Installation

Enviroment preparation

$ 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 
$ sudo tar -C /mnt -pxvf 

Setting up the enviroment

configure certain files.

Booting the system

$ qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 1024 -kernel Image -sd hd.img 
-append "rw console=ttyAMA0 console=tty root=/dev/mmcblk0"

Configuration

Serial console

T0:23:respawn:/sbin/agetty -L ttyAMA0 9600 vt100
ttyAMA0

Add a swap file

# 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

Booting from Initrd

Configuration

We should setup all the important files: pkgmk.conf, prt-get.conf, inittab, fstab, rc.conf, net ...

Any extra info

qemu-system-aarch64 -kernel Image-4.1.1 -initrd initrd.gz -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 1024 -append "root=/dev/ramdisk console=ttyAMA0"