CRUX-ARM : Home

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

Supported Devices


Versatile

Introduction

Qemu emulation platform for Versatile/PB.

CPU Information

Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 157.28
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Hardware : ARM-Versatile PB
Revision : 0000
Serial : 0000000000000000

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 crux-arm-rootfs-2.8.tar.xz
$ sudo tar -C /mnt -pxvf modules-3.5.4.tar.xz

Setting up the enviroment

configure certain files.

Booting the system

$ qemu-system-arm -M versatilepb -kernel zImage-3.5.4 -hda hd.img -append "root=/dev/sda"
$ qemu-system-arm -nographic -M versatilepb -kernel zImage-3.5.4 -hda hd.img -append "root=/dev/sda 
console=ttyAMA0"

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

$ qemu-system-arm -M versatilepb -kernel zImage-3.5.4 -initrd initrd.gz
$ qemu-system-arm -nographic -M versatilepb -kernel zImage-3.5.4 -initrd initrd.gz 
-append "root=/dev/sda console=ttyAMA0"