qemuarm9 bsp layer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
recipes-kernel/linux
README
README.hardware

README

        QEMU-arma9 Board Support Package

1. About this document
======================

This document contains common and non-hardware specific information.
Please refer to README.hardware for hardware specific information.

Dependencies
------------
This layer depends on the oe-core layer

Maintenance
-----------
This layer is maintained by Wind River Systems, Inc.
Contact <support@windriver.com> or your support representative for more
information on submitting changes.

2. Boot Instructions
====================

Since this BSP is targeted at a QEMU simulated board, run the command
below in the project directory to load the BSP on top of QEMU:

$ runqemu qemuarma9 nographic

2.1 RAM Root File System (initramfs)
---------------------------------

2.1.1 Create the initrd image
-----------------------------

Build the gzip'd initramfs image with:

$ bitbake <xyz>-initramfs

The resulting file can be found at tmp/deploy/images/qemuarma9/core-image-minimal-initramfs-qemuarma9.cpio.gz

2.1.2 Deployment
----------------

Pass the run-time option "-initrd" to qemuparams to use the
initramfs image as a ram disk, as shown in the example below.

And add the 'root=/dev/ram' to bootparams. For example, run the following 
command in the project directory to run the guest in QEMU using initrd:

$ runqemu nographic slirp qemuparams="-initrd `pwd`/tmp/deploy/images/qemuarma9/core-image-minimal-initramfs-qemuarma9.cpio.gz -M vexpress-a9" bootparams="root=/dev/ram"

2.2 Virtual Disk on Qemu
------------------------

2.2.1 Create virtual disk image
-------------------------------

$ bitbake core-image-minimal
$ ls tmp/deploy/images/qeumarma9/core-image-minimal-qemuarma9.ext4

2.2.2 Deployment
------------------

$ runqemu qemuarma9 nograhpic

Example: command to get MMC disk image bootup.
 % tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-arm -sd tmp/deploy/images/qemuarma9/core-image-minimal-qemuarma9-20180928071920.rootfs.ext4 -show-cursor  -nographic -machine vexpress-a9  -m 256 -serial mon:stdio -serial null -kernel tmp/deploy/images/qemuarma9/zImage--4.18-rc++git0+0659636384_ef0043f38a-r0-qemuarma9-20180928065251.bin -append 'root=/dev/mmcblk0 rw highres=off  console=ttyS0 mem=256M ip=dhcp console=ttyAMA0,115200 console=tty ' -dtb tmp/deploy/images/qemuarma9/vexpress-v2p-ca9--4.18-rc++git0+0659636384_ef0043f38a-r0-qemuarma9-20180928065251.dtb