Build LSDK 19.09 in an Docker on linux 18.04, failed with binfmt_misc: permission denied.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Build LSDK 19.09 in an Docker on linux 18.04, failed with binfmt_misc: permission denied.

跳至解决方案
2,804 次查看
651080691
Contributor II

When I build LSDK 19.09 in an docker on linux 18.04 LTS, flex-builder always failed.

flex-builder report "mount: /proc/sys/fs/binfmt_misc: permission denied".

root@9c0cf378262a:/nxp_dev_1909/lsdk1909# flex-builder -i mkrfs  -a arm64
INSTRUCTION: mkrfs
DESTARCH: arm64
generating /nxp_dev_1909/lsdk1909/build/rfs/rootfs_lsdk1909_LS_arm64_main ...
mount: /proc/sys/fs/binfmt_misc: permission denied.
update-binfmts: warning: Couldn't mount the binfmt_misc filesystem on /proc/sys/fs/binfmt_misc.
qemu-aarch64 (disabled):
enable qemu-aarch64 failed

I search the website and nxp community,  some article says that we should install serveral package as following. 

I try it in the docker and on the docker's host, But build still failed.

root@9c0cf378262a: sudo apt install -y binfmt-support qemu-system-common qemu-user-static

Can I build lsdk 19.09 in an linux docker? what should I do before build it?

Thanks!

标签 (1)
标记 (3)
1 解答
2,625 次查看
yipingwang
NXP TechSupport
NXP TechSupport
1 回复
2,626 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the solution in https://community.nxp.com/thread/524656