- Put the SD-Card in the slot on Ultra96/Ultra96-V2/Kv260.
- 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.
- After a few seconds, the Ubuntu login screen will appear on the display.
- The password for administrator rights is "admin".
- Use 'nmcli' if you use the command line.
- Use 'nmtui' if you use the Text-UI.
shell# git clone --depth=1 --branch v2021.1-console-rc1 git://github.com/ikwzm/ZynqMP-FPGA-Ubuntu20.04
shell# cd ZynqMP-FPGA-Ubuntu20.04
shell# git lfs pull
shell# export targetdir=ubuntu20.04-rootfs
shell# export distro=focal
shell# mkdir $PWD/$targetdir
shell# tar xfz ubuntu20.04-console-rootfs.tgz -C $PWD/$targetdir
shell# cp scripts/upgrade-ubuntu20.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-ubuntu20.04-desktop.sh (easy)
- run this chapter step-by-step (annoying)
ubuntu20.04-rootfs# export distro=focal
ubuntu20.04-rootfs# export LANG=C
ubuntu20.04-rootfs# apt-get install -y ubuntu-desktop
ubuntu20.04-rootfs# dpkg -i /home/fpga/debian/xserver-xorg-video-armsoc-xilinx_1.4-ubuntu20-2_arm64.deb
ubuntu20.04-rootfs# cp /home/fpga/debian/xorg.conf /etc/X11
ubuntu20.04-rootfs# apt install -y libpam-gnome-keyring libpam-kwallet5
ubuntu20.04-rootfs# apt install -y lightdm lightdm-settings slick-greeter
ubuntu20.04-rootfs# systemctl mask sleep.target suspend.target hybrid-sleep.target
ubuntu20.04-rootfs# sed -i -e 's/PrivateUsers=yes/#PrivateUsers=yes/g' /usr/lib/systemd/system/upower.service
ubuntu20.04-rootfs# sed -i -e 's/RestrictNamespaces=yes/#RestrictNamespaces=yes/g' /usr/lib/systemd/system/upower.service
ubuntu20.04-rootfs# update-mime-database /usr/share/mime
ubuntu20.04-rootfs# /usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
ubuntu20.04-rootfs# apt-get clean
ubuntu20.04-rootfs# dpkg -l > dpkg-desktop-list.txt
ubuntu20.04-rootfs# exit
shell$ sudo rm -f $PWD/$targetdir/upgrade-ubuntu20.04-desktop.sh
shell$ sudo mv $PWD/$targetdir/dpkg-desktop-list.txt files/ubuntu20.04-desktop-dpkg-list.txt
shell$ sudo umount $PWD/$targetdir/proc
shell$ sudo umount $PWD/$targetdir/dev/pts
shell$ cd $PWD/$targetdir
shell$ sudo tar cfz ../ubuntu20.04-desktop-rootfs.tgz *