Rebuilding the Linux SDK File System Without Modifications Using the Build-FS Tool

This example shows the steps to rebuild the Linux SDK file system using the file system tool Build-FS. At the completion of this example, you will complete the following tasks:

  • Recreate the Linux file system without any modifications.
  • Flash your recreated Linux file system image onto the platform.
  • Boot up the target platform with your recreated Linux file system.
  1. Run the build-fs tool using the following commands to create a file system without any changes. The created file system shall be at path ${NV_WORKSPACE}/drive-linux/filesystem/targetfs-images/nvidia-driveos-build-fs-user-rfs.img because of the output name specified in /opt/nvidia/driveos/common/filesystems/build-fs/17/configs/driveos-user-rfs.CONFIG.json. Copy the rebuilt file system to replace the starting file system at ${NV_WORKSPACE}/drive-linux/filesystem/targetfs-images/targetfs.img.
    $ sudo -E /usr/bin/python3 -B /opt/nvidia/driveos/common/filesystems/build-fs/17/bin/build_fs.py -w ${NV_WORKSPACE}/ -i /opt/nvidia/driveos/common/filesystems/build-fs/17/configs/driveos-user-rfs.CONFIG.JSON -o ${NV_WORKSPACE}/drive-linux/filesystem/targetfs-images/
    $ sudo rm -f ${NV_WORKSPACE}/drive-linux/filesystem/targetfs.img
    $ sudo ln -s ${NV_WORKSPACE}/drive-linux/filesystem/targetfs-images/driveos-user-rfs.img ${NV_WORKSPACE}/drive-linux/filesystem/targetfs.img
  2. The NVIDIA DRIVE® OS flashing tool bootburn.py PCT picks up file system by default at path ${NV_WORKSPACE}/drive-linux/filesystem/targetfs-images/targetfs.img.
  3. Use bootburn.py to flash the file system.
  4. Reboot the target.
  5. The target should have rebooted with your recreated Linux file system.
After step 5, the target boots the system and reaches the command prompt as shown below:
tegra-ubuntu login:
Enter the <username>/<password> corresponding to the user account(s) created during the initial setup of the NVIDIA DRIVE® platform.
tegra-ubuntu login: <username>
password: <password>
After successful login, the console welcome prompt is seen:
<username>@tegra-ubuntu:~$