ZCU104搭建Ubuntu桌面系統-1安裝Petalinux


參考教程:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841948/Zynq+UltraScalePlus+MPSoC+-+Ubuntu+Desktop+Step+by+Step+Guide

1. 准備工作:

硬件材料:

2. 安裝Petalinux(參考ug1144)

2.1.安裝依賴工具:

Ubuntu系統使用以下命令安裝:(一個都不能少!)

sudo apt-get update
sudo apt-get install tofrodos
sudo apt-get install iproute  # 或 sudo apt-get install iproute2
sudo apt-get install gawk
sudo apt-get install gcc
sudo apt-get install git-core
sudo apt-get install make
sudo apt-get install net-tools
sudo apt-get install ncurses-dev
sudo apt-get install tftpd
sudo apt-get install tftpd-hpa  # 可以不裝,但安裝時會有警告,用不到tftp傳文件就不裝
sudo apt-get install zlib1g-dev
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install lib32bz2-1.0  # 或 sudo apt-get install libbz2-1.0:i386
sudo apt-get install ia32gcc1  # Ubuntu14以上好像不支持了,沒有就不裝
sudo apt-get install lib32stdc++6
sudo apt-get install libselinux1
sduo apt autoremove  # 刪掉不用的東西

下面是我安裝時提示確少的工具

sudo apt-get install chrpath
sudo apt-get installsocat
sudo apt-get install socat
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install gcc-multilib
sudo apt-get install build-essential
sudo apt-get install xterm
sudo apt-get install python
sudo apt-get install texinfo

2.2 安裝Petalinux

cd到你下載Petalinux的目錄下,在當前目錄安裝:

./petalinux-v2019.1-final-installer.run

創建安裝目錄在指定路徑下安裝

sudo mkdir ~/ProgramFiles/Petalinux
sudo chmod 777 ~/ProgramFiles/Petalinux
sudo chmod +x ./petalinux-v2019.1-final-installer.run
./petalinux-v2019.1-final-installer.run ~/ProgramFiles/Petalinux

按官方教程安裝在 /opt/ 下會報錯,所以就安裝在home目錄下了。錯誤信息如下

無法 utime: 不允許的操作
tar: .:無法將模式改為 rwxr-xr-x: 不允許的操作
tar: 由於前次錯誤,將以上次的錯誤狀態退出


ERROR: Failed to install PetaLinux SDK into "/opt/Petalinux/."


注意不能使用超級用戶安裝Petalinux,如果出錯,根據錯誤信息自行解決,之后刪除log文件,重新安裝。(不刪除log文件就無法再次安裝)

rm petalinux_installation_log
./petalinux-v2019.1-final-installer.run ~/ProgramFiles/Petalinux

期間會問你是否同意用戶協議,按回車閱讀協議,輸入q返回安裝,輸入y同意,之后就會繼續安裝了

INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...

LICENSE AGREEMENTS

PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.

You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.

Use PgUp/PgDn to navigate the license viewer, and press 'q' to close

Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/home/raina/ProgramFiles/Petalinux/."
INFO: Installing aarch64 Yocto SDK to "/home/raina/ProgramFiles/Petalinux/./components/yocto/source/aarch64"...
INFO: Installing arm Yocto SDK to "/home/raina/ProgramFiles/Petalinux/./components/yocto/source/arm"...
INFO: Installing microblaze_full Yocto SDK to "/home/raina/ProgramFiles/Petalinux/./components/yocto/source/microblaze_full"...
INFO: Installing microblaze_lite Yocto SDK to "/home/raina/ProgramFiles/Petalinux/./components/yocto/source/microblaze_lite"...
INFO: PetaLinux SDK has been installed to /home/raina/ProgramFiles/Petalinux/.

到此Petalinux安裝完成。
到Petalinux安裝目錄下,在終端輸入:

source ./settings.sh
# 如果是C Shell 就運行 
# source ./settings.csh

之后再終端輸入

echo $PETALINUX

輸出你Petalinux的安裝路徑,說明一切無誤。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM