Skip to content
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

OP-TEE on UDOO NEO i.MX6 #1163

Closed
kdy1029 opened this issue Nov 7, 2016 · 2 comments
Closed

OP-TEE on UDOO NEO i.MX6 #1163

kdy1029 opened this issue Nov 7, 2016 · 2 comments

Comments

@kdy1029
Copy link

kdy1029 commented Nov 7, 2016

Hello,
I'm porting OP-TEE to the UDOO Neo i.MX6 Board with Android.
http://shop.udoo.org/usa/catalog/product/view/id/38/s/udoo-neo-extended/category/3/

I basically followed the porting instruction and the Freescale MX6UL EVK guide.
MrVan/nxpuboot@4f016ad

When the code loads the OPTEE_ENTRY, it causes an undefined instruction exception. But I checked the memory and the optee.bin still exists in the memory.

_nonsec_init, arch/arm/cpu/armv7/nonsec_virt.S

+#ifdef CONFIG_ARMV7_TEE
 +	isb
 +
 +	mov	ip, r0
 +	adr	r0, _regs_save
 +	str	ip, [r0]
 +	add	r0, r0, #4
 +
 +	str	sp, [r0]
 +	add	r0, r0, #4
 +
 +	stmia	r0!, {r1-r12}
 +
 +	str	lr, [r0]
 +	adr	lr, end_init_optee
 +
 +	ldr	r0, =OPTEE_ENTRY
 +	movs	pc, r0
 +	b	.

I do not know why it happens. Could you help me?

Thanks,
Daniel

@MrVan
Copy link
Contributor

MrVan commented Nov 9, 2016

@kdy1029 Please not follow mx6ulevk guide. I plan to drop that code and use new method to boot optee.

You could check https://github.com/OP-TEE/optee_os/pull/936#issuecomment-240966240 about the boot.

There are still bugs in the patch to support 6q, mainly about PL310, I am debugging it.

@kdy1029
Copy link
Author

kdy1029 commented Nov 9, 2016

OK, thanks. Hopefully, it will be done soon.

@kdy1029 kdy1029 closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants