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
- Power on the system.
- 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:
- Parses the
defconfig
file and generates the header and.config_*
files:autoconf_cpu
- Makes header files available to all Quickboot sources. The build system uses config files for defining the code to compile.
- 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
- Set the current working directory to
<top>/drive-foundation/firmware/src/bootloader/ quickboot/qb-t23x-partner
- Configure Quickboot for your board.
The following example uses
qb_defconfig
and therelease
build flavor. The build flavor must berelease
.export BUILD_FLAVOR=release export TARGET_SOC=t23x export TEGRA_TOP=<top>/drive-foundation/firmware/src/bootloader make clean
- If you are compiling back and forth between production
defconfig
and debugdefconfig
, run themake clean
command before typingmake
. - For the default build, enter
make qb_defconfig make
. - Create a backup of the default boot loader images provided. The backup location is
<top>/drive-foundation/firmware/bin/t23x/
. - 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
- Copy the files to
<top>/drive-foundation/firmware/bin/t23x/