-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME
66 lines (43 loc) · 2.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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