konosubakonoakua / blog

https://konosubakonoakua.github.io/blog/
MIT License
0 stars 0 forks source link

[sw][fpga][xilinx] vivado & petalinux 2024.1 install on linux #94

Open konosubakonoakua opened 1 month ago

konosubakonoakua commented 1 month ago

refer to petalinux 2019

konosubakonoakua commented 1 month ago

downloads

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools/2024-1.html

deps

~refer to 2019.1~

install

cd ~/Downloads
tar xvfz FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023.tar.gz
cd FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023
sudo ./xsetup

create desktop files (if not have them)

```bash mkdir -p ~/.local/share/applications cd ~/.local/share/applications/ cat < vivado2024.1.desktop [Desktop Entry] Type=Application Name=Vivado 2024.1 Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vivado/2024.1/bin/vivado" Icon=/tools/Xilinx/Vivado/2024.1/doc/images/vivado_logo.png StartupNotify=true Categories=Application; EOF cat < vitis2024.1.desktop [Desktop Entry] Type=Application Name=Vitis 2024.1 Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis" Icon=/tools/Xilinx/Vitis/2024.1/doc/images/ide_icon.ico StartupNotify=true Cat egories=Application; EOF cat < DocNav2024.1.desktop [Desktop Entry] Type=Application Name=DocNav 2024.1 Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis" Icon=/tools/Xilinx/DocNav/resources/doc_nav_application_48.png StartupNotify=true Categories=Application; EOF cat < PDM2024.1.desktop [Desktop Entry] Type=Application Name=PDM 2024.1 Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis" Icon=/tools/Xilinx/PDM/2024.1/doc/images/pdm_logo64.png StartupNotify=true Categories=Application; EOF ```
konosubakonoakua commented 1 month ago

petalinux 2024.1

create /tools/petalinux if not exists

sudo mkdir -p /tools/petalinux
sudo chown rf:rf /tools/petalinux

copy from windows smb

cd /mnt/winshare
cp petalinux-v2024.1-05202009-installer.run ~/Downloads/
cd ~/Downloads
mkdir -p /tools/petalinux/sstate/2024.1
./petalinux-v2024.1-05202009-installer.run -y -d /tools/petalinux/2024.1

fix tftpboot bug https://github.com/konosubakonoakua/blog/issues/94#issuecomment-2369992894

copy sstate files

cd /mnt/winshare
cp sstate_aarch64_2024.1_05201002.tar.gz sstate_arm_2024.1_05201002.tar.gz cp downloads_2024.1_05201002.tar.gz ~/Downloads
cp downloads_2024.1_05201002.tar.gz ~/Downloads

extract sstate files

tar xvzf sstate_aarch64_2024.1_05201002.tar.gz -C /tools/petalinux/sstate/2024.1/ &
tar vxzf sstate_arm_2024.1_05201002.tar.gz -C /tools/petalinux/sstate/ &
tar xvzf downloads_2024.1_05201002.tar.gz -C /tools/petalinux/sstate/2024.1/ &

Config petalinux projects: https://github.com/konosubakonoakua/blog/issues/89

konosubakonoakua commented 1 month ago

trouble-shooting

petalinux-build failed with tftpboot enabled

[ERROR] module 'plnx_vars' has no attribute 'CopyDir'

solution here: https://github.com/Xilinx/PetaLinux/pull/1/files shortly,

cp -f /tools/petalinux/2024.1/scripts/petalinux-build /tools/petalinux/2024.1/scripts/petalinux-build.bak
sed -i "s/plnx_vars.CopyDir/plnx_utils.CopyDir/" /tools/petalinux/2024.1/scripts/petalinux-build
konosubakonoakua commented 1 month ago

References