首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu 20.04中运行安装petalinux

如何在Ubuntu 20.04中运行安装petalinux
EN

Ask Ubuntu用户
提问于 2021-10-10 09:49:54
回答 2查看 2.2K关注 0票数 1

我无法在Ubuntu20.04中运行petalinux的安装。

代码语言:javascript
复制
abc@alpha:/scratch2/abc/Xilinx$ /petalinux-v2021.1-final-installer.run /scratch2/abc/Xilinx/Petalinux

它伴随着这个错误。

代码语言:javascript
复制
-bash: /usr/bin/python: No such file or directory

我用终端机编辑我的问题。我不知道我做错了什么。

代码语言:javascript
复制
abc@alpha:/scratch2/abc/Xilinx$ ls
Downloads       Petalinux                   petalinux-v2021.1-final-installer.run  Vitis      Vivado
DocNav  Model_Composer  Projects                               Vitis_HLS  xic

abc@alpha:/scratch2/abc/Xilinx$ ./petalinux-v2021.1-final-installer.run /scratch2/abc/Xilinx/Petalinux

ERROR: Invalid options: /scratch2/abc/Xilinx/Petalinux
PetaLinux installer.
Usage:
  petalinux-v2021.1-final-installer.run [--log ] [-d|--dir ] [options]
Options:
  --log                specify where the logfile should be created.
                                it will be petalinux_installation_log
                                in your working directory by default.
  -d|--dir [INSTALL_DIR]        specify the directory where you want to
                                install the tool kit. If not specified,
                                it will install to your working directory.
  -p|--platform      specify the architecture name.
                                aarch64         : sources for zynqMP and versal
                                arm             : sources for zynq
                                microblaze_lite : sources for microblaze_lite
                                microblaze_full : sources for microblaze_full
EXAMPLES:
Install the tool in specified location:
 $ ./petalinux-v2021.1-final-installer.run -d/--dir 
To get only desired sources:
 $ ./petalinux-v2021.1-final-installer.run --dir 
        This will install the sources for all(zynq,zynqMP,versal,microblaze_lite,microblaze_full).

 $ ./petalinux-v2021.1-final-installer.run --dir  --platform "arm"
        This will install the sources for zynq only.

 $ ./petalinux-v2021.1-final-installer.run --dir  --platform "arm aarch64"
        This will install the sources for zynq,zynqMP and versal.

 $ ./petalinux-v2021.1-final-installer.run --dir  --platform "microblaze_lite microblaze_full"
        This will install the sources for microblaze_lite
Please refer to the PetaLinux Tools Installation Guide.
EN

回答 2

Ask Ubuntu用户

发布于 2021-10-10 10:54:17

您可能需要通过以下方式安装Python3符号链接(/usr/bin/python→/usr/bin/python 3)

代码语言:javascript
复制
sudo apt-get install python-is-python3

然后重试运行安装程序。

也可以咨询https://xilinx.github.io/kria-apps-docs/main/build/html/docs/build_petalinux.html

票数 1
EN

Ask Ubuntu用户

发布于 2021-10-10 10:18:24

步骤1:创建虚拟机

代码语言:javascript
复制
Download, install and launch VirtualBox from here.
Create a new virtual machine using these options:
    Linux
    Ubuntu 64-bit
    16 GB RAM (8GB minimum according to user guide)
    VirtualBox Disk Image
    Dynamic (resizable) hard disk
    200 GB size (the resulting VM will have about 113GB free after all of these installs so you can reduce this if you like)

我建议使用动态类型的硬盘,因为Xilinx工具占用了大量空间,BSP每个占用几个GB,加上PetaLinux项目通常占用大量空间,因此很难确切知道最终需要多少空间。如果您使用的是固定大小的HDD,那么您不能很容易地用VirtualBox来更改它,所以我说“随动态执行”。

更多信息请访问https://www.fpgadeveloper.com/how-to-install-petalinux-2020.1/

票数 -3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1368423

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档