How to build Root File System (ROOTFS) for Ultra96 V2 Based on Avnet BSP 2018.3
Updated: Apr 27

Build Steps
PetaLinux Tools Build Guide for Ultra96-V2 Avnet out of box BSP 2018.3
Build Platform Management Unit firmware PMUFW) for Ultra96 V2
# Setup PetaLinux Environment
cd ~petalinux-install-directory
source peta/settings.sh
# go to BSP source code directory
cd ultra96v2_oob_2018_3
# In order to clean up build temp files By running following command:
petalinux-build -c rootfs -x distclean
# You should see following debug messages:
petalinux-build -c rootfs -x distclean [INFO] building rootfs [INFO] sourcing bitbake INFO: bitbake petalinux-user-image -c cleansstate Loading cache: 100% |##################################################################################################################################################| Time: 0:00:00 Loaded 3468 entries from dependency cache. Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:03 Parsing of 2577 .bb files complete (2542 cached, 35 parsed). 3469 targets, 133 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:13 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded. [INFO] successfully built rootfs |
# In order to fetch source ode, please run following command:
petalinux-build -c rootfs -x fetch
# You will see following debug messages:
petalinux-build -c rootfs -x fetch [INFO] building rootfs [INFO] sourcing bitbake INFO: bitbake petalinux-user-image -c fetch Loading cache: 100% |##################################################################################################################################################| Time: 0:00:00 Loaded 3468 entries from dependency cache. Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:04 Parsing of 2577 .bb files complete (2542 cached, 35 parsed). 3469 targets, 133 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:14 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded. INFO: Copying Images from deploy to images [INFO] successfully built rootfs |
# In order to unpack source ode, please run following command:
petalinux-build -c rootfs -x unpack
# You will see following debug messages:
petalinux-build -c rootfs -x unpack [INFO] building rootfs [INFO] sourcing bitbake INFO: bitbake petalinux-user-image -c unpack Loading cache: 100% |##################################################################################################################################################| Time: 0:00:01 Loaded 3468 entries from dependency cache. Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:31 Parsing of 2577 .bb files complete (2542 cached, 35 parsed). 3469 targets, 133 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:14 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 2 tasks of which 1 didn't need to be rerun and all succeeded. INFO: Copying Images from deploy to images [INFO] successfully built rootfs |
# In order to rebuild source ode, please run following command:
petalinux-build -c rootfs -x build
# You will see following debug messages:
petalinux-build -c rootfs -x build [INFO] building rootfs [INFO] sourcing bitbake INFO: bitbake petalinux-user-image -c do_image_complete Loading cache: 100% |##################################################################################################################################################| Time: 0:00:00 Loaded 3468 entries from dependency cache. Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:07 Parsing of 2577 .bb files complete (2542 cached, 35 parsed). 3469 targets, 133 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:19 Checking sstate mirror object availability: 100% |#####################################################################################################################| Time: 0:00:15 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in the logfile: [log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.ultra96_zynqmp) scriptlet failed, exit status 1 NOTE: Tasks Summary: Attempted 7641 tasks of which 7581 didn't need to be rerun and all succeeded. Summary: There were 3 WARNING messages shown. INFO: Copying Images from deploy to images [INFO] successfully built rootfs |
It will generate new rootfs.tar.gz and rootfs.ext4 in folder images/linux.