Skip to content

Commit 2be939f

Browse files
coneypodbkinder
authored andcommitted
Doc: add "Deploy the UOS kernel modules for AGL"
1 parent 73161f9 commit 2be939f

File tree

1 file changed

+38
-27
lines changed

1 file changed

+38
-27
lines changed

doc/tutorials/using_agl_as_uos.rst

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This tutorial describes the steps to run Automotive Grade Linux (AGL)
77
as the User OS on ACRN hypervisor and the problems we got at current stage.
88
We hope the steps documented in this article could help us to reproduce the
99
problem much easier and provide some information for further debugging.
10+
The regulatory model of APL NUC we used is `NUC6CAYH
11+
<https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc6cayh.html>`_
12+
and other platforms may work too.
1013

1114
.. image:: images/The-overview-of-AGL-as-UOS.png
1215
:align: center
@@ -26,58 +29,66 @@ https://www.automotivelinux.org/.
2629
Steps for using AGL as the UOS
2730
******************************
2831

29-
The regulatory model of NUC we used is `NUC6CAYH
30-
<https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc6cayh.html>`_
31-
and other platforms may work too.
32-
33-
34-
#. Prepare the Service OS (SOS)
35-
36-
Follow the instructions found in the Getting started guide for Intel NUC
37-
to setup SOS :ref:`getting-started-apl-nuc`.
38-
39-
#. Prepare the User OS (UOS)
40-
41-
Download the release of AGL from https://download.automotivelinux.org/AGL/release/eel/,
32+
#. Download the release of AGL from https://download.automotivelinux.org/AGL/release/eel/,
4233
and we will use ``eel_5.1.0`` release for example.
4334

4435
.. code-block:: none
4536
46-
cd ~
47-
wget https://download.automotivelinux.org/AGL/release/eel/5.1.0/intel-corei7-64/deploy/images/intel-corei7-64/agl-demo-platform-crosssdk-intel-corei7-64.wic.xz
48-
unxz agl-demo-platform-crosssdk-intel-corei7-64.wic.xz
49-
50-
51-
You need to adjust the ``/usr/share/acrn/samples/nuc/launch_uos.sh`` script to match your installation.
37+
$ cd ~
38+
$ wget https://download.automotivelinux.org/AGL/release/eel/5.1.0/intel-corei7-64/deploy/images/intel-corei7-64/agl-demo-platform-crosssdk-intel-corei7-64.wic.xz
39+
$ unxz agl-demo-platform-crosssdk-intel-corei7-64.wic.xz
40+
41+
#. Download the "kernel-iot-lts2018" kernel:
42+
43+
.. code-block:: none
44+
45+
$ sudo mkdir ~/uos-kernel-build
46+
$ cd ~/uos-kernel-build
47+
$ wget https://download.clearlinux.org/releases/current/clear/x86_64/os/Packages/linux-iot-lts2018-4.19.0-27.x86_64.rpm
48+
$ rpm2cpio linux-iot-lts2018-4.19.0-27.x86_64.rpm | cpio -idmv
49+
50+
.. note::
51+
Here we download the kernel from ``current`` Clear Linux version.
52+
53+
#. Deploy the UOS kernel modules to UOS virtual disk image
54+
(note: you’ll need to use the same iot-lts2018 image version number noted in step 1 above):
55+
56+
.. code-block:: none
57+
58+
$ sudo losetup -f -P --show ~/agl-demo-platform-crosssdk-intel-corei7-64.wic
59+
$ sudo mount /dev/loop0p2 /mnt
60+
$ sudo cp -r ~/uos-kernel-build/usr/lib/modules/4.19.0-27.iot-lts2018/ /mnt/lib/modules/
61+
$ sudo umount /mnt
62+
$ sync
63+
64+
#. You need to adjust the ``/usr/share/acrn/samples/nuc/launch_uos.sh`` script to match your installation.
5265
These are the couple of lines you need to modify:
5366

5467
.. code-block:: none
5568
5669
-s 3,virtio-blk,/root/agl-demo-platform-crosssdk-intel-corei7-64.wic \
5770
-k /usr/lib/kernel/default-iot-lts2018 \
58-
-B "root=/dev/vda2
71+
-B "root=/dev/vda2 ...
5972
6073
.. note::
6174
In case you have downloaded a different AGL image or store the image in other directory,
6275
you will need to modify the AGL file name or directory (the ``-s 3,virtio-blk`` argument)
6376
to match what you have downloaded above.
6477
Likewise, you may need to adjust the kernel file name to ``default-iot-lts2018``.
6578

66-
#. Start the User OS (UOS)
67-
68-
You are now all set to start the User OS (UOS).
79+
#. Start the User OS (UOS):
6980

7081
.. code-block:: none
7182
72-
sudo /usr/share/acrn/samples/nuc/launch_uos.sh
83+
$ sudo /usr/share/acrn/samples/nuc/launch_uos.sh
7384
7485
**Congratulations**, you are now watching the User OS booting up!
7586

7687
And you should be able to see the console of AGL:
7788

7889
.. image:: images/The-console-of-AGL.png
7990
:align: center
80-
91+
8192
When you see the output of the console above, that means AGL has been loaded
8293
and now you could operate on the console.
8394

@@ -108,8 +119,8 @@ After that, there are still some steps need to do to launch weston in AGL:
108119

109120
.. code-block:: none
110121
111-
export XDG_RUNTIME_DIR=/run/platform/display
112-
systemctl restart weston
122+
$ export XDG_RUNTIME_DIR=/run/platform/display
123+
$ systemctl restart weston
113124
114125
And you will be able to see the GUI of weston in AGL now.
115126

0 commit comments

Comments
 (0)