| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
1.6.0 fails to build with modern compilers.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
A new kernel is out, so we update.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Bootloader will fix up its own partition description into the kernel
device tree, so the description in the kernel DT serves no purpose and
is at worst confusing. Drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230418121126.2124891-1-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Wifx L1 is a SAMA5D4-based LoRaWAN gateway. This commit adds first
support for booting DistroKit on it from SD-Card.
Default boot medium is NAND, but a bootable SD-Card always has precedence
over NAND.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-6-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Let's import the barebox device tree into the BSP for use by Linux.
This allows us to update it separately in the future. The kernel was so
far configured for SAMA5D2 only, so enable whatever else is needed for
the SAMA5D4. While we boot from SD for now, main boot medium is meant to
be NAND. We thus enable the NAND driver and UBIFS. Driver support is
there, but we have yet to integrate boot from NAND into the BSP.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-5-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Support for booting the Wifx L1 from SD-Card is upstream in barebox
since v2023.02.0. We have 2023.02.1, so let's enable it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-4-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We will use AT91Bootstrap as first stage bootloader for the Wifx L1 for
now, so let's add a suitable config file. We import v4.0.6-rc1 as that's
the first tag that contains commit 41cd6c4 ("crt0_gnu.S: always pass
along r4 to next stage"), which is required for later boot firmware to
determine what the initial boot medium was.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-3-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The binaries directory, where artifacts were previously written to is
now beneath build/ by default[1]:
BUILDDIR ?= ./build
BINDIR:=$(BUILDDIR)/binaries
Supply BUILDDIR=. after the make command to return to the old directory
scheme. This should have no effect on AT91Bootstrap v3.x and older
as BUILDDIR was first added in v4.0.0[1].
This has already been submitted for PTXdist inclusion[2].
[1]: https://github.com/linux4sam/at91bootstrap/commit/814f3bdab515287fbb0d972d89d228748613ae91
[2]: https://lore.ptxdist.org/ptxdist/20230417115146.745019-1-a.fatoum@pengutronix.de/T/#u
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-2-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
We already enable gunzip in busybox. zcat extends that to be able to
write to stdout. This is e.g. useful for:
zcat /proc/config.gz | grep CONFIG_SOMETHING
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417113303.742006-1-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The help text of CONFIG_MMCBLKDEV_ROOTARG is pretty clear on that the
option should only be used when barebox and kernel aliases agree.
The upstream kernel DT aliases for all Radxa boards were recently
changed, so depending on whether we update kernel or barebox first,
we may experience breakage. Let's avoid this by using the default
PARTUUID-based root argument generation again until we have updated
both barebox and Linux to device tree revisions that agree.
[afa: It would be best if barebox' append_root feature could just
use kernel aliases, but this is not totally trivial, as the root=
entry is generated early at barebox mount time and kernel DT
isn't known till boot]
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230414163429.602101-1-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since openssl 3.x, they link agains libatomic unconditionally, and we build
with -Wl,--as-needed so it gets dropped on platforms that don't need it.
This triggers a reason warning on platform-rpi1 and platform-mips.
Enable libatomic locally and whitelist the reason check. This adds a
small library, but shouldn't harm otherwhise.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
without this configure switch, we get the following error:
-------------------------
target: host-qemu.prepare
-------------------------
Using './build' as the directory for build output
warn: ignoring non-existent submodule ui/keycodemapdb
warn: ignoring non-existent submodule tests/fp/berkeley-testfloat-3
warn: ignoring non-existent submodule tests/fp/berkeley-softfloat-3
warn: ignoring non-existent submodule dtc
fatal: not a git repository: '/home/rsc/work/DistroKit/platform-v7a/build-host/qemu-7.2.0/.git-disabled'
/home/rsc/work/DistroKit/platform-v7a/build-host/qemu-7.2.0/scripts/git-submodule.sh: failed to update modules
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
The SF archive seems to be active again, so we can remove the local
change to download from github.
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>
|
|
|
|
|
|
|
|
| |
The image contains a barebox image, so make sure it is actually
selected.
Fixes: 3572278e1 ("Add i.MX8MQ-EVK image")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
|
|
|
|
|
|
|
|
| |
The image contains a barebox image, so make sure it is actually
selected.
Fixes: c0f98d8a2 ("Add i.MX8MP-EVK image")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
|
|
|
|
|
|
|
|
| |
The image contains a barebox image, so make sure it is actually
selected.
Fixes: 3b20b7dc4 ("Add i.MX8MM-EVK image")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
|
|
|
|
|
|
|
|
| |
- copy the 9p rules from platform v7a and make 9p default
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.pengutronix.de/20230302080647.2124306-1-m.grzeschik@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SD-Card and NOR Flash
It may be useful to sometimes only write a barebox image to SD-Card,
e.g. for chainloading, TFTP-Boot or if Android Fastboot is used for
flashing the actual full image to a storage medium. Add documentation
on which image to use.
Also add a short section about how to write barebox to the fallback
NOR SPI Flash on the ROCK 3A board.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Link: https://lore.pengutronix.de/20230324182952.501117-1-j.zink@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our patches for optionally working around flaky SD-Card detect are now
upstream, so let's update to the newest release and drop them from our
side. Config is what resulted from oldconfig with the exception of:
- CONFIG_DRIVER_NET_BCMGENET, which is now enabled to give resulting
barebox-raspberry-pi.img Ethernet support when running on the rpi 4-b.
- CONFIG_CMD_FCB, which adds a useful fcb command for debugging
boot from NAND on i.MX SoCs.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230307114541.3179101-1-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
which was forgotten while recently updating the kernel.
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>
|
|
|
|
|
|
| |
It has been a while but here is a version bump.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
It has been a while but here is a version bump.
While being there, remove old patches.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
It has been a while but here is a version bump.
While being there, remove old patches.
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>
|
|
|
|
|
|
| |
It has been a while but here is a version bump.
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>
|
|
|
|
|
|
|
|
| |
The CONFIG_BLOCK_LEGACY_AUTOLOAD option was used many years ago for
loading modules on file access. This has long been superseeded by udev
based systems. Switch it off.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding new board support always included adding a special blspec package
for this new board. Most of the blspec entries are the same except for
the used devicetree blob. Since the blspec-entry package is able to the
add the barebox 'linux-appendroot true' option as well can move to the
buildin blspec-entry creation. This lowers the burden of adding new
board support since ptxdist will create a blspec entry for devicetree
each listed within the platformconfig.
I added the 'rootwait rw' kernel command line options since most blspec
entries used these options, albeit the 'rw' support should be
reconsidered.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-15-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The console setup and linux command line passing is now done within
barebox:
| commit 319e387dbf72c7aea4b5159af9a43b5399c6431b
| Author: Lucas Stach <dev@lynxeye.de>
| Date: Sun Aug 16 23:42:40 2020 +0200
|
| ARM: vexpress: set stdout path
|
| This ensures that the correct console gets activated independent
| of the device probe order.
|
| Signed-off-by: Lucas Stach <dev@lynxeye.de>
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
The commit is part of mainline barebox since version v2020.09.0, so drop
the console option. Drop the rootfstype as well while on it since the
kernel will do an autodetection.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-14-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
The blspec support for the Gute Fee HW was incomplete since the actual
makefile is missing as well as the devicetree, so drop the blspec boot
support.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-13-m.felsch@pengutronix.de
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>
|
|
|
|
|
|
|
|
|
| |
Add the option to add the 'linux-appendroot true' to blspec config file
which is very useful in case of using barebox as bootlaoder.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-11-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Import all required files from upstream ptxdist-2022.12.0 for further
adaptions. No functional changes done.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-10-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Sync both barebox versions to the most recent available mainline
version.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-9-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Use the mainline available mechanism to copy the required firmware
artifacts. This also align the code with the barebox-rockchip.make file.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-8-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>
|
|
|
|
|
|
|
|
|
|
| |
The linux firmware search path is /lib/firmware, so adapt it
accordingly. Add the /usr prefix since DistroKit already applied the
/usr merge.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-6-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
The barebox-imx8m package searches for firmware within
<sysroot-target>/firmware/ddr/synopsys and not within
<sysroot-target>/firmware/imx so fix this.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-5-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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Do mainline version bump v2.7 -> v2.8
Drop upstreamed patch:
- 0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch
Squash patches:
- 0003-feat-build-add-support-for-new-binutils-versions.patch
- 0004-makefile-link-with-z-noexecstack.patch
Added patches:
- i.MX8MQ PIE support
- i.MX8MQ GCC-12 build fixes
Finally make use of umpf [1] for the patchstack management.
[1] https://github.com/pengutronix/umpf/pull/10
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-2-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>
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Since glibc-2.34, these libpthread, librt, libdl and libutil have moved
into the main library.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|