colibri_imx7_emmc: enable CONFIG_ARMV7_BOOT_SEC_DEFAULT
PATCH 1/1 colibri_imx7_emmc: enable CONFIG_ARMV7_BOOT_SEC_DEFAULT
From: Igor Opaniuk <[email protected]>
Enable CONFIG_ARMV7_BOOT_SEC_DEFAULT by default to avoid a kernel crash when booting NXP linux kernels in non-secure world, when job ring device allocation is done by CAAM hw accelerator driver:
caam 30900000.caam: job rings = 3, qi = 0caam_jr 30901000.jr0: failed to flush job ring 0caam_jr: probe of 30901000.jr0 failed with error -5 caam_jr 30902000.jr1: failed to flush job ring 1caam_jr: probe of 30902000.jr1 failed with error -5 caam_jr 30903000.jr2: failed to flush job ring 2caam_jr: probe of 30903000.jr2 failed with error -5 caam algorithms registered in /proc/crypto
Job Ring Device allocation for transform failed
caam 30900000.caam: caam pkc algorithms registered in /proc/crypto
Unable to handle kernel NULL pointer dereference at virtual address 00000010 pgd = c0004000 [00000010] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Tainted: Hardware name: Freescale i.MX7 Dual (Device Tree)
task: ec0d8000 task.stack: ec0ce000
PC is at caam_sm_startup+0x3f8/0x4f4
--- configs/colibri_imx7_emmc_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/colibri_imx7_emmc_defconfig +1 -0
@@ -76,3 +76,4 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x82000000 CONFIG_FASTBOOT_BUF_SIZE=0x10000000 +CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
Signature · 1 line
2.17.1
PATCH 1/1 colibri_imx7_emmc: enable CONFIG_ARMV7_BOOT_SEC_DEFAULT
Quoted 5 lines · Igor Opaniuk
From: Igor Opaniuk <[email protected]>
Enable
CONFIG_ARMV7_BOOT_SEC_DEFAULTby default to avoid a kernel crash when booting NXP linux kernels in non-secure world, when job ring device allocation is done by CAAM hw accelerator driver:
I rather prefer if mainline U-Boot prefers what makes sense for mainline kernel (and that is non-secure).
Booting in secure mode can be also done using bootm_boot_mode environment variable.
--
Stefan
Quoted 36 lines
caam 30900000.caam: job rings = 3, qi = 0
caam_jr30901000.jr0: failed to flush job ring 0caam_jr: probe of 30901000.jr0 failed with error -5caam_jr30902000.jr1: failed to flush job ring 1caam_jr: probe of 30902000.jr1 failed with error -5caam_jr30903000.jr2: failed to flush job ring 2caam_jr: probe of 30903000.jr2 failed with error -5 caam algorithms registered in/proc/crypto
Job Ring Device allocation for transform failed
caam 30900000.caam: caam pkc algorithms registered in/proc/cryptoUnable to handle kernel NULL pointer dereference at virtual address 00000010 pgd = c0004000 [00000010] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Tainted: Hardware name: Freescale i.MX7 Dual (Device Tree)task:
ec0d8000task.stack:ec0ce000
PC is atcaam_sm_startup+0x3f8/0x4f4Signed-off-by Igor Opaniuk <[email protected]>--- configs/colibri_imx7_emmc_defconfig | 1 + 1 file changed, 1 insertion(+)configs/colibri_imx7_emmc_defconfig +1
-0@@ -76,3 +76,4 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x82000000 CONFIG_FASTBOOT_BUF_SIZE=0x10000000 +CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
PATCH 1/1 colibri_imx7_emmc: enable CONFIG_ARMV7_BOOT_SEC_DEFAULT
Hi Stefan,
Quoted 4 lines · Stefan Agner
Quoted 2 lines · Igor Opaniuk
From: Igor Opaniuk <[email protected]>
Quoted 8 lines
Quoted 3 lines
Enable
CONFIG_ARMV7_BOOT_SEC_DEFAULTby default to avoid a kernel crash when booting NXP linux kernels in non-secure world, when job ring device allocation is done by CAAM hw accelerator driver:I rather prefer if mainline U-Boot prefers what makes sense for mainline kernel (and that is non-secure).
Booting in secure mode can be also done using
bootm_boot_mode
Just tested with env var (wasn't aware about this var) - it works also, thanks for the suggestion.
Testing was done with the default pre-built NXP kernel from Kynetics AOSP package for Colibri iMX7,
probably I'll just add a command for setting a proper value for bootm_boot_mode before parsing/booting stuff
from Android Boot Image (where Kynetics people usually are putting NXP kernels inside);
So just ignore this patch, thanks!
Quoted 41 lines
environment variable.
--
StefanQuoted 36 lines
caam 30900000.caam: job rings = 3, qi = 0
caam_jr30901000.jr0: failed to flush job ring 0caam_jr: probe of 30901000.jr0 failed with error -5caam_jr30902000.jr1: failed to flush job ring 1caam_jr: probe of 30902000.jr1 failed with error -5caam_jr30903000.jr2: failed to flush job ring 2caam_jr: probe of 30903000.jr2 failed with error -5 caam algorithms registered in/proc/crypto
Job Ring Device allocation for transform failed
caam 30900000.caam: caam pkc algorithms registered in/proc/cryptoUnable to handle kernel NULL pointer dereference at virtual address 00000010 pgd = c0004000 [00000010] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Tainted: Hardware name: Freescale i.MX7 Dual (Device Tree)task:
ec0d8000task.stack:ec0ce000
PC is atcaam_sm_startup+0x3f8/0x4f4Signed-off-by Igor Opaniuk <[email protected]>--- configs/colibri_imx7_emmc_defconfig | 1 + 1 file changed, 1 insertion(+)configs/colibri_imx7_emmc_defconfig +1
-0@@ -76,3 +76,4 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x82000000 CONFIG_FASTBOOT_BUF_SIZE=0x10000000 +CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
Signature · 8 lines
Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opaniuk at gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk
PATCH 1/1 colibri_imx7_emmc: enable CONFIG_ARMV7_BOOT_SEC_DEFAULT
In reply to Igor OpaniukQuoted 21 lines
From: Igor Opaniuk <[email protected]>
EnableCONFIG_ARMV7_BOOT_SEC_DEFAULTby default to avoid a kernel crash when booting NXP linux kernels in non-secure world, when job ring device allocation is done by CAAM hw accelerator driver:
caam 30900000.caam: job rings = 3, qi = 0caam_jr30901000.jr0: failed to flush job ring 0caam_jr: probe of 30901000.jr0 failed with error -5caam_jr30902000.jr1: failed to flush job ring 1caam_jr: probe of 30902000.jr1 failed with error -5caam_jr30903000.jr2: failed to flush job ring 2caam_jr: probe of 30903000.jr2 failed with error -5
caam algorithms registered in/proc/crypto
Job Ring Device allocation for transform failed
caam 30900000.caam: caam pkc algorithms registered in/proc/cryptoUnable to handle kernel NULL pointer dereference at virtual address 00000010 pgd = c0004000 [00000010] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Tainted: Hardware name: Freescale i.MX7 Dual (Device Tree)
Quoted 3 lines
task:
ec0d8000task.stack:ec0ce000
PC is atcaam_sm_startup+0x3f8/0x4f4Signed-off-by Igor Opaniuk <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================