Commit Graph

324 Commits

Author SHA1 Message Date
Cedric VINCENT c38662e3bc OPTEE-SDK: Add to SDK environment-setup the variables required to build OP-TEE TA.
Change-Id: I13a6e1f85f785ca4ce9cbb34dc2e46a16e4ca273
Signed-off-by: Cedric VINCENT <cedric.vincent@foss.st.com>
2021-11-16 17:56:04 +01:00
Lionel VITTE 36c8cd454e GCNANO-USERLAND: GCNano 6.4.3 Update Release "20210726"
GCnano userland 6.4.3: symbol not exported by eglGetProcAddress()

Change-Id: I739306248076f018ccba52638830350c47c54032
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE af9ec1ddf8 TF-A-STM32MP: add file type for deploying image
When a compilation a made for TF-a with 'all' target, several binaries are generated
and have the same name on several kind of build but generated with different
compilation switch. In some case (like arm64 bits) the bl2 need to generate a
bl31 binary but without the specific option requested by the generation of official bl31,
which can generate an issue when you deploy the file because it's the binary of
last build which are used but it's not in all case the binary with compilation
option desired.
For solving this king of issue, a flag <file type> which can be : bl31 b32 bl2 fwconfig
are added on the TF_A_CONFIG to specify which kind of binary we need to export.

Change-Id: Ibd484ae2e285bf70e3e0790e020d2ea595506a3c
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-11-16 17:56:04 +01:00
Patrick Delaunay f724e2f9e7 UBOOT-STM32MP-EXTLINUX: fix boot.cmd for overlay
By default U-Boot reserve overlay sizee with 4KB padding, sometime it is
not enought and it is normal.

The caller NEED to reserved enought memory before to apply overlay
by usisng the <extrasize> parameter.

fdt resize [<extrasize>]
- Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed

A correct value cannot be proposed (it is depending of the overlay size)
but at least you must reserved the size of the loaded overlay dtbo file
=> ${filesize} (this variable automatically updated after a load command)

Change-Id: Ib37f2778bd843436b0baddb67a7a4fd5c799b749
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-11-16 17:56:04 +01:00
Lionel VITTE e89318bdd6 STM32WRAPPER4DBG: rework recipes to use only one
Change-Id: I902877afcb384a721ee7db0c2b18503827c51f68
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Christophe Priouzeau e3c7e01a15 CLASSES: EXTLINUX: add support of several splash screen
The splashscreen name are defined compared to socname
UBOOT_EXTLINUX_SPLASH_<socname> = "<path and name of splash>"

Change-Id: I8b3e3efe79fa436bbb2d35bceade7f6edd51844e
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE 3b85be592e CLASSES: FIP-UTILS-STM32MP: align FIP_CONFIG on TFA_CONFIG management way
FIP: adapt signature to key by socname
Implement BL32_CONF and DT_CONFIG management from FIP_CONFIG

Change-Id: I8f86cf40b2db480c5c0d2be5c3cf9fcc0ad4c964
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE 0099ab3811 Revert "CLASSES: unexport _PYTHON_SYSCONFIGDATA_NAME to allow devtool"
Change-Id: Ibe63ed1f269896fadfbd44c7b15867aef93bf5d0
2021-11-16 17:56:04 +01:00
Lionel VITTE 5df595134e MACHINE: set partition configuration specific to fstype
- Allow specific partition image configuration between 'ext4' and 'ubifs'.
 - In case ubifs created is larger than max-leb-cnt allocated, mkfs.ubi raise
an error that make bitbake exit on error: add test to avoid this unexpected exit.

