aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2017-08-25 16:16:50 +0300
committerDominik Holland <dominik.holland@pelagicore.com>2017-09-13 08:02:07 +0000
commit560a2fd2ce0ef39c2b5d73c37e7fbd0e951b0f95 (patch)
tree66b83238dbfaaf5ebae20ea03a1b9d8fc0c79fad
parentc9cce83c0a5632afa57ba04a3306161385b458c7 (diff)
Add BYOS instruction for NVIDIA DRIVE CX
An instruction for building an image and a toolchain for NVIDIA DRIVE CX added to Qt Automotive Suite documentation. Task-number: QTAUTO-392 Change-Id: I76bcfebb2c932a451986659f5c3e0c5412cb9b0f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--src/doc/qtautomotivesuite/src/external-resources.qdoc35
-rw-r--r--src/doc/qtautomotivesuite/src/images/qtas-yocto.pngbin0 -> 21364 bytes
-rw-r--r--src/doc/qtautomotivesuite/src/qtautomotivesuite-byos.qdoc195
-rw-r--r--src/doc/qtautomotivesuite/src/qtautomotivesuite-drive-cx.qdoc1
-rw-r--r--src/doc/qtautomotivesuite/src/qtautomotivesuite-toc.qdoc10
-rw-r--r--src/doc/qtautomotivesuite/src/qtautomotivesuite.qdoc2
6 files changed, 238 insertions, 5 deletions
diff --git a/src/doc/qtautomotivesuite/src/external-resources.qdoc b/src/doc/qtautomotivesuite/src/external-resources.qdoc
index 90a3083..9b9b708 100644
--- a/src/doc/qtautomotivesuite/src/external-resources.qdoc
+++ b/src/doc/qtautomotivesuite/src/external-resources.qdoc
@@ -139,3 +139,38 @@
\externalpage http://doc.qt.io/QtForDeviceCreation/qtee-building-and-running.html#building-and-running-an-example
\title Building and Running an Example
*/
+
+/*!
+ \externalpage http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html
+ \title Building Your Own Embedded Linux Image
+*/
+
+/*!
+ \externalpage http://doc.qt.io/QtForDeviceCreation/qtee-about-b2qt.html
+ \title About Boot to Qt
+*/
+
+/*!
+ \externalpage http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html#configuring-qt-creator
+ \title Configuring Qt Creator
+*/
+
+/*!
+ \externalpage http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html#using-toolchain-without-qt-creator
+ \title Using Toolchain without Qt Creator
+*/
+
+/*!
+ \externalpage http://www.yoctoproject.org/
+ \title Yocto Project
+*/
+
+/*!
+ \externalpage http://www.yoctoproject.org/documentation/current
+ \title Yocto Project Documentation for the Latest Release
+*/
+
+/*!
+ \externalpage http://www.nvidia.com/object/drive-cx-request.html
+ \title NVIDIA DRIVE™ CX
+*/
diff --git a/src/doc/qtautomotivesuite/src/images/qtas-yocto.png b/src/doc/qtautomotivesuite/src/images/qtas-yocto.png
new file mode 100644
index 0000000..c3e5bf8
--- /dev/null
+++ b/src/doc/qtautomotivesuite/src/images/qtas-yocto.png
Binary files differ
diff --git a/src/doc/qtautomotivesuite/src/qtautomotivesuite-byos.qdoc b/src/doc/qtautomotivesuite/src/qtautomotivesuite-byos.qdoc
new file mode 100644
index 0000000..6e94ab9
--- /dev/null
+++ b/src/doc/qtautomotivesuite/src/qtautomotivesuite-byos.qdoc
@@ -0,0 +1,195 @@
+/****************************************************************************
+**
+** Copyright (C) 2017 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the documentation of the Qt Automotive Suite.
+**
+** $QT_BEGIN_LICENSE:FDL-QTAS$
+** Commercial License Usage
+** Licensees holding valid commercial Qt Automotive Suite licenses may use
+** this file in accordance with the commercial license agreement provided
+** with the Software or, alternatively, in accordance with the terms
+** contained in a written agreement between you and The Qt Company. For
+** licensing terms and conditions see https://www.qt.io/terms-conditions.
+** For further information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \page qtautomotive-byos.html
+ \title Building Your Own NVIDIA DRIVE CX Image
+ \previouspage qtas-preparing-hardware-drivecx.html
+ \nextpage {Qt Automotive Suite Overview}{Overview}
+
+ \QAS is built on top of the \l{About Boot to Qt}{Boot to Qt} software stack
+ for embedded Linux systems. Boot to Qt for embedded Linux is built using the
+ tools and resources from the \l{Yocto Project}, and is based on Yocto's reference
+ distribution. You can use the same tools to build custom Boot to Qt images,
+ and have control over which packages are included in the build and how the
+ software stack is configured.
+
+ To build your own NVIDIA DRIVE CX image, follow the steps in this topic.
+ For more information about building the Boot to Qt image, see
+ \l{Building Your Own Embedded Linux Image}.
+
+ \note Building your own NVIDIA DRIVE CX image is supported only in Linux.
+
+ \section1 Requirements
+
+ You should be familiar with the Yocto tools and the concept of
+ \e {recipes}. For more information, see
+ \l{Yocto Project Documentation for the Latest Release}.
+
+ Your \QAS installation must include Yocto meta layer components. To install
+ those, select \uicontrol {Qt Automotive Suite}
+ > \uicontrol {Qt for Automotive Software Stack} > \uicontrol {Components}
+ > \uicontrol {Yocto meta layer} in the Qt online installation wizard.
+
+ \image qtas-yocto.png
+
+ After a successful installation, you will find the Yocto meta layer under the path
+ <Qt installation directory>/<Qt version>/Automotive/sources/meta-boot2qt.
+
+ Install dependencies for the Yocto tools. In Ubuntu, the following
+ packages are required:
+
+ \badcode
+ sudo apt-get install gawk curl git-core diffstat unzip p7zip-full texinfo \
+ gcc-multilib build-essential chrpath libsdl1.2-dev xterm gperf bison \
+ g++-multilib
+ \endcode
+
+ Download NVIDIA DRIVE CX Platform Development Kit (PDK) from the NVIDIA site.
+ In order to get access to PDK, you need a valid NVIDIA license.
+ For more information, see \l{NVIDIA DRIVE™ CX}. The required PDK version is 4.1.4.0.
+
+ \section1 Setting Up Build Environment
+
+ Set up the NVIDIA DRIVE CX build environment:
+
+ \list 1
+ \li Extract the following packages from NVIDIA DRIVE CX PDK:
+
+ \badcode
+ vibrante-t186ref-foundation-4.1.4.0-8512955.pdk.7z
+ vibrante-t186ref-linux-4.1.4.0-8512955-pdk.7z
+ \endcode
+
+ \li For installing the documentation, run the following command in a terminal:
+
+ \badcode
+ vibrante-t186ref-foundation-4.1.4.0-8512955-RUN-THIS-FIRST-install-docs.run
+ \endcode
+ After running the command, the NVIDIA DRIVE CX documentation should
+ be started automatically.
+
+ \li In the NVIDIA DRIVE CX documentation, open the topic
+ \uicontrol {System Programming} > \uicontrol {Building the Yocto Project Based Components}
+ and extract all defined prerequisite packages.
+
+ \li Extract the following package:
+ \badcode
+ <PDK installation directory>/vibrante-t186ref-linux-4.1.4.0-8512955-pdk/vibrante-t186ref-linux_src/yocto/nvidia-layer.tgz
+ \endcode
+
+ \li Create a new directory for building the image. In our example,
+ we use the directory name \e{builddir}.
+
+ \li Run the following commands in a terminal:
+ \badcode
+ cd builddir
+ <Qt Automotive Suite installation directory>/<Qt version>/Automotive/sources/meta-boot2qt/b2qt-init-build-env init --device tegra-t18x
+ \endcode
+
+ After running the commands, you should have:
+
+ \list
+ \li A directory \e{sources} generated under \e{builddir}.
+ \li A shell script \e{setup-environment.sh} generated under \e{builddir}.
+ \endlist
+
+ \li Create the following symbolic links:
+ \endlist
+
+ \table
+ \header
+ \li A symbolic link name
+ \li A source folder path
+ \li A destination folder path
+ \row
+ \li nvidia-layer
+ \li <PDK installation directory>/vibrante-t186ref-linux-4.1.4.0-8512955-pdk/vibrante-t186ref-linux_src/yocto/layers
+ \li builddir/sources/meta-boot2qt/sources
+ \row
+ \li vibrante-t186
+ \li <PDK installation directory>/vibrante-t186ref-linux-4.1.4.0-8512955-pdk
+ \li builddir/sources/meta-boot2qt/sources
+ \endtable
+
+ \e{builddir} is the directory that you created for building the image.
+
+ \section1 Configuring Build Environment
+
+ Configure the build environment for NVIDIA DRIVE CX by running the
+ following commands in a terminal:
+
+ \badcode
+ cd builddir
+ export MACHINE=tegra-t18x
+ source ./setup-environment.sh
+ \endcode
+
+ \e{builddir} is the directory you created for building the image.
+
+ After running \e{setup-environment.sh}, your current directory in a terminal
+ is \e{builddir/build-tegra-t18x}. There you can build an image and/or
+ a toolchain for NVIDIA DRIVE CX. The toolchain can be used with Qt Creator
+ for building Qt applications.
+
+ \section1 Building Image
+
+ Build the NVIDIA DRIVE CX image by running the following commands in a terminal:
+
+ \badcode
+ cd builddir/build-tegra-t18x
+ bitbake b2qt-automotive-qt5-image
+ \endcode
+
+ You will find the built image file \e{b2qt-automotive-qt5-image-tegra-t18x.7z}
+ under the path builddir/tmp/deploy/images/tegra-t18x.
+
+ \section1 Building Toolchain
+
+ Build the NVIDIA DRIVE CX toolchain by running the following commands in a terminal:
+
+ \badcode
+ cd builddir/build-tegra-t18x
+ bitbake meta-toolchain-b2qt-automotive-qt5-sdk
+ \endcode
+
+ After building the toolchain, you will find the shell script
+ \e{b2qt-x86-64-meta-toolchain-b2qt-automotive-qt5-sdk-tegra-t18x.sh}
+ under the path builddir/tmp/deploy/sdk/. Install the toolchain by running
+ the shell script.
+
+ \section1 Using Toolchain
+
+ After installing the toolchain, you can use it with or without Qt Creator.
+
+ If you are using the toolchain with Qt Creator, you need to configure
+ Qt Creator for the toolchain. See \l{Configuring Qt Creator}.
+ If you are using the toolchain without Qt Creator,
+ see \l{Using Toolchain without Qt Creator}.
+
+*/
+
diff --git a/src/doc/qtautomotivesuite/src/qtautomotivesuite-drive-cx.qdoc b/src/doc/qtautomotivesuite/src/qtautomotivesuite-drive-cx.qdoc
index 3df0f7b..80ed95c 100644
--- a/src/doc/qtautomotivesuite/src/qtautomotivesuite-drive-cx.qdoc
+++ b/src/doc/qtautomotivesuite/src/qtautomotivesuite-drive-cx.qdoc
@@ -28,6 +28,7 @@
\page qtas-preparing-hardware-drivecx.html
\title NVIDIA DRIVE CX Guide
\previouspage qtas-install.html
+ \nextpage qtautomotive-byos.html
Take the following steps when preparing \l {http://www.nvidia.com/object/drive-cx.html}
{NVIDIA DRIVE CX} for \B2Q:
diff --git a/src/doc/qtautomotivesuite/src/qtautomotivesuite-toc.qdoc b/src/doc/qtautomotivesuite/src/qtautomotivesuite-toc.qdoc
index 440bdb7..3a689e7 100644
--- a/src/doc/qtautomotivesuite/src/qtautomotivesuite-toc.qdoc
+++ b/src/doc/qtautomotivesuite/src/qtautomotivesuite-toc.qdoc
@@ -35,12 +35,12 @@
displayed in the Qt Creator Help mode Contents view.
\list
- \li \l{Contents}
+ \li \l {Qt Automotive Suite Overview}{Overview}
+ \li \l {Installing Qt Automotive Suite}{Install Instructions}
\list
- \li \l {Qt Automotive Suite Overview}{Overview}
- \li \l {Installing Qt Automotive Suite}{Install Instructions}
- \li \l {Supported Platforms}
- \li \l {Related Information}
+ \li \l{NVIDIA DRIVE CX Guide}
\endlist
+ \li \l {Building Your Own NVIDIA DRIVE CX Image}
+ \li \l {Related Information}
\endlist
*/
diff --git a/src/doc/qtautomotivesuite/src/qtautomotivesuite.qdoc b/src/doc/qtautomotivesuite/src/qtautomotivesuite.qdoc
index 160a3fe..4d7a0b9 100644
--- a/src/doc/qtautomotivesuite/src/qtautomotivesuite.qdoc
+++ b/src/doc/qtautomotivesuite/src/qtautomotivesuite.qdoc
@@ -50,6 +50,7 @@
\list
\li \l{NVIDIA DRIVE CX Guide}
\endlist
+ \li \l {Building Your Own NVIDIA DRIVE CX Image}
\li \l {Related Information}
\endlist
@@ -179,6 +180,7 @@
\page qtas-install.html
\title Installing Qt Automotive Suite
\previouspage {Qt Automotive Suite Overview}{Overview}
+ \nextpage qtas-preparing-hardware-drivecx.html
\QAS is a commercial product and requires a license to install and
explore its possibilities. Use the guide on the