extract-bsp命令提示权限不够

时间:2021-05-21 04:37:31
 执行命令extract-bsp
rm: remove write-protected regular file `kernel'?
cp: cannot create regular file `kernel': Permission denied
/home/linux/xz/A10/40_V15/android4.0/device/*/crane-evb-v13/bImage copied!
mkdir: cannot create directory `modules': Permission denied
cp: target `modules/modules' is not a directory
/home/linux/xz/A10/40_V15/android4.0/device/*/crane-evb-v13/modules copied!
chmod: cannot access `modules/modules/*': No such file or directory

-bash: ./modules/modules.mk: No such file or directory


原因是拷贝文件夹crane-evb-v13到android4.0目录下时权限没改,使用命令

sudo chmod 777 -R crane-evb-v13

后正常