Changes

Jump to: navigation, search

XELK-AN-003: Package Management with Yocto

580 bytes added, 10:36, 5 April 2019
Installing packages on target
{{Applies To Yocto}}
{{InfoBoxBottom}}
{{WarningMessage|text=This application note was validated against specific versions of the kit only. It may not work with other versions. Supported versions are listed in the ''History'' section.}}
==History==
* <code>cortexa9hf_vfp_neon</code> is the name of the channel
* <code>http://myyocto.example.com/cortexa9hf_vfp_neon</code> is the URL of the webserver
 
We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done directly on serial console with the following commands:
 
<pre class="board-terminal">
root@imx6qxelk:~# ifconfig eth0 192.168.0.94
root@imx6qxelk:~# route add default gw 192.168.0.254
root@imx6qxelk:~# echo "nameserver 8.8.8.8" > /etc/resolv.conf
</pre>
For example:
'''
<pre class="board-terminal">
root@imx6qxelk:~# smart channel --add cortexa9hf_neon type=rpm-md baseurl=httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/
Alias: cortexa9hf_neon
Type: rpm-md
Base URL: httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/
Include this channel? (y/N): y
Fetching information for 'cortexa9hf_neon'...
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/repodata/repomd.xml
repomd.xml ############################################################ [ 50%]
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/repodata/primary.xml.gz -> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/repodata/filelists.xml.gz
filelists.xml.gz ############################################################ [ 75%]
primary.xml.gz ############################################################ [100%]
Fetching packages...
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-vimrc-7.4.769-r0.cortexa9hf_neon.rpm
vim-vimrc-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [ 16%]
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-syntax-7.4.769-r0.cortexa9hf_neon.rpm -> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-tutor-7.4.769-r0.cortexa9hf_neon.rpm
vim-tutor-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [ 33%]
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-7.4.769-r0.cortexa9hf_neon.rpm
vim-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [ 50%]
vim-syntax-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [ 66%]
-> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-common-7.4.769-r0.cortexa9hf_neon.rpm -> httpshttp://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/vim-help-7.4.769-r0.cortexa9hf_neon.rpm
vim-help-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [ 83%]
vim-common-7.4.769-r0.cortexa9hf_neon.rpm ############################################################ [100%]
8,154
edits

Navigation menu