| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
tested on RIoTBoard
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
BSP kernel make files was changed. Now we can regenerate kernel configs
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
We have separate kernel images for different HW.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
It is an QEMU system. This options are currently not needed
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
It is not possible to enable strict devmem on this platform
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
This driver is not used. Disable it.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
Sync EXT4 and VFAT support with ARM platforms
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
We have I2C support on all ARM platforms. Enable it for MIPS as well.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
entry
All other boards have it. And booting fails without it.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
Add a script to make updating of barebox and kernel packages easier.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
NEON was switched off, while ARMv7 has support for it.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Disable cpu isolation and cpu hotplug.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Disable thumbee extension.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
A new kernel is out, update all platforms.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
HOTPLUG_CPU and CPU_ISOLATION were enabled by accident, disable.
Patch inspired by 'reason'.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
A new ptxdist version is out, update the configs.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
this PHY is used on BeagleBone Black
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
| |
Fixes: 3dd5c0fe34cee8ebbcdd ("rules: remove CREDIT lines")
Fixes: 3bce747e47170b219334 ("v7a: add stm32mp157c-dk2 SD-Card image")
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
It is used on RIoTBoard and MarS Board
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
The STM32MP uses TF-A as first stage boot loader. Configure it
appropriately for use.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
A new ptxdist version is out, update the configs.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|