查看: 177|回复: 2

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

[复制链接]

3

主题

5

回帖

245

积分

中级会员

Rank: 3Rank: 3

积分
245
发表于 2024-12-11 17:22:03 | 显示全部楼层 |阅读模式
硬件主板型号: YY3568
固件名称/系统版本:ubuntu 22.04 5.10
自编的或固件下载地址:
Log日志:

问题描述及复现步骤:

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

使用道具 举报

0

主题

86

回帖

499

积分

中级会员

Rank: 3Rank: 3

积分
499
发表于 2024-12-11 17:42:45 | 显示全部楼层
你好!可以先看一下系统有没有加载这两个模块,没有的话,CONFIG_BRIDGE
CONFIG_BRIDGE_NETFILTER,内核make menuconfig打开一下这两个选项。
回复 支持 反对

使用道具 举报

3

主题

5

回帖

245

积分

中级会员

Rank: 3Rank: 3

积分
245
 楼主| 发表于 2024-12-12 10:11:24 | 显示全部楼层
能说清楚一点吗?执行make menuconfig后就没有加载模块的选项,这是output/.config文件的内容

  1. root@ub:~/yy3568# cat output/.config
  2. #
  3. # Automatically generated file; DO NOT EDIT.
  4. # Rockchip Linux SDK Configuration
  5. #
  6. RK_DEFCONFIG="defconfig"
  7. RK_CHIP_FAMILY="rk3566_rk3568"
  8. RK_CHIP="rk3566_rk3568"

  9. #
  10. # Rootfs
  11. #
  12. RK_BUILDROOT_BASE_CFG="rk3566_rk3568"
  13. RK_BUILDROOT_CFG="rockchip_${RK_BUILDROOT_BASE_CFG}"
  14. RK_YOCTO_CFG=""
  15. # RK_UBUNTU_CFG is not set
  16. RK_DEBIAN_VERSION="bullseye"
  17. RK_DEBIAN_ARCH="arm64"
  18. RK_DEBIAN_ARM64=y
  19. # RK_DEBIAN_ARMHF is not set
  20. RK_ROOTFS_SYSTEM="buildroot"
  21. RK_ROOTFS_SYSTEM_BUILDROOT=y
  22. # RK_ROOTFS_SYSTEM_DEBIAN is not set
  23. # RK_ROOTFS_SYSTEM_UBUNTU is not set
  24. RK_ROOTFS_TYPE="ext4"
  25. # RK_ROOTFS_INITRD is not set

  26. #
  27. # Post rootfs installs
  28. #
  29. RK_ROOTFS_HOSTNAME_DEFAULT=y
  30. # RK_ROOTFS_HOSTNAME_ORIGINAL is not set
  31. # RK_ROOTFS_HOSTNAME_CUSTOM is not set
  32. RK_ROOTFS_LOCALE_DEFAULT=y
  33. # RK_ROOTFS_LOCALE_ORIGINAL is not set
  34. # RK_ROOTFS_LOCALE_CUSTOM is not set
  35. RK_EXTRA_FONTS_DEFAULT=y
  36. # RK_EXTRA_FONTS_ENABLED is not set
  37. # RK_EXTRA_FONTS_DISABLED is not set
  38. RK_DISK_HELPERS_DEFAULT=y
  39. # RK_DISK_HELPERS_MOUNTALL is not set
  40. # RK_DISK_HELPERS_RESIZEALL is not set
  41. # RK_DISK_HELPERS_DISABLED is not set
  42. # RK_DISK_AUTO_FORMAT is not set
  43. # RK_DISK_SKIP_FSCK is not set
  44. RK_ROOTFS_UDEV_RULES=y
  45. RK_USB_DEFAULT=y
  46. # RK_USB_ENABLED is not set
  47. # RK_USB_DISABLED is not set

  48. #
  49. # USB gadget
  50. #
  51. RK_USB_ADBD=y
  52. RK_USB_ADBD_TCP_PORT=5555
  53. RK_USB_ADBD_BASH=y
  54. RK_USB_ADBD_PASSWORD=""
  55. RK_USB_ADBD_RSA_KEY=""
  56. # RK_USB_MTP is not set
  57. # RK_USB_ACM is not set
  58. # RK_USB_NTB is not set
  59. # RK_USB_UVC is not set
  60. # RK_USB_UAC1 is not set
  61. # RK_USB_UAC2 is not set
  62. # RK_USB_HID is not set
  63. # RK_USB_RNDIS is not set
  64. # RK_USB_UMS is not set
  65. RK_USB_EXTRA=""
  66. RK_USB_HOOKS=""
  67. RK_WIFIBT_CHIP="ALL_AP"
  68. RK_WIFIBT_TTY="ttyS0"
  69. # RK_ROOTFS_PREBUILT_TOOLS is not set
  70. RK_ROOTFS_OVERLAY_DIRS=""

  71. #
  72. # Loader (u-boot)
  73. #
  74. RK_UBOOT_CFG="rk3566_rk3568"
  75. RK_UBOOT_CFG_FRAGMENTS=""
  76. RK_UBOOT_OPTS=""
  77. RK_UBOOT_TRUST_INI=""
  78. RK_UBOOT_SPL_INI=""
  79. RK_UBOOT_SPL_CFG=""
  80. RK_UBOOT_ARCH="arm64"
  81. RK_UBOOT_ARM64=y
  82. # RK_UBOOT_ARM32 is not set

  83. #
  84. # Kernel
  85. #
  86. RK_KERNEL_CFG="rockchip_linux_defconfig"
  87. RK_KERNEL_VERSION=""
  88. RK_KERNEL_ARCH="arm64"
  89. RK_KERNEL_ARM64=y
  90. # RK_KERNEL_ARM32 is not set
  91. RK_KERNEL_CFG_FRAGMENTS=""
  92. RK_KERNEL_DTS_NAME=""
  93. RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
  94. RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
  95. RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
  96. RK_KERNEL_IMG_NAME="Image"
  97. RK_KERNEL_IMG="kernel/arch/$RK_KERNEL_ARCH/boot/$RK_KERNEL_IMG_NAME"

  98. #
  99. # Boot
  100. #
  101. RK_BOOT_IMG="boot.img"
  102. # RK_BOOT_COMPRESSED is not set

  103. #
  104. # Recovery (buildroot)
  105. #
  106. RK_RECOVERY_BASE_CFG="rk3566_rk3568"
  107. RK_RECOVERY_CFG="rockchip_${RK_RECOVERY_BASE_CFG}_recovery"

  108. #
  109. # PCBA test (buildroot)
  110. #
  111. RK_PCBA_BASE_CFG="rk3566_rk3568"
  112. RK_PCBA_CFG="rockchip_${RK_PCBA_BASE_CFG}_pcba"

  113. #
  114. # Security feature depends on FIT image
  115. #

  116. #
  117. # Extra partitions
  118. #
  119. RK_EXTRA_PARTITION_NUM=2

  120. #
  121. # Extra partition 1
  122. #
  123. RK_EXTRA_PARTITION_1_DEV="oem"
  124. RK_EXTRA_PARTITION_1_NAME="<dev>"
  125. RK_EXTRA_PARTITION_1_NAME_STR="${RK_EXTRA_PARTITION_1_DEV##*[/=]}"
  126. RK_EXTRA_PARTITION_1_MOUNTPOINT="/<name>"
  127. RK_EXTRA_PARTITION_1_MOUNTPOINT_STR="/$RK_EXTRA_PARTITION_1_NAME_STR"
  128. RK_EXTRA_PARTITION_1_FSTYPE="ext4"
  129. RK_EXTRA_PARTITION_1_OPTIONS="defaults"
  130. RK_EXTRA_PARTITION_1_SRC="normal"
  131. RK_EXTRA_PARTITION_1_SIZE="auto"
  132. # RK_EXTRA_PARTITION_1_BUILTIN is not set
  133. # RK_EXTRA_PARTITION_1_FIXED is not set
  134. RK_EXTRA_PARTITION_1_FEATURES="${RK_EXTRA_PARTITION_1_FIXED:+fixed,}${RK_EXTRA_PARTITION_1_BUILTIN:+builtin}"
  135. 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"

  136. #
  137. # Extra partition 2
  138. #
  139. RK_EXTRA_PARTITION_2_DEV="userdata"
  140. RK_EXTRA_PARTITION_2_NAME="<dev>"
  141. RK_EXTRA_PARTITION_2_NAME_STR="${RK_EXTRA_PARTITION_2_DEV##*[/=]}"
  142. RK_EXTRA_PARTITION_2_MOUNTPOINT="/<name>"
  143. RK_EXTRA_PARTITION_2_MOUNTPOINT_STR="/$RK_EXTRA_PARTITION_2_NAME_STR"
  144. RK_EXTRA_PARTITION_2_FSTYPE="ext4"
  145. RK_EXTRA_PARTITION_2_OPTIONS="defaults"
  146. RK_EXTRA_PARTITION_2_SRC="normal"
  147. RK_EXTRA_PARTITION_2_SIZE="auto"
  148. # RK_EXTRA_PARTITION_2_BUILTIN is not set
  149. # RK_EXTRA_PARTITION_2_FIXED is not set
  150. RK_EXTRA_PARTITION_2_FEATURES="${RK_EXTRA_PARTITION_2_FIXED:+fixed,}${RK_EXTRA_PARTITION_2_BUILTIN:+builtin}"
  151. 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"
  152. 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"

  153. #
  154. # Firmware
  155. #
  156. YYT_ROOTFS=""
  157. RK_PACKAGE_FILE_DEFAULT=y
  158. # RK_PACKAGE_FILE_CUSTOM is not set
  159. RK_PARAMETER="parameter.txt"
  160. RK_MISC_IMG="wipe_all-misc.img"
  161. # RK_USE_FIT_IMG is not set

  162. #
  163. # Update (OTA and A/B)
  164. #
  165. RK_UPDATE=y
  166. RK_OTA_PACKAGE_FILE_DEFAULT=y
  167. # RK_OTA_PACKAGE_FILE_CUSTOM is not set
  168. # RK_AB_UPDATE is not set

  169. #
  170. # Others configurations
  171. #
  172. # RK_SAVE_COMMITTED is not set
  173. RK_SAVE_TRACKED=y
  174. # RK_SAVE_ALL is not set
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-12-27 10:10 , Processed in 0.074181 second(s), 20 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn