Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configs/frags: Add sparc64 fragment #15

Open
wants to merge 65 commits into
base: main
Choose a base branch
from

Conversation

montjoie
Copy link

Permits to generate kernelCI sparc64 rootfs.

Kevin Hilman and others added 30 commits July 2, 2020 16:20
Some boards (like davinci dm365, da850) do not have floating point
units.  Also, we need to include arm9/arm11 support for davinci,
versatilepb and raspberry-pi.  Therefore, we can't use the Linaro
compiler which needs Cortex-A support and hard-float.
ARMv7 and ARMv7 big-endian support is different, and we currently
only test ARMv7 big-endian platforms.  So, update the armeb fragment
to only build with ARMv7 support.  Also, since it's ARMv7+, we
can use the Linaro toolchain so do so.
The "base" fragment will always be included.
Needed by in-kernel selftests for compile-time and runtime.

Signed-off-by: Kevin Hilman <[email protected]>
The output/hosts dir is needed for cross-compiling external packages
(e.g. kernel selftests.)  Package up for ease of distribution.

Signed-off-by: Kevin Hilman <[email protected]>
If you don't enable BR2_ARM_ENABLE_VFP=y, then BR2_ARM_EABIHF=y does
not do anything because EABIhf is not available for cores that don't
have a VFP.

Since the Linaro ARM big-endian toolchain is an EABIhf only toolchain,
it is not available if EABI is used instead of EABIhf. Due to this, it
was using the Musl big-endian toolchain, which is big-endian for
ARMv4/5 (i.e BE-32).

To fix this, we define BR2_ARM_ENABLE_VFP=y. In addition, there is a
different Config.in symbol for the ARM little-endian and the ARM
big-endian Linaro toolchain, so we use the appropriate one.

Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
"make olddefconfig" is the better way of doing 'yes "" | make
oldconfig'.

Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
This purges useless locales (en_US might be also purged) to reduce the size of
the created rootfs.

Signed-off-by: Quentin Schulz <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
Set the default to arm920t (armv4) to enable rootfs on ARMv4 systems as well.

Reported-by: Quentin Schulz <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
khilman and others added 23 commits July 2, 2020 16:21
Add a bootrr package built using KernelCI's Github fork.

Signed-off-by: Guillaume Tucker <[email protected]>
Add a baseline.config fragment for the KernelCI baseline test plan
which uses bootrr.

Signed-off-by: Guillaume Tucker <[email protected]>
Add a util-linux-dmesg package to only build dmesg from util-linux.
This is to optimize for size, since there is no granularity in the
standard util-linux package configuration to only select some
binaries.

The UTIL_LINUX_DMESG configuration for this package is mutually
exclusive with UTIL_LINUX_BINARIES to not have it built twice.

Signed-off-by: Guillaume Tucker <[email protected]>
Add busybox fragment to disable dmesg.  This is to then be able to use
an other dmesg implementation such as the one from util-linux.

Signed-off-by: Guillaume Tucker <[email protected]>
Enable BR2_PACKAGE_UTIL_LINUX_DMESG and use the busybox fragment to
disable dmesg to use the one from util-linux instead with standard
implementation of all the command line options.

Signed-off-by: Guillaume Tucker <[email protected]>
Need gzip support in tar to support LAVA transfer_overlay feature,
where the target must fetch and unpack .tar.gz archive from the
lava-worker.

Signed-off-by: Kevin Hilman <[email protected]>
Upgrade the version of bootrr to the latest reivision on the master
branch of the kernelci fork.  This includes some fixes for cros-ec
tests on some Chromebook devices and adds helpers to check the kernel
revision.

Signed-off-by: Guillaume Tucker <[email protected]>
Add rootfs_overlay directory structure with dmesg.sh and enable it in
baseline.config.  This is to have the dmesg.sh script directly in the
baseline ramdisk and be able to call it directly in KernelCI jobs.

Signed-off-by: Guillaume Tucker <[email protected]>
The baseline config adds a new rootfs overlay, but it should also
include the base overlay.  Fix this by having the path for both
overlays in the baseline fragment.

Fixes: 24600c7 ("baseline: add rootfs_overlay with dmesg.sh")
Signed-off-by: Guillaume Tucker <[email protected]>
Upgrade bootrr to the latest revision from the kernelci fork.  This
includes a fix to install the kernel version helpers used in tests
that are version-specific.

Signed-off-by: Guillaume Tucker <[email protected]>
Upgrade bootrr to kernelci-20200925 which adds support for determining
the platform name on ACPI devices, and test scripts for the "hana" and
"grunt" Chromebooks.

Signed-off-by: Guillaume Tucker <[email protected]>
The previous commit was using a revision from the main branch whereas
the PRs to add the scripts were merged on staging.kernelci.org, so
they were not included.  This has now been fixed in the bootrr
repository, so update the revision again.

Fixes: 5d06ce7 ("bootrr: upgrade with support for ACPI and new devices")
Signed-off-by: Guillaume Tucker <[email protected]>
Upgrade the version of bootrr again to match kernelci-20201002 which
has a fix to install the newly board files.

Signed-off-by: Guillaume Tucker <[email protected]>
Upgrade to kernelci-20201020 which has a fix for checking the kernel
version on google,kevin.  This used to cause some false positive
failures because the version check was done with v5.4 rather than
v5.5, when a driver used on the google,kevin platform got renamed.

Signed-off-by: Guillaume Tucker <[email protected]>
Upgrade to the latest kernelci bootrr version with extra scripts to
cover Kontron sl28 boards.

Signed-off-by: Guillaume Tucker <[email protected]>
bootrr: Include bootrr tests for online cpus in production builds.

Signed-off-by: Michal Galka <[email protected]>
Starting with PR kernelci#12, bootrr will depend on tpm2-tools to
run some TPM chip sanity checks on boot, so we need to
make this dependency explicit and for safety also enable
it directly in the baseline config fragment.

[1] kernelci/bootrr#12

Signed-off-by: Adrian Ratiu <[email protected]>
This new revision includes some TPM tests which can be run now that
the required dependencies have been added to the baseline fragment.

It could also have been done by defining dependencies in the bootrr
package, but it may not be required to have those tools when not
running the TPM tests.

Signed-off-by: Guillaume Tucker <[email protected]>
For debugging, it is helpfull to have final config along with rootfs.
So after build let's copy buildroot config.

Signed-off-by: Corentin Labbe <[email protected]>
Update bootrr revision to kernelci-20220323 with extra test cases for
imx8mm-kontron-n801x-s and sl28.

Signed-off-by: Guillaume Tucker <[email protected]>
LAVA mount test disk via /dev/disk/by-uuid/$UUID.
Thoses links are created by UDEV.
Nearly all BR arches have UDEV by default, but mips dont and so test disk
are not mounted when doing qemu+mips.

Signed-off-by: Corentin Labbe <[email protected]>
Permits to generate kernelCI sparc64 rootfs.

Signed-off-by: Corentin Labbe <[email protected]>
@mgalka
Copy link

mgalka commented Apr 6, 2023

Tested locally with kci_rootfs - builds OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants