We are planning to migrate from PetaLinux to Ubuntu on our custom board based on the Xilinx MPSoC. We have successfully brought up the custom board using the certified minimal Ubuntu Desktop image provided by AMD and Canonical ( Canonical Ubuntu - AMD Adaptive Computing Wiki - Confluence), along with the required custom kernel changes.
However, we observed that the Ubuntu root filesystem size is quite large (approximately 7.2 GB total with about 4.7 GB used):
osboxes@osboxes:/mnt/shared$ df -h /tmp/rootfs
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 7.0G 4.7G 2.0G 71% /tmp/rootfs
This appears to be due to the certified image being a minimal Desktop variant, which still includes GUI components, Snap services, and other packages that are not required for our target platform.
For our custom board, we do not need the GUI or Snap packages, and we would like to further reduce the rootfs footprint. We would appreciate your support in achieving this. We have the following questions:
-
Can we further optimize the certified Ubuntu Desktop image? Specifically, which packages (e.g., GUI, Snap) can be safely removed?
-
Alternatively, should we use an Ubuntu Base image and add only the necessary components on top of it? If so, please advise which required packages should be included for a Xilinx MPSoC platform based on the certified ZUCU102.