Open konosubakonoakua opened 1 month ago
~refer to 2019.1~
cd ~/Downloads
tar xvfz FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023.tar.gz
cd FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023
sudo ./xsetup
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
[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
refer to petalinux 2019