forked from qt-creator/qt-creator
Doc: Describe Boot2Qt Plugin
- Add connecting to Boot2Qt devices topic - Move information about deploying to the generic embedded Linux devices topic to a Boot2Qt topic Fixes: QTCREATORBUG-25946 Change-Id: I72f12ceece133f4a4efe303e82d25a3b5e9b9135 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
BIN
doc/qtcreator/images/qtcreator-boot2qt-deployment-steps.png
Normal file
BIN
doc/qtcreator/images/qtcreator-boot2qt-deployment-steps.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
doc/qtcreator/images/qtcreator-boot2qt-device-configurations.png
Normal file
BIN
doc/qtcreator/images/qtcreator-boot2qt-device-configurations.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
doc/qtcreator/images/qtcreator-boot2qt-flashing-wizard.png
Normal file
BIN
doc/qtcreator/images/qtcreator-boot2qt-flashing-wizard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
BIN
doc/qtcreator/images/qtcreator-devices-boot2qt.png
Normal file
BIN
doc/qtcreator/images/qtcreator-devices-boot2qt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
@@ -26,7 +26,7 @@
|
|||||||
/*!
|
/*!
|
||||||
\previouspage creator-deployment.html
|
\previouspage creator-deployment.html
|
||||||
\page creator-deploying-android.html
|
\page creator-deploying-android.html
|
||||||
\nextpage creator-deployment-embedded-linux.html
|
\nextpage creator-deployment-b2qt.html
|
||||||
|
|
||||||
\title Deploying Applications to Android Devices
|
\title Deploying Applications to Android Devices
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
/*!
|
/*!
|
||||||
\previouspage creator-developing-android.html
|
\previouspage creator-developing-android.html
|
||||||
\page creator-developing-baremetal.html
|
\page creator-developing-baremetal.html
|
||||||
\nextpage creator-developing-generic-linux.html
|
\nextpage creator-developing-b2qt.html
|
||||||
|
|
||||||
\title Connecting Bare Metal Devices
|
\title Connecting Bare Metal Devices
|
||||||
|
|
||||||
|
158
doc/qtcreator/src/linux-mobile/b2qtdev.qdoc
Normal file
158
doc/qtcreator/src/linux-mobile/b2qtdev.qdoc
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
|
** Contact: https://www.qt.io/licensing/
|
||||||
|
**
|
||||||
|
** This file is part of the Qt Creator documentation.
|
||||||
|
**
|
||||||
|
** Commercial License Usage
|
||||||
|
** Licensees holding valid commercial Qt 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.
|
||||||
|
**
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\page creator-developing-b2qt.html
|
||||||
|
\previouspage creator-developing-baremetal.html
|
||||||
|
\nextpage creator-developing-generic-linux.html
|
||||||
|
|
||||||
|
\title Connecting Boot2Qt Devices
|
||||||
|
|
||||||
|
You can connect \l{Boot2Qt} devices to the development PC to run, debug,
|
||||||
|
and analyze applications built for them from \QC.
|
||||||
|
|
||||||
|
If you have a tool chain for building applications for \Boot2Qt devices
|
||||||
|
installed on the development PC, you can add it to \QC. You can then
|
||||||
|
select a \l{glossary-buildandrun-kit}{kit} with the \uicontrol \Boot2Qt
|
||||||
|
device type to build applications for and run them on the devices.
|
||||||
|
|
||||||
|
To be able to run and debug applications on \Boot2Qt devices,
|
||||||
|
you must add devices and select them in the \QC
|
||||||
|
\l{glossary-buildandrun-kit}{kit}.
|
||||||
|
|
||||||
|
\section1 Enabling the Boot2Qt Plugin
|
||||||
|
|
||||||
|
To enable the \Boot2Qt plugin:
|
||||||
|
|
||||||
|
\list 1
|
||||||
|
\li Select \uicontrol Help > \uicontrol {About Plugins} >
|
||||||
|
\uicontrol {Device Support} > \uicontrol \Boot2Qt to
|
||||||
|
enable the plugin.
|
||||||
|
\li Select \uicontrol {Restart Now} to restart \QC and load the plugin.
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
\section1 Adding Boot2Qt Devices
|
||||||
|
|
||||||
|
You use a wizard to create the connections. You can use either a
|
||||||
|
network connection or a USB connection. If \QC does not automatically
|
||||||
|
detect a device you connected with USB, you can use a wizard to
|
||||||
|
create a network connection to the device.
|
||||||
|
|
||||||
|
\note On Ubuntu Linux, the development user account must have access to
|
||||||
|
plugged in devices. To allow the development user access to the device
|
||||||
|
via USB, create a new \c udev rule, as described in
|
||||||
|
\l{https://doc.qt.io/QtForDeviceCreation/b2qt-requirements-x11.html#setting-up-usb-access-to-embedded-devices}
|
||||||
|
{Setting Up USB Access to Embedded Devices}.
|
||||||
|
|
||||||
|
You can edit the settings later in \uicontrol Tools > \uicontrol Options >
|
||||||
|
\uicontrol Devices > \uicontrol Devices.
|
||||||
|
|
||||||
|
\image qtcreator-boot2qt-device-configurations.png "Devices dialog"
|
||||||
|
|
||||||
|
You can protect the connections between \QC and a device by using an
|
||||||
|
\l{https://www.openssh.com/}{OpenSSH} connection. OpenSSH is a
|
||||||
|
connectivity tool for remote login using the SSH protocol. The OpenSSH
|
||||||
|
suite is not delivered with \QC, so you must download it and install it
|
||||||
|
on the development PC. Then, you must configure the paths to the tools in
|
||||||
|
\QC. For more information, see \l {Configuring SSH Connections}.
|
||||||
|
|
||||||
|
You need either a password or an SSH public and private key pair for
|
||||||
|
authentication. If you do not have an SSH key, you can use the ssh-keygen
|
||||||
|
tool to create it in \QC. For more information, see \l {Generating SSH Keys}.
|
||||||
|
|
||||||
|
\note \QC does not store passwords. If you use password authentication,
|
||||||
|
you may need to enter the password on every connection to the device,
|
||||||
|
or, if caching is enabled, at every \QC restart.
|
||||||
|
|
||||||
|
To reboot the selected device, select \uicontrol {Reboot Device}.
|
||||||
|
|
||||||
|
To restore the default application to the device, select
|
||||||
|
\uicontrol {Restore Default App}.
|
||||||
|
|
||||||
|
\section1 Flashing Boot2Qt Devices
|
||||||
|
|
||||||
|
To flash the \Boot2Qt image to an SD card with Flashing Wizard, select
|
||||||
|
\uicontrol Tools > \uicontrol {Flash Boot to Qt Device} and follow the
|
||||||
|
instructions of the wizard.
|
||||||
|
|
||||||
|
\image qtcreator-boot2qt-flashing-wizard.png "Boot2Qt Flashing Wizard"
|
||||||
|
|
||||||
|
\section1 Configuring Connections
|
||||||
|
|
||||||
|
To configure connections between \QC and a \Boot2Qt device and to
|
||||||
|
specify build and run settings for the device:
|
||||||
|
|
||||||
|
\list 1
|
||||||
|
\li Make sure that your device can be reached via an IP address or
|
||||||
|
connect it with a USB connection.
|
||||||
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
||||||
|
\uicontrol {Qt Versions} > \uicontrol Add to add the Qt version
|
||||||
|
for \Boot2Qt.
|
||||||
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
||||||
|
\uicontrol Compilers > \uicontrol Add to add the compiler for
|
||||||
|
building the applications.
|
||||||
|
\li Select \uicontrol Tools > \uicontrol {Flash Boot to Qt Device}
|
||||||
|
to flash the \Boot2Qt image to an SD card with Flashing Wizard.
|
||||||
|
\li To deploy applications and run them remotely on devices, specify
|
||||||
|
parameters for connecting to the devices over the network (\QC
|
||||||
|
automatically detects devices connected with USB):
|
||||||
|
\list 1
|
||||||
|
\li Select \uicontrol Tools > \uicontrol Options >
|
||||||
|
\uicontrol Devices > \uicontrol Devices > \uicontrol Add >
|
||||||
|
\uicontrol \Boot2Qt > \uicontrol {Finish}.
|
||||||
|
\image qtcreator-devices-boot2qt.png "Boot2Qt Network Device Setup wizard"
|
||||||
|
\li In the \uicontrol {Device name} field, enter a name for
|
||||||
|
the connection.
|
||||||
|
\li In the \uicontrol {Device address} field, enter the host
|
||||||
|
name or IP address of the device. This value will be
|
||||||
|
available in the \c %{Device:HostAddress} variable.
|
||||||
|
\li Click \uicontrol {Next} to create the connection.
|
||||||
|
|
||||||
|
You can edit the connection parameters in the
|
||||||
|
\uicontrol Devices tab. The wizard does not show
|
||||||
|
parameters that have sensible default values. One of
|
||||||
|
these is the SSH port number, which is available in
|
||||||
|
the variable \c %{Device:SshPort}.
|
||||||
|
\endlist
|
||||||
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Kits >
|
||||||
|
\uicontrol Add to add a kit for building applications for the
|
||||||
|
device. Select the Qt version, compiler, and device that you
|
||||||
|
added above, and choose \uicontrol \Boot2Qt as the device type.
|
||||||
|
\li To specify build settings:
|
||||||
|
\list 1
|
||||||
|
\li Open a project for an application you want to develop for the
|
||||||
|
device.
|
||||||
|
\li Select \uicontrol Projects > \uicontrol {Build & Run} to enable
|
||||||
|
the kit that you specified above.
|
||||||
|
\endlist
|
||||||
|
\li Select \uicontrol Run to specify run settings. Usually, you can use
|
||||||
|
the default settings.
|
||||||
|
|
||||||
|
When you run the project, \QC deploys the application as
|
||||||
|
specified by the deploy steps. By default, \QC copies the
|
||||||
|
application files to the device. For more information, see
|
||||||
|
\l{Specifying Run Settings for Boot2Qt Devices}.
|
||||||
|
\endlist
|
||||||
|
*/
|
42
doc/qtcreator/src/linux-mobile/creator-deployment-b2qt.qdoc
Normal file
42
doc/qtcreator/src/linux-mobile/creator-deployment-b2qt.qdoc
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
|
** Contact: https://www.qt.io/licensing/
|
||||||
|
**
|
||||||
|
** This file is part of the Qt Creator documentation.
|
||||||
|
**
|
||||||
|
** Commercial License Usage
|
||||||
|
** Licensees holding valid commercial Qt 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.
|
||||||
|
**
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\page creator-deployment-b2qt.html
|
||||||
|
\previouspage creator-deploying-android.html
|
||||||
|
\nextpage creator-deployment-embedded-linux.html
|
||||||
|
|
||||||
|
\title Deploying Applications to Boot2Qt Devices
|
||||||
|
|
||||||
|
You can specify the generic deployment steps for remote Linux devices also
|
||||||
|
for \l{Boot2Qt} devices.
|
||||||
|
|
||||||
|
\image qtcreator-boot2qt-deployment-steps.png "Boot2Qt deployment steps"
|
||||||
|
|
||||||
|
For more information, see \l{Generic Deployment Steps}.
|
||||||
|
|
||||||
|
In addition, to have your application launch on boot, select
|
||||||
|
\uicontrol {Add Deploy Step} > \uicontrol {Change Default Application}.
|
||||||
|
*/
|
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
\page creator-deployment-embedded-linux.html
|
\page creator-deployment-embedded-linux.html
|
||||||
\previouspage creator-deploying-android.html
|
\previouspage creator-deployment-b2qt.html
|
||||||
\if defined(qtdesignstudio)
|
\if defined(qtdesignstudio)
|
||||||
\nextpage creator-connecting-mobile.html
|
\nextpage creator-connecting-mobile.html
|
||||||
\else
|
\else
|
||||||
@@ -104,47 +104,6 @@
|
|||||||
support will crash when an SFTP upload is being attempted. This is not a bug
|
support will crash when an SFTP upload is being attempted. This is not a bug
|
||||||
in \QC.
|
in \QC.
|
||||||
|
|
||||||
\section1 Qt for Device Creation Deployment Steps
|
|
||||||
|
|
||||||
\if defined(qtcreator)
|
|
||||||
The deployment steps depend on the Qt for Device Creation version specified
|
|
||||||
in the kit.
|
|
||||||
|
|
||||||
\section2 Developing with Qt 5.8 or Earlier
|
|
||||||
|
|
||||||
The generic deployment steps are not available when developing with Qt for
|
|
||||||
Device Creation version 5.8 or earlier.
|
|
||||||
|
|
||||||
\image qtcreator-deployment-steps-b2qt-58.png
|
|
||||||
|
|
||||||
By default, \QC pushes the files to the device incrementally over an ADB
|
|
||||||
connection. When developing on Windows, executable permissions are set for
|
|
||||||
executable files after they are deployed to the device.
|
|
||||||
|
|
||||||
To execute custom commands, select \uicontrol {Add Deploy Step} >
|
|
||||||
\uicontrol {Custom Remote Command (via adb shell)} and enter the command to
|
|
||||||
execute.
|
|
||||||
|
|
||||||
\note You can add custom commands also as \l{Build Steps}{build steps}, to
|
|
||||||
have them executed when the application is built.
|
|
||||||
|
|
||||||
To have your application launch on boot, select \uicontrol {Add Deploy Step}
|
|
||||||
> \uicontrol {Make this application the default one}.
|
|
||||||
|
|
||||||
\section2 Developing with Qt 5.9 or Later
|
|
||||||
|
|
||||||
When developing with Qt for Device Creation version 5.9 or later, you can
|
|
||||||
specify the deployment steps described in this section in addition to the
|
|
||||||
generic deployment steps.
|
|
||||||
\endif
|
|
||||||
|
|
||||||
To execute custom commands when the application is deployed to the device,
|
|
||||||
select \uicontrol {Add Deploy Step} > \uicontrol {Run Custom Remote Command}
|
|
||||||
and enter the command to execute.
|
|
||||||
|
|
||||||
To have your application launch on boot, select \uicontrol {Add Deploy Step}
|
|
||||||
> \uicontrol {Change Default Application}.
|
|
||||||
|
|
||||||
\if defined(qtcreator)
|
\if defined(qtcreator)
|
||||||
\include creator-projects-cmake-deploying.qdocinc cmake deploying embedded
|
\include creator-projects-cmake-deploying.qdocinc cmake deploying embedded
|
||||||
\endif
|
\endif
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2020 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -77,7 +77,9 @@
|
|||||||
{Reference Target Devices and Development Hosts}
|
{Reference Target Devices and Development Hosts}
|
||||||
\li \l{https://doc.qt.io/QtForDeviceCreation/b2qt-installation-guides.html}
|
\li \l{https://doc.qt.io/QtForDeviceCreation/b2qt-installation-guides.html}
|
||||||
{Installation Guides}
|
{Installation Guides}
|
||||||
|
\li \l{Connecting Boot2Qt Devices}
|
||||||
\li \l{Specifying Run Settings for Boot2Qt Devices}
|
\li \l{Specifying Run Settings for Boot2Qt Devices}
|
||||||
|
\li \l{Deploying Applications to Boot2Qt Devices}
|
||||||
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
||||||
{Qt Creator Plugin for Qt Application Manager}
|
{Qt Creator Plugin for Qt Application Manager}
|
||||||
\li \l{https://doc.qt.io/QtForDeviceCreation/index.html}
|
\li \l{https://doc.qt.io/QtForDeviceCreation/index.html}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2020 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
host and on the device.
|
host and on the device.
|
||||||
|
|
||||||
For more information on the deployment steps, see
|
For more information on the deployment steps, see
|
||||||
\l{Deploying Applications to Generic Remote Linux Devices}.
|
\l{Deploying Applications to Boot2Qt Devices}.
|
||||||
|
|
||||||
//! [run settings boot2qt]
|
//! [run settings boot2qt]
|
||||||
*/
|
*/
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
\previouspage creator-developing-android.html
|
\previouspage creator-developing-android.html
|
||||||
\nextpage studio-advanced.html
|
\nextpage studio-advanced.html
|
||||||
\else
|
\else
|
||||||
\previouspage creator-developing-baremetal.html
|
\previouspage creator-developing-b2qt.html
|
||||||
\nextpage creator-developing-ios.html
|
\nextpage creator-developing-ios.html
|
||||||
\endif
|
\endif
|
||||||
|
|
||||||
|
@@ -49,18 +49,25 @@
|
|||||||
When you deploy the application to an Android device, \QC copies
|
When you deploy the application to an Android device, \QC copies
|
||||||
the application files to the device. In addition, you can determine
|
the application files to the device. In addition, you can determine
|
||||||
the Qt libraries to use.
|
the Qt libraries to use.
|
||||||
|
|
||||||
|
\li \l {Deploying Applications to Boot2Qt Devices}
|
||||||
|
|
||||||
|
When you deploy the application to a Boot2Qt device, \QC copies
|
||||||
|
the application files to the connected device. You can then test
|
||||||
|
and debug the application on the device with \QC.
|
||||||
|
|
||||||
\li \l{Deploying Applications to Generic Remote Linux Devices}
|
\li \l{Deploying Applications to Generic Remote Linux Devices}
|
||||||
|
|
||||||
When you deploy the application to a generic Linux-based device, \QC
|
When you deploy the application to a generic Linux-based device, \QC
|
||||||
copies the application files to the connected device. You can test
|
copies the application files to the connected device. You can then
|
||||||
and debug the application on the device.
|
test and debug the application on the device with \QC.
|
||||||
|
|
||||||
\if defined(qtcreator)
|
\if defined(qtcreator)
|
||||||
\li \l{Deploying Applications to QNX Neutrino Devices}
|
\li \l{Deploying Applications to QNX Neutrino Devices}
|
||||||
|
|
||||||
When you deploy the application to a QNX Neutrino device, \QC copies
|
When you deploy the application to a QNX Neutrino device, \QC copies
|
||||||
the application files to the connected device. You can test and
|
the application files to the connected device. You can then test and
|
||||||
debug the application on the device.
|
debug the application on the device with \QC.
|
||||||
\endif
|
\endif
|
||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2019 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -69,6 +69,11 @@
|
|||||||
to debug applications on them with GDB or a hardware debugger.
|
to debug applications on them with GDB or a hardware debugger.
|
||||||
\endif
|
\endif
|
||||||
|
|
||||||
|
\li \l{Connecting Boot2Qt Devices}
|
||||||
|
|
||||||
|
You can connect \l{Boot2Qt} devices to the development PC to run,
|
||||||
|
debug, and analyze applications built for them from \QC.
|
||||||
|
|
||||||
\li \l{Connecting Generic Remote Linux Devices}
|
\li \l{Connecting Generic Remote Linux Devices}
|
||||||
|
|
||||||
If you have a tool chain for building applications for embedded
|
If you have a tool chain for building applications for embedded
|
||||||
|
Reference in New Issue
Block a user