Configure PetaLinux to use Network Time Protocol (NTP) to obtain and maintain the correct date & time. Note this requires the Zedboard to be connected to the Internet.
Edit the
petalinuxbsp.conf as shown below.
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ cd ../..
steve@Desktop:~/projects/zedboard_linux$ subl os/petalinux/project-spec/meta-user/conf/petalinuxbsp.conf
#User Configuration
#OE_TERMINAL = "tmux"
IMAGE_INSTALL_append = " ntp ntpdate ntpq sntp"
Direct download available here :-
steve@Desktop:~/projects/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
Remove the auto-login option to stop the console from dropping into a root shell.
steve@Desktop:~/projects/zedboard_linux$ cd os/petalinux
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ petalinux-config -c rootfs
Navigate
Image Features from the root menu.

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.
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ sudo mkdir /tftpboot
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ sudo chmod -R 777 /tftpboot
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ sudo chown -R nobody /tftpboot