UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

消除petalinux错误: Permission denied: '/log'

回复
Highlighted
Xilinx Employee
发帖数: 55
注册日期: ‎02-16-2012

消除petalinux错误: Permission denied: '/log'

消除petalinux错误: Permission denied: '/log'

有时候遇到错误 Permission denied: '/log',特别是编译从别的电脑拷贝的petalinux工程时。
关键错误信息如下:
PermissionError: [Errno 13] Permission denied: '/log'
ls: cannot access '/log/cooker/plnx_aarch64': No such file or directory

这是由于没有配置TMPDIR造成的,这样它的缺省位置在系统的根目录,需要root权限。

消除错误的办法是运行petalinux-config ,设置TMPDIR。菜单位置为Yocto Settings -> TMPDIR Location --->
set TMP dir location。请设置到工程目录下的build/tmp目录。

Observer
发帖数: 10
注册日期: ‎02-19-2013

回复: 消除petalinux错误: Permission denied: '/log'

基于ug1144,做如下调整:
sudo mkdir /opt/pkg/
sudo chmod 777 /opt/pkg #可以使用普通用户在pkg下创建文件夹
mkdir /opt/pkg/petalinux #必须使用普通用户创建(cannot install the tool with the root user)