无法在 Ubuntu 20.04 中运行 Petalinux

无法在 Ubuntu 20.04 中运行 Petalinux

我无法启动 Petalinux。安装已成功完成。存在 bash 问题。如何解决?

INFO: Installing PetaLinux...
*********************************************
WARNING: You haven't specified the installation location.
*********************************************
*********************************************
WARNING: By default, it will be installed in your working directory: /scratch2/abc/Xilinx/Petalinux
*********************************************
Please input "y" to proceed the installation, "n" to exit otherwise:y
*********************************************
WARNING: PetaLinux installation directory: /scratch2/abc/Xilinx/Petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/scratch2/abc/Xilinx/Petalinux/."
INFO: Installing buildtools in /scratch2/abc/Xilinx/Petalinux/./components/yocto/buildtools
INFO: Installing buildtools-extended in /scratch2/abc/Xilinx/Petalinux/./components/yocto/buildtools_extended
INFO: PetaLinux SDK has been installed to /scratch2/abc/Xilinx/Petalinux/.
abc@alpha:/scratch2/abc/Xilinx/Petalinux$ 

abc@alpha:/scratch2/abc/Xilinx/Petalinux$ /settings.sh
bash: /settings.sh: No such file or directory

如果我使用点,问题也是一样的

abc@alpha:/scratch2/abc/Xilinx/Petalinux$ ./settings.sh
bash: ./settings.sh: Permission denied

我也尝试过使用源代码。它仍然对 bash 有抱怨。

abc@alpha:/scratch2/abc/Xilinx$ source Petalinux/settings.sh
PetaLinux environment set to '/scratch2/abc/Xilinx/Petalinux'
WARNING: /bin/sh is not bash! 
bash is PetaLinux recommended shell. Please set your default shell to bash.
WARNING: This is not a supported OS
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "UG1144 2021.1 PetaLinux Tools Documentation Reference Guide" for its impact and solution
abc@alpha:/scratch2/abc/Xilinx$

当我运行“chsh -s /bin/bash”将 shell 更改为 bash 时,出现以下问题。

abc@alpha:/scratch2/abc/Xilinx$ chsh -s /bin/bash
Password: 
chsh: user 'abc' does not exist in /etc/passwd
abc@alpha:/scratch2/abc/Xilinx$ 

答案1

您需要使文件可执行。运行:

sudo chmod +x settings.sh

然后尝试再次运行它:

./settings.sh

或者,你可以将其传递给 bash 来运行它而不使其可执行:

bash setting.sh

相关内容