So führen Sie die Installation von Petalinux in Ubuntu 20.04 aus

So führen Sie die Installation von Petalinux in Ubuntu 20.04 aus

Ich kann die Installation von Petalinux in Ubuntu 20.04 nicht ausführen.

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

Es tritt dieser Fehler auf.

-bash: /usr/bin/python: No such file or directory

Ich bearbeite meine Frage mit dem Terminal. Ich bin nicht sicher, was ich falsch mache.

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 <LOGFILE>] [-d|--dir <INSTALL_DIR>] [options]
Options:
  --log <LOGFILE>               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 <arch_name>     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 <INSTALL_DIR>
To get only desired sources:
 $ ./petalinux-v2021.1-final-installer.run --dir <INSTALL_DIR>
        This will install the sources for all(zynq,zynqMP,versal,microblaze_lite,microblaze_full).

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

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

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

Antwort1

Möglicherweise müssen Sie den Python3-Symlink (/usr/bin/python/usr/bin/python3) von

sudo apt-get install python-is-python3

und versuchen Sie dann erneut, das Installationsprogramm auszuführen.

Konsultieren Sie auchhttps://xilinx.github.io/kria-apps-docs/main/build/html/docs/build_petalinux.html.

Antwort2

Schritt 1: Erstellen Sie die virtuelle Maschine

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)

Ich empfehle die Verwendung des dynamischen Festplattentyps, da die Xilinx-Tools viel Speicherplatz beanspruchen, BSPs jeweils mehrere GB beanspruchen können und PetaLinux-Projekte normalerweise viel Speicherplatz beanspruchen. Daher ist es schwierig, genau zu wissen, wie viel Speicherplatz Sie letztendlich benötigen. Wenn Sie sich für eine Festplatte mit fester Größe entscheiden, können Sie diese mit VirtualBox nicht einfach ändern. Ich empfehle daher die dynamische Festplatte.

Mehr dazu finden Sie unter https://www.fpgadeveloper.com/how-to-install-petalinux-2020.1/

verwandte Informationen