Difference between revisions of "Package repository for OpenSTLinux distribution"

[quality revision] [quality revision]
m
m (Add warning to explain errors that may occurs with stm32mp13 boards)
Applicable for STM32MP13x lines, STM32MP15x lines


1 Disclaimers[edit]

STMicroelectronics packages repository service is provided for evaluation purpose only, and therefore not approved for use in production.
The package licenses hosted in these repositories can be found here: OpenSTLinux licenses.
Command outputs described in this document may slightly vary depending on tools version.

1.1 Description[edit]

OpenSTLinux provides a package repository service hosted at the non-browsable URL http://packages.openstlinux.st.com. The package repository service is designed for STM32MP157C-DK2 STM32MP157x-DKx More info green.png, STM32MP157x-EV1 More info green.png and STM32MP135F-DK More info green.png boards and is enabled by default in the Starter Package.

Warning white.png Warning
Some packages provided in the OpenSTLinux distribution can't be installed or run onto the STM32MP135F-DK More info green.png board. This mainly concerns graphical and related packages because of hardware technical characteristics which differ from STM32MP157x-DKx More info green.png and STM32MP157x-EV1 More info green.png boards.

1.2 Organization[edit]

Within each repository, packages are organized in two three groups (a.k.a components in the APT terminology):

  • the main group contains a wide selection of packages whose installation is automatically tested by STMicroelectronics
  • the untested group contains all the other packages that can be built using the bitbake world command. However their installation is not guaranteed.
A third group named updates is reserved for future use.

1.3 Limitations[edit]

Packages repository service doesn't include the packages that are shipped in the rootfs image, nor the BSP components (TF-A, U-Boot, Linux and OP-TEE). They can be installed only from the Starter Package using the STM32CubeProgrammer.

rootfs available space is about 60MB by default. For a better experience it is recommended to flash the Starter Package using the "extensible" flashlayout (*-extensible.tsv).
Extensible flashlayout does not flash userfs partition to extend the rootfs partition to the size of the sdcard.

2 Usage[edit]

2.1 Prequisite[edit]

We assume your board has an internet connection either through the network cable or through a WiFi connection.


2.2 Apt[edit]

OpenSTLinux packages can be handled using apt-* utilities, which are the same utilities used on a Debian system. The first apt-* command that must be run before any other is:

 
 apt-get update
 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.
  
 Get:1 http://packages.openstlinux.st.com/24.0 dunfell InRelease [34313459 B]
 Get:2 http://packages.openstlinux.st.com/24.0 dunfell/main armhf Packages [1039 kB682kB]
 Get:3 http://packages.openstlinux.st.com/24.0 dunfell/updates armhf Packages [64.2kB]
 Get:4 http://packages.openstlinux.st.com/4.0 dunfell/untested armhf Packages [1645 kB1223kB]
 Fetched 26871973 kB in 10s3s (268626 kB/s)
 Reading package lists... Done

This command synchronizes the local packages index from the repositories enumerated in /etc/apt/sources.list{,.d}. Once it is updated, apt-cache can be used to get the list of all available packages:

 
 apt-cache search .
 a52dec - ATSC A/52 surround sound stream decoder
 a52dec-doc - ATSC A/52 surround sound stream decoder
 acl - Utilities for managing POSIX Access Control Lists
 ...
 xserverxkeyboard-xorgconfig - TheKeyboard X.Orgconfiguration X server
 xserver-xorg-xwayland - The X.Org X server
 xterm - xterm is the standard terminal emulator for the database for X Window
System xxhash xvinfo - PrintExtremely outfast Xnon-Videocryptographic extensionhash adaptoralgorithm
information  xz - Utilities for managing LZMA compressed files

It is possible to list only packages that match a given pattern, for example:

 
 apt-cache search emacs
 libreadline-doc - Library for editing typed command lines - Documentation files
 libreadline-src - Library for editing typed command lines - Source files
 emacs-base - Emacs is the extensible, customizable, self-documenting real-time display editor
 emacs-doc - Emacs is the extensible, customizable, self-documenting real-time display editor - Documentation files
 emacs-full - Emacs is the extensible, customizable, self-documenting real-time display editor
 emacs-minimal - Emacs is the extensible, customizable, self-documenting real-time display editor
 gpm - Console mouse driver
 gpm-doc - Console mouse driver - Documentation files
 zile - Zile is lossy Emacs
 zile-doc - Zile is lossy Emacs - Documentation files
 libreadline8 - Library for editing typed command lines

