| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Let's update to the latest and greatest.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
'reason' suggests to enable an optimized SHA1 implementation on ARM.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Linux 6.5 has support for the RK809 PMIC. Enable it.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
A new ptxdist version is out, update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|