我的编译命令如下:
git clone https://github.com/armbian/build armbian
docker run --name c_armbian -v /root/armbian:/armbian -it ubuntu:21.04 bash
apt install git
cd /armbian
./compile.sh BOARD=rockpi-s BRANCH=current RELEASE=buster KERNEL_ONLY=no KERNEL_CONFIGURE=no BUILD_MINIMAL=no BUILD_DESKTOP=no
官方的编译要求如下:
编译报错缺少 binfmt_misc,可是我使用的就是 docker hub 上 ubuntu 官方的镜像,,去哪里找有 binfmt_misc 内核模块的 ubuntu 21.04 docker image 啊?或者怎么安装 binfmt_misc?我试了”apt install binfmt_misc“报错找不到该软件。。
请求各位大佬指点,,谢谢
离线
试试 apt install binfmt-support
binfmt_misc 在 binfmt-support 中吗?
root@91565d9071de:/armbian# apt install binfmt-support
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
binfmt-support is already the newest version (2.2.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@91565d9071de:/armbian# modprobe binfmt_misc
modprobe: FATAL: Module binfmt_misc not found in directory /lib/modules/4.15.0-91-generic
离线
docker用的还是原内核,解决不了内核模块问题。必须在本机加载这个模块才行。
感谢指点,确实如此,,
只要在本地主机安装了 binfmt_misc 内核模块,在 docker 容器中就能看到,,我一直以为需要在 docker 容器中执行 modprobe 安装模块,,原来是不需要的
root@HWCloud:~# modprobe binfmt_misc
root@HWCloud:~# docker container attach c_armbian
root@91565d9071de:/armbian# modprobe binfmt_misc
modprobe: FATAL: Module binfmt_misc not found in directory /lib/modules/4.15.0-91-generic
root@91565d9071de:/armbian# lsmod
Module Size Used by
binfmt_misc 20480 1
veth 16384 0
xt_conntrack 16384 1
离线