Compiling

Foundation provides defconfig files that specify the configuration for the target platform. Such files are used when the target differs from the host system. The defconfig files are available at:

<top>/drive-foundation/firmware/src/bootloader/
quickboot/qb-t18x-partner/arch/t19x/configs

Debug Quickboot

Quickboot supports the following configuration for debug:

qb_defconfig

This configuration supports debug logging and provides a debug console with utilities. Manual intervention is required.

To load and boot the kernel image

  1. Power on the system.
  2. When prompted, type boot to proceed and load the kernel.

For more information, see Using Interactive Mode.

Production Quickboot

Quickboot supports the following configuration for production:

qb_production_defconfig

Debug prints are not enabled. This configuration auto loads the kernel image.

About the Build System

The build system creates the loadable binaries by performing these steps:

  1. Parses the defconfig file and generates the header and .config_* files: autoconf_cpu
  2. Makes header files available to all Quickboot sources. The build system uses config files for defining the code to compile.
  3. Generates a binary as the CPU boot loader binary: qb_cpu.bin.

Compiling Quickboot

To compile quickboot you must update the following file, to specify the absolute path:

<top>/drive-foundation/firmware/src/bootloader/quickboot/
qb-t18x-partner/.cross_compile

To compile Quickboot

  1. Set the current working directory to <top>/drive-foundation/firmware/src/bootloader/ quickboot/qb-t23x-partner
  2. Configure Quickboot for your board.

    The following example uses qb_defconfig and the release build flavor. The build flavor must be release.

    export BUILD_FLAVOR=release
    export TARGET_SOC=t23x
    export TEGRA_TOP=<top>/drive-foundation/firmware/src/bootloader
    make clean
  3. If you are compiling back and forth between production defconfig and debug defconfig, run the make clean command before typing make.
  4. For the default build, enter make qb_defconfig make.
  5. Create a backup of the default boot loader images provided. The backup location is <top>/drive-foundation/firmware/bin/t23x/.
  6. To use the same image the next time you flash, copy the boot loader images to the boot loader top directory. The destination directory depends on your build type. The built images location is <top>/drive-foundation/firmware/src/ bootloader/quickboot/qb-t23x-partner/_out/t23x/images
  7. Copy the files to <top>/drive-foundation/firmware/bin/t23x/