This is a bootloader example, which shows an example of booting Linux on A53 core and RTOS/NORTOS applications on DM R5 and M4 cores.
The booting is done in 2 stages(2 bootloader applications).
The SBL uses 6 appimages
Refer SBL Booting Linux From OSPI for more details on the OSPI boot loader.
In order to boot faster,
Refer Enabling DDR inline ECC enablig inline ECC
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am62x-sk, am62x-sip-sk |
Example folder | examples/drivers/boot/sbl_ospi_linux_multistage |
config.mak
${SDK_INSTALL_PATH}/tools/boot/sbl_prebuilt/am62x-sk/default_sbl_ospi_linux.cfg
default_sbl_ospi_linux.cfg
shown above.C:/ti/mcu_plus_sdk
and this example and IPC application is built using makefiles, and Linux Appimage is already created, in Windows, cd C:/ti/mcu_plus_sdk/tools/boot python uart_uniflash.py -p COM13 --cfg=C:/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/am62x-sk/default_sbl_ospi_linux.cfg
~/ti/mcu_plus_sdk
cd ~/ti/mcu_plus_sdk python uart_uniflash.py -p /dev/ttyUSB0 --cfg=~/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/am62x-sk/default_sbl_ospi_linux.cfg
After flashing and booting the EVM, you will see below output on the UART console (Complete log is not shown)
SYSFW Version 9.0.5--v09.00.05 (Kool Koala) SYSFW revision 0x9 DMSC ABI revision 3.1 [BOOTLOADER_PROFILE] Boot Media : FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 166.667 MHz [BOOTLOADER_PROFILE] Boot Image Size : 184 KB [BOOTLOADER_PROFILE] Cores present : m4f0-0 r5f0-0 [BOOTLOADER PROFILE] System_init : 6411us [BOOTLOADER PROFILE] Drivers_open : 208us [BOOTLOADER PROFILE] Board_driversOpen : 27571us [BOOTLOADER PROFILE] Sciclient Get Version : 9927us [BOOTLOADER PROFILE] App_waitForMcuPbist : 5us [BOOTLOADER PROFILE] App_waitForMcuLbist : 7689us [BOOTLOADER PROFILE] App_loadImages : 3535us [BOOTLOADER PROFILE] App_loadSelfcoreImage : 6279us [BOOTLOADER_PROFILE] SBL Total Time Taken : 61628us Image loading done, switching to application ... Starting MCU-m4f and 2nd stage bootloader SYSFW Version 9.0.5--v09.00.05 (Kool Koala) SYSFW revision 0x9 DMSC ABI revision 3.1 [BOOTLOADER_PROFILE] Boot Media : FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 166.667 MHz [BOOTLOADER_PROFILE] Boot Image Size : 940 KB [BOOTLOADER_PROFILE] Cores present : hsm-m4f0-0 r5f0-0 a530-0 [BOOTLOADER PROFILE] System_init : 2825us [BOOTLOADER PROFILE] Drivers_open : 266us [BOOTLOADER PROFILE] Board_driversOpen : 27055us [BOOTLOADER PROFILE] Sciclient Get Version : 9967us [BOOTLOADER PROFILE] App_loadImages : 1961us [BOOTLOADER PROFILE] App_loadSelfcoreImage : 6557us [BOOTLOADER PROFILE] App_loadLinuxImages : 29163us [BOOTLOADER_PROFILE] SBL Total Time Taken : 77797us Image loading done, switching to application ... Starting linux and RTOS/Baremetal applications NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty NOTICE: BL31: Built : 00:42:57, Jan 13 2023 U-Boot SPL 2023.04-ga3595f1e3e (Jun 15 2023 - 08:14:46 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)') SPL initial stack usage: 1856 bytes Trying to boot from SPI Authentication passed Authentication passed U-Boot 2023.04-gd6bccb1b9e (Jun 09 2023 - 06:25:21 +0000) SoC: AM62X SR1.0 HS-FS Model: Texas Instruments AM625 SK EEPROM not available at 80, trying to read at 81 Board: AM62-SKEVM rev E3 . . . . . . _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project am62xx-evm - Arago 2023.04 am62xx-evm - am62xx-evm login: