Changes

Jump to: navigation, search

MISC-TN-014: Yocto and Debian packetization

58 bytes added, 15:08, 3 August 2020
no edit summary
To mitigate this drawback, the technique described in [[https://wiki.dave.eu/index.php/XELK-AN-003:_Package_Management_with_Yocto|this article]] can be used. In essence, one can build all the packages supported by Yocto (<code>bitbake -k world</code>) and make them available through a <code>smart</code> channel on a local server. Developers working on the target can easily install required packages without having to build them.
Interestingly, in its recent BSP's, NXP indicates a little different approach, which goes even further as it is also open to interfacing to the Debian world. The following excerpt is taken from ''NXP i.MX Yocto Project User's Guide, Document Number: IMXLXYOCTOUG, Rev. L5.4.24_2.1.0, 06/2020'':
In principle, the adoption of the Debian package management should allow to use prebuilt package archives available for [http://ftp.debian.org/debian/README.html Debian distributions]. However, close attention should be paid when mixing packages of different distributions. For instance, Debian packages installed on a Yocto file system could not work. Even worse, '''they could interfere with existing packages and make these unusable'''.
This Technical Note (TN) describes a way to apply the <code>smart</code>-based approach illustrated [https://wiki.dave.eu/index.php/XELK-AN-003:_Package_Management_with_Yocto here] to a Yocto distribution that makes use of Debian packetization. In other words, a local archive of Yocto-generated , prebuilt .deb packages is used in combination with the well known <code>apt-get</code> utility.
==Testbed==
The testbed used to verify this procedure consists of the an NXP i.MX8M Plus EVK (*) combined with the Linux BSP tagged as ''L5.4.24_2.1.0''.
(*) At the time of this writing, the i.MX8M Plus SoC is not released yet. DAVE Embedded Systems, however, has access to the EVK because it our company is part of the related Beta program.
==Configuring and testing==
First of all, all the packages were built with Yocto. Then, they were copied to a server supporting the HTTPS protocol. The resulting archive is available here: https://yocto.dave.eu/imx-5.4/.
On the target, the file <code>/etc/apt/sources.list.d/imx-5.4.list</code> was createdin order to point to this archive:
<pre class="board-terminal">
root@imx8mpevk:/etc/apt/sources.list.d# cat imx-5.4.list
</pre>
Please note that two <code>.list</code> files are were automatically generated by Yocto: <code>/etc/apt/sources.list.ddebiand/debian-10.list</code> and <code>/etc/apt/sources.list</code>. They were renamed to <code>debian-10.list.ignore</code> and <code>sources.list.ignore</code> respectively.
N: Ignoring file 'debian-10.list.ignore' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
</pre>
 
==TBD==
4,650
edits

Navigation menu