User:Joger/Embedded: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Created page with "== Obtaining the system image == === Option 1 === Build your own system image and SDK using Yocto <ref>https://doc.qt.io/Boot2Qt/b2qt-how-to-create-b2qt-image.html</ref>. <syntaxhighlight lang="bash"> mkdir ~/Projects/qt-yocto cd ~/Projects/qt-yocto repo init -u git://code.qt.io/yocto/boot2qt-manifest -m 6.8.xml repo sync export MACHINE=raspberrypi4-64 source setup-environment.sh bitbake meta-b2qt-embedded-qbsp </syntaxhighlight>The bitbake output is a Qt board support...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:


=== Option 1 ===
=== Option 1 ===
Build your own system image and SDK using Yocto <ref>https://doc.qt.io/Boot2Qt/b2qt-how-to-create-b2qt-image.html</ref>. <syntaxhighlight lang="bash">
Build your own system image and SDK using Yocto <ref>https://doc.qt.io/Boot2Qt/b2qt-how-to-create-b2qt-image.html</ref>.  
* Use a Linux host. I was not able to complete a build with WSL due to various errors occurring during build. These could be memory or disk space related, but I don't know.
* Have at least 64 GB of RAM.
* Errors fetching data during bitbake process seems normal. Just restart the bitbake process. You may have to delete bitbake.lock to get things going again.
 
<syntaxhighlight lang="bash">
mkdir ~/Projects/qt-yocto
mkdir ~/Projects/qt-yocto
cd ~/Projects/qt-yocto
cd ~/Projects/qt-yocto
Line 10: Line 15:
source setup-environment.sh
source setup-environment.sh
bitbake meta-b2qt-embedded-qbsp
bitbake meta-b2qt-embedded-qbsp
</syntaxhighlight>
The bitbake output is a Qt board support package (BSP) that can be installed with the Qt Maintenance tool. It is located at <code enclose="none">build-raspberrypi4-64/tmp/deploy/qbsp/meta-b2qt-embedded-qbsp-x86_64-raspberrypi4-64-6.8.0.qbsp</code>
Note that building Qt WebEngine requires a lot of RAM. Consider disabling this module by adding <code enclose="none">DISTRO_FEATURES:remove = "webengine"</code> to <code enclose="none">build-raspberrypi4-64/conf/local.conf</code>


</syntaxhighlight>The bitbake output is a Qt board support package that can be installed with the Qt Maintenance tool. It is located at &lt;code&gt;build-raspberrypi4-64/tmp/deploy/qbsp/meta-b2qt-embedded-qbsp-x86_64-raspberrypi4-64-6.8.0.qbsp&lt;/code&gt;
Remember to extend flash memory card space after flashing (done on device):


Note that building Qt WebEngine requires a lot of RAM. Consider disabling this module by addding &lt;code&gt;DISTRO_FEATURES:remove = "webengine"&lt;/code&gt; to &lt;code&gt;build-raspberrypi4-64/conf/local.conf&lt;/code&gt;
<code>parted -s /dev/mmcblk0 resizepart 2 100%</code>
<code>resize2fs /dev/mmcblk0p2</code>

Latest revision as of 13:04, 9 August 2024

Obtaining the system image

Option 1

Build your own system image and SDK using Yocto [1].

  • Use a Linux host. I was not able to complete a build with WSL due to various errors occurring during build. These could be memory or disk space related, but I don't know.
  • Have at least 64 GB of RAM.
  • Errors fetching data during bitbake process seems normal. Just restart the bitbake process. You may have to delete bitbake.lock to get things going again.
mkdir ~/Projects/qt-yocto
cd ~/Projects/qt-yocto
repo init -u git://code.qt.io/yocto/boot2qt-manifest -m 6.8.xml
repo sync
export MACHINE=raspberrypi4-64
source setup-environment.sh
bitbake meta-b2qt-embedded-qbsp

The bitbake output is a Qt board support package (BSP) that can be installed with the Qt Maintenance tool. It is located at build-raspberrypi4-64/tmp/deploy/qbsp/meta-b2qt-embedded-qbsp-x86_64-raspberrypi4-64-6.8.0.qbsp

Note that building Qt WebEngine requires a lot of RAM. Consider disabling this module by adding DISTRO_FEATURES:remove = "webengine" to build-raspberrypi4-64/conf/local.conf

Remember to extend flash memory card space after flashing (done on device):

parted -s /dev/mmcblk0 resizepart 2 100%
resize2fs /dev/mmcblk0p2