Jump to content
XPEnology Community

SA6400 Kernel-5.10 Bulid TCP_BBR Module Encounter Unknown symbol Error


Recommended Posts

Dmesg Show Unknown symbol error, ask for help

tcp_bbr: Unknown symbol __ubsan_handle_divrem_overflow (err -2)
tcp_bbr: Unknown symbol __ubsan_handle_shift_out_of_bounds (err -2)
tcp_bbr: Unknown symbol __ubsan_handle_type_mismatch_v1 (err -2)
tcp_bbr: Unknown symbol __ubsan_handle_load_invalid_value (err -2)

 

This is the operation process:

Download ToolChain

wget https://cndl.synology.cn/download/ToolChain/toolchain/7.2-63134/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-gcc1220_glibc236_x86_64-GPL.txz
tar -Jxf epyc7002-gcc1220_glibc236_x86_64-GPL.txz

 

Download Linux-5.10.55 src

wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.10.55.tar.gz
tar -xzvf linux-5.10.55.tar.gz

 

 

Prepare for cross compilation

export ARCH=amd64
export CROSS_COMPILE=/home/parallels/synology/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
make menuconfig
make prepare
make scripts
make

 

Compile a single module

make  M=net/ipv4/ CONFIG_TCP_CONG_BBR=m clean
make  M=net/ipv4/ CONFIG_TCP_CONG_BBR=m modules

 

Install module

sudo cp /volume1/Exchange/tcp_bbr.ko /lib/modules/
sudo chmod 644 /lib/modules/tcp_bbr.ko
sudo insmod /lib/modules/tcp_bbr.ko

 

Encounter Error

Version Magic Error

Quote

tcp_bbr: version magic '5.10.55 SMP mod_unload modversions ' should be '5.10.55+ SMP mod_unload '

Edit File /linux-5.10.55/include/generated/utsrelease.h

#define UTS_RELEASE "5.10.55+"

 

-fstack-protector-strong Error

Quote

tcp_bbr: Unknown symbol __stack_chk_fail (err -2)

Edit File /linux-5.10.55/Makefile

stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG)      := 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...