mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
package/rdma-core: new package
This is the userspace components for the Linux Kernel's drivers/infiniband subsystem. https://github.com/linux-rdma/rdma-core Tested-by: Shamraiz Ashraf <shamraizashraf092@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> [yann.morin.1998@free.fr: - select iproute2 as it provides the 'rdma' utility ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
9b439a721e
commit
ea47e177f0
43
support/testing/tests/package/test_rdma_core.py
Normal file
43
support/testing/tests/package/test_rdma_core.py
Normal file
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
|
||||
import infra.basetest
|
||||
|
||||
|
||||
class TestRdmaCore(infra.basetest.BRTest):
|
||||
|
||||
config = \
|
||||
"""
|
||||
BR2_aarch64=y
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.91"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
|
||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_CPIO_GZIP=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_PACKAGE_LIBMNL=y
|
||||
BR2_PACKAGE_RDMA_CORE=y
|
||||
""".format(
|
||||
infra.filepath("tests/package/test_rdma_core/linux-rdma.fragment")
|
||||
)
|
||||
|
||||
def test_run(self):
|
||||
img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
|
||||
kern = os.path.join(self.builddir, "images", "Image")
|
||||
self.emulator.boot(arch="aarch64",
|
||||
kernel=kern,
|
||||
kernel_cmdline=["console=ttyAMA0"],
|
||||
options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
|
||||
self.emulator.login()
|
||||
|
||||
# Add the rxe0 interface
|
||||
self.assertRunOk("rdma link add rxe0 type rxe netdev eth0")
|
||||
|
||||
# ibv_devinfo returns 255 if no devices are found
|
||||
self.assertRunOk("ibv_devinfo -v")
|
||||
@@ -0,0 +1,9 @@
|
||||
CONFIG_INFINIBAND=m
|
||||
CONFIG_INFINIBAND_USER_MAD=m
|
||||
CONFIG_INFINIBAND_USER_ACCESS=m
|
||||
CONFIG_RDMA_RXE=m
|
||||
CONFIG_INFINIBAND_IPOIB=m
|
||||
CONFIG_INFINIBAND_IPOIB_CM=y
|
||||
CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=y
|
||||
CONFIG_INFINIBAND_RTRS_CLIENT=m
|
||||
CONFIG_INFINIBAND_RTRS_SERVER=m
|
||||
Reference in New Issue
Block a user