百度网盘:check-config.sh脚本
使用check-config.sh
脚本检查缺少哪些配置
cd <SDK>/kernel/
cp <sourceDir>/check-config.sh .
chmod +x check-config.sh
./check-config.sh
检测结果如下
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: 表示必要的配置,显示 missing,需要在内核配置中打开它。 Optional Features: 是可选配置,根据需求自行选择。
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
# 在新的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 -
成功后,命令将返回OK。失败了输入下面这个。
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)将返回Debian发行版的名称。在这种情况下,就是这样buster。
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker