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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
391 Views
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!

Labels (1)
1 Solution
212 Views
yipingwang
NXP TechSupport
NXP TechSupport
1 Reply
213 Views
yipingwang
NXP TechSupport
NXP TechSupport