kursk 发表于 2024-12-11 17:22:03

如何在编译时加入br_netfilter和bridge 两个模块

硬件主板型号: YY3568
固件名称/系统版本:ubuntu 22.04 5.10
自编的或固件下载地址:
Log日志:

问题描述及复现步骤:

我按照自己写的这个帖子的步骤进行烧录,但是发现没有br_netfilter和bridge 两个模块,如下
root@etcd01:~# modprobe br_netfilter
modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/5.10.160-geec50f7b347d
root@etcd01:~#
root@etcd01:~# modprobe bridge
modprobe: FATAL: Module bridge not found in directory /lib/modules/5.10.160-geec50f7b347d

何浩钧 发表于 2024-12-11 17:42:45

你好!可以先看一下系统有没有加载这两个模块,没有的话,CONFIG_BRIDGE
CONFIG_BRIDGE_NETFILTER,内核make menuconfig打开一下这两个选项。

kursk 发表于 2024-12-12 10:11:24

能说清楚一点吗?执行make menuconfig后就没有加载模块的选项,这是output/.config文件的内容

root@ub:~/yy3568# cat output/.config
#
# Automatically generated file; DO NOT EDIT.
# Rockchip Linux SDK Configuration
#
RK_DEFCONFIG="defconfig"
RK_CHIP_FAMILY="rk3566_rk3568"
RK_CHIP="rk3566_rk3568"

#
# Rootfs
#
RK_BUILDROOT_BASE_CFG="rk3566_rk3568"
RK_BUILDROOT_CFG="rockchip_${RK_BUILDROOT_BASE_CFG}"
RK_YOCTO_CFG=""
# RK_UBUNTU_CFG is not set
RK_DEBIAN_VERSION="bullseye"
RK_DEBIAN_ARCH="arm64"
RK_DEBIAN_ARM64=y
# RK_DEBIAN_ARMHF is not set
RK_ROOTFS_SYSTEM="buildroot"
RK_ROOTFS_SYSTEM_BUILDROOT=y
# RK_ROOTFS_SYSTEM_DEBIAN is not set
# RK_ROOTFS_SYSTEM_UBUNTU is not set
RK_ROOTFS_TYPE="ext4"
# RK_ROOTFS_INITRD is not set

#
# Post rootfs installs
#
RK_ROOTFS_HOSTNAME_DEFAULT=y
# RK_ROOTFS_HOSTNAME_ORIGINAL is not set
# RK_ROOTFS_HOSTNAME_CUSTOM is not set
RK_ROOTFS_LOCALE_DEFAULT=y
# RK_ROOTFS_LOCALE_ORIGINAL is not set
# RK_ROOTFS_LOCALE_CUSTOM is not set
RK_EXTRA_FONTS_DEFAULT=y
# RK_EXTRA_FONTS_ENABLED is not set
# RK_EXTRA_FONTS_DISABLED is not set
RK_DISK_HELPERS_DEFAULT=y
# RK_DISK_HELPERS_MOUNTALL is not set
# RK_DISK_HELPERS_RESIZEALL is not set
# RK_DISK_HELPERS_DISABLED is not set
# RK_DISK_AUTO_FORMAT is not set
# RK_DISK_SKIP_FSCK is not set
RK_ROOTFS_UDEV_RULES=y
RK_USB_DEFAULT=y
# RK_USB_ENABLED is not set
# RK_USB_DISABLED is not set

#
# USB gadget
#
RK_USB_ADBD=y
RK_USB_ADBD_TCP_PORT=5555
RK_USB_ADBD_BASH=y
RK_USB_ADBD_PASSWORD=""
RK_USB_ADBD_RSA_KEY=""
# RK_USB_MTP is not set
# RK_USB_ACM is not set
# RK_USB_NTB is not set
# RK_USB_UVC is not set
# RK_USB_UAC1 is not set
# RK_USB_UAC2 is not set
# RK_USB_HID is not set
# RK_USB_RNDIS is not set
# RK_USB_UMS is not set
RK_USB_EXTRA=""
RK_USB_HOOKS=""
RK_WIFIBT_CHIP="ALL_AP"
RK_WIFIBT_TTY="ttyS0"
# RK_ROOTFS_PREBUILT_TOOLS is not set
RK_ROOTFS_OVERLAY_DIRS=""

#
# Loader (u-boot)
#
RK_UBOOT_CFG="rk3566_rk3568"
RK_UBOOT_CFG_FRAGMENTS=""
RK_UBOOT_OPTS=""
RK_UBOOT_TRUST_INI=""
RK_UBOOT_SPL_INI=""
RK_UBOOT_SPL_CFG=""
RK_UBOOT_ARCH="arm64"
RK_UBOOT_ARM64=y
# RK_UBOOT_ARM32 is not set

#
# Kernel
#
RK_KERNEL_CFG="rockchip_linux_defconfig"
RK_KERNEL_VERSION=""
RK_KERNEL_ARCH="arm64"
RK_KERNEL_ARM64=y
# RK_KERNEL_ARM32 is not set
RK_KERNEL_CFG_FRAGMENTS=""
RK_KERNEL_DTS_NAME=""
RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
RK_KERNEL_IMG_NAME="Image"
RK_KERNEL_IMG="kernel/arch/$RK_KERNEL_ARCH/boot/$RK_KERNEL_IMG_NAME"

