@:~$ xilinx Xilinx tools available tools at /opt/Xilinx :- 1) 2021.2 - Vivado - SDK - Vitis - PetaLinux 0) Exit Please select tools required or exit : 1 Tools are as follows :- vivado @ /opt/Xilinx/Vivado/2021.2/bin/vivado vitis @ /opt/Xilinx/Vitis/2021.2/bin/vitis petalinux-build @ /opt/Xilinx/PetaLinux/2021.2/tool/tools/common/petalinux/bin/petalinux-build
@:~$ create_project_structure.sh /zedboard_linux Creating project directory structure @ /zedboard_linux @:~$ cd /zedboard_linux/os
@:/zedboard_linux/os$ petalinux-create --type project --template zynq --name petalinux
@:/zedboard_linux/os$ cd petalinux @:/zedboard_linux/os/petalinux$ ls -la total 24 drwxr-xr-x 4 4096 Nov 7 10:15 . drwxrwxr-x 62 4096 Nov 7 10:15 .. -rw-r--r-- 1 248 Nov 7 10:15 config.project -rw-rw-r-- 1 170 Nov 7 10:15 .gitignore drwxrwxr-x 2 4096 Nov 7 10:15 .petalinux drwxr-xr-x 5 4096 Nov 7 10:15 project-spec
@:/zedboard_linux/os/petalinux$ petalinux-config --get-hw-description ../../../zedboard_leds_switches/fw/system_wrapper.xsa
Select Yes when prompted to save the new configuration.
Examine the root directory again to see what's changed.@:/zedboard_linux/os/petalinux$ ls -la total 32 drwxr-xr-x 6 4096 Nov 7 10:24 . drwxrwxr-x 62 4096 Nov 7 10:15 .. drwxrwxr-x 6 4096 Nov 7 10:30 build drwxrwxr-x 4 4096 Nov 7 10:30 components -rw-r--r-- 1 248 Nov 7 10:15 config.project -rw-rw-r-- 1 170 Nov 7 10:15 .gitignore drwxrwxr-x 2 4096 Nov 7 10:38 .petalinux drwxr-xr-x 5 4096 Nov 7 10:15 project-spec
@:/zedboard_linux/os/petalinux$ cd ../..
@:/zedboard_linux$ subl os/petalinux/project-spec/meta-user/conf/petalinuxbsp.conf
@:/zedboard_linux$ wget https://spacewire.co.uk/tutorial/shared/repos/0005/zedboard_linux/os/petalinux/project-spec/meta-user/conf/petalinuxbsp.conf -O os/petalinux/project-spec/meta-user/conf/petalinuxbsp.conf
@:/zedboard_linux$ cd os/petalinux @:/zedboard_linux/os/petalinux$ petalinux-config -c rootfs
Unselect the auto-login option from the sub-menu.
Select Exit to navigate back to the root menu.
Select Exit again to exit the configuration session.
Select Yes when prompted to save the new configuration.
Set up a transfer directory for the built images.
@:/zedboard_linux/os/petalinux$ sudo mkdir /tftpboot @:/zedboard_linux/os/petalinux$ sudo chmod -R 777 /tftpboot @:/zedboard_linux/os/petalinux$ sudo chown -R nobody /tftpboot
@:/zedboard_linux/os/petalinux$ ssh -t git@ 'git init --bare zedboard_linux.git' @:/zedboard_linux/os/petalinux$ cd ../.. @:/zedboard_linux$ git init @:/zedboard_linux$ git remote add origin git@:zedboard_linux.git @:/zedboard_linux$ git add -A @:/zedboard_linux$ git commit -a -m "Initial PetaLinux project configured for ZYNQ and using the XSA from zedboard_leds_switches v1.0." @:/zedboard_linux$ git push -u origin master @:/zedboard_linux$ git tag -a v1.0 -m "PetaLinux with XSA from zedboard_leds_switches v1.0" @:/zedboard_linux$ git push -u origin v1.0 @:/zedboard_linux$ cd os/petalinux
@:/zedboard_linux/os/petalinux$ petalinux-build
@:/zedboard_linux/os/petalinux$ petalinux-package --prebuilt --force
@:/zedboard_linux/os/petalinux$ petalinux-boot --qemu --prebuilt 3
Set the boot mode jumpers on the Zedboard for JTAG.
Power on the Zedboard.
@:~$ minized
Welcome to minicom 2.7.1
OPTIONS: I18n
Compiled on Dec 23 2019, 02:06:26.
Port /dev/ttyACM0, 06:34:25
Press CTRL-A Z for help on special keys
@:/zedboard_linux/os/petalinux$ petalinux-boot --jtag --prebuilt 3
... PetaLinux 2021.2 petalinux /dev/ttyPS0 petalinux login:
root@petalinux:~# ping 192.168.2.1 PING 192.168.2.1 (192.168.2.1): 56 data bytes 64 bytes from 192.168.2.1: seq=0 ttl=64 time=1.926 ms ...
root@petalinux:~# ping google.com PING google.com (216.58.210.206): 56 data bytes 64 bytes from 216.58.210.206: seq=0 ttl=114 time=21.701 ms ...
root@petalinux:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:35:00:1E:53 inet addr: Bcast:192.168.2.255 Mask:255.255.255.0 ...
@:~$ cd @:$ git clone -b v1.0 https://bitbucket.org/spacewire_firmware/zedboard_linux @:$ cd zedboard_linux/os/petalinux