Skip to content

Commit e85993e

Browse files
shivkdho28
authored andcommitted
docs/wind: add VxWorks boot instructions for imx8mp-evk
Add a short guide for creating a VxWorks 26.03 VSB/VIP with the nxp_imx8 BSP and booting the generated uVxWorks image on the QEMU imx8mp-evk machine. Signed-off-by: shivkd <shiveshkd@gmail.com>
1 parent 3bb3885 commit e85993e

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
=================================================
2+
VxWorks 26.03 on the QEMU NXP i.MX8MP EVK Machine
3+
=================================================
4+
5+
This document describes the basic steps used to build a VxWorks Source Build
6+
(VSB), create a VxWorks Image Project (VIP), and boot the resulting image with
7+
Wind River QEMU on the NXP i.MX8MP EVK machine.
8+
9+
The VxWorks BSP used for this flow is ``nxp_imx8`` with the
10+
``INCLUDE_NXP_IMX8MP_EVK`` VIP component enabled.
11+
12+
Prerequisites
13+
=============
14+
15+
* Build and install Wind River QEMU on the workstation. The QEMU source is
16+
available from the Wind River QEMU repository.
17+
18+
* Install Wind River VxWorks on the workstation.
19+
20+
* Configure the workstation terminal for VxWorks command-line development by
21+
entering the VxWorks environment before running ``vxprj`` commands.
22+
23+
Create the VxWorks Source Build Project
24+
=======================================
25+
26+
From the workstation terminal, after setting up the VxWorks environment, create
27+
the VSB for the ``nxp_imx8`` BSP:
28+
29+
.. code::
30+
31+
$ cd ~/WindRiver/workspace
32+
$ vxprj vsb create -bsp nxp_imx8 vsb_nxp_imx8mp -S
33+
$ cd vsb_nxp_imx8mp
34+
$ make
35+
$ cd ..
36+
37+
Create the VxWorks Image Project
38+
================================
39+
40+
Create the VIP from the VSB:
41+
42+
.. code::
43+
44+
$ cd ~/WindRiver/workspace
45+
$ vxprj create -vsb vsb_nxp_imx8mp -profile PROFILE_DEVELOPMENT nxp_imx8 vip_nxp_imx8mp_evk
46+
$ cd vip_nxp_imx8mp_evk
47+
48+
Enable the i.MX8MP EVK board component:
49+
50+
.. code::
51+
52+
$ vxprj component add INCLUDE_NXP_IMX8MP_EVK
53+
54+
Build the VxWorks Image Project
55+
===============================
56+
57+
Build a compatible VxWorks image:
58+
59+
.. code::
60+
61+
$ vxprj build
62+
63+
Boot and Run VxWorks on QEMU
64+
============================
65+
66+
Basic Configuration
67+
-------------------
68+
69+
Use the local Wind River QEMU binary and the generated VxWorks image. Replace
70+
the paths below with the paths from your workstation.
71+
72+
.. code::
73+
74+
$ /path/to/qemu-system-aarch64 \
75+
-machine imx8mp-evk \
76+
-m 6G \
77+
-smp 4 \
78+
-display none \
79+
-kernel /path/to/vip_imx/default/uVxWorks \
80+
-dtb /path/to/vip_imx/default/imx8mp-evk.dtb \
81+
-serial none \
82+
-serial stdio
83+
84+
The -display none option disables the graphical display window. This boot
85+
flow uses the serial console, so no display device is required.
86+
87+
The two serial options are intentional and order-dependent. The i.MX8MP EVK
88+
machine exposes more than one serial device, and the VxWorks console is on the
89+
second serial device in this configuration. Therefore, -serial none disables
90+
the first serial device and -serial stdio connects the second serial device
91+
to the terminal.

0 commit comments

Comments
 (0)