# This script is used to switch between both booting methods: secure (fitImage) and no-secure based on the variable rp_sec_boot

# setting the bootargs again
setenv bootargs console=${console},${baudrate} earlycon root=${mmcroot} security=smack

# message as a reminder
echo "Secure Mode disabled"

# kernel + device tree booting
load mmc ${mmcdev}:${mmcpart} ${loadaddr} Image
load mmc ${mmcdev}:${mmcpart} ${fdt_addr} imx8qxp-mek.dtb
booti ${loadaddr} - ${fdt_addr}