0

I am building a minimal petalinux project with a default project using the .xsa from the analog devices adrv9361-z7035 hdl project.

The build works just fine, however, the rootfs.ext4 is about 67MB. I loop mounted the filesystem on my host and it is only using about 17MB. I need this rootfs to sit on the QSPI of the board, however the QSPI is only 32MB.

How can I go about shrinking the size of the generated root file system? Surely it can be made to fit if its apparent size is only 17MB.

alexv9
  • 126
  • 1
  • 9
  • 1
    The rootfs will change in size proportionate to what packages are enabled in it. Try using "petalinux-config -c rootfs" to deselect everything you do not need. 67MB seems rather large for just the rootfs. Are you sure this doesn't include the kernel too? If the kernel is going on QSPI you many need to minimize that as well. In my experience, 32MB is tight for a PetaLinux OS and you'll want to manually optimize it as much as you can. – thelummox Oct 31 '22 at 13:57

0 Answers0