Use the check-config.sh
script to check which configurations are missing
cd <SDK>/kernel/
cp <sourceDir>/check-config.sh .
chmod +x check-config.sh
./check-config.sh
The test results are as follows
info: reading kernel config from .config ...
Generally Necessary:
- cgroup hierarchy: cgroupv2
Controllers:
- cpu: available
- cpuset: available
- io: available
- memory: available
- pids: available
- apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
......
Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_SECCOMP_FILTER: enabled
- CONFIG_CGROUP_PIDS: missing
- CONFIG_MEMCG_SWAP: missing
(cgroup swap accounting is currently enabled)
......
Generally Necessary: indicates necessary configuration, which is displayed as missing and needs to be enabled in the kernel configuration. Optional Features: is optional configuration, select it according to your needs.
sudo apt-get install -y apparmor zfs-fuse
make ARCH=arm64 menuconfig
make ARCH=arm64 savedefconfig
mv defconfig arch/arm64/configs/rockchip_linux_docker_defconfig
cd ../device/rockchip/.target_product
cp BoardConfig-rk3588s-evb1-lp4x-v10-yyt.mk BoardConfig-rk3588s-evb1-lp4x-v10-yyt-docker.mk
# Use the new configuration file in the new makefile
cd <SDK>/
./build.sh lunch
./build.sh kernel
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2 sudo
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
On success, the command will return OK. If it fails, enter the following.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable"
$(lsb_release -cs) will return the name of the Debian release. In this case, that's buster.
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker