summaryrefslogtreecommitdiffstats
path: root/configs/platform-v8a
Commit message (Collapse)AuthorAgeFilesLines
* tf-a: Change download URLHEADnextmasterAlexander Dahl42 hours1-2/+2
| | | | | | | | | | | Previous URL threw 401 errors. Experiments with other paths from the same server yield no stable tarballs. GitHub tarballs are stable, have a different checksum however. Tarball content was checked to be the same (at least compared to those unstable git snapshot tarballs from the previous URL). GitHub tarball has same checksum as the one downloaded by buildroot. Signed-off-by: Alexander Dahl <ada@thorsis.com>
* v8a: update to OSELAS.Toolchain 2023.07.1Ladislav Michl3 days2-3/+3
| | | | | | | | Use the bugfix toolchain release for v8a builds, and update the kernel config with default options. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Alexander Dahl <ada@thorsis.com>
* v8a: barebox: compress with XZAhmad Fatoum2024-03-181-3/+10
| | | | | | | | | | | | | This saves us 124K, which we dearly need, because otherwise barebox would overlap the environment partition. The environment partition is reserved in the genimage config, but it's used due to the description in the barebox device tree. We may want to change both, but for now, buy us some time by switching from LZO to XZ. Reported-by: Michael Olbrich <mol@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240318140633.1997386-1-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: version bump v2023.12.0 → v2024.03.0Ahmad Fatoum2024-03-172-8/+32
| | | | | | | | | | | | | v2023.12.0 first broke i.MX8MQ support by mistake. This was fixed in v2024.03.0, so update to this version. The config changes are those of olddefconfig with the exception of CONFIG_CMD_PARTED: This command allows us to partition block devices from within the barebox shell. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240315211240.3016716-6-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: update kernel from v6.6 → v6.8Ahmad Fatoum2024-03-172-36/+89
| | | | | | | | | | | config changes are those of olddefconfig with the notable exception of CONFIG_BLK_DEV_WRITE_MOUNTED: This is enabled by default as not to break some existing userspace, but we shouldn't have any of that, so disable it. This will cause the kernel to refuse writes to mounted block devices. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240315211240.3016716-5-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8mq-evk: disable PCI nodesAhmad Fatoum2024-03-171-0/+7
| | | | | | | | | | | | | | | | | When Linux probed the PCI on the i.MX8M-EVK, the system hangs completely. We've seen the same effect with other i.MX8M EVKs too, where between EVK revisions, NXP changed how the PCI PHY is clocked and because the DT only supported one variant, probing PCI on the other variant led to system hang while probing the PCI address space. If this turns out to be the issue on the i.MX8M-EVK as well, we should probably try to identify what variant we run on and then fix up the DT in the bootloader. For now though, just take the easy route and disable PCI, which we don't use anyway. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240315211240.3016716-4-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* tf-a: update from v2.8 → v2.10Ahmad Fatoum2024-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This lets us git rid of a fair number of patches we have, but in return requires us to import three patches: - Fix link error for imx8mq-evk: The image got too big with addition of DRAM retention support, so this is now disabled by default: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27277 - Support for automatic console base detection on i.MX8MQ. This was already in our patch stack, but wasn't submitted upstream, unlike the support for i.MX8MM, i.MX8MN and i.MXP. This has been rectified: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27278 - STM32MP1 support with SP_min as BL31 instead of OP-TEE is broken since v2.10 was first released. This is due to PMU changes that were apparently only tested on ARMv8. Fixed here: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27162 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240315211240.3016716-3-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: migrate 2024.02.0 → 2024.03.0Ahmad Fatoum2024-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This lets us make use of the updated OP-TEE packages for the incoming STM32MP13 support. Support in OP-TEE 3.20 is incomplete and will lead to a crash on boot up: I/TC: Platform stm32mp1: flavor 135F_DK - DT stm32mp135f-dk.dts I/TC: Non-secure SYSRAM [0xddfff000 0xddffffff] I/TC: DTB enables console (non-secure) I/TC: Primary CPU switching to normal world boot E/TC:0 tzc_it_handler:26 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xfcff7fe0, non-secure privileged write, AXI ID 420 E/TC:0 Panic at core/arch/arm/plat-stm32mp1/plat_tzc400.c:30 <tzc_it_handler> E/TC:0 TEE load address @ 0xde000000 E/TC:0 Call stack: E/TC:0 0xde00316d E/TC:0 0xde011b37 E/TC:0 0xde005245 E/TC:0 0xde011201 E/TC:0 0xde037155 E/TC:0 0xde000350 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240315211240.3016716-2-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: migrate 2023.12.0 -> 2024.02.0Roland Hieber2024-03-111-12/+10
| | | | | | | | | | | | Update to the new PTXdist version with default options. Note that HOST_DTC, HOST_FLEX and HOST_M4 only vanish from the platformconfigs and are still enabled in ptxconfig. Remove our systemd patch, which is now included in systemd 255.2. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20240219121717.3507053-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: kernelconfig: disable CONFIG_CRYPTO_AES_ARM64_CE_CCMRobert Schwebel2024-01-291-1/+1
| | | | | | | | CONFIG_CRYPTO_CCM is no longer needed by any driver, so we can disable CONFIG_CRYPTO_AES_ARM64_CE_CCM. Inspired-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: kernelconfig: switch COMPACTION back onRobert Schwebel2024-01-271-1/+2
| | | | | | | | | | In eb939a84ef844769bc26eb0eed95245d1f7160f2, memory compaction was switched off. However, the help text claims it should be on, and the Pengutronix internal 'reason' checker does also want to have it on. Re-enable it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: kernelconfig: cleanupMichael Olbrich2024-01-261-1896/+361
| | | | | | | | | | | | | | | | | | | | | | This is the result of a review of the whole kernel config. The options have been selected by the following rules: In general, the kernel config is optimized to keep the kernel small. So any features that are not used at all are disabled. This includes things like extra scheduling governors that require explicit configuration to be used. All drivers that are not used by the boards configured in DistroKit are now disabled. If there was no other strong preference then the value from the defconfig was used. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://lore.pengutronix.de/20240126170432.740899-1-m.olbrich@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: enable barebox state for TQ MBa8MPxLLeonard Göhrs2024-01-262-1/+22
| | | | | | | | | | This allows updating the root filesystem via RAUC. The magic value was selected by fair dice roll. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-8-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: enable image generation for TQ MBa8MPxLLeonard Göhrs2024-01-261-1/+2
| | | | | | Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-7-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: add i.MX8MP based TQ MBa8MPxL boardLeonard Göhrs2024-01-265-3/+50
| | | | | | | | | | | | | The generated image can be used to boot the board via SD card. The dev.mmc1.broken_cd barebox environment entry is required because the board's card detect does not reliably detect an inserted USB-SD-Mux, resulting in the board failing to boot. This should not (negatively) affect the other v8a machines. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-6-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: images: imx8m: add barebox state partitionLeonard Göhrs2024-01-261-0/+6
| | | | | | | | | | | Having a place to store state allows us to use RAUC on i.MX8M based boards. The 1Mb size is quite large for a state partition, which uses a compact representation, but using this size means we do not have to change the partition alignment. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-5-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* images: imx8m: add a barebox environment partitionLeonard Göhrs2024-01-261-0/+8
| | | | | | | | | | | | | | | | | | The barebox environment is configured in the board devicetrees to be at 896k and 128k in size (e.g. the last 128k before the 1M mark). This is for compatibility with the fdisk behaviour of placing the start of the first partition at the 1M mark. Not everyone knows this though, so it can easily happen that someone increases the size of the barebox partition, making it overlap with the environment "partition". Make this less likely to happen by listing the barebox state in the genimage config. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-4-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* images: imx8m: move the root-a partition further backLeonard Göhrs2024-01-261-1/+1
| | | | | | | | | | | | | | | | The 896K assigned to the barebox partition are getting ever closer to overflowing (barebox-nxp-imx8mn-evk.img is as of now 883K). Increasing the barebox partition also requires changes to the respective devicetrees because the location of the environment is hardcoded to be at 896K there. Move the root-a partition further back to free up some space so we can add a state partition now and eventually move the environment partition as well and then increase the barebox partition size. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-3-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* tf-a: add patch to auto-detect the correct UART on i.MX8MLeonard Göhrs2024-01-261-1/+1
| | | | | | | | | | | | | | This helps us on the TQ MBa8MPxL i.MX8MP development board, that uses a different UART for debug output than the EVKs we currently support. Other i.MX8M boards should not be affected by the IMX_BOOT_UART_BASE=auto configuration option because the automatic selection will choose the correct UART. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de> Link: https://lore.pengutronix.de/20240117133440.944800-2-l.goehrs@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: enable support for booting FIT imagesAhmad Fatoum2024-01-261-2/+6
| | | | | | | | | | | | | There's ongoing work to have Linux generate a FIT image with all enabled DTs[1]. Let's prepare for that by enabling FIT image support for the ARMv8 boards. [1]: https://lore.kernel.org/all/20231202035511.487946-1-sjg@chromium.org/ Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> LGTMed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20240112170529.1970537-6-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: version bump v2023.09.0 -> v2023.12.0Ahmad Fatoum2024-01-262-7/+37
| | | | | | | | | | | There's not much new features relevant to our v8a platform in this version bump, but there are a number of bug fixes, that may be relevant, like improved support for HAB on i.MX8M and reworked regulator initialization. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240112170529.1970537-4-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: disable RAVE SP coprocessor supportAhmad Fatoum2024-01-261-3/+1
| | | | | | | | | | The RAVE SP is a board management controller connected over serial link. We have no boards that have this controller built-in, so there's no need to include its driver. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240112170529.1970537-3-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: disable unnecessary commandsAhmad Fatoum2024-01-261-4/+4
| | | | | | | | | | | | | | | - We don't boot uImages anymore - We can reinstate the default environment using saveenv -z - We have a TFTP file system and don't need an extra tftp command - PSCI communication can be tested with reset -r psci and doesn't need a dedicated command Therefore disable all this commands, as replacements for their functionality are already enabled. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240112170529.1970537-2-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: disable RATP supportAhmad Fatoum2024-01-261-6/+2
| | | | | | | | | | | barebox supports Ethernet and USB OTG in host and device mode on the Rockchip and i.MX boards, so there's little use if any for RATP. Disable it and reclaim the space. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20240112170529.1970537-1-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2023.10.0 -> 2023.12.0DistroKit-2023.12.0Robert Schwebel2023-12-131-2/+3
| | | | | | Let's update to the latest and greatest. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: barebox: enable CONFIG_DIGEST_SHA1_ARM64_CERobert Schwebel2023-12-131-1/+1
| | | | | | 'reason' suggests to enable an optimized SHA1 implementation on ARM. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: env: fix boot for i.MX8M EVKsAhmad Fatoum2023-12-131-2/+3
| | | | | | | | | | | | | | | | Rockchip RK35* and i.MX8M* share the same barebox environment, but RAUC and bootchooser were only configured for the Rockchip boards, rendering the i.MX boards unbootable. Fix this by adding bootchooser as boot target only for the radxa,rock3a. While at it, we switch to using the new of_compatible command. This is likey more stable than the Model string and allows easy extension in future by additional compatibles. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231205095929.3469672-3-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: build RAUC update bundleRoland Hieber2023-12-131-1/+11
| | | | | | | | | Enable the update bundle so v8a platforms can be updated via RAUC, and put something useful in the bundle description. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231104003525.1673736-5-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: add RAUC support for rock3aRoland Hieber2023-12-134-3/+83
| | | | | | | | | | | | | | | * Add a state partition to the genimage configuration (offset is not needed for the root partition since genimage can calculate that based on the size of the previous partition and the alignment; and the barebox-state partition is autodetected based on the partition GUID) * Add a device tree fragment to barebox containing the state backend * Add appropriate variables to the barebox defaultenv so the bootchooser can decide into which partition to boot * Map boot device (SD card) in rauc-udev compatibility layer Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231104003525.1673736-4-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: enable of_compatible and of_fixup commandsRoland Hieber2023-12-131-2/+2
| | | | | | | | Enable two useful commands for debugging. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231104003525.1673736-3-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: version bump 2023.05 -> 2023.09.0Roland Hieber2023-12-132-4/+19
| | | | | | | | | | Update to the new version with default options. This also includes detection of GPT partitions with the barebox-state GUID for state backends, which we'll make use of in the next commits. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231104003525.1673736-2-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* treewide: images: remove root-B and data partitionsRoland Hieber2023-12-132-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>
* treewide: images: remove size specifications for root partitionsRoland Hieber2023-11-061-1/+0
| | | | | | | | | | | | With current rootfs sizes of below 200 MiB there is no need to have a 512 MiB root partition, which will be a lot larger than the file system it contains, and which will also all have to be written to the SD card. Let genimage determine the partition size based on the file system image it contains, thereby reducing the size of the generated disk images. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231103225253.1349209-4-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>
* platform-v8a: kernel: version bump 6.5 -> 6.6Robert Schwebel2023-10-302-32/+58
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: enable RK809 for Rock3aRobert Schwebel2023-10-211-1/+8
| | | | | | Linux 6.5 has support for the RK809 PMIC. Enable it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a/v8a: kernel: enable hardlockup detectorRobert Schwebel2023-10-211-1/+6
| | | | | | | Enable the hard lockup detector and panic on trigger. An embedded system has probably nothing better to do than to reboot if the kernel locks up. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: kernel: version bump 6.4 -> 6.5Robert Schwebel2023-10-202-18/+59
| | | | | | | The 9p patches are already part of 6.5, so they don't have to be ported to the new kernel. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* images: convert to GPT formatRoland Hieber2023-10-202-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GUID Partition Table format has several advantages over the legacy MBR format. Especially when we want to make use of systemd-repart functionality later, the GPT format is a necessity. Therefore, migrate all images to the GPT format. For some platforms (Raspberry Pi, AM355x, AT91), we still need a legacy MBR partition table so that the ROM code can find a bootable partition (which contains our barebox image). For those cases, transform the image into a hybrid format containing an MBR at offset 0, which contains the VFAT boot partition for the ROM loader, and a protective GPT partition of partition type 0xEE after it to claim the remaining space on the storage medium for GPT purposes. Then a GPT header is added at the default GPT offset of 0x200, which defines the boot partition as well as the root partition, and which is read by Barebox and Linux to boot the system. For images that contain a raw barebox image at a fixed offset outside of a GPT partition, make sure that the GPT does not conflict with the barebox image, and write only the primary GPT header into the hole specified by the barebox image (offset 440 to 1K), but move the GPT partition array to an offset behind the barebox image. (genimage will then also offset the following partitions accordingly.) Remove any 'disk-signature' options, which are not compatible with GPT; genimage will generate a random Disk UUID instead. Also remove any 'partition-type' options, and set the respective partition type GUIDs specified by the Discoverable Partitions Specification [1], or let genimage default to the 'linux-generic' partition type. For the rpi1 image-hdimg, overwrite the upstream hd.config with a hardcoded genimage config file since it is not possible to build a hybrid MBR/GPT image with the image recipe from upstream PTXdist. For the v7a image-hdimg, enable GPT support in the platformconfig menu, and re-add the respective config lines from the upstream version of the config file in order to make GPT work. The images with fixed partition sizes for qemu need to stay below the size specified in the 'size' option, so decrease the size of the last partition further to make space for the secondary GPT header, which will reside in the last block of the image. Link: [1] https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20231020090519.3320460-6-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2023.09.0 -> 2023.10.0Robert Schwebel2023-10-201-2/+2
| | | | | | A new ptxdist version is out, update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: enable drivers for i.MX8MAhmad Fatoum2023-10-201-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Newer kernel versions introduced a number of i.MX8M-specific drivers, so let's enable them: CONFIG_REGULATOR_PCA9450 Regulator used on newer i.MX8M EVKs CONFIG_ARM_IMX8M_DDRC_DEVFREQ CONFIG_DEVFREQ_GOV_USERSPACE DDR frequency scaling driver + sysfs interface for control CONFIG_ARM_IMX_BUS_DEVFREQ CONFIG_INTERCONNECT CONFIG_INTERCONNECT_IMX CONFIG_INTERCONNECT_IMX8MM CONFIG_INTERCONNECT_IMX8MN CONFIG_INTERCONNECT_IMX8MQ CONFIG_INTERCONNECT_IMX8MP Interconnect drivers for i.MX8M SoCs Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/distrokit/20230906083625.573411-1-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: migrate 2023.08.0 -> 2023.09.0Roland Hieber2023-10-201-2/+2
| | | | | | | | The usual version bump with default settings. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/distrokit/20230915150707.3977805-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* silence QA checks regarding missing kernel features for RAUCRoland Hieber2023-09-151-7/+57
| | | | | | | | | | | | | | | | | Since we can only select RAUC in the ptxconfig for all platforms, PTX internal QA tooling warns that necessary features for RAUC are missing in the kernelconfigs on non-v7a platforms. The issue of overriding the tests on the platform level seems a bit harder to fix in the QA tool, so until that can be done, please the QA checker by enabling the necessary features in all remaining kernels to make the PTX Jenkins tests green again. If the QA tool is fixed, this commit can be reverted. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230825110310.2948272-4-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* rauc: add initial supportRoland Hieber2023-09-151-1/+23
| | | | | | | | | | | | | | | | Set up RAUC with a shared system.conf that uses the /dev symlinks which the rauc-udev package creates based on the Device Tree compatible. Also add a unit file that marks the booted partition as good after systemd startup has finished successfully. The key material for signing the RAUC bundles is provided by the ptx-code-signing provider used for development, which is a build dependency of RAUC. Since we can enable RAUC in the ptxconfig for all platforms, all platforms also need a code signing provider. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230825110310.2948272-3-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: genimage: build i.MX8M Nano SD/eMMC imageAhmad Fatoum2023-08-153-0/+46
| | | | | | | | | | Everything is in place now to actually generate an image capable of booting the i.MX8MN, so let's do it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-8-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: include i.MX8MN DDR4 and LPDDR4 EVK DT in rootfsAhmad Fatoum2023-08-151-1/+1
| | | | | | | | | | | | | Now that we are building barebox for the board, enable installation of the kernel device trees, so we can boot a kernel with it. The necessary kernel options are already enabled. As DDR4 and LPDDR4 differ in the PMIC used, we enable two different device trees. barebox will choose the correct one by comparing their DT compatible against its own. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-7-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: genimage: switch from MBR to GPT imagesAhmad Fatoum2023-08-151-3/+3
| | | | | | | | | | | | | MBR is stuff of the past. Switch over to GPT. This is easier on i.MX8M than on i.MX6, because the BootROM starts execution at an >= 32K offset, so GPT can be located at its usual location. We should eventually move barebox into a proper GPT partition, but for now, just keep the old partition numbering intact. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-6-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: use common genimage configurationAhmad Fatoum2023-08-157-54/+29
| | | | | | | | | | | | The i.MX8M defconfigs are identical, except for the bootloader binary used. We already fix up the hd image name into the genimage config, so let's fix up the bootloader image name as well and just have all i.MX8M share a single config template. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-5-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: barebox: enable i.MX8M Nano EVK supportAhmad Fatoum2023-08-151-1/+4
| | | | | | | | | | barebox supports i.MX8MN DDR4 and LPDDR4 EVK with the same image. Enable it in the defconfig. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-4-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: imx8m: imx-firmware: install DDR4 PHY firmwareAhmad Fatoum2023-08-151-0/+9
| | | | | | | | | | | There i.MX8MN-EVK comes in multiple variants: with LPDDR4, DDR4 and DDR3L. barebox supports configuration of both LPDDR4 and DDR4 images, so enable installation of the DDR4 PHY firmware. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230728164933.342061-3-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>