Necessary steps for Linux in Zynq.
.xsa
)] compatibilityAs per reference, certain processor features must be enabled. Namely:
(Simply re-adding the “Zynq” component, should be sufficient).
(Re-export (including bitstream) afterwards).
One method is to chroot
into a supported OS: e.g.: Ubuntu LTS, thus regular installation, on a partition, is needed.
In order to chroot into it, I use the following script:
#!/bin/bash
DEST=/path/to/Ubuntu/mountpoint
cd "$DEST"
cp --dereference /etc/resolv.conf etc/
for i in dev sys run;
do
mount --rbind /$i $i
mount --make-rslave $i
done
# mount --bind /var/tftp tftpboot
# mount --make-rslave tftpboot
mount -t tmpfs none tmp
mount -t proc /proc proc
# #### ######## #### #### ######## #### #
chroot . /bin/bash -l
umount -l *
chroot
jail 🏛️(Preparation):After chrooting:
$ source /etc/profile
/bin/sh
to point to /bin/bash
:$ dpkg-reconfigure dash
$ apt-get install iproute2 gawk python3 build-essential gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget git-core diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib automake screen pax gzip cpio python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint libtinfo5
$ locale
)
$ apt install locales
)$ dpkg-reconfigure locales
and set a proper(UTF-8) one)$ su - my_username
$ ./petalinux-v2023.2-10121855-installer.run --dir path/to/dest/petalinux/ --platform "arm"
arm
may help reduce the size)$ cd petalinux
)$ source settings.sh
petalinux-*
)