Change-Id: Ib386e703cfb1d0434ea17c279abb31f705514019
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE 5245abf2c7 MACHINE: rework INITRD configuration
Change-Id: Id5028c42d5add160982b4657b6e486e4510a0f45
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Lionel Vitte 197f0c1a3c MACHINE: implement boot from NOR memory device
Change-Id: Ia00f81068e90654f4e13db6524f804c15d18941b
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE e729aee437 CONF: enable kernel config file deploy
Change-Id: Ife1bc682b42d8669a8ce8f275a41a9c4a690de0b
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-11-16 17:56:04 +01:00
Lionel VITTE 46b422655b CONF: put DEBUG and trace under flags
Global flags: ST_DEBUG_TRACE
if ST_DEBUG_TRACE = 1, the debug and trace are activated on all
boot stage
Specific boot stage debug and trace flags:
ST_CMD_LINE_DEBUG_TRACE: addons for remove trace on kernel
ST_UBOOT_DEBUG_TRACE: activate/deactivate silent mode on u-boot
ST_TF_A_DEBUG_TRACE: activate/deactivate trace and debug on TF-A
ST_OPTEE_DEBUG_TRACE: activate/deactivate trace and debug on optee

Change-Id: I09a0c528fcef18f466f0e2b7b46715e2e43c8cf8
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-11-16 17:56:04 +01:00
Christophe Priouzeau 4dfdc829f8 CONF: rename stm32mp1-disco and stm32mp1-eval
Change-Id: I4ef52513c4e9ff1359750b25f6495405f75fe715
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-11-16 17:56:04 +01:00
Christophe Priouzeau ce51b2def2 CONF: update OpenSTLinux compatibility
Change-Id: I7076b7082ba1dfb721eaee3e9bcf1a91dd4cde74
2021-11-16 17:56:04 +01:00
Lionel VITTE fef27aed02 ARCHIVER: Update for fip build and release information
Change-Id: I8ddd8c61ff7488ce40f87a160f603de32425386a
2021-11-16 17:56:04 +01:00
Andrei Gherzan cc43f8cd6e st-image-partitions.inc: Avoid noisy warning for empty partitions
Partitions like vendorfs can be in many cases empty due to not deploying
package targeting that specific partition - see
gcnano-userland-multi-binary-stm32mp as an example. Having a warning for
use-cases that are both common but also valid, would just result in
build noise. This change switches to build notes for flagging an empty
partition.

Change-Id: Iade087b9171dabfaebd498aa13672d2e2f497349
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
2021-11-16 17:56:04 +01:00
Christophe Priouzeau 911fedb819 WIC: add uuid for sdcard
Change-Id: Idd45614c75e9001520fe289ffb709ef39d5dcac5
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-11-16 17:56:04 +01:00
Christophe Priouzeau 816fd629ab FIT: fit syntax have changed
With Yocto 3.1.9,
Syntax have changed for fit management,
usage of '-' instead of '@'

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-07-21 11:04:43 +02:00
Ricardo Salveti 4bf96d789e wic: use part-name fip for fip (instead of ssbl)
Use fip as part-name for fip otherwise tf-a is unable to find the fip
partition:

ERROR:   Could NOT find the fip partition!
ERROR:   BL2: Failure in pre image load handling (-2)

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-07-06 09:26:19 +02:00
Romuald JEANNE b25a2b0daa CONF: remove duplicate setting
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-05-26 12:32:05 +02:00
Christophe Priouzeau 525020d5d8 sdcard-raw-tools: add extra space with append on rdepends
When trying to build with a more recent OE-master version, bitbake ended
up having an issue parsing the rdepends for the target and native build
targets due lack of space when appending bash to rdepends.

