radxa-repo / bsp

Radxa BSP Build Tool
https://radxa-repo.github.io/bsp/
GNU General Public License v3.0
42 stars 48 forks source link

Add-k8s-required-kernel-module-configurations.patch #81

Closed pollarize closed 8 months ago

pollarize commented 8 months ago

1. K3s wasn't working

Installing latest release from Radxa-build: https://github.com/radxa-build/rock-s0/releases/tag/b5 didn't let k3s-agent to work as expected from other SBC.

First thing which is noticeable is kernel version 6.1. In compare all other SBC i used the kernel was < 6.1 => it looks like there is something with the kernel itself.

The problem can be seen in Rancher very easily. It points to problem with iptables-* applications.

Other problems can be seen with following commands:

k3s check-config

It will check kernel modules.

2. Adding additional not checked config parameter CONFIG_CFS_BANDWIDTH=y

Unfortunately there was one "hidden" parameter which should be enabled related to management of cgroup of CPU. The problem can be noted with issues during creation of container with error referencing missing file: `/sys/fs/cgroup/**/cpu.max` not found

Following comment pointed to missing parameter in kernel: https://github.com/containers/podman/issues/13379#issuecomment-1055676109
RadxaYuntian commented 8 months ago

You should edit linux/.common/kconfig.conf directly instead of creating a patch file. Patches will be applied to the linux source tree, which does not have that file.

pollarize commented 8 months ago

Okay i did update it there, but i followed your .md files for uploading PR. Thanks i will fix and push it again.

RadxaYuntian commented 8 months ago

That one specifically was targeting Linux code patches, which is why it cd into the source tree first before issuing git format-patch. Your PR is related to bsp's own code infrastructure so that part does not apply.