Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
! style="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
|-
| 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" |August 2023/08/31| 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-MP1-L-1.0.0 1 release
|-
|}
__FORCETOC__
<section begin="Body" />
TBD
==Introduction==
During the development of custom applications, developers generally realize that they need to add libraries and other software packages to the root file systems to make their code run properly. If these packages are prebuilt, developers can easily install these additional packages onto the root file system very easily. By configuring the target as described in this document, they achieve a user experience similar to the one you have with a desktop Linux distro such as Ubuntu. DESK-MP1-L uses by default the <code>deb</code> package format. As such, [https://itsfoss.com/apt-command-guide/ apt commands] can be used for package management. Prebuilt packages are provided by a repository that DAVE Embedded Systems makes available for its customers.
==Configuring the targetManagement of prebuilt packages==In order During the development of custom applications, developers generally realize that they need to add libraries and other software packages to the root file systems to make their code run properly. If these packages are prebuilt, developers can install them onto the root file system very easily. By configuring the target as described in this document, they achieve a user experience similar to use the one you have with a desktop Linux distro such as Ubuntu. DESK-MP1-L uses by default the <code>apt-getdeb</code> package format. As such, [https://itsfoss.com/apt-command-guide/ apt commands] can be used for runtime package management, you must perform an initial setup on the target machine . Prebuilt packages are provided by [https://yocto.dave.eu/desk-mp1-l-1.0.1/ this repository] that DAVE Embedded Systems makes available for cases where the PACKAGE_FEED_* variables were not set as part of the image that is running on the targetits customers.
=== 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-MX8MMP1-L.
====Configuring <code>apt</code>====
Edit the file <code>/etc/apt/apt.conf</code> like this:
<pre>
root@desk-mp1:~# cat /etc/apt/apt.confAPT::Architecture "arm64armhf";
APT::Get::AllowUnauthenticated "true";
Acquire::Languages "none";
Edit the file <code>/etc/apt/sources.list.d/debian-10.list</code> like this:
<pre class="board-terminal">
root@desk-mx8mpmp1:~# cat /etc/apt/sources.list.d/debian-10.listdeb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ all/deb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ aarch64cortexa7t2hf-neon-vfpv4/deb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ aarch64-mx8mpdesk_mp1/
</pre>
<pre class="board-terminal">
root@desk-mx8mpmp1:~# rm -rf /var/lib/apt/lists/*root@desk-mx8mpmp1:~# apt-get cleanroot@orcadesk-mp1:~# apt-get update0% [Working]The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses. Ign:1 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 1 all/ InReleaseIgn:2 http://yocto.dave.eu/imxdesk-5mp1-l-1.40.701 cortexa7t2hf-neon-2.3.0 aarch64vfpv4/ InReleaseIgn:3 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 aarch64-mx8mp1 desk_mp1/ InReleaseGet:4 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 1 all/ Release [1213 1215 B]Get:5 http://packages.openstlinux.st.com/4.1 kirkstone InRelease [3459 B]Get:6 http://yocto.dave.eu/imxdesk-mp1-l-51.40.701 cortexa7t2hf-neon-2.3.0 aarch64vfpv4/ Release [1217 1235 B]Get:6 7 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 aarch64-mx8mp1 desk_mp1/ Release [1223 1220 B]Ign:7 8 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 1 all/ Release.gpgIgn:8 9 http://yocto.dave.eu/imxdesk-mp1-l-51.40.701 cortexa7t2hf-neon-2.3.0 aarch64vfpv4/ Release.gpgIgn:9 10 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 aarch64-mx8mp1 desk_mp1/ Release.gpgGet:10 11 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-21.30.0 1 all/ Packages [146 158 kB]Get:11 12 http://yocto.dave.eu/imxdesk-mp1-l-51.40.701 cortexa7t2hf-neon-2vfpv4/ Packages [4123 kB]Get:13 http://packages.openstlinux.st.3com/4.0 aarch641 kirkstone/ untested armhf Packages [2848 1251 kB]Get:12 14 http://yocto.dave.eu/imxdesk-mp1-l-51.0.1 desk_mp1/ Packages [238 kB]Get:15 http://packages.openstlinux.st.com/4.70-21 kirkstone/updates armhf Packages [30.9 kB]Get:16 http://packages.openstlinux.st.3com/4.0 aarch64-mx8mp1 kirkstone/ main armhf Packages [283 684 kB]Fetched 3280 6492 kB in 6s 9s (545 716 kB/s)
Reading package lists... Done
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release (expected all/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release (expected cortexa7t2hf-neon-vfpv4/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release (expected desk_mp1/ but got )
</pre>
<pre>
sed -i 's/\.\//aarch64cortexa7t2hf-neon-vfpv4\//g' /var/lib/apt/lists/yocto.dave.eu_imxeu_desk-mp1-l-51.40.701_cortexa7t2hf-neon-2.3.0_aarch64_Packagesvfpv4_Packagessed -i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_imxeu_desk-5.4.70mp1-l-21.30.0_all_Packages1_all_Packagessed -i 's/\.\//aarch64-mx8mpdesk%5fmp1\//g' /var/lib/apt/lists/yocto.dave.eu_imxeu_desk-5.4.70mp1-l-21.30.0_aarch64-mx8mp_Packages1_desk%5fmp1_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-MX8MMP1-L/Deployment/How_to_configure_the_network_interfaces#Static_IP_address | How to configure the network interfaces]] wiki page.  The target is finally ready to install new packages. The following example shows for instance the installation of <code>graphviz</code>:
The target is finally ready to install new packages. The following example shows for instance the installation of <code>vim</code>:
<pre class="board-terminal">
root@orcadesk-mp1:~# apt-get install vimgraphviz
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
vim-common vim-help vim-syntax vim-tutor vim-vimrc
The following NEW packages will be installed:
vim vim-common vim-help vim-syntax vim-tutor vim-vimrcgraphviz0 upgraded, 6 1 newly installed, 0 to remove and 20 10 not upgraded.Need to get 6584 2007 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] YGet:1 http://yocto.dave.eu/imxdesk-mp1-5.4.70l-2.3.0 aarch64/ vim 8.1.1518-r0 [1051 kB]Get:2 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-common 8.1.1518cortexa7t2hf-r0 [2314 kB]Get:3 http://yocto.dave.eu/imx-5.4.70neon-2.3.0 aarch64/ vim-help 8.1.1518-r0 [1757 kB]Get:4 http://yocto.dave.euvfpv4/imx-5.4.70-graphviz 2.350.0 aarch64/ vim-syntax 8.1.1518-r0 [1049 kB]Get:5 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-tutor 8.1.1518-r0 [411 2007 kB]Get:6 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-vimrc 8.1.1518-r0 [1596 B]Fetched 6584 2007 kB in 9s 1s (660 2522 kB/s)Selecting previously unselected The software package vim.(Reading database ... 71726 files is provided AS IS, and directories currently installed.)Preparing by downloading it, you agree to be bound to unpack .../vim_8.1.1518-r0_arm64.deb ...Unpacking vim the terms of the software license agreement (8.1.1518-r0SLA) ...Selecting previously unselected package vim-common.Preparing to unpack .The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/vim-common_8.1.1518-r0_arm64.deb ..OpenSTLinux_licenses.Unpacking vim-common (8.1.1518-r0) ...Selecting previously unselected package vim-helpgraphviz.Preparing to unpack .../vim-help_8.1.1518-r0_arm64.deb ...Unpacking vim-help (8Reading database .1.1518-r0) ...Selecting previously unselected package vim-syntax.Preparing to unpack .../vim-syntax_8.1.1518-r0_arm64.deb ..28119 files and directories currently installed.Unpacking vim-syntax (8.1.1518-r0) ...Selecting previously unselected package vim-tutor.Preparing to unpack .../vim-tutor_8graphviz_2.150.1518-r0_arm64.deb ...Unpacking vim-tutor (8.1.15180-r0) ...Selecting previously unselected package vim-vimrc.Preparing to unpack .../vim-vimrc_8.1.1518-r0_arm640_armhf.deb ...Unpacking vim-vimrc graphviz (82.150.15180-r0) ...Setting up vim (8.1.1518-r00) ...update-alternatives: Linking /bin/vi to /usr/bin/vim.vimupdate-alternatives: Linking /usr/bin/vim to /usr/bin/vim.vimupdate-alternatives: Linking /usr/bin/xxd to /usr/bin/xxd.vimSetting up vim-common graphviz (82.150.15180-r0) ...Setting up vim-help (8.1.1518-r0) ...Setting up vim-syntax (8.1.1518-r0) ...Setting up vim-tutor (8.1.1518-r0) ...Setting up vim-vimrc (8.1.1518-r00) ...
</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 class="board-terminal">
root@desk-mx8mpmp1:~# cat /etc/apt/sources.list.d/debian-10.listdeb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ all/deb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ aarch64cortexa7t2hf-neon-vfpv4/deb [trusted=yes] http://yocto.dave.eu/imxdesk-5.4.70mp1-l-21.30.01/ aarch64-mx8mpdesk_mp1/
</pre>
==== Search for packages ====
To search for an available package into the current configured channels use <code>apt-cache search</code>
<pre class="board-terminal">
root@desk-mx8mpmp1:~# apt-cache search vimvim-dbg u- Vi IMproved boot- enhanced vi editor tools- Debugging filesvim mkenvimage - Vi IMproved U- enhanced vi editorBoot bootloader tools
vim-common - Vi IMproved - enhanced vi editor
vim-dev - Vi IMproved - enhanced vi editor - Development files
vim-doc - Vi IMproved - enhanced vi editor - Documentation files
vim-help - Vi IMproved - enhanced vi editor
vim-src - Vi IMproved - enhanced vi editor - Source files
vim-syntax - Vi IMproved - enhanced vi editor
vim-tiny-dev - Vi IMproved - enhanced vi editor (with tiny features) - Development files
vim-tiny-src - Vi IMproved - enhanced vi editor (with tiny features) - Source files
vim-tiny - Vi IMproved - enhanced vi editor (with tiny features)
vim-tools - Vi IMproved - enhanced vi editor
vim-tutor - Vi IMproved - enhanced vi editor
vim-vimrc - Vi IMproved - enhanced vi editor
vim-syntax - Vi IMproved - enhanced vi editorvim-tools - Vi IMproved - enhanced vi editorvim-help - Vi IMproved - enhanced vi editorvim-dev - Vi IMproved - enhanced vi editor - Development filesvim-doc - Vi IMproved - enhanced vi editor - Documentation filesroot@desk-mx8mp:~#
</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)
<pre>
acl
acl-dev
adwaita-icon-theme-symbolic
alsa-conf
alsa-plugins
alsa-plugins-pulseaudio-conf
alsa-state
alsa-state-stm32mp1
alsa-states
alsa-toolsalsa-utilsalsa-utils-aconnectalsa-utils-alsactlalsa-utils-alsaloopalsa-utilstopology-alsamixerconfalsa-utilsucm-alsatplgconf
...
[snip]
...
volatileweston-binds-devwaylandwayland-devinitwhichwhich-devwget
wireless-regdb-static
wireless-tools
wpa-supplicant
wpa-supplicant-cli
wpa-supplicant-passphrase
xinetd
xkeyboard-config
xxhash
xz
xz-dev
root@desk-mx8mm:~#
</pre>
 
----
 
[[Category:ETRA]] [[Category:ETRA_SBC]]
8,256
edits