Fix by just adding the extra space required when appending values to a
variable.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2021-05-20 09:21:25 +02:00
Christophe Priouzeau c44b9052ae CONF: management via SOC_NAME for u-boot config
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-04-19 11:03:51 +02:00
Christophe Priouzeau dbff802a50 U-BOOT: splash: use a smaller picture as u-boot splash screen
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-04-19 11:03:19 +02:00
Christophe Priouzeau 7223779d5c U-BOOT-STM32MP: mutliple defconfig for same UBOOT_CONFIG label
In order to manage multiple defconfig definition for same UBOOT_CONFIG
label, to address subset of devicetree files form UBOOT_DEVICETREE list, we
implement new functionality to provide UBOOT_CONFIG labels with format:
UBOOT_CONFIG += "<uboot_config_label>_<uboot_devicetree_filter_pattern>"
As soon as UBOOT_CONFIG label contains '_' chars, we split it into two
separate parts:
- first one for UBOOT_CONFIG label (used as suffix on binary name)
- second one for pattern (used as filter on devicetree name)

Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-04-19 11:02:55 +02:00
Christophe Priouzeau f754ec4495 TF-A-STM32MP: add specific extra_opt based on STM32MP_SOC_NAME
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-04-19 11:02:02 +02:00
Christophe Priouzeau 9c26c11570 CONF: flashlayout: use DEVICE_BOARD_ENABLE instead of full list of DT
In case of storage not present on specific devicetree we encounter
some issue at flashlayout generation.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-04-19 11:00:05 +02:00
Christophe Priouzeau 07229c80ca SDK: fix issue in PERL module for SDK 2021-04-19 10:59:20 +02:00
Christophe Priouzeau 9939d67d90 WIC: stm32mp15: align fsbl name with storage name
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2021-04-19 10:58:45 +02:00
Christophe Priouzeau 02f94289c2 CLASSES: fix issue when checking packages name with "strange" characters
When package name have characters having a specific meaning in regex
(e.g. foo-c++_1.0.deb) then it will trigger a Python error.
2021-04-19 10:58:15 +02:00
Pierre-Yves MORDRET 7b55c34159 GCNANO-DRIVER-STM32MP: GCNano 6.4.3 update
- Correct build compilation errors using clang r383902b
- Temporary sysfs correction
- Remove pkgconfig not associated with kernel driver
- Several patches for Kernel 5.10

Compatible with build release 20200902

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Change-Id: I250458fa156114a5557ce11f690b63adcb177fe7
2021-03-26 16:55:54 +01:00
Romuald JEANNE bd5dd9d03f FILES: default flashlayout files update for dv3.0
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Change-Id: I7f8c40dd2ef4a0b2447bb30f933f19dcf27f15ce
2021-03-26 16:55:54 +01:00
Romuald JEANNE 5a8859e946 WIC: align wic image with fip strategie
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I5c4bbcad27142199289ad82a015f9fdd6700fab6
2021-03-26 16:55:54 +01:00
Romuald JEANNE e854264f98 MACHINE: rework configuration to introduce FIP feature
New class is introduce 'fip-utils-stm32mp.bbclass'
New flashlayout file configuration
New features enable on machine side

Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Change-Id: Ifb5af81b5341ef924b8c22992df20a21bd729e3f
2021-03-26 16:55:54 +01:00
Romuald JEANNE 302d750d20 LINUX-STM32MP: update to v5.10-stm32mp-r1
Change-Id: I83bff180c4b5b8717d3735da1d0c51427f1a5908
2021-03-26 16:55:54 +01:00
Romuald JEANNE 57ece9a998 OPTEE-OS-STM32MP: update to 3.12.0-stm32mp-r1
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
2021-03-26 16:55:54 +01:00
Romuald JEANNE ee3b4ddd69 U-BOOT-STM32MP: update to v2020.10-stm32mp-r1
Change-Id: I0daab68bd2d82f12b3ed0bcb99dcf683d95ffdc6
2021-03-26 16:55:54 +01:00
Romuald JEANNE b986ba2af3 TF-A-STM32MP: update to v2.4-stm32mp-r1
Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Change-Id: I1cbb828422280231c17e9673e8a85600ab6041e4
2021-03-26 16:55:54 +01:00
Romuald JEANNE a95cc1ec39 LINUX-FIRMWARE: update firmware for kernel 5.9
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I9bd95cbc781943ea8f01ad3317172bdfdd1c7d83
2021-03-26 16:55:54 +01:00
Romuald JEANNE f42d27eef4 M4PROJECTS-STM32MP1: update to V1.4.0
Signed-off-by: Anthony NOURRY <anthony.nourry@st.com>
Change-Id: Ib7401a0c52aa74eac1a364ed11c38459398bcd26
2021-03-26 16:55:54 +01:00
Romuald JEANNE 43ba51fc32 OPENOCD-STM32MP: rebase on v0.11.0-rc2, update jimtcl repo and libjaylink version
jimtcl repository on repo.or.cz has been abandoned