The desired package(s) can then be easily installed:

 
 apt-get install zile
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following additional packages will be installed:
   bdwgc
 The following NEW packages will be installed:
   bdwgc zile
 0 upgraded, 2 newly installed, 0 to remove and 03 not upgraded.
 Need to get 148150 kB of archives.
 After this operation, 0 B of additional disk space will be used.
 Do you want to continue? [Y/n]
 Get:1 http://packages.openstlinux.st.com/24.0 dunfell/untested armhf bdwgc armhf 8.2.0.4-r0 [6970.29 kB]
 Get:2 http://packages.openstlinux.st.com/24.0 dunfell/untested armhf zile armhf 2.4.1415-r0 [79.31 kB]
 Fetched 148150 kB in 0s1s (251287 kB/s)
 
 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.
 
 Selecting previously unselected package bdwgc.
 (Reading database ... 1403014860 files and directories currently installed.)
 Preparing to unpack .../bdwgc_8.2.0.4-r0_armhf.deb ...
 Unpacking bdwgc (8.2.0.4-r0) ...
 Selecting previously unselected package zile.
 Preparing to unpack .../zile_2.4.1415-r0_armhf.deb ...
 Unpacking zile (2.4.1415-r0) ...
 Setting up bdwgc (8.2.0.4-r0) ...
 Setting up zile (2.4.1415-r0) ...

... or removed:

 
 apt-get remove zile
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following package was automatically installed and is no longer required:
   bdwgc
 Use 'apt autoremove' to remove it.
 The following packages will be REMOVED:
   zile
 0 upgraded, 0 newly installed, 1 to remove and 03 not upgraded.
 After this operation, 0 B of additional disk space will be used.
 Do you want to continue? [Y/n]
 
 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.
   
 (Reading database ... 1403514865 files and directories currently installed.)
 Removing zile (2.4.1415-r0) ...


This command only removes the files that were installed from this package. It does not remove the package from the apt download cache. If there is not enough space available on the system, it is recommended to clean the cache:

 
 apt-get clean

Likewise, some packages may have been automatically installed to respect dependencies with other packages. If they are no longer required, they can be removed to free space:

 
 apt-get autoremove
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following packages will be REMOVED:
   bdwgc
 0 upgraded, 0 newly installed, 1 to remove and 03 not upgraded.
 After this operation, 0 B of additional disk space will be used.
 Do you want to continue? [Y/n]
 
 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.
 
 (Reading database ... 1403414864 files and directories currently installed.)
 Removing bdwgc (8.2.0.4-r0) ...

3 How to activate a local package repository[edit]

3.1 Prerequisite[edit]

Even if Package repository for OpenSTLinux offers lots of and various packages, you may need to use a local and personnal package repository. To use Using a local and personnal personal package repository is a 'smart' and 'quick' way to update the STM32MP15_Discovery_kits_-_Starter _ Package with your developments.

A local package repository is a collection of *.deb organized such apt needs it. The local repository should provide Packages metafiles.

Natively OpenEmbedded/Yocto build system is able to generate a valid package repository (by using bitbake package-index command listed below). So first Install the STM32MP1 OpenSTLinux distribution.

3.2 Update the repo package indexes[edit]

Execute the bitbake package-index command:

 
 cd [your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>
  bitbake package-index

3.3 HTTP server execution on the computer[edit]

SimpleHTTPserver python application is already installed on the board with the OpenSTLinux distribution. You just need to launch this application on your host computer, in the "[your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>/tmp-glibc/deploy/deb" folder:

 cd [your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>/tmp-glibc/deploy/deb
 python -m SimpleHTTPServer&

3.4 How to use the local OpenSTLinux Distribution[edit]

We use the physical IP address of the HTTP server we launched above to configure APT. That means this {{<IP>}} address should be defined as static on the host computer.
You can now configure the APT tool directly on the target via a Linux console:

 echo "deb [trusted=yes] http://<IP>:8000/stm32mp1 /" > /etc/apt/sources.list.d/my_custom.list
 echo "deb [trusted=yes] http://<IP>:8000/all /" >> /etc/apt/sources.list.d/my_custom.list
 echo "deb [trusted=yes] http://<IP>:8000/cortexa7t2hf-neon-vfpv4 /" >> /etc/apt/sources.list.d/my_custom.list
 echo "deb [trusted=yes] http://<IP>:8000/cortexa7hf-neon-vfpv4 /"  >> /etc/apt/sources.list.d/my_custom.list

In the above example, [trusted=yes] has been specified because the package manifest Release is not signed.

Then you can run the command to synchronize the local packages index:

 
 apt-get update
 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://<IP>:8000/allstm32mp1  InRelease
                                                                                                                          
 Ign:2 http://<IP>:8000/stm32mp1all  InRelease
                                                                                                                     
 Ign:3 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  InRelease
 Ign:4 http://<IP>:8000/cortexa7hf-neon-vfpv4  InRelease
 Get:5 http://<IP>:8000/stm32mp1  Release [1088                                                                                            
 Get:4B]
 Get:6 http://<IP>:8000/all  Release [12131083 B]
                                                                                                                   
 Get:5Get:7 http://<IP>:8000/stm32mp1cortexa7t2hf-neon-vfpv4  Release [12181115 B]
                                                                                                              
 Get:6Get:8 http://<IP>:8000/cortexa7t2hfcortexa7hf-neon-vfpv4  Release [12331097 B]
 Ign:9 http://<IP>:8000/stm32mp1                                                                                             
 Ign:7Release.gpg
 Ign:10 http://<IP>:8000/all  Release.gpg
                                                                                                                        
 Ign:8Ign:11 http://<IP>:8000/stm32mp1cortexa7t2hf-neon-vfpv4  Release.gpg
                                                                                                                   
 Ign:9Ign:12 http://<IP>:8000/cortexa7t2hfcortexa7hf-neon-vfpv4  Release.gpg
 Get:13 http://<IP>:8000/stm32mp1  Packages [165                                                                                               
 Get:10kB]
 Get:14 http://<IP>:8000/all  Packages [82.8109 kB]
                                                                                                                
 Get:11Get:15 http://<IP>:8000/stm32mp1cortexa7t2hf-neon-vfpv4  Packages [1732775 kB]
                                                                                                            
 Get:12Get:16 http://<IP>:8000/cortexa7t2hfcortexa7hf-neon-vfpv4  Packages [173420.5 kB]
                                                                                            
 Fetched 1994Fetched 3073 kB in 3s7s (662463 kB/s)
                                                                                                                                       
 Reading package lists... Done

