summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/config/images/stm32mp.config
Commit message (Collapse)AuthorAgeFilesLines
* v7a: images: stm32mp: use barebox-environment partition type UUIDAhmad Fatoum3 days1-0/+1
| | | | | | | | | Starting with commit 9f868f78bc54 ("environment: use barebox environment from GPT partitions"), barebox can look up its environment by partition type UUID on GPT-partitioned media. To prepare making use of this in the future, ensure that our GPT barebox partition has the correct type UUID. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: images: stm32mp: generate eMMC boot partition image as wellAhmad Fatoum2023-12-131-0/+19
| | | | | | | | | | | The DistroKit image is capable of booting both from SD-Card and eMMC user area. For boot from eMMC boot partition, we can keep reusing the same image for the user area, but need to place the boot firmware into the boot partition as well. Add an extra image that does just that. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20231213165014.1279779-2-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* treewide: images: remove root-B and data partitionsRoland Hieber2023-12-131-6/+0
| | | | | | | | | | | These partitions are now generated on the first boot by systemd-repart. The second rootfs is not needed for booting, and overwritten by RAUC when a bundle is installed, so it can as well be empty. Remove the two partitions to save space in the generated images. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231103225253.1349209-9-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: image-stm32mp: set GPT Partition Type UUIDRoland Hieber2023-11-061-0/+1
| | | | | | | | | This was forgotten in commit 1022b05b735f6081cf1b. Fixes: 1022b05b735f6081cf1b (2023-10-20, "images: convert to GPT format") Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231103225253.1349209-3-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* treewide: images: unify partition labelsRoland Hieber2023-11-061-1/+1
| | | | | | | | | | | The partition label is written to the GPT, and systemd-repart can match on the partition label, which we'll use in a later commit. Set the name of the first root partitions to the same name ("root-A") to give the matching algorithm something to work with. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231103225253.1349209-2-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: image-stm32mp: use 'partition-table-type' option instead of 'gpt'Roland Hieber2023-10-201-1/+1
| | | | | | | | | The 'gpt' option in genimage has been deprecated in favour of 'partition-table-type = gpt'. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231020090519.3320460-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: add RAUC support for lxa-mc1Roland Hieber2023-10-201-1/+8
| | | | | | | | | | | | * Add a redundant root partition to the genimage config * Add appropriate variables to the barebox defaultenv so the bootchooser can decide into which partition to boot * Add a state backend to the device tree fragment * Map partitions in rauc-udev compatibility layer Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/distrokit/20230926092713.3680509-5-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: silence reason-warning for barebox state dtb entryRobert Schwebel2023-08-161-1/+1
| | | | | | | | | | | | | As the 'reason' checker analyzes all <*>.dtb files in the imagedir and assumes they are all kernel dtbs, rename the barebox dtb from barebox-*.dtb to *.dtb-bb. This silences a warning that kernel devicetrees should not contain barebox,state nodes. For a similar fix, see commit d16f98c910e20ee5a29da6ca0636b0fbad14f1b2. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: tf-a: switch to FIP imageAhmad Fatoum2022-09-051-4/+15
| | | | | | | | | | | We have everything in place now to switch from stm32image to FIP. This gives us upstream support for factory bootstrap via DFU and avoids the breakage on v2.8, which will be the first release removing support of the deprecated stm32image format. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220725120445.1295669-6-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: images: remove redundant size specificationsRoland Hieber2021-04-261-1/+0
| | | | | | | | | | | | | | | | | For partitions that are filled by another image, it does not make sense to make partitions larger or smaller than their containing file system. In those cases, genimage can already determine the partition sizes from the referenced images, and calculates the partition offsets accordingly, so in most cases we don't have to keep track of the sizes at all. (A special case is vexpress.hdimg, which needs to have an empty block at the end as a workaround for qemu, in which case it is clearer to have all partition sizes and offsets explicitely in the config file. So don't touch vexpress.hdimg here.) Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20210426060526.32029-2-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: stm32mp: images: allow differing board names for FSBL and SSBLAhmad Fatoum2021-03-151-3/+3
| | | | | | | | | | | | | | So far, the two STM32MP1 boards we support had the same board name string within the file names of first stage (TF-A) and second stage (barebox) bootloaders. This will no longer be true when updating to a more recent barebox version, as the dk2 image's name has been changed to dkx to indicate support for both dk1 and dk2. Prepare for this by splitting up STM32MP_BOARD_NAME. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
* v7a: images: stm32mp: don't place backup GPT table into imageAhmad Fatoum2021-02-011-0/+1
| | | | | | | | | | | The images sizes don't correspond to a specific SD-Card or eMMC size, so software checking for the backup partition table at the end of the device won't find it. Dropping it will however reduce the STM32MP1 images size (618M -> 66M). Do so. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: images: stm32mp: don't quote boolean in genimageAhmad Fatoum2021-02-011-1/+1
| | | | | | | | Both forms are accepted, but it looks more natural to not quote non-string values. This is also what we do for the other genimage configs (e.g. bootable = true). Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* image-stm32mp157c-dk2: fix image creation with new PTXdist versionMichael Olbrich2021-02-011-2/+2
| | | | | | | | | The names of the TF-A files changed with the new PTXdist version. This was necessary to support multiple platforms in one build: The platforms may create images with the same name. Without the aditional prefix, the names clash when copoed to images/. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* v7a: images: stm32mp: remove cargo-culted partition-type in GPT configAhmad Fatoum2020-06-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | partition-type is specific to DOS partitions. The counterpart for GPT partitions would be partition-type-uuid, which already defaults to "L", which is ok for our purposes. So far, this didn't have an impact, but starting with genimage v13, commit 013b22f26b73 ("Add support for Hybrid MBR partitions"), support for a partition-type key in a GPT partition was introduced: Using this option with a GPT partition table will create a hybrid MBR partition table with a maximum of 3 partition entries(this limit does not effect the maximum number of GPT partition entries in the same image). The ARM TF-A can't cope with this new format and fails to boot barebox with a "ERROR: Partition ssbl not found" message. Drop partition-type to prevent the ptxdist 2020.06.0 upgrade that includes host-genimage v13 from breaking the stm32mp157c-dk2 and lxa-mc1 images. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: add stm32mp157c-dk2 SD-Card imageAhmad Fatoum2020-03-051-0/+31
Both STM32MP BootROM and TF-A expect the subsequent bootloader stage to come from a GPT partition when booting from SD-Card. Add a genimage config that describes this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>