Skip to content

Commit

Permalink
kernel: upgrade to 6.10.11
Browse files Browse the repository at this point in the history
upgrade kernel to recent stable release 6.10.11

1, scripts/kconfig/merge_config.sh does not work for 6.10.11
2, vmlinux BTF binary name changed in 6.10.11
3, remove rtl8812au for now since it has compiling error
4, remove 5.15 nfqueue patch since it does not apply cleanly

also see [0]

[0]: #41

Signed-off-by: Vincent Li <[email protected]>
  • Loading branch information
vincentmli committed Sep 21, 2024
1 parent bb773a0 commit 1f42b72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
12 changes: 12 additions & 0 deletions config/kernel/kernel.config.x86_64-ipfire
Original file line number Diff line number Diff line change
Expand Up @@ -8032,3 +8032,15 @@ CONFIG_ARCH_USE_MEMTEST=y
#
# end of Rust hacking
# end of Kernel hacking
CONFIG_BPF_SYSCALL=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_DWARF4=y
CONFIG_BPF_UNPRIV_DEFAULT_OFF=y
CONFIG_KPROBES=y
CONFIG_KPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_UPROBES=y
CONFIG_UPROBE_EVENTS=y
CONFIG_DEBUG_FS=y
CONFIG_MODULE_SIG_FORCE=n
11 changes: 3 additions & 8 deletions lfs/linux
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

include Config

VER = 6.6.15
VER = 6.10.11

THISAPP = linux-$(VER)
DL_FILE = linux-$(VER).tar.xz
Expand Down Expand Up @@ -72,7 +72,7 @@ objects = \

$(DL_FILE) = $(URL_IPFIRE)/$(DL_FILE)

$(DL_FILE)_BLAKE2 = a630bc7b2463bdc312f8936210a54e92bbe4136fc78995c18d0ccafbcdb27cce5b7b0d4a6ba10c378e14e86855ee7e76e355acc0580f7441e4df64e7dbd8a4b7
$(DL_FILE)_BLAKE2 = 55380d2af9fc535f6359cdb9b36612d1f81f2f140652f44bf927c320dda382109c9fb9591cc741914d3221e8d8bda954a10dbbeff8c163bf1ed57eff1831c8df

install : $(TARGET)

Expand Down Expand Up @@ -130,9 +130,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
# Patch performance monitoring restrictions to allow further hardening
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-5.15.17-security-perf-allow-further-restriction-of-perf_event_open.patch

# https://bugzilla.ipfire.org/show_bug.cgi?id=12760
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-5.15-NFQUEUE-Hold-RCU-read-lock-while-calling-nf_reinject.patch

# Fix external module compile
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-6.0-fix_external_module_build.patch

Expand All @@ -157,9 +154,7 @@ else

# Cleanup kernel source
cp $(DIR_SRC)/config/kernel/kernel.config.$(BUILD_ARCH)-$(VERSUFIX) $(DIR_APP)/.config
cp $(DIR_SRC)/config/kernel/kernel.config.bpf $(DIR_APP)/bpf-config
cd $(DIR_APP) && make oldconfig
cd $(DIR_APP) && ./scripts/kconfig/merge_config.sh .config bpf-config
cd $(DIR_APP) && make clean
cd $(DIR_APP) && sed -i -e 's/EXTRAVERSION\ =.*/EXTRAVERSION\ =\ -$(VERSUFIX)/' Makefile

Expand Down Expand Up @@ -234,7 +229,7 @@ endif
# lunatik: copy resolve_btfids to /lib/modules/$(VER)-$(VERSUFIX)/build/tools/bpf/resolve_btfids/
# cop.btf.vmlinux.bin.o to vmlinux for lunatik kernel modules build
cp -f $(DIR_APP)/tools/bpf/resolve_btfids/resolve_btfids /lib/modules/$(VER)-$(VERSUFIX)/build/tools/bpf/resolve_btfids/
cp -f $(DIR_APP)/.btf.vmlinux.bin.o /lib/modules/$(VER)-$(VERSUFIX)/build/vmlinux
cp -f $(DIR_APP)/.tmp_vmlinux1.btf.o /lib/modules/$(VER)-$(VERSUFIX)/build/vmlinux

# Fix permissions
find /lib/modules/$(VER)-$(VERSUFIX) -name "modules.order" \
Expand Down
1 change: 0 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,6 @@ buildipfire() {
# Kernelbuild ... current we have no platform that need
# multi kernel builds so KCFG is empty
lfsmake2 linux KCFG=""
lfsmake2 rtl8812au KCFG=""
lfsmake2 linux-initrd KCFG=""
# lunatik kernel module requires linux kernel to be built first
lfsmake2 lunatik
Expand Down

0 comments on commit 1f42b72

Please sign in to comment.