#
# Boot
#
RK_BOOT_IMG="boot.img"
# RK_BOOT_COMPRESSED is not set

#
# Recovery (buildroot)
#
RK_RECOVERY_BASE_CFG="rk3566_rk3568"
RK_RECOVERY_CFG="rockchip_${RK_RECOVERY_BASE_CFG}_recovery"

#
# PCBA test (buildroot)
#
RK_PCBA_BASE_CFG="rk3566_rk3568"
RK_PCBA_CFG="rockchip_${RK_PCBA_BASE_CFG}_pcba"

#
# Security feature depends on FIT image
#

#
# Extra partitions
#
RK_EXTRA_PARTITION_NUM=2

#
# Extra partition 1
#
RK_EXTRA_PARTITION_1_DEV="oem"
RK_EXTRA_PARTITION_1_NAME="<dev>"
RK_EXTRA_PARTITION_1_NAME_STR="${RK_EXTRA_PARTITION_1_DEV##*[/=]}"
RK_EXTRA_PARTITION_1_MOUNTPOINT="/<name>"
RK_EXTRA_PARTITION_1_MOUNTPOINT_STR="/$RK_EXTRA_PARTITION_1_NAME_STR"
RK_EXTRA_PARTITION_1_FSTYPE="ext4"
RK_EXTRA_PARTITION_1_OPTIONS="defaults"
RK_EXTRA_PARTITION_1_SRC="normal"
RK_EXTRA_PARTITION_1_SIZE="auto"
# RK_EXTRA_PARTITION_1_BUILTIN is not set
# RK_EXTRA_PARTITION_1_FIXED is not set
RK_EXTRA_PARTITION_1_FEATURES="${RK_EXTRA_PARTITION_1_FIXED:+fixed,}${RK_EXTRA_PARTITION_1_BUILTIN:+builtin}"
RK_EXTRA_PARTITION_1_STR="$RK_EXTRA_PARTITION_1_DEV:$RK_EXTRA_PARTITION_1_NAME_STR:$RK_EXTRA_PARTITION_1_MOUNTPOINT_STR:$RK_EXTRA_PARTITION_1_FSTYPE:$RK_EXTRA_PARTITION_1_OPTIONS:${RK_EXTRA_PARTITION_1_SRC// /,}:$RK_EXTRA_PARTITION_1_SIZE:$RK_EXTRA_PARTITION_1_FEATURES"

#
# Extra partition 2
#
RK_EXTRA_PARTITION_2_DEV="userdata"
RK_EXTRA_PARTITION_2_NAME="<dev>"
RK_EXTRA_PARTITION_2_NAME_STR="${RK_EXTRA_PARTITION_2_DEV##*[/=]}"
RK_EXTRA_PARTITION_2_MOUNTPOINT="/<name>"
RK_EXTRA_PARTITION_2_MOUNTPOINT_STR="/$RK_EXTRA_PARTITION_2_NAME_STR"
RK_EXTRA_PARTITION_2_FSTYPE="ext4"
RK_EXTRA_PARTITION_2_OPTIONS="defaults"
RK_EXTRA_PARTITION_2_SRC="normal"
RK_EXTRA_PARTITION_2_SIZE="auto"
# RK_EXTRA_PARTITION_2_BUILTIN is not set
# RK_EXTRA_PARTITION_2_FIXED is not set
RK_EXTRA_PARTITION_2_FEATURES="${RK_EXTRA_PARTITION_2_FIXED:+fixed,}${RK_EXTRA_PARTITION_2_BUILTIN:+builtin}"
RK_EXTRA_PARTITION_2_STR="$RK_EXTRA_PARTITION_2_DEV:$RK_EXTRA_PARTITION_2_NAME_STR:$RK_EXTRA_PARTITION_2_MOUNTPOINT_STR:$RK_EXTRA_PARTITION_2_FSTYPE:$RK_EXTRA_PARTITION_2_OPTIONS:${RK_EXTRA_PARTITION_2_SRC// /,}:$RK_EXTRA_PARTITION_2_SIZE:$RK_EXTRA_PARTITION_2_FEATURES"
RK_EXTRA_PARTITION_STR="$RK_EXTRA_PARTITION_1_STR@$RK_EXTRA_PARTITION_2_STR@$RK_EXTRA_PARTITION_3_STR@$RK_EXTRA_PARTITION_4_STR@$RK_EXTRA_PARTITION_5_STR"

#
# Firmware
#
YYT_ROOTFS=""
RK_PACKAGE_FILE_DEFAULT=y
# RK_PACKAGE_FILE_CUSTOM is not set
RK_PARAMETER="parameter.txt"
RK_MISC_IMG="wipe_all-misc.img"
# RK_USE_FIT_IMG is not set

#
# Update (OTA and A/B)
#
RK_UPDATE=y
RK_OTA_PACKAGE_FILE_DEFAULT=y
# RK_OTA_PACKAGE_FILE_CUSTOM is not set
# RK_AB_UPDATE is not set

#
# Others configurations
#
# RK_SAVE_COMMITTED is not set
RK_SAVE_TRACKED=y
# RK_SAVE_ALL is not set
页: [1]
查看完整版本: 如何在编译时加入br_netfilter和bridge 两个模块