-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optee on iMX6UL with barebox bootloader #2477
Comments
Hi @vsivanagulu, Does OP-TEE and the kernel driver initialize properly?
Have you configured the number of CPU cores properly? ( |
For some reasons the kernel doesn't load anymore and the optee os stops at this point after the logs.
|
That is |
Well, I tried to load the dtb and zImage of evk(which I believe is proven to work), yet the invalid dtb error shows up! |
Hi @jforissier barebox@i.MX6UL-SOM:/ boot mmc -v
booting 'mmc'
mmc0: detected SD card version 2.0
mmc0: registered mmc0
Loading ARM Linux zImage '/mnt/mmc/zImage'
OS image not yet relocated
Passing control to ARM zImage handler
no OS load address, defaulting to 0x82000000
no initrd load address, defaulting to 0x82732000
Read optee file to 0x9e000000, size 0x00043280
Loading devicetree from '/mnt/mmc/imx6ul-irco-io-board.dtb'
Starting with OP-TEE, adding PSCI device node
commandline: console=ttymxc0,115200n8 root=/dev/mmcblk0p2 rootwait rw
Starting kernel at 0x82000000, oftree at 0x82732000...
Starting kernel in secure mode
D/TC:0 add_phys_mem:539 TEE_SHMEM_START type NSEC_SHM 0x9fe00000 size 0x00200000
D/TC:0 add_phys_mem:539 TA_RAM_START type TA_RAM 0x9e100000 size 0x01d00000
D/TC:0 add_phys_mem:539 VCORE_UNPG_RW_PA type TEE_RAM_RW 0x9e03e000 size 0x000c2000
D/TC:0 add_phys_mem:539 VCORE_UNPG_RX_PA type TEE_RAM_RX 0x9e000000 size 0x0003e000
D/TC:0 add_phys_mem:539 ROUNDDOWN(IRAM_BASE, CORE_MMU_DEVICE_SIZE) type TEE_COHERENT 0x00900000 size 0x00100000
D/TC:0 add_phys_mem:539 AIPS3_BASE type IO_SEC 0x02200000 size 0x00100000
D/TC:0 add_phys_mem:539 AIPS2_BASE type IO_SEC 0x02100000 size 0x00100000
D/TC:0 add_phys_mem:539 AIPS1_BASE type IO_SEC 0x02000000 size 0x00100000
D/TC:0 add_phys_mem:539 ANATOP_BASE type IO_SEC 0x02000000 size 0x00200000
D/TC:0 add_phys_mem:552 Physical mem map overlaps 0x2000000
D/TC:0 add_phys_mem:539 GIC_BASE type IO_SEC 0x00a00000 size 0x00100000
D/TC:0 add_phys_mem:539 CONSOLE_UART_BASE type IO_NSEC 0x02000000 size 0x00200000
D/TC:0 verify_special_mem_areas:477 No NSEC DDR memory area defined
D/TC:0 add_va_space:578 type RES_VASPACE size 0x00a00000
D/TC:0 add_va_space:578 type SHM_VASPACE size 0x02000000
D/TC:0 dump_mmap_table:711 type IO_SEC va 0x98c00000..0x98cfffff pa 0x02100000..0x021fffff size 0x00100000 (pgdir)
D/TC:0 dump_mmap_table:711 type IO_SEC va 0x98d00000..0x98efffff pa 0x02000000..0x021fffff size 0x00200000 (pgdir)
D/TC:0 dump_mmap_table:711 type IO_SEC va 0x98f00000..0x98ffffff pa 0x00a00000..0x00afffff size 0x00100000 (pgdir)
D/TC:0 dump_mmap_table:711 type IO_NSEC va 0x99000000..0x991fffff pa 0x02000000..0x021fffff size 0x00200000 (pgdir)
D/TC:0 dump_mmap_table:711 type NSEC_SHM va 0x99200000..0x993fffff pa 0x9fe00000..0x9fffffff size 0x00200000 (pgdir)
D/TC:0 dump_mmap_table:711 type TA_RAM va 0x99400000..0x9b0fffff pa 0x9e100000..0x9fdfffff size 0x01d00000 (pgdir)
D/TC:0 dump_mmap_table:711 type TEE_COHERENT va 0x9b200000..0x9b2fffff pa 0x00900000..0x009fffff size 0x00100000 (pgdir)
D/TC:0 dump_mmap_table:711 type RES_VASPACE va 0x9b300000..0x9bcfffff pa 0x00000000..0x009fffff size 0x00a00000 (pgdir)
D/TC:0 dump_mmap_table:711 type IO_SEC va 0x9be00000..0x9befffff pa 0x02200000..0x022fffff size 0x00100000 (pgdir)
D/TC:0 dump_mmap_table:711 type SHM_VASPACE va 0x9bf00000..0x9defffff pa 0x00000000..0x01ffffff size 0x02000000 (pgdir)
D/TC:0 dump_mmap_table:711 type TEE_RAM_RX va 0x9e000000..0x9e03dfff pa 0x9e000000..0x9e03dfff size 0x0003e000 (smallpg)
D/TC:0 dump_mmap_table:711 type TEE_RAM_RW va 0x9e03e000..0x9e0fffff pa 0x9e03e000..0x9e0fffff size 0x000c2000 (smallpg)
D/TC:0 core_mmu_alloc_l2:238 L2 table used: 1/4
I/TC:
D/TC:0 init_canaries:164 #Stack canaries for stack_tmp[0] with top at 0x9e03e9b8
D/TC:0 init_canaries:164 watch *0x9e03e9bc
D/TC:0 init_canaries:165 #Stack canaries for stack_abt[0] with top at 0x9e043278
D/TC:0 init_canaries:165 watch *0x9e04327c
D/TC:0 init_canaries:167 #Stack canaries for stack_thread[0] with top at 0x9e0409f8
D/TC:0 init_canaries:167 watch *0x9e0409fc
D/TC:0 init_canaries:167 #Stack canaries for stack_thread[1] with top at 0x9e042a38
D/TC:0 init_canaries:167 watch *0x9e042a3c
I/TC: OP-TEE version: 3.2.0-28-g414060f #9 Thu Aug 2 07:50:06 UTC 2018 arm
D/TC:0 tee_ta_register_ta_store:534 Registering TA store: 'REE' (priority 10)
D/TC:0 tee_ta_register_ta_store:534 Registering TA store: 'Secure Storage TA' (priority 9)
D/TC:0 mobj_mapped_shm_init:559 Shared memory address range: 9bf00000, 9df00000
E/TC:0 plat_rng_init:354 Warning: seeding RNG with zeroes
I/TC: Initialized
D/TC:0 init_primary_helper:917 Primary CPU switching to normal world boot
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.4 (siva@siva-Vostro-3268) (gcc version 4.6.2 (OSELAS.Toolchain-2011.11.1 linaro-4.6-2011.11) ) #13 SMP Tue Jul 31 17:41:19 IST 2018
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: IO-Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0x99c00000
.
.
. |
I changed optee_os versions to 3.0.0 its working now. |
We are trying to port optee feature to iMX6UL custom board with barebox bootloader.
When running the xtest, we are getting the below crash report.
Please help me find the issue.
Attached boot log
bootlog.txt
Attached error
log.txt
Reference:
The text was updated successfully, but these errors were encountered: