- Put the SD-Card in the slot on Ultra96/Ultra96-V2/Kv260/Kr260.
- Plug in your Display Port monitor into the Ultra96 using the mini Display Port connector.
- Plug in a USB mouse and USB keyboard into the USB ports of the Ultra96.
- Turn on the Ultra96/Ultra96-V2/Kv260/Kr260.
- After a few seconds, the Ubuntu login screen will appear on the display.
- The password for administrator rights is "admin".
shell$ wget https://github.com/ikwzm/ZynqMP-FPGA-Ubuntu22.04-Console/archive/refs/tags/v3.0.1.tar.gz
shell$ tar xfz v3.0.1.tar.gz
shell# export targetdir=ubuntu22.04-desktop-rootfs
shell# export distro=jammy
shell# mkdir $PWD/$targetdir
shell# (cat ZynqMP-FPGA-Ubuntu22.04-Console-3.0.1/ubuntu22.04-console-rootfs.tgz.files/*) | tar xfz - -C $PWD/$targetdir
shell# cp debian/*.deb $PWD/$targetdir/home/fpga/debian
shell# cp files/xorg.conf $PWD/$targetdir/home/fpga/debian
shell# cp scripts/upgrade-ubuntu22.04-desktop.sh $PWD/$targetdir
shell# mount -vt proc proc $PWD/$targetdir/proc
shell# mount -vt devpts devpts -o gid=5,mode=620 $PWD/$targetdir/dev/pts
shell$ sudo chroot $PWD/$targetdir
There are two ways
- run upgrade-ubuntu22.04-desktop.sh (easy)
- run this chapter step-by-step (annoying)
root@ubuntu-fpga:/# export distro=jammy
root@ubuntu-fpga:/# export LANG=C
root@ubuntu-fpga:/# apt update
root@ubuntu-fpga:/# apt upgrade
root@ubuntu-fpga:/# apt install -y ubuntu-desktop
root@ubuntu-fpga:/# dpkg -i /home/fpga/debian/xserver-xorg-video-armsoc-xilinx_1.5-trial-13_arm64.deb
root@ubuntu-fpga:/# cp /home/fpga/debian/xorg.conf /etc/X11
root@ubuntu-fpga:/# dpkg -i /home/fpga/debian/libgl1-mesa-xlnx-dri_23.0.4-0ubuntu1~22.04.1_arm64.deb
root@ubuntu-fpga:/# echo "lima" > /etc/modules-load.d/lima.conf
root@ubuntu-fpga:/# echo "options lima of_400_id=arm,mali-400" > /etc/modprobe.d/lima.conf
Please choose "lightdm" instead of "gdm"
root@ubuntu-fpga:/# apt install -y libpam-gnome-keyring libpam-kwallet5
root@ubuntu-fpga:/# apt install -y lightdm lightdm-settings slick-greeter
root@ubuntu-fpga:/# apt-get clean
root@ubuntu-fpga:/# dpkg -l > dpkg-desktop-list.txt
root@ubuntu-fpga:/# exit
shell# rm -f $PWD/$targetdir/upgrade-ubuntu22.04-desktop.sh
shell# mv $PWD/$targetdir/dpkg-desktop-list.txt files/ubuntu22.04-desktop-dpkg-list.txt
shell# umount $PWD/$targetdir/proc
shell# umount $PWD/$targetdir/dev/pts
shell# cd $PWD/$targetdir
shell# tar cfz ../ubuntu22.04-desktop-rootfs.tgz *
shell# cd ..
shell# mkdir ubuntu22.04-desktop-rootfs.tgz.files
shell# cd ubuntu22.04-desktop-rootfs.tgz.files
shell# split -d --bytes=40M ../ubuntu22.04-desktop-rootfs.tgz
shell# cd ..