Giter Club home page Giter Club logo

meta-qemuarma9's Introduction

        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 <[email protected]> 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/qemuarma9-*.cpio.gz

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

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

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

$ make start-target \
TARGET_QEMU_OPTS="-initrd `pwd`/export/qemuarma9-wrlinux-image-glibc-small-standard-dist.cpio.gz -M vexpress-a9" \
TARGET_QEMU_KERNEL_OPTS=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-*.rootfs.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 -show-cursor  -machine vexpress-a9 -cpu cortex-a9 -m 256  -kernel tmp/deploy/images/qemuarma9/zImage--4.12.7+git0+325deac3de_084d8ae2f3-r0-qemuarma9-20170830232849.bin -append 'root=/dev/mmcblk0 rw highres=off  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 console=ttyAMA0,38400n8 ' -dtb tmp/deploy/images/qemuarma9/zImage-vexpress-v2p-ca9.dtb --nographic -sd tmp/deploy/images/qemuarma9/core-image-minimal-qemuarma9-20170831023207.rootfs.ext4

meta-qemuarma9's People

Contributors

chenqi1989 avatar haokexin avatar jwessel avatar masselstine avatar robertlinux avatar rwmacleod avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.