This is a bootloader example, which shows an example of booting Linux on A53 core and RTOS/NORTOS applications on WKUP R5, MCU R5 cores.
The booting is done in 2 stages(2 bootloader applications).
The SBL uses 5 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 | wkup-r5fss0-0 nortos |
| Toolchain | ti-arm-clang |
| Board | am62px-sk |
| Example folder | examples/drivers/boot/sbl_ospi_linux_multistage |
config.mak ${SDK_INSTALL_PATH}/tools/boot/sbl_prebuilt/am62px-sk/default_sbl_ospi_linux.cfg
# 2nd stage bootloader with DM is flashed at 0x80000 or to whatever offset your bootloader is configured for --file=../../examples/drivers/boot/sbl_ospi_linux_multistage/sbl_ospi_linux_stage2/am62px-sk/wkup-r5fss0-0_freertos/ti-arm-clang/sbl_ospi_linux_stage2.release.appimage --operation=flash --flash-offset=0x80000
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/am62px-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/am62px-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)
[BOOTLOADER_PROFILE] Boot Media : FLASH
[BOOTLOADER_PROFILE] Boot Media Clock : 166.667 MHz
[BOOTLOADER_PROFILE] Boot Image Size : 180 KB
[BOOTLOADER_PROFILE] Cores present :
wkup-r5f0-0
[BOOTLOADER PROFILE] System_init : 38923us
[BOOTLOADER PROFILE] Drivers_open : 0us
[BOOTLOADER PROFILE] SBL Drivers_open : 150us
[BOOTLOADER PROFILE] Board_driversOpen : 10us
[BOOTLOADER PROFILE] SBL Board_driversOpen : 21978us
[BOOTLOADER PROFILE] App_loadSelfcoreImage : 5611us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 66674us
Image loading done, switching to application ...
Starting 2nd stage bootloader
[BOOTLOADER_PROFILE] Boot Media : FLASH
[BOOTLOADER_PROFILE] Boot Media Clock : 166.667 MHz
[BOOTLOADER_PROFILE] Boot Image Size : 853 KB
[BOOTLOADER_PROFILE] Cores present :
hsm-m4f0-0
mcu-r5f0-0
a530-0
[BOOTLOADER PROFILE] System_init : 2305us
[BOOTLOADER PROFILE] Board_init : 0us
[BOOTLOADER PROFILE] SciserverInit : 16144us
[BOOTLOADER PROFILE] SBL Drivers_open : 359us
[BOOTLOADER PROFILE] SBL Board_driversOpen : 22009us
[BOOTLOADER PROFILE] App_loadImages : 1829us
[BOOTLOADER PROFILE] App_loadMCUImages : 3521us
[BOOTLOADER PROFILE] App_loadLinuxImages : 19311us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 65479us
Image loading done, switching to application ...
Starting linux and RTOS/Baremetal applications
NOTICE: BL31: v2.9(release):v2.9.0-dirty
NOTICE: BL31: Built : 14:12:59, May 22 2023
U-Boot SPL 2023.04-g48c1296285 (Sep 14 2023 - 21:24:43 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--w09.00.04-am62p (Kool Ko')
Trying to boot from SPI
Authentication passed
Authentication passed
U-Boot 2023.04-g48c1296285 (Sep 14 2023 - 21:24:43 +0000)
SoC: AM62PX SR1.0 HS-FS
Model: Texas Instruments AM62P5 SK
DRAM: 2 GiB (effective 8 GiB)
.
.
.
.
.
.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project am62pxx-evm -
Arago 2023.04 am62pxx-evm -
am62pxx-evm login: