summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* platform-v7a: kernel: enable USB support for i'MX6Oleksij Rempel2020-04-251-2/+3
| | | | | | tested on RIoTBoard Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: regenerate kernel configOleksij Rempel2020-04-245-12/+2
| | | | | | BSP kernel make files was changed. Now we can regenerate kernel configs Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: enable HARDEN_STACKCLASHOleksij Rempel2020-04-241-1/+1
| | | | | | | | | | | | | | | | Generate code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation. Thus, it prevents allocations from jumping over any stack guard page provided by the operating system. Most targets do not fully support stack clash protection. However, on those targets -fstack-clash-protection will protect dynamic stack allocations. -fstack-clash-protection may also provide limited protection for static stack allocations if the target supports -fstack-check=specific. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: enable GLIBCXX_ASSERTIONOleksij Rempel2020-04-241-1/+1
| | | | | | | | Tis enables extra error checking in the form of precondition assertions, such as bounds checking in strings and null pointer checks when dereferencing smart pointers. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: malta: fix qemu run scriptOleksij Rempel2020-04-241-1/+1
| | | | | | We have separate kernel images for different HW. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: disable SYSTEM_TRUSTED_KEYRING and WiFI supportOleksij Rempel2020-04-242-192/+7
| | | | | | It is an QEMU system. This options are currently not needed Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: disable unused name spaces.Oleksij Rempel2020-04-242-6/+3
| | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: disable unused functions CPU_ISOLATION and CONNECTOROleksij Rempel2020-04-242-6/+3
| | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: enable PREEMPT supportOleksij Rempel2020-04-244-23/+11
| | | | | | | The typical embedded use-cases are more sensitive to latency than throughput. Thus a fully preemptible kernel is preferred. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: disable devmem supportOleksij Rempel2020-04-242-2/+1
| | | | | | It is not possible to enable strict devmem on this platform Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: malta: disable dummy driverOleksij Rempel2020-04-242-2/+1
| | | | | | This driver is not used. Disable it. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: enable EXT4 and VFAT FS supportOleksij Rempel2020-04-245-105/+146
| | | | | | Sync EXT4 and VFAT support with ARM platforms Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: enable CPU_IDLE supportOleksij Rempel2020-04-245-5/+32
| | | | | | | Power management is tricky can be a source of different issues. It should be tested and fixed as early as possible. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: enable USB supportOleksij Rempel2020-04-244-92/+339
| | | | | | | All currently supported ARM platforms provide USB support. Enable USB on MIPS, to make it consistent with other platforms. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: enable i2c supportOleksij Rempel2020-04-245-9/+723
| | | | | | We have I2C support on all ARM platforms. Enable it for MIPS as well. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* MIPS: kernel: keep the config files stableMichael Olbrich2020-04-243-0/+12
| | | | | | | | | | | | | | This is basically the same as the ptxdist upstream commit c065184961ab1973c304ee31347205569b4f7536 ("kernel: add workaround to keep kernelconfigs stable") With linux-4.19 and gcc-8.x oldconfig will prompt for extra options that are not available with e.g. gcc-7.x. This causes problems when a BSP is built with different host compilers. Add a workaround to optionally disable these extra options by forcing the compiler check to fail. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: sabrelite: add missing linux-appendroot to the bootloader spec ↵Michael Olbrich2020-04-241-0/+1
| | | | | | | | entry All other boards have it. And booting fails without it. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* v7a: barebox: version bump 2020.02.0 -> 2020.04.0Ahmad Fatoum2020-04-1517-431/+104
| | | | | | | | | This lets us drop the am335x USB fixes, because they were already in the v2020.03.0 release. Only new enabled config option is CONFIG_USB_GADGET_FASTBOOT_CMD_OEM, which was non-configurable before. Marking it as enabled avoid a regression for people using `fastboot oem exec` Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* platform-v7a: run: use security_model=mapped-file when possibleMichael Olbrich2020-04-091-3/+9
| | | | | | | | PTXdist can now provide the necessary metadata files for security_model=mapped-file. With this enabled, the rootfs on 9p has the correct ownership and permissions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_nfsd_exec: sync with upstreamMichael Olbrich2020-04-091-2/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-mips: add a script to update all configsOleksij Rempel2020-04-051-0/+14
| | | | | | Add a script to make updating of barebox and kernel packages easier. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* platform-v7a: enable NEON based AES implementation if NEON is enabledRobert Schwebel2020-04-031-2/+3
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: enable NEON supportRobert Schwebel2020-04-031-1/+11
| | | | | | NEON was switched off, while ARMv7 has support for it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: disable unused featuresRobert Schwebel2020-04-031-5/+2
| | | | | | Disable cpu isolation and cpu hotplug. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: disable CONFIG_ARM_THUMBEERobert Schwebel2020-04-031-1/+1
| | | | | | Disable thumbee extension. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* kernel: version bump 5.5 -> 5.6.2Robert Schwebel2020-04-0314-135/+306
| | | | | | A new kernel is out, update all platforms. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v8a: disable unused featuresRobert Schwebel2020-04-021-5/+2
| | | | | | | HOTPLUG_CPU and CPU_ISOLATION were enabled by accident, disable. Patch inspired by 'reason'. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-rpi: barebox: enable dmesg commandRobert Schwebel2020-03-271-1/+2
| | | | | | | To be able to see all messages on the console, enable the dmesg command in barebox (correspondig to our other platforms). Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2020.02.0 -> 2020.03.0Robert Schwebel2020-03-275-10/+14
| | | | | | A new ptxdist version is out, update the configs. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: kernel: enable usb support for BeagleBone BlackOleksij Rempel2020-03-091-2/+3
| | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* platform-v7a: kernel: enable SMSC_PHYOleksij Rempel2020-03-091-1/+1
| | | | | | this PHY is used on BeagleBone Black Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* remove more references to nonexisting CREDITS fileRoland Hieber2020-03-093-6/+0
| | | | | | Fixes: 3dd5c0fe34cee8ebbcdd ("rules: remove CREDIT lines") Fixes: 3bce747e47170b219334 ("v7a: add stm32mp157c-dk2 SD-Card image") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* ptxd_install_replace_figlet: remove redundant backportRoland Hieber2020-03-091-57/+0
| | | | | | | | | The fix went upstream in PTXdist 2018.10.0 with commit 43bd490bdfd1 ("ptxd_install_replace_figlet: replace all backslashes, not only the first"), so our backport is no longer necessary, and also has no relevant diff to the upstream version. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* platform-v7a: kernel: disable DEBUG_GPIOOleksij Rempel2020-03-061-1/+1
| | | | | | | | | | | | | | | | | | | it is useful only for development of kernel gpio controller and produces lots of dbug messages on each kernel boot: [ 0.210511] gpio gpiochip0: (209c000.gpio): created GPIO range 18->18 ==> 20e0000.iomuxc PIN 184->184 [ 0.210527] gpio gpiochip0: (209c000.gpio): created GPIO range 19->19 ==> 20e0000.iomuxc PIN 187->187 [ 0.210545] gpio gpiochip0: (209c000.gpio): created GPIO range 20->20 ==> 20e0000.iomuxc PIN 183->183 [ 0.210561] gpio gpiochip0: (209c000.gpio): created GPIO range 21->21 ==> 20e0000.iomuxc PIN 188->188 [ 0.210578] gpio gpiochip0: (209c000.gpio): created GPIO range 22->24 ==> 20e0000.iomuxc PIN 123->125 [ 0.210597] gpio gpiochip0: (209c000.gpio): created GPIO range 25->25 ==> 20e0000.iomuxc PIN 121->121 Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* platform-v7a: kernel: enable AT803X_PHYOleksij Rempel2020-03-061-1/+1
| | | | | | It is used on RIoTBoard and MarS Board Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* scripts/p-all: automatically build all available platformsUwe Kleine-König2020-03-051-3/+3
| | | | | | | | | Instead of hardcoding the available platforms build for all actually existing platformconfigs. Effectively this adds mips. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
* rules: remove CREDIT linesRoland Hieber2020-03-0524-48/+0
| | | | | | | | This file has never existed here, and the respective lines were also removed from the upstream PTXdist rules and templates in commit cbd6bda680c65d7e01cf ("CREDITS: remove unmaintained file"). Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: add stm32mp157c-dk2 SD-Card imageAhmad Fatoum2020-03-057-1/+130
| | | | | | | | Both STM32MP BootROM and TF-A expect the subsequent bootloader stage to come from a GPT partition when booting from SD-Card. Add a genimage config that describes this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* datapartition: disable autoformat of non-MBR Linux partitionsAhmad Fatoum2020-03-051-1/+1
| | | | | | | | | | | | | | | | The upcoming STM32MP157C-DK2 board will be the first DistroKit board with a GPT based image and it has barebox as partition 3, unlike the other boards where this is always the data partition. This causes the data partition rule to brick the image by overwriting barebox. As a temporary measure, disable the data partition auto formatting on GPT-images by explicitly checking for partition type 0x83 before starting the service. Eventually we might want to match against a UUID before autoformatting, or create the partition anew altogether. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: stm32mp: enable TF-A for first stageAhmad Fatoum2020-03-051-1/+17
| | | | | | | The STM32MP uses TF-A as first stage boot loader. Configure it appropriately for use. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* rules: add ARM Trusted Firmware-AAhmad Fatoum2020-03-055-0/+265
| | | | | | | | | | | | | | | Trusted Firmware-A (TF-A) is a reference implementation of secure world software for Arm A-Profile architectures (Armv8-A and Armv7-A). TF-A is used as first-stage bootloader on the STM32MP1. We'll use barebox for second-stage only for now, thus add a rule for TF-A. Tested-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> [oldconfiged rpi an v8a platforms while applying] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Link: https://www.mail-archive.com/ptxdist@pengutronix.de/msg15828.html
* v7a: barebox: add new stm32mp ruleAhmad Fatoum2020-03-056-0/+1053
| | | | | | | | | | | | Since v2019.12.0, barebox now has SD/MMC and Ethernet support for the STM32MP1. Thus there is nothing holding us back from extending DistroKit's v7a platform to support the SoC. Add a barebox-stm32mp rule as first step. The barebox rule add here is only meant as second-stage bootloader (SSBL). First-stage (FSBL) will be TF-A introduced in a later patch. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: kernel: configure for STM32MP157 supportAhmad Fatoum2020-03-051-8/+73
| | | | | | | | | | The STM32MP157 is an ARM SoC from STMicro with 2x Cortex-A7 cores as well a Cortex-M MCU. Amend kernel configuration to support this SoC as well as main peripherals used on the STM32MP157C-DK2 SBC. For now, only driver for the non-video HW components are enabled. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: barebox: fix regression in AM335x USBAhmad Fatoum2020-03-0514-10/+381
| | | | | | | | | | | | | | | Kernel commit 0782e8572c ("ARM: dts: Probe am335x musb with ti-sysc") which barebox pulled in during the v2020.02.0 dts/ sync moved the USB nodes to be under a ti-sysc bus instead of ti,am33xx-usb. This broke am335x USB under barebox, because the MUSB drivers couldn't cope with the now different device probe order. Import the two patches fixing this out of barebox master branch. These can be dropped when moving to barebox v2020.03.0. Fixes: 1d84e5419f50 ("v7a: barebox: version bump 2020.01.0 -> 2020.02.0") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* MIPS: ptxdist: version bump 2020.01.0 -> 2020.02.0Oleksij Rempel2020-03-051-2/+2
| | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* projectroot: remove leftover urshd systemd service unit fileAhmad Fatoum2020-02-191-10/+0
| | | | | | | | | | | | | The PTXCONF_URSHD and PTXCONF_URSHD_SYSTEMD_UNIT options were disabled in cb563ef79 ("ptxconfig: reduce active components"), so no one is installing this file anymore. Drop it. Should it be needed in future, the same file is part of the upstream ptxdist rule since 900dfe2cbb8 ("telnetd/urshd: start only with ptxdist-devel in the kernel command line"). Fixes: cb563ef79 ("ptxconfig: reduce active components") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* v7a: barebox: version bump 2020.01.0 -> 2020.02.0Ahmad Fatoum2020-02-1929-3596/+19
| | | | | | | | | | | | | | | | | | | | | barebox v2020.02.0 has just been released. Drop the now upstream rpi patches, oldconfig the configs and use it. As seen in the config diffs, two of our configuration options have changed with this release: CONFIG_CLOCKSOURCE_ARMV8_TIMER=y: barebox support for ARMv7 (and ARMv8) architected timers on >= ARMv7 has now been reenabled. This should improve clocksource accuracy on the rpi3 and vexpress. The name will be changed to indicate that it's not ARMv8 specific in v2020.03.0. CONFIG_DEFAULT_ENVIRONMENT=n in am335x-mlo: This symbol became selectable even without CONFIG_ENV_HANDLING. We didn't use the environment before for this configuration, so we probably don't want to start now, so this is left disabled. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
* MIPS: add initial ar9331 supportOleksij Rempel2020-02-1615-0/+3588
| | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* platform-mips: add basic qemu malta supportOleksij Rempel2020-02-1627-0/+10484
| | | | | | | | Currently this platform can build rootfs and run only barebox. Other parts need more work, but even on this stage we would be able to make toolchain and barebox regression tests. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
* ptxdist: version bump 2020.01.0 -> 2020.02.0Robert Schwebel2020-02-164-9/+26
| | | | | | A new ptxdist version is out, update the configs. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>