The other apt-* commands are now available as described above.

4 Support[edit]

Bug reports, request for new packages, or any other kind of support requests can be submitted through https://community.st.com.


5 Further readings[edit]


=={{ApplicableFor
|MPUs list=STM32MP13x, STM32MP15x
|MPUs checklist=STM32MP13x, STM32MP15x
}}<noinclude>

</noinclude>

==Disclaimers==
STMicroelectronics packages repository service is provided for evaluation purpose only, and therefore not approved for use in production.<br/>

The package licenses hosted in these repositories can be found here: [[OpenSTLinux_licenses|OpenSTLinux licenses]].<br/>

Command outputs described in this document may slightly vary depending on tools version.

===Description===
OpenSTLinux provides a package repository service hosted at the non-browsable URL <nowiki>http://packages.openstlinux.st.com</nowiki>.
The package repository service is designed for ''STM32MP157C-DK2'' {{Board | type=157x-DKx | name=short}}'', ''{{Board | type=157x-EV1 | name=short}}'' and {{Board | type=135F-DK | name=short}} boards and is enabled by default in the [[STM32MP15_Discovery_kits_-_:Category:Starter_Package|Starter Package]].


==={{Warning| Some packages provided in the OpenSTLinux distribution can't be installed or run onto the {{Board | type=135F-DK | name=short}} board. This mainly concerns graphical and related packages because of hardware technical characteristics which differ from ''{{Board | type=157x-DKx | name=short}}'' and ''{{Board | type=157x-EV1 | name=short}}'' boards.}}

===Organization===
Within each repository, packages are organized in twothree groups (a.k.a ''components'' in the APT terminology):

* the '''main''' group contains a wide selection of packages whose installation is automatically tested by STMicroelectronics
* the '''untested''' group contains all the other packages that can be built using the <code>bitbake world</code> command. However their installation is not guaranteed.

A third group named '''updates''' is reserved for future use.
* the '''updates''' group contains additional packages not included in the [[OpenSTLinux_distribution|OpenSTLinux distribution releases]] and updated packages. This group is managed by a dedicated layer available through github®. Further details are available by following the github® link: https://github.com/STMicroelectronics/meta-st-pkgrepo-updates.
===Limitations===
Packages repository service doesn't include the packages that are shipped in the rootfs image, nor the BSP components (TF-A, U-Boot, Linux and OP-TEE).  They  can be installed only from the [[STM32MP15_Discovery_kits_-_:Category:Starter_Package|Starter Package]] using the [[STM32CubeProgrammer]].

''rootfs'' available space is about 60MB by default. For a better experience it is recommended to [[STM32CubeProgrammer#How_to_flash_with_STM32CubeProgrammer|flash]] the [[STM32MP15_Discovery_kits_-_:Category:Starter_Package|Starter Package]] using the "extensible" flashlayout (''*-extensible.tsv'').<br/>

{{Grey|'''''Extensible flashlayout''''' does not flash userfs partition to extend the rootfs partition to the size of the sdcard.}}

==Usage==
===Prequisite===
We assume your board has an internet connection either through the network cable or through a WiFi connection.

{{InternalInfo|
If your internet access depends on a proxy server, you should define the http_proxy environment variable with the following command before any <code>apt-*</code> commands:
 {{Board$}} export http_proxy&#x003D;'http://<proxy url>:<proxy port>/'
}}

===Apt ===

OpenSTLinux packages can be handled using <code>apt-*</code> utilities, which are the same utilities used on a [https://manpages.debian.org/stable/apt/apt-get.8.en.html Debian system].  The first <code>apt-*</code> command that must be run before any other is:

  {{Board$}} apt-get update
  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<nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.

  Get:1 <nowiki>http://packages.openstlinux.st.com/24.0</nowiki> dunfell InRelease [34313459 B]
  Get:2 <nowiki>http://packages.openstlinux.st.com/24.0</nowiki> dunfell/main armhf Packages [1039 kB682kB]
  Get:3 <nowiki>http://packages.openstlinux.st.com/24.0</nowiki> dunfell/untested armhf Packages [1645 kB]
  Fetched 2687 kB in 10s (268updates armhf Packages [64.2kB]
  Get:4 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/untested armhf Packages [1223kB]
  Fetched 1973 kB in 3s (626 kB/s)
  Reading package lists... Done

This command synchronizes the local packages index from the repositories enumerated in [https://manpages.debian.org/stable/apt/sources.list.5.en.html <code>/etc/apt/sources.list{,.d}</code>].  Once it is updated, [https://manpages.debian.org/stable/apt/apt-cache.8.en.html <code>apt-cache</code>] can be used to get the list of all available packages:

  {{Board$}} apt-cache search .
  a52dec - ATSC A/52 surround sound stream decoder
  a52dec-doc - ATSC A/52 surround sound stream decoder
  acl - Utilities for managing POSIX Access Control Lists
  ...xserver-xorg - The X.Org X server
  xserver-xorg-xwayland - The X.Org X server
  xterm - xterm is the standard terminal emulator for the X Window System
  xvinfo - Print out X-Video extension adaptor informationxkeyboard-config - Keyboard configuration database for X Window
  xxhash - Extremely fast non-cryptographic hash algorithmxz - Utilities for managing LZMA compressed files

It is possible to list only packages that match a given pattern, for example:

  {{Board$}} apt-cache search emacs
  libreadline-doc - Library for editing typed command lines - Documentation fileslibreadline-src - Library for editing typed command lines - Source files
  emacs-base - Emacs is the extensible, customizable, self-documenting real-time display editor
  emacs-doc - Emacs is the extensible, customizable, self-documenting real-time display editor - Documentation files
  emacs-full - Emacs is the extensible, customizable, self-documenting real-time display editor
  emacs-minimal - Emacs is the extensible, customizable, self-documenting real-time display editorgpm - Console mouse driver
  gpm-doc - Console mouse driver - Documentation files
  zile - Zile is lossy Emacs
  zile-doc - Zile is lossy Emacs - Documentation files
  libreadline8 - Library for editing typed command lines

The desired package(s) can then be easily installed:

  {{Board$}} apt-get install zile
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following additional packages will be installed:
    bdwgc
  The following NEW packages will be installed:
    bdwgc zile
  0 upgraded, 2 newly installed, 0 to remove and 03 not upgraded.
  Need to get 148150 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n]
  Get:1 <nowiki>http://packages.openstlinux.st.com/24.0</nowiki> dunfell/untested armhf bdwgc armhf 8.2.0.4-r0 [69.270.9 kB]
  Get:2 <nowiki>http://packages.openstlinux.st.com/24.0</nowiki> dunfell/untested armhf zile armhf 2.4.1415-r0 [79.31 kB]
  Fetched 148150 kB in 0s (2511s (287 kB/s)

  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<nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.

  Selecting previously unselected package bdwgc.
  (Reading database ... 1403014860 files and directories currently installed.)
  Preparing to unpack .../bdwgc_8.2.0.4-r0_armhf.deb ...
  Unpacking bdwgc (8.2.0.4-r0) ...
  Selecting previously unselected package zile.
  Preparing to unpack .../zile_2.4.1415-r0_armhf.deb ...
  Unpacking zile (2.4.1415-r0) ...
  Setting up bdwgc (8.2.0.4-r0) ...
  Setting up zile (2.4.1415-r0) ...

... or removed:

  {{Board$}} apt-get remove zile
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following package was automatically installed and is no longer required:
    bdwgc
  Use 'apt autoremove' to remove it.
  The following packages will be REMOVED:
    zile
  0 upgraded, 0 newly installed, 1 to remove and 03 not upgraded.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n]

  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<nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.

  (Reading database ... 1403514865 files and directories currently installed.)
  Removing zile (2.4.1415-r0) ...

This command only removes the files that were installed from this package. It does not remove the package from the <code>apt</code> download cache.  If there is not enough space available on the system, it is recommended to clean the cache:

  {{Board$}} apt-get clean

Likewise, some packages may have been automatically installed to respect dependencies with other packages. If they are no longer required, they can be removed to free space:

  {{Board$}} apt-get autoremove
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
    bdwgc
  0 upgraded, 0 newly installed, 1 to remove and 03 not upgraded.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n]

  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<nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.

  (Reading database ... 1403414864 files and directories currently installed.)
  Removing bdwgc (8.2.0.4-r0) ...

== How to activate a local package repository ==
===Prerequisite===
Even if ''Package repository for OpenSTLinux'' offers lots of and various packages, you may need to use a local and personnal package repository. To use Using a local and personnalpersonal package repository is a 'smart' and 'quick' way to update the [[STM32MP15_Discovery_kits_-_Starter_Package:Category:Starter_Package|Starter Package]] with your developments.

A local package repository is a collection of *.deb organized such <code>apt</code> needs it. The local repository should provide ''Packages'' metafiles.

Natively OpenEmbedded/Yocto build system is able to generate a valid package repository (by using <code>bitbake package-index</code> command listed below). 
So first [[STM32MP1 Distribution Package - OpenSTLinux distribution#Download|Install the STM32MP1 OpenSTLinux distribution]].

===Update the repo package indexes===
Execute the <code>bitbake package-index</code> command:

  {{PC$}} cd [your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>

  {{PC$}} bitbake package-index

===HTTP server execution on the computer===
'''SimpleHTTPserver''' python application is already installed on the board with the OpenSTLinux distribution. You just need to launch this application on your host computer, in the "[your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>/tmp-glibc/deploy/deb" folder:

 {{PC$}} cd [your STM32MP1 Distribution path]/build-<DISTRO>-<MACHINE>/tmp-glibc/deploy/deb
 {{PC$}} python -m SimpleHTTPServer&

===How to use the local OpenSTLinux Distribution===
We use the physical IP address of the HTTP server we launched above to configure APT. That means this {{<IP>}} address should be defined as static on the host computer.<br/>

You can now configure the APT tool directly on the target via a Linux console:

 {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/stm32mp1 /" > /etc/apt/sources.list.d/my_custom.list
 {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/all /" >> /etc/apt/sources.list.d/my_custom.list
 {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/cortexa7t2hf-neon-vfpv4 /" >> /etc/apt/sources.list.d/my_custom.list{{Board$}} echo "deb [trusted=yes] http://<IP>:8000/cortexa7hf-neon-vfpv4 /"  >> /etc/apt/sources.list.d/my_custom.list
In the above example, '''[trusted=yes]''' has been specified because the package manifest '''Release''' is not signed.<br/>


Then you can run the command to synchronize the local packages index:

  {{Board$}} apt-get update
  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<nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
  Ign:1 http://<IP>:8000/allstm32mp1  InRelease                                                                                                                        
Ign:2 http://<IP>:8000/stm32mp1all  InRelease                                                                                                                   
Ign:3 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  InRelease                                                                                                    

  Get:4Ign:4 http://<IP>:8000/cortexa7hf-neon-vfpv4  InRelease
  Get:5 http://<IP>:8000/stm32mp1  Release [1088 B]
  Get:6 http://<IP>:8000/all  Release [12131083 B]                                                                                                                 

  Get:5 http://<IP>:8000/stm32mp1  Release [1218 B]                                                                                                               
  Get:6 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Release [1233 B]                                                                                                
  Ign:7Get:7 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Release [1115 B]
  Get:8 http://<IP>:8000/cortexa7hf-neon-vfpv4  Release [1097 B]
  Ign:9 http://<IP>:8000/stm32mp1  Release.gpg
  Ign:10 http://<IP>:8000/all  Release.gpg                                                                                                                      

  Ign:8 http://<IP>:8000/stm32mp1  Release.gpg                                                                                                                    
  Ign:9 http://<IP>:8000/cortexa7t2hfIgn:11 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Release.gpg
  Ign:12 http://<IP>:8000/cortexa7hf-neon-vfpv4  Release.gpg                                                                                                  

  Get:10Get:13 http://<IP>:8000/stm32mp1  Packages [165 kB]
  Get:14 http://<IP>:8000/all  Packages [82.8109 kB]                                                                                                              

  Get:11 http://<IP>:8000/stm32mp1  Packages [173 kB]                                                                                                             
  Get:12 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Packages [1734 kB]                                                                                             
  Fetched 1994 kB in 3s (662 kB/s)                                                                                                                                        Get:15 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Packages [2775 kB]
  Get:16 http://<IP>:8000/cortexa7hf-neon-vfpv4  Packages [20.5 kB]
  Fetched 3073 kB in 7s (463 kB/s)Reading package lists... Done

The other <code>apt-*</code> commands are now available as described above.

==Support==

Bug reports, request for new packages, or any other kind of support
requests can be submitted through https://community.st.com.

==Further readings==

* [[Dpkg]]
* https://manpages.debian.org/stable/apt/apt-get.8.en.html
* https://manpages.debian.org/stable/apt/sources.list.5.en.html
* https://manpages.debian.org/stable/apt/apt-cache.8.en.html
* https://wiki.debian.org/DebianRepository/Setup
* https://wiki.debian.org/DebianRepository/SetupWithReprepro
* https://wiki.debian.org/SecureApt
* [[STM32MP15 Discovery kits - Starter Package]]
* [[STM32MP15_Evaluation boards - Starter Package | STM32MP15 Evaluation boards - Starter Package]]
* [[STM32MP1 Developer Package]]
<noinclude>

[[Category:Services]]
{{PublicationRequestId | 14914 | 2020-02-12 |AnneJ}}</noinclude>
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  +
{{ApplicableFor
  +
|MPUs list=STM32MP13x, STM32MP15x
  +
|MPUs checklist=STM32MP13x, STM32MP15x
  +
}}
  +
<noinclude>
  +
  +
</noinclude>
 
==Disclaimers==
 
==Disclaimers==
 
STMicroelectronics packages repository service is provided for evaluation purpose only, and therefore not approved for use in production.<br/>
 
STMicroelectronics packages repository service is provided for evaluation purpose only, and therefore not approved for use in production.<br/>
Line 6: Line 13:
 
===Description===
 
===Description===
 
OpenSTLinux provides a package repository service hosted at the non-browsable URL <nowiki>http://packages.openstlinux.st.com</nowiki>.
 
OpenSTLinux provides a package repository service hosted at the non-browsable URL <nowiki>http://packages.openstlinux.st.com</nowiki>.
  +
The package repository service is designed for ''{{Board | type=157x-DKx | name=short}}'', ''{{Board | type=157x-EV1 | name=short}}'' and {{Board | type=135F-DK | name=short}} boards and is enabled by default in the [[:Category:Starter_Package|Starter Package]].
   
The package repository service is designed for ''STM32MP157C-DK2'' boards and is enabled by default in the [[STM32MP15_Discovery_kits_-_Starter_Package|Starter Package]].
+
{{Warning| Some packages provided in the OpenSTLinux distribution can't be installed or run onto the {{Board | type=135F-DK | name=short}} board. This mainly concerns graphical and related packages because of hardware technical characteristics which differ from ''{{Board | type=157x-DKx | name=short}}'' and ''{{Board | type=157x-EV1 | name=short}}'' boards.}}
 
 
   
 
===Organization===
 
===Organization===
Within each repository, packages are organized in two groups (a.k.a ''components'' in the APT terminology):
+
Within each repository, packages are organized in three groups (a.k.a ''components'' in the APT terminology):
   
 
* the '''main''' group contains a wide selection of packages whose installation is automatically tested by STMicroelectronics
 
* the '''main''' group contains a wide selection of packages whose installation is automatically tested by STMicroelectronics
 
* the '''untested''' group contains all the other packages that can be built using the <code>bitbake world</code> command. However their installation is not guaranteed.
 
* the '''untested''' group contains all the other packages that can be built using the <code>bitbake world</code> command. However their installation is not guaranteed.
 
+
* the '''updates''' group contains additional packages not included in the [[OpenSTLinux_distribution|OpenSTLinux distribution releases]] and updated packages. This group is managed by a dedicated layer available through github®. Further details are available by following the github® link: https://github.com/STMicroelectronics/meta-st-pkgrepo-updates.
A third group named '''updates''' is reserved for future use.
 
   
 
===Limitations===
 
===Limitations===
Packages repository service doesn't include the packages that are shipped in the rootfs image, nor the BSP components (TF-A, U-Boot, Linux and OP-TEE).  They can be installed only from the [[STM32MP15_Discovery_kits_-_Starter_Package|Starter Package]] using the [[STM32CubeProgrammer]].
+
Packages repository service doesn't include the packages that are shipped in the rootfs image, nor the BSP components (TF-A, U-Boot, Linux and OP-TEE).  They can be installed only from the [[:Category:Starter_Package|Starter Package]] using the [[STM32CubeProgrammer]].
   
''rootfs'' available space is about 60MB by default. For a better experience it is recommended to [[STM32CubeProgrammer#How_to_flash_with_STM32CubeProgrammer|flash]] the [[STM32MP15_Discovery_kits_-_Starter_Package|Starter Package]] using the "extensible" flashlayout (''*-extensible.tsv'').<br/>
+
''rootfs'' available space is about 60MB by default. For a better experience it is recommended to [[STM32CubeProgrammer#How_to_flash_with_STM32CubeProgrammer|flash]] the [[:Category:Starter_Package|Starter Package]] using the "extensible" flashlayout (''*-extensible.tsv'').<br/>
 
{{Grey|'''''Extensible flashlayout''''' does not flash userfs partition to extend the rootfs partition to the size of the sdcard.}}
 
{{Grey|'''''Extensible flashlayout''''' does not flash userfs partition to extend the rootfs partition to the size of the sdcard.}}
 
   
 
==Usage==
 
==Usage==
Line 44: Line 49:
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
    
 
    
   Get:1 <nowiki>http://packages.openstlinux.st.com/2.0</nowiki> dunfell InRelease [3431 B]
+
   Get:1 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell InRelease [3459 B]
   Get:2 <nowiki>http://packages.openstlinux.st.com/2.0</nowiki> dunfell/main armhf Packages [1039 kB]
+
   Get:2 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/main armhf Packages [682kB]
   Get:3 <nowiki>http://packages.openstlinux.st.com/2.0</nowiki> dunfell/untested armhf Packages [1645 kB]
+
   Get:3 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/updates armhf Packages [64.2kB]
   Fetched 2687 kB in 10s (268 kB/s)
+
  Get:4 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/untested armhf Packages [1223kB]
  +
   Fetched 1973 kB in 3s (626 kB/s)
 
   Reading package lists... Done
 
   Reading package lists... Done
   
Line 57: Line 63:
 
   acl - Utilities for managing POSIX Access Control Lists
 
   acl - Utilities for managing POSIX Access Control Lists
 
   ...
 
   ...
   xserver-xorg - The X.Org X server
+
   xkeyboard-config - Keyboard configuration database for X Window
  xserver-xorg-xwayland - The X.Org X server
+
   xxhash - Extremely fast non-cryptographic hash algorithm
  xterm - xterm is the standard terminal emulator for the X Window System
 
   xvinfo - Print out X-Video extension adaptor information
 
 
   xz - Utilities for managing LZMA compressed files
 
   xz - Utilities for managing LZMA compressed files
   
Line 67: Line 71:
 
   {{Board$}} apt-cache search emacs
 
   {{Board$}} apt-cache search emacs
 
   libreadline-doc - Library for editing typed command lines - Documentation files
 
   libreadline-doc - Library for editing typed command lines - Documentation files
  +
  libreadline-src - Library for editing typed command lines - Source files
  +
  emacs-base - Emacs is the extensible, customizable, self-documenting real-time display editor
  +
  emacs-doc - Emacs is the extensible, customizable, self-documenting real-time display editor - Documentation files
  +
  emacs-full - Emacs is the extensible, customizable, self-documenting real-time display editor
  +
  emacs-minimal - Emacs is the extensible, customizable, self-documenting real-time display editor
 
   gpm - Console mouse driver
 
   gpm - Console mouse driver
 
   gpm-doc - Console mouse driver - Documentation files
 
   gpm-doc - Console mouse driver - Documentation files
Line 83: Line 92:
 
   The following NEW packages will be installed:
 
   The following NEW packages will be installed:
 
     bdwgc zile
 
     bdwgc zile
   0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
+
   0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
   Need to get 148 kB of archives.
+
   Need to get 150 kB of archives.
 
   After this operation, 0 B of additional disk space will be used.
 
   After this operation, 0 B of additional disk space will be used.
 
   Do you want to continue? [Y/n]
 
   Do you want to continue? [Y/n]
   Get:1 <nowiki>http://packages.openstlinux.st.com/2.0</nowiki> dunfell/untested armhf bdwgc armhf 8.0.4-r0 [69.2 kB]
+
   Get:1 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/untested armhf bdwgc armhf 8.2.0-r0 [70.9 kB]
   Get:2 <nowiki>http://packages.openstlinux.st.com/2.0</nowiki> dunfell/untested armhf zile armhf 2.4.14-r0 [79.3 kB]
+
   Get:2 <nowiki>http://packages.openstlinux.st.com/4.0</nowiki> dunfell/untested armhf zile armhf 2.4.15-r0 [79.1 kB]
   Fetched 148 kB in 0s (251 kB/s)
+
   Fetched 150 kB in 1s (287 kB/s)
 
    
 
    
 
   The software package is provided AS IS, and by downloading it, you agree to be
 
   The software package is provided AS IS, and by downloading it, you agree to be
Line 97: Line 106:
 
    
 
    
 
   Selecting previously unselected package bdwgc.
 
   Selecting previously unselected package bdwgc.
   (Reading database ... 14030 files and directories currently installed.)
+
   (Reading database ... 14860 files and directories currently installed.)
   Preparing to unpack .../bdwgc_8.0.4-r0_armhf.deb ...
+
   Preparing to unpack .../bdwgc_8.2.0-r0_armhf.deb ...
   Unpacking bdwgc (8.0.4-r0) ...
+
   Unpacking bdwgc (8.2.0-r0) ...
 
   Selecting previously unselected package zile.
 
   Selecting previously unselected package zile.
   Preparing to unpack .../zile_2.4.14-r0_armhf.deb ...
+
   Preparing to unpack .../zile_2.4.15-r0_armhf.deb ...
   Unpacking zile (2.4.14-r0) ...
+
   Unpacking zile (2.4.15-r0) ...
   Setting up bdwgc (8.0.4-r0) ...
+
   Setting up bdwgc (8.2.0-r0) ...
   Setting up zile (2.4.14-r0) ...
+
   Setting up zile (2.4.15-r0) ...
   
 
... or removed:
 
... or removed:
Line 117: Line 126:
 
   The following packages will be REMOVED:
 
   The following packages will be REMOVED:
 
     zile
 
     zile
   0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
+
   0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
 
   After this operation, 0 B of additional disk space will be used.
 
   After this operation, 0 B of additional disk space will be used.
 
   Do you want to continue? [Y/n]
 
   Do you want to continue? [Y/n]
Line 126: Line 135:
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
      
 
      
   (Reading database ... 14035 files and directories currently installed.)
+
   (Reading database ... 14865 files and directories currently installed.)
   Removing zile (2.4.14-r0) ...
+
   Removing zile (2.4.15-r0) ...
   
   
Line 142: Line 151:
 
   The following packages will be REMOVED:
 
   The following packages will be REMOVED:
 
     bdwgc
 
     bdwgc
   0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
+
   0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
 
   After this operation, 0 B of additional disk space will be used.
 
   After this operation, 0 B of additional disk space will be used.
 
   Do you want to continue? [Y/n]
 
   Do you want to continue? [Y/n]
Line 151: Line 160:
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
    
 
    
   (Reading database ... 14034 files and directories currently installed.)
+
   (Reading database ... 14864 files and directories currently installed.)
   Removing bdwgc (8.0.4-r0) ...
+
   Removing bdwgc (8.2.0-r0) ...
 
 
   
 
== How to activate a local package repository ==
 
== How to activate a local package repository ==
 
===Prerequisite===
 
===Prerequisite===
Even if ''Package repository for OpenSTLinux'' offers lots of and various packages, you may need to use a local and personnal package repository. To use a local and personnal package repository is a 'smart' and 'quick' way to update the [[STM32MP15_Discovery_kits_-_Starter_Package]] with your developments.
+
Even if ''Package repository for OpenSTLinux'' offers lots of and various packages, you may need to use a local and personnal package repository. Using a local and personal package repository is a 'smart' and 'quick' way to update the [[:Category:Starter_Package|Starter Package]] with your developments.
   
 
A local package repository is a collection of *.deb organized such <code>apt</code> needs it. The local repository should provide ''Packages'' metafiles.
 
A local package repository is a collection of *.deb organized such <code>apt</code> needs it. The local repository should provide ''Packages'' metafiles.
Line 183: Line 191:
 
  {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/all /" >> /etc/apt/sources.list.d/my_custom.list
 
  {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/all /" >> /etc/apt/sources.list.d/my_custom.list
 
  {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/cortexa7t2hf-neon-vfpv4 /" >> /etc/apt/sources.list.d/my_custom.list
 
  {{Board$}} echo "deb [trusted=yes] http://<IP>:8000/cortexa7t2hf-neon-vfpv4 /" >> /etc/apt/sources.list.d/my_custom.list
  +
{{Board$}} echo "deb [trusted=yes] http://<IP>:8000/cortexa7hf-neon-vfpv4 /"  >> /etc/apt/sources.list.d/my_custom.list
   
 
In the above example, '''[trusted=yes]''' has been specified because the package manifest '''Release''' is not signed.<br/>
 
In the above example, '''[trusted=yes]''' has been specified because the package manifest '''Release''' is not signed.<br/>
Line 193: Line 202:
 
   The detailed content licenses can be found at
 
   The detailed content licenses can be found at
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
 
   <nowiki>https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses</nowiki>.
   Ign:1 http://<IP>:8000/all InRelease                                                                                                                          
+
   Ign:1 http://<IP>:8000/stm32mp1 InRelease
   Ign:2 http://<IP>:8000/stm32mp1 InRelease                                                                                                                    
+
   Ign:2 http://<IP>:8000/all InRelease
   Ign:3 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  InRelease                                                                                                      
+
   Ign:3 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  InRelease
   Get:4 http://<IP>:8000/all  Release [1213 B]                                                                                                                  
+
  Ign:4 http://<IP>:8000/cortexa7hf-neon-vfpv4  InRelease
   Get:5 http://<IP>:8000/stm32mp1 Release [1218 B]                                                                                                              
+
   Get:5 http://<IP>:8000/stm32mp1  Release [1088 B]
   Get:6 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Release [1233 B]                                                                                              
+
  Get:6 http://<IP>:8000/all  Release [1083 B]
   Ign:7 http://<IP>:8000/all  Release.gpg                                                                                                                        
+
   Get:7 http://<IP>:8000/cortexa7t2hf-neon-vfpv4 Release [1115 B]
   Ign:8 http://<IP>:8000/stm32mp1 Release.gpg                                                                                                                  
+
   Get:8 http://<IP>:8000/cortexa7hf-neon-vfpv4  Release [1097 B]
   Ign:9 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Release.gpg                                                                                                    
+
   Ign:9 http://<IP>:8000/stm32mp1  Release.gpg
   Get:10 http://<IP>:8000/all  Packages [82.8 kB]                                                                                                                
+
  Ign:10 http://<IP>:8000/all  Release.gpg
   Get:11 http://<IP>:8000/stm32mp1 Packages [173 kB]                                                                                                            
+
   Ign:11 http://<IP>:8000/cortexa7t2hf-neon-vfpv4 Release.gpg
   Get:12 http://<IP>:8000/cortexa7t2hf-neon-vfpv4  Packages [1734 kB]                                                                                            
+
   Ign:12 http://<IP>:8000/cortexa7hf-neon-vfpv4  Release.gpg
   Fetched 1994 kB in 3s (662 kB/s)                                                                                                                                      
+
   Get:13 http://<IP>:8000/stm32mp1  Packages [165 kB]
  +
  Get:14 http://<IP>:8000/all  Packages [109 kB]
  +
   Get:15 http://<IP>:8000/cortexa7t2hf-neon-vfpv4 Packages [2775 kB]
  +
   Get:16 http://<IP>:8000/cortexa7hf-neon-vfpv4  Packages [20.5 kB]
  +
   Fetched 3073 kB in 7s (463 kB/s)
 
   Reading package lists... Done
 
   Reading package lists... Done
   
Line 226: Line 239:
 
* https://wiki.debian.org/SecureApt
 
* https://wiki.debian.org/SecureApt
 
* [[STM32MP15 Discovery kits - Starter Package]]
 
* [[STM32MP15 Discovery kits - Starter Package]]
* [[STM32MP15_Evaluation boards - Starter Package]]
+
* [[STM32MP15_Evaluation boards - Starter Package | STM32MP15 Evaluation boards - Starter Package]]
 
* [[STM32MP1 Developer Package]]
 
* [[STM32MP1 Developer Package]]