summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* platform-v8a: make imx-atf compile again with gcc 12Robert Schwebel2022-11-285-0/+166
| | | | | | | gcc 12 brings some new warings which are not fixed in the old imx-atf, but also not in upstream tf-a. Add patches to make it compile again. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* toolchain: version bump 2020.08 -> 2022.10Robert Schwebel2022-11-2819-67/+141
| | | | | | | 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>
* host-genimage: remove local ruleRobert Schwebel2022-11-251-38/+0
| | | | | | genimage-16 is now in ptxdist, so we can remove the local rule. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* tf-a: move patches out of platformRobert Schwebel2022-11-256-4/+123
| | | | | | | | | With new binutils, we need a non-platform specific patch for tf-a that handles executable stacks correctly. As platform specific patches in ptxdist should only be used for patches that break other platforms anyway, move the patches to the normal patches directory. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* expat: source has moved to githubRobert Schwebel2022-11-231-1/+1
| | | | | | The source is not at sourceforge any more but has moved to github. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* expat: copy rule from ptxdist-2022.11.0Robert Schwebel2022-11-231-0/+66
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: stm32mp: enable serial and mass storage gadget driversJan Luebbe2022-11-232-4/+2
| | | | | | They are enabled in the common config and we don't want to disable them there. Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* rpi: rename platform to rpi1Roland Hieber2022-11-2324-12/+12
| | | | | | | | | Make it clear that this platform is really only used for the legacy ARMv6-based RPi 1 boards, so that there is no confusion when trying to use it for RPi 2 or later, even for people who don't read the documentation. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* ptxdist: migrate to 2022.11.0Roland Hieber2022-11-238-87/+119
| | | | | | | | | 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>
* v8a/rockchip: barebox: bump version to 2022.10.0Daniel Brát2022-11-232-8/+11
| | | | | | | Bumps barebox version to 2022.10.0. This version has correctly working bootsource detection. Tested working on Radxa rock 3A v1.3. Signed-off-by: Daniel Brát <danek.brat@gmail.com>
* v7a: barebox: enable of_diff commandAhmad Fatoum2022-10-0212-13/+12
| | | | | | | | | | The of_diff command shows a diff over the fixups barebox would do to the device tree when booting and is very useful to see at a glance, things like fixed up bootsource or memory size. Enable it for all v7a boards. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-11-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: rpi4: place DT into /boot for VideoCore consumptionAhmad Fatoum2022-10-021-0/+1
| | | | | | | | | | | | | | | | This is a somewhat ugly hack. The VideoCore will pass this device tree to barebox, which doesn't care much for it. As a side effect of the device tree passing, the VideoCore parses the device tree and will detect that the mini-uart is enabled and take care not to scale clock rate on the VideoCore, which the mini-uart is sourced from as that would upset the baudrate. There may be some config.txt entry we can use to avoid this, but for now, just place the device tree into the boot partition. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-10-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: rpi4: add boot loader spec supportAhmad Fatoum2022-10-025-0/+56
| | | | | | | | | | | We now build device trees and have a kernel capable of booting on the Raspberry Pi 4b, so generate bootloader spec entries as well. We add an entry for the Raspberry Pi 400 as well. This is untested, but isn't costly to enable. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-9-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: dts: build Raspberry Pi 4 device treesAhmad Fatoum2022-10-021-1/+1
| | | | | | | | | We'll want to be able to boot the v7a image on Raspberry Pi 4 in 32-bit mode as well, so enable the device trees. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-8-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: kernel: configure for 32-bit Raspberry Pi 4 supportAhmad Fatoum2022-10-021-8/+13
| | | | | | | | | | We already support the Raspberry Pi 3 with our v7a kernel configuration, flip a few more options to get the kernel running on a Raspberry Pi 4 in A32 mode as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-7-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* rpi-firmware: Update firmware to v1.20220331 for Rpi4 supportAhmad Fatoum2022-10-0218-1/+2
| | | | | | | This firmware was taken from the official firmware repository at: https://github.com/raspberrypi/firmware/archive/refs/tags/1.20220331.zip Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* barebox: deploy new barebox-raspberry-pi.imgAhmad Fatoum2022-10-022-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The generic barebox-dt-2nd.img mimics Linux and allows booting barebox with an external device tree as if it were a kernel. We employ this for using the same image for Rpi 2 and 3 by placing barebox device trees into the FAT boot partition and having the VideoCore pass the correct device tree to barebox. While this works, it means the VideoCore won't patch the kernel device tree, but many users depend on the VideoCore to apply overlays for kernel consumption. While this could be done in barebox instead, it doesn't have the familiar config.txt interface and it doesn't cover some of the more obscure magic the videocore does: e.g. when applying an overlay configuring the USBOTG, the VideCore will reconfigure clocks as a side effect of applying the overlay. For this reason, barebox now also has a barebox-raspberry-pi.img that behaves the same as barebox-dt-2nd.img with the difference that it has the multiple device trees built-in. It's already being generated since updating to the new release, so let's make use of this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-6-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: rpi2: move rpi-firmware directory to top-level workspaceAhmad Fatoum2022-09-3012-1/+1
| | | | | | | | | | The Raspberry Pi 3 we already support can be operated in 64-bit mode as well as the not-yet-supported Raspberry Pi 4. Instead of duplicating the Raspberry Pi Firmware for both platforms, move it to a central location. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-4-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: switch to new broken-cd device parameterAhmad Fatoum2022-09-3023-124/+186
| | | | | | | | | | | The original patch didn't go upstream, because semantics were a bit odd, a Kconfig option changing behavior, but only for devices barebox probes. This imports v3 of the series into DistroKit. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-3-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: version bump v2022.06.0 → v2022.09.0Ahmad Fatoum2022-09-3017-140/+166
| | | | | | | | | | Th v2022.08.0 release added Raspberry Pi i2c controller support as well as Raspberry Pi 4 support. We enable both here and will put the Raspberry Pi 4 support into use in a follow-up commit. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.pengutronix.de/20220930162159.814389-2-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2022.07.0 -> 2022.09.0Robert Schwebel2022-09-298-16/+19
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: stm32mp: enable usb supportMichael Grzeschik2022-09-292-29/+61
| | | | | | | | - enabling drivers for dwc2 gadget, dwc2 host, stm32_usbphyc and stmp32_pwr Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.pengutronix.de/20220907195035.2643740-1-m.grzeschik@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: update diffs with enabled fastboot and mass storage gadgetJan Luebbe2022-09-0712-26/+37
| | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220907132343.3321447-2-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a/barebox: enable fastboot and mass storage gadget supportJan Luebbe2022-09-071-3/+12
| | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220907132343.3321447-1-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: update diffs with enabled CONFIG_CMD_MIITOOLJan Luebbe2022-09-068-12/+8
| | | | | | | | It was enabled for mx6&rpi&stm32mp, but not for am335x&at91&vexpress. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220906103328.3303545-4-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: enabled CONFIG_CMD_MIITOOL in the generic configJan Luebbe2022-09-061-1/+1
| | | | | | | | It was enabled for mx6&rpi&stm32mp, but not for am335x&at91&vexpress. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220906103328.3303545-3-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: update diffs with enabled CONFIG_BOOTM_INITRDJan Luebbe2022-09-068-12/+8
| | | | | | | | It was enabled for mx6&rpi&stm32mp&vexpress, but not for am335x&at91. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220906103328.3303545-2-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: enable CONFIG_BOOTM_INITRD in the generic configJan Luebbe2022-09-061-1/+1
| | | | | | | | It was enabled for mx6&rpi&stm32mp&vexpress, but not for am335x&at91. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.pengutronix.de/20220906103328.3303545-1-jlu@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: v8a: rock3a: Add documentationMichael Tretter2022-09-062-1/+30
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-21-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: rock3a: workaround SDR-UHS1 detectionJohannes Zink2022-09-061-0/+1
| | | | | | | | | | | | This commit is a workaround for an issue with the Linux kernel always detecting a SDR-UHS104 capable SD card, which causes the boot to get stuck, because the kernel tries to enter into high-speed mode and then hangs. 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-20-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: rockchip: copy default barebox envJohannes Zink2022-09-063-1/+15
| | | | | | | | | | Create a custom Barebox environment for the ROCK 3A to be able to apply board specific workarounds. 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-19-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: rockchip: provide barebox-rock3a.norimg recovery imageJohannes Zink2022-09-062-0/+16
| | | | | | | | | | | Have genimage generate a new image that can be flashed to SPI-NOR and that when booted opens an Andorid Fastboot gadget for flashing the SD-Card. 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-18-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: rockchip: add Radxa Rock 3A image and blspec entryJohannes Zink2022-09-067-2/+128
| | | | | | | | | | 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>
* v8a: rockchip: add new barebox-rockchip ruleJohannes Zink2022-09-064-0/+1101
| | | | | | | | | | 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>
* v8a: rockchip: add rule for rockchip firmwareJohannes Zink2022-09-063-0/+121
| | | | | | | | | | | | | | | 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>
* v8a: barebox: move default environmentJohannes Zink2022-09-063-1/+1
| | | | | | | | | | The imx8m default environment is generic enough for reuse on other boards. Rename the environment to common to make this more visible. 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-14-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: add Rockchip RK356x supportJohannes Zink2022-09-061-10/+61
| | | | | | | | | | | We currently configure the kernel only for the supported Marvell and NXP SoCs. We are going to add a rockchip rk356x image, so add support for that SoC as well. 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-13-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: enable SCMI based driversMichael Tretter2022-09-061-2/+17
| | | | | | | | | | | SCMI is used to control base SoC functionality on some SoCs, including the rk3568. Enable SCMI and drivers that use SCMI. For example, this is necessary to make reboot work on the rock3a board. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-12-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable network drivers except for FEC and STMMACJohannes Zink2022-09-061-223/+64
| | | | | | | | | | | | Linux Kconfig usually has default y symbols for per-vendor network driver menus with more options hiding behind it. Just say n to all these menus and disable any actual drivers we have enabled that we don't actually need. 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-11-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable SLIMBUSJohannes Zink2022-09-061-5/+1
| | | | | | | 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-10-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable SPMIJohannes Zink2022-09-061-14/+1
| | | | | | | 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-9-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable CHROME_PLATFORMSMichael Tretter2022-09-061-32/+1
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-8-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable MEDIA_SUPPORTMichael Tretter2022-09-061-579/+1
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-7-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable SOUNDMichael Tretter2022-09-061-363/+2
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-6-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable DRMMichael Tretter2022-09-061-308/+4
| | | | | | | | DistroKit has a minimal feature set. DRM is not required. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-5-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable VIRTUALIZATIONMichael Tretter2022-09-061-19/+1
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-4-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: disable ACPIMichael Tretter2022-09-061-121/+2
| | | | | | Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.pengutronix.de/20220905163615.2807729-3-m.tretter@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: kernel: version bump v5.15 -> v5.19Johannes Zink2022-09-062-346/+576
| | | | | | | 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>
* platform-v7a: image-vexpress-nor: fix copy-paste errorMichael Olbrich2022-09-061-2/+2
| | | | | | | | Package name and symbol name should match. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Link: https://lore.pengutronix.de/20220902104854.2392497-1-m.olbrich@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* scripts: update-diffs-v7a.sh: fix ptxdist pathRoland Hieber2022-09-061-1/+9
| | | | | | | | | Use the same detection logic as in update-diffs-mips.sh, in case a different PTXdist version is to be used. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20220905110709.1832516-6-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>