diff --git a/1-petalinux-settings.sh b/1-petalinux-settings.sh new file mode 100755 index 0000000000000000000000000000000000000000..c4107d58285f484b2a992ba2a1979da5fc395bb4 --- /dev/null +++ b/1-petalinux-settings.sh @@ -0,0 +1,4 @@ +pushd /home/bucky/PetaLinux +source settings.sh +popd + diff --git a/Dockerfile b/Dockerfile index 17358361cc9c67fdde4020f914b3a57982b1d50f..cf037be1d7f7feb2cd49301ddc35950d37707c25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,9 @@ RUN apt install expect rsync wget bc zlib1g:i386 vim iproute2 gcc g++ net-tools RUN useradd -ms /bin/bash bucky -RUN cd /tmp && \ -wget https://gitlab.ssec.wisc.edu/mkurzynski/qemu-zc706-petalinux/-/raw/master/petalinux-v2021.2-final-installer.run && \ -wget https://gitlab.ssec.wisc.edu/mkurzynski/qemu-zc706-petalinux/-/raw/master/accept_agreement.sh +COPY petalinux-v2021.2-final-installer.run /tmp +COPY accept_agreement.sh /tmp +COPY xilinx-zc706-v2021.2-final.bsp /home/bucky/ RUN chmod 755 /tmp/petalinux-v2021.2-final-installer.run RUN chmod 755 /tmp/accept_agreement.sh @@ -18,3 +18,5 @@ RUN chmod 755 /tmp/accept_agreement.sh USER bucky WORKDIR /home/bucky RUN mkdir PetaLinux && cd PetaLinux && /tmp/accept_agreement.sh +COPY qemu-zc706.sh /home/bucky +CMD ["/home/bucky/qemu-zc706.sh"] diff --git a/qemu-zc706.sh b/qemu-zc706.sh new file mode 100755 index 0000000000000000000000000000000000000000..a9c45d9f474e451dc1b22237c8b1ebdd1b6ef9b2 --- /dev/null +++ b/qemu-zc706.sh @@ -0,0 +1,8 @@ +#!/bin/bash -e +# this is in /etc/profile.d now: source $HOME/PetaLinux/settings.sh +pushd /home/bucky/PetaLinux +source settings.sh +popd +petalinux-create -t project -s xilinx-zc706-v2021.2-final.bsp -n test-run +cd test-run +petalinux-boot --qemu --prebuilt 3