SDAA437 July 2026 TDA4VE-Q1
The previous chapter demonstrated Linux boot using manually entered U-Boot commands. While this approach is useful during development and debugging, production systems typically require the boot process to start automatically after power-on.
One method is to define a default boot command in the U-Boot configuration. This allows U-Boot to automatically mount the UBIFS volume, load the Linux kernel image and device tree from OSPI NOR Flash, and start Linux without user interaction. The default boot command can be added to the following U-Boot configuration file, configs/j721s2_evm_a72_defconfig.
The following configuration can be used in this example.
cd ti-processor-sdk-linux-adas-j721s2-evm-11_01_00_03/board-support/ti-u-boot-2025.01+git
cat >> configs/j721s2_evm_a72_defconfig << 'EOF'
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="setenv bootargs 'console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 ubi.mtd=ospi.rootfs root=ubi0:rootfs rootfstype=ubifs rw init=/init'; ubi part ospi.rootfs; ubifsmount ubi0:rootfs; ubifsload ${loadaddr} /boot/Image; ubifsload ${fdtaddr} /boot/dtb/k3-j721s2-common-proc-board.dtb; booti ${loadaddr} - ${fdtaddr}"
EOF
After rebuilding U-Boot and flashing the updated u-boot.img into the ospi.u-boot partition, the board automatically executes the complete Linux boot sequence during power-on.