Commit Graph

115 Commits

Author SHA1 Message Date
Bjorn Andersson
bdc7b69cf2 Merge pull request #62 from quic-bjorande/for-linux-msm/cpio-owner
Makefile: Override owner of files in cpio archive
2024-04-23 16:15:02 -05:00
Bjorn Andersson
18baa908d7 Merge pull request #60 from nfraprado/usb-probe-test-upstream
Introduce USB device probe helper
2024-04-23 16:14:42 -05:00
Bjorn Andersson
04922d1bd7 Makefile: Override owner of files in cpio archive
In the typical scenario where the bootrr cpio archive is concatenated
onto some ramdisk, attributes of this cpio archive will overwrite those
previously extracted.

When used in combination with a ramdisk with systemd, this results in
many services failing to start, because the namespaced services does not
have permission to open e.g. /

Fix this my overriding the owner and group.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
2024-04-21 20:38:32 -07:00
Konrad Dybcio
48ac2b00f7 Merge pull request #61 from calebccff/musl-op6
POSIX sh fixes and OnePlus 6 board files
2024-03-18 17:18:25 +01:00
Caleb Connolly
624169ad57 boards: support OnePlus 6/6T
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-09-25 15:20:44 +01:00
Caleb Connolly
15802fb245 bin: generate: use POSIX sh and support spaces
Handles drivers with spaces in their names, and simplify slightly by
using globbing to unwrap the bus for loop.

It's necessary to add the final '*' in the "for driver in" loop in
bootrr-generate-template on POSIX sh.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-09-25 15:18:27 +01:00
Nícolas F. R. A. Prado
1dd1ca0437 boards: Use assert_usb_probed for USB devices on Spherion
Make use of the newly added assert_usb_probed helper for USB devices on
Spherion, as it relies on documented kernel ABI and will therefore
require less maintenance.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
2023-09-07 16:23:15 -04:00
Nícolas F. R. A. Prado
bc331ca133 helpers: Introduce assert_usb_probed
Current bootrr helpers, assert_device_present and assert_driver_present,
use driver and device names, both of which are not part of the kernel's
stable ABI and end up requiring extra maintenance whenever those names
are changed, in order to check for the expected name on each kernel
version.

Introduce a new helper, assert_usb_probed, that verifies a USB device
has been probed, taking as parameters the device's hardware identifying
properties, which are documented kernel ABI: idVendor, idProduct,
bcdDevice, bDeviceClass, bDeviceSubClass, bDeviceProtocol,
bInterfaceClass, bInterfaceSubClass, bInterfaceProtocol,
bInterfaceNumber.

A 'count' parameter is also required, to inform the number of devices
matching these criteria that should have been probed. This allows the
test to verify the probe of multiple identical devices.

A '*' can be used as wildcard for any of the matching fields as
necessary.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
2023-09-07 16:23:15 -04:00
Nícolas F. R. A. Prado
b22ac8899c boards: Add test case for google,spherion
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
2023-09-07 16:19:52 -04:00
Mark Brown
cac8008d8b boards: Add BeagleBone X15
Add an initial description for the BeagleBone X15.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-27 17:36:53 -05:00
Mark Brown
71cb8ec97f boards: Add Toradex Verdin on Dahalia carrier card
This is a modular system, it could be split up further (eg, there will
be a lot shared with the WiFi variant) but this is what I have to hand.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-27 17:36:30 -05:00
Mark Brown
260e8efd32 squash imx8mp 2023-08-27 17:36:30 -05:00
Mark Brown
0dc294836a boards: Add i.MX8MP-EVK description
Add coverage for the NXP i.MX8MP-EVK based on the current upstream
support.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-27 17:36:30 -05:00
Mark Brown
f07bea942e boards: Add i.MX8MP SoC
Add generic functionality of the i.MX8MP SoC based on the current upstream
support.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-27 17:36:30 -05:00
Mark Brown
07cb25b792 boards: Add Synquacer DT
Add a template for the Socionext Synquacer booted with DT.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-27 17:35:37 -05:00
Mark Brown
6ac3e34d34 helpers: Fix bashism in cpufreq and cpuidle tests
The helpers for verifiying that cpufreq and cpuidle are enabled
use let which is a bash extension and not supported in standard
POSIX shell, including with busybox.  Convert to use expr which
is standard.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:53:16 -06:00
Mark Brown
f65d7327ca bin: Add a tool to generate a template bootrr board description
bootrr requires a description of each board it runs on to provide
detection of the actual devices and system support that is
present.  Currently these descriptions must be written by hand
but we can ease the process of creating them by providing a tool
which examines the running system and outputs a set of bootrr
assertions which would pass on the system.

The script will require post processing by users, the generate
rule names won't be good, hotplugged devices will be included and
any spaces in device or driver names will cause confusion, but it
can provide a usefuls starting point.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:52:56 -06:00
Mark Brown
8d1bcab6db boards: Add LibreTech Tritium H5
This adds coverage for the bulk of the devices on the LibreTech
Tritium H5.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:52:12 -06:00
Mark Brown
c7966eae35 boards: Move generic RK3288 description to a separate file
There are a number of devices on the RK3288 which are usable on
and enabled for any system using the SoC, due to either being
essential for system operation or entirely internal to the SoC
(like the crypto engine).  Move these to a separate script
identified by the compatible for the SoC so that we get coverage
of these things on any system which uses this SoC.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:51:55 -06:00
Mark Brown
611aa83457 boards: Add UDOO Dual Lite
Add coverage for the UDOO Dual Lite board.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:51:24 -06:00
Mark Brown
b1a3d903d3 boards: Add Allwinnner A64 coverage
Add coverage for the generic SoC devices on the Allwinner A64.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:51:10 -06:00
Mark Brown
784c03585f boards: Add Pine64+ coverage
Cover the board specific devices on the Pine64+.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:50:53 -06:00
Mark Brown
d952028b4f boards: Add UDOO Quad
Add coverage for the UDOO Quad.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:50:40 -06:00
Mark Brown
157742b79d boards: Add LibreTech Le Potato
This covers most of the hardware on the LibreTech Le Potato
board.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:50:25 -06:00
Mark Brown
c55b110515 boards: Add Raspberry Pi 1 coverage
Add coverage of most of the user facing devices on the original
Raspberry Pi.

Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-17 22:50:02 -06:00