Signed-off-by: Antonio Borneo <antonio.borneo@st.com>
Change-Id: I077efd18c17618608884a63b561f98b5b300beb5
2021-03-26 10:37:20 +01:00
Romuald JEANNE f199af810f U-BOOT-STM32MP-EXTLINUX: manage overlay
To manage overlay device tree on U-Boot via boot.scr script:
- add an overlay entry on extlinux.conf without FDT or FDTDIR
- create a directory named 'overlays' on boot directory
- populate 'overlays' with the device tree overlay
- create a file named overlays.txt on overlays directory
- syntax of overlays.txt:
overlay=aa bb cc dd
- aa, bb, cc, dd correspond to a device tree name file (without extension)
present on /overlays/ directory
/overlays/aa.dtbo
/overlays/bb.dtbo
/overlays/cc.dtbo
/overlays/dd.dtbo

Tree of bootfs addons for overlay
/overlays/aa.dtbo
/overlays/bb.dtbo
/overlays/cc.dtbo
/overlays/dd.dtbo
/overlays/overlays.txt

warning: think to add an entry on extlinux.conf without FTDIR or FDTFILE
entry

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I3615d6f03cf874cf3f3c12ea1dd5882bb054542d
2021-03-26 10:37:20 +01:00
Romuald JEANNE c2ed3e416d ST-PARTITIONS-IMAGE: ensure packages are installed into the right partition
Change-Id: Ib5a5a27d0f997907a151629d6e77a1acee7b443f
Signed-off-by: Lionel VITTE <lionel.vitte@st.com>
2021-03-26 10:37:20 +01:00
Romuald JEANNE 50d2f78f50 CLASSES: unexport _PYTHON_SYSCONFIGDATA_NAME to allow devtool
On Ubuntu 20.04, devtool cannot be used in recipe inheriting
python3native. Unexport _PYTHON_SYSCONFIGDATA_NAME as a workaround.
To check if it can be revert with next bitbake releases.

Signed-off-by: Lionel VITTE <lionel.vitte@st.com>
Change-Id: I7d73d05e1a5d58dedf69b3aefb3e07c35b92800d
2021-03-26 10:37:20 +01:00
Romuald JEANNE 1398474119 CLASSES: fix wrong var dependency detection for 'UBOOT_EXTLINUX_*' var
Due to internal override mechanism, we should make sure to add explicitly
all var with their potential override name in 'vardeps' flags.

Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Change-Id: I3fcdbf1bf3856c043987569922c5c60fc0fc7bf9
2021-03-26 10:37:20 +01:00
Romuald JEANNE 314b4cc4b3 IMAGES: USERFS: put m4projects under MACHINE_FEATURES flags
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I88703b69adc07e6a7702b7eb08aab13b5a6b1af9
2021-03-26 10:37:20 +01:00
Romuald JEANNE f528573e33 M4COREDUMP: add service to enable coredump via remoteproc
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I6d5c1ca745fb2598f1937fa261a6fe5432d7f204
2021-03-26 10:37:20 +01:00
Romuald JEANNE 7e75751041 gcc-arm-none-eabi: bump to 9-2020-q2-update
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I48978cbdb7d789172acf8ffdf8ba9dcd68d84ee8
2021-03-26 10:37:20 +01:00
Romuald JEANNE 7d5ccd002b WIFI-SUSPEND: remove service
With new kernel 5.10, the service are no more needed.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I3d169c2c62a4de61681fa7e437629085f341bb28
2021-03-26 10:37:20 +01:00
Romuald JEANNE 7d21671b77 ALSA: update stm32mp15x cards configuration files
Change-Id: Ib6c50ea6d9f1b14c0b7e79d013665dae4b8c2f52
2021-03-26 10:37:20 +01:00