Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
{{ImportantMessage|text=This application note has been validated using the '''kit version''' in the History table.}}
=<section begin=History==/>{| classstyle="border-collapse:collapse; "! colspan="4" style="wikitablewidth:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History|- ! style="1border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date!IDstyle="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes|-!Date| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|16498|2022/05/03}}!Development Kit version| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |[[DESK-MX8M-L/General/Release_Notes#DESK-MX8M-L_2.0.0-rc2|DESK-MX8M-L 2.0.0-rc2]]
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" | {{oldid|1649818383|164982023/08/22}}| 03/05/2022style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |[[DESK-MX8M-L/General/Release_Notes#DESK-MX8M-L_2L_4.0.0-rc2|DESK-MX8M-L 24.0.0-rc2]]
|-
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" | {{oldid|18383|18383}}| 222023/11/08/2023|[[DESK! style="border-left:solid 2px #73B2C7; border-MX8Mright:solid 2px #73B2C7;border-L/General/Release_Notestop:solid 2px #DESK73B2C7; border-MX8Mbottom:solid 2px #73B2C7; background-L_4.0.0color:#ededed; padding:5px; color:#000000" |DESK-MX8M-L 4.0.0]]Minor changes
|-
|}
<section end=History/>
==Introduction==
<section begin=body/>
Since NXP BSP [https://www.nxp.com/webapp/Download?colCode=L5.4.24_2.1.0_LINUX_DOCS 5.4.24] Yocto release, [https://debian-handbook.info/browse/stable/sect.apt-get.html apt-get] has been added as a package manager for installing packages in the DUT (target machine).
This Application Note (AN) describes a way to apply the approach illustrated here to a Yocto distribution that makes use of Debian packetization. In other words, a local archive of Yocto-generated, prebuilt <code>.deb</code> packages is used in combination with the well known <code>apt-get</code> utility.
=== apt-get ===
The following instructions detail how to use apt-get for installing packages with Yocto repositories created by DAVE's build system for DESK-MX8M-L.
====Configuring <code>apt</code> for SBC-ORCA====
Edit the file <code>/etc/apt/apt.conf</code> like this:
<pre>
<pre>
root@desksed -mx8mp:~# i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_all_Packagessed -i 's/\.\//armv8a-mx8mp\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_armv8a-mx8mp_Packages0_armv8a_Packagesroot@desk-mx8mp:~# sed -i 's/\.\//allarmv8a-mx8mp\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_all_Packages0_armv8a-mx8mp_Packagesroot@desk-mx8mp:~# sed -i 's/\.\//desk%5fmx8mp\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_desk%5fmx8mp_Packages
</pre>
====Configuring <code>apt</code> for SBCX-Mito8MMini====
Edit the file <code>/etc/apt/apt.conf</code> like this:
<pre>
root@desk-mx8mm:~# cat /etc/apt/sources.list.d/debian-10.list
deb [trusted=yes] http://yocto.dave.eu/desk-mx8m-l-4.0.0/ all/
deb [trusted=yes] http://yocto.dave.eu/desk-mx8m-l-4.0.0/ armv8a/
deb [trusted=yes] http://yocto.dave.eu/desk-mx8m-l-4.0.0/ armv8a-mx8mm/
deb [trusted=yes] http://yocto.dave.eu/desk-mx8m-l-4.0.0/ desk_mx8mm/
Reading package lists... Done
W: Conflicting distribution: http://yocto.dave.eu/desk-mx8m-l-4.0.0 all/ Release (expected all/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mx8m-l-4.0.0 armv8a/ Release (expected armv8a/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mx8m-l-4.0.0 armv8a-mx8mm/ Release (expected armv8a-mx8mm/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mx8m-l-4.0.0 desk_mx8mm/ Release (expected desk_mx8mm/ but got )
<pre>
root@desksed -i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-mx8mm:~# 4.0.0_all_Packagessed -i 's/\.\//armv8a-mx8mm\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_armv8a-mx8mm_Packages0_armv8a_Packagesroot@desk-mx8mm:~# sed -i 's/\.\//desk%5fmx8mmarmv8a-mx8mm\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_desk%5fmx8mm_Packages0_armv8a-mx8mm_Packagesroot@desk-mx8mm:~# sed -i 's/\.\//alldesk%5fmx8mm\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mx8m-l-4.0.0_all_Packages0_desk%5fmx8mm_Packages
</pre>
=== Installing packages on target ===
We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done according to the [[DESK-MX8M-L/Deployment/How_to_configure_the_network_interfaces#Static_IP_address | How to configure the network interfaces]] wiki page.
</pre>
=== Other useful apt commands ===
==== List of configured software repositories ====
As shown before, the target is configured for accessing the Yocto repositories as listed in the <code>/etc/apt/sources.list.d</code> apt configuration directory:
</pre>
==== Search for packages ====
To search for an available package into the current configured channels use <code>apt-cache search</code>
</pre>
==== List of installed packages ====
User can see the list of installed packages with <code>dpkg --get-selections | sed 's:install$::'</code> (sed removes the ''install'' string from the output list)
xz-dev
</pre>
<section end=body/>
8,226
edits