| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While TF-A itself can't build multiple images in one-go, the upstream
PTXdist recipe can, so configure it to build one more image for imx8mn.
This will later be linked into barebox as part of booting DistroKit on
the imx8mn-evk.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.barebox.org/20230728164933.342061-2-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Use the new toolchain release for v8a builds, and update the kernel
config with default options.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.barebox.org/20230813192846.1210986-8-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Migrate to the new PTXdist release with default options.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.barebox.org/20230813192846.1210986-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
We have an issue with ptxdist-2023.07.0, so we continue with .1.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
A new ptxdist version is out, so we can update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
Enable CRYPTO_SHA256_ARM on ARM with NEON extensions (suggested by
reason).
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
With Debian Bookworm, OSELAS.Toolchain-2022.10.0 doesn't work any more,
switch to 2022.10.1, which has the issues being fixed.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
support for subdirs in PTXCONF_KERNEL_DTS was added some time ago.
So the long PTXCONF_KERNEL_DTS_PATH with an entry for each vendor is no
longer needed.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://lore.barebox.org/20230620132931.2179983-5-m.olbrich@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
There is a non_free_firmware section, which is exactly for packages
like this.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://lore.barebox.org/20230620132931.2179983-3-m.olbrich@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
also generate rootfs as root.cpio.zstd, as this allows loading it as initramfs.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
| |
With the switch to the upstream rules, we have no need any longer for
the SoC-specific ones, so let's drop them.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
So far, we duplicated the barebox rules, so we can customize them for
each of imx8m and rockchip platforms. With v2023.04.0, we can configure
the same barebox build to generate binaries for both at the cost of
compiling in some unused drivers (but not duplicating DT). Let's do
that.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that we have commits:
- 552ea42fe7aa ("v8a: blspec: switch to default blspec entry")
- b7a4fe185852 ("v7a: blspec: convert to ptxdist default entries")
we don't need special dedicated blspec rules anymore for v7a/v8a, so drop
the last one we had left.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes a FTBFS with gcc 12
gcc -I libfdt -I . -DFDT_ASSUME_MASK=0 -DNO_VALGRIND -g -Os -fPIC -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow -DNO_YAML -o fdtoverlay.o -c fdtoverlay.c
In file included from fdtdump.c:14:
In function 'fdt_set_magic',
inlined from 'main' at fdtdump.c:220:3:
libfdt/libfdt.h:251:28: error: array subscript 'struct fdt_header[0]' is partly outside array bounds of 'unsigned char[4]' [-Werror=array-bounds]
251 | fdth->name = cpu_to_fdt32(val); \
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
libfdt/libfdt.h:253:1: note: in expansion of macro 'fdt_set_hdr_'
253 | fdt_set_hdr_(magic);
| ^~~~~~~~~~~~
fdtdump.c: In function 'main':
fdtdump.c:216:31: note: object 'smagic' of size 4
216 | unsigned char smagic[FDT_MAGIC_SIZE];
| ^~~~~~
cc1: all warnings being treated as errors
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
- all changes in rules/at91bootstrap2.make and rules/host-qemu.make are
now upstream.
- update configs/platform-mipsel/rules/host-qemu.make to the latest
version from upstream. It still has local changes for mips.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
A new kernel is out, so we update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
A new ptxdist version is out, update the configs.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
It has been a while but here is a version bump.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Some new ptxdist versions are out, so we bump to 2023.02.0.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PTXdist will create a blspec config for each specified devicetree. Since
this mechanism supports the 'linux-appendroot true' feature now we can
use it to generate all blspecs entries, so seperate blspec packages for
each platform are not longer needed.
Enable this mechanism for all supported v8a platforms and remove the
dedicated packages execpt for the RPi.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-12-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Select the required sub-option so the required binaries are installed.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-7-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Replace the downstream imx-atf version with the most recent upstream
version already used by the v7a platform.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-4-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Enable the upstream tf-a support which will replace the imx-atf later
on.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-3-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The rule file is toplevel in rules/ so without this "ptxdist lint" reports
for all other platforms:
[...]
Checking kconfig symbols in rule files ...
Undefined symbol PTXCONF_BLSPEC_RPI4 used in 'DistroKit/rules/blspec-rpi4.make'.
[...]
Add some dependencies so it can only be selected on platforms where it
makes sense and disable it on v8a for now.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://lore.pengutronix.de/20230106113946.1775158-1-m.olbrich@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
A new ptxdist version is out, so we can migrate.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
Now that OSELAS.Toolchain-2022.10, with gcc-12.2.1 and glibc-2.36 is
out, move to the new toolchain.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Migrate all platforms to the new release with default options.
util-linux-ng has been replaced by util-linux, and the options are
sorted differently, but there is no change in enabled options.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Now that we have kernel, barebox and firmware in place, add rules for
building a bootspec-enabled image that's bootable on the Radxa ROCK-3A.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-17-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Add a new barebox-rockchip rule that builds a binary capable of booting
on the Radxa ROCK 3A SBC.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-16-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are prebuilt binaries by Rockchip for SDRAM configuration of the
board we use. Add a rule to download them off Github.
This rule also downloads BL31 (TF-A) and BL32 (OP-TEE) binaries, which
we will eventually compile from source. However, as of now, Rockchip did
not release the source code and we have to use use the prebuilt
binaries. Any board specific setup we need will happen within Barebox.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-15-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-2-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
A new ptxdist version is out, update.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Link: https://lore.pengutronix.de/20220705084150.3272186-1-j.zink@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>
|
|
|
|
|
|
| |
A new ptxdist version is out, update.
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>
|
|
|
|
|
|
| |
A new ptxdist version is out, update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Update to the latest ptxdist release.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
A new ptxdist version has been released, update.
ptxdist-2021.12.0 has genimage-15 which has a strikter check for
partitions that overlay: specify holes in the barebox partition that
allow to overlap with MBR.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since ptxdist commit f50cd1449e9347309b1050b0b738882dac1954e9, there is
a check that makes sure that devicetrees are separated from their
paths. Unfortunately for arm64, devicetrees live in vendor subtrees, so
we get this error:
ptxdist: error: DistroKit/ptxdist/rules/kernel.make: the device trees in PTXCONF_KERNEL_DTS must be specified without
ptxdist: error: DistroKit/ptxdist/rules/kernel.make: directory. Use PTXCONF_KERNEL_DTS_PATH to provide a list of direcories
ptxdist: error: DistroKit/ptxdist/rules/kernel.make: that will be searched.
Workaround is to add the path componet to PTXCONF_KERNEL_DTS_PATH
and inform mol to fix that up in ptxdist upstream.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
We missed some ptxdist updates, so it might be a good time to catch up
now.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Linus released a new kernel, so we update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
We forgot some kernel updates. Do it now.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Migrate all platforms with default options.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20210620180725.5193-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Migrate with default settings to the new PTXdist version, which was
released today.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|