AnsweredAssumed Answered

yocto编译前配置时中总是提示Permission denied

Question asked by Brat Zhang on Feb 15, 2016
Latest reply on Oct 9, 2016 by liu bin

最近在研究yocto,编译前的配置过程中总是提示Permission denied,求助,log如下:

1,执行~/fsl-release-bsp$ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build:

Build directory is  build

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6dlsabresd.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6qdlsolo.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6qsabresd.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6slevk.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sx14x14arm2.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sx17x17arm2.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sx19x19ddr3arm2.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sx19x19lpddr2arm2.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sxsabreauto.conf’: Permission denied

cp: cannot create regular file ‘sources/meta-fsl-arm/conf/machine/imx6sxsabresd.conf’: Permission denied

Error: Cannot write to /home/zyz/fsl-release-bsp/build, perhaps try sourcing with a writable path? i.e. . oe-init-build-env ~/my-build

mv: cannot stat ‘conf/local.conf’: No such file or directory

bash: conf/local.conf: No such file or directory

bash: conf/local.conf: No such file or directory

sed: can't read conf/local.conf: No such file or directory

无奈,用root用户执行:

root@zyz-vm:~/fsl-release-bsp# MACHINE=imx6qsabresd source fsl-setup-release.sh -b build

Build directory is  build

ERROR: do not use the BSP as root. Exiting...

Configuring for imx6qsabresd

...

这种情况该怎么处理。。。

Outcomes