-
Notifications
You must be signed in to change notification settings - Fork 80
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
porting optee to alwinner h5 #65
Comments
Hi @Avani8, Is |
how go I check that ? |
|
I think yes :
|
OK, so the TEE device is missing in |
[1]+ Done(1) tee-supplicant dmesg | grep opteenothing |
Your kernel is lacking the OP-TEE driver. You need to enable |
sure ...doing it now..thanks ..will post the results |
What about the DTB, does it contain an optee node? |
So I used sudo dtc -I dtb -O dts sun50i-h5-nanopi-neo-plus2.dtb > a.txt |
That's needed too:
|
ohh I see... how hard is to add support for h5 board on swg-linux ? |
That's easy just add something like 14e21cb ("arm64: dt: hikey: Add optee node") for the dts in question |
So I've added code as 14e21cb in dts but getting the same result. can some one please look at the buildroot part of the code here and suggest am I doing something wrong in building the image ? steps I followed are as follow then plug the card into device and getting attached screenshot result. |
I sitll believe that the kernel driver(s) for TEE isn't included. It's not that your [jbech@guppy ~/devel/optee_projects/qemu/build] [(HEAD detached at 129d3df) !?]
$ rg CONFIG_TEE
kconfigs/rpi3.conf
1:CONFIG_TEE=y
kconfigs/fvp.conf
1:CONFIG_TEE=y
kconfigs/hikey960.conf
1:CONFIG_TEE=y
kconfigs/qemu.conf
1:CONFIG_TEE=y
kconfigs/hikey.conf
1:CONFIG_TEE=y
kconfigs/hikey_debian.conf
1:CONFIG_TEE=y
kconfigs/juno.conf
1:CONFIG_TEE=y
kconfigs/poplar.conf
1:CONFIG_TEE=y
kconfigs/mediatek.conf
1:CONFIG_TEE=y |
This points me the board I've is not on the list. I am using sunxi-h5 -- nanopi-neo plus 2 ..and in my local I've /build/kconfigs/nano_conf , which has CONFIG_TEE=y |
After you've built everything, what do you get if you $ grep -e "CONFIG_TEE\|CONFIG_OPTEE" .config I get: $ grep -e "CONFIG_TEE\|CONFIG_OPTEE" .config
CONFIG_TEE=y
CONFIG_OPTEE=y
# CONFIG_OPTEE_BENCHMARK is not set |
What's the output from:
on the target system? |
That means that the node in the DTB is there. The OP-TEE driver should be probed etc then. I don't know why it silently fails to initialize. I guess it's time for some debug prints here and there in |
I'm trying to port optee to allwinner h5 board and for that I've created nano.xml here, and makefile based on juno.mk called nano.mk
I am able to compile the framwork and create bootable sd card but when I boot up I am getting following screenshot result :
some notes:
art-tf : I've ported support for allwinner h5 board called sun50iw2p1 here
optee_os: I've made changes for h5 board support here
linux: I'm using frendlyarm core linux as seen here
I'm thinking do I have to use linaro-swg/linux ?
if so I don't see support for all winner h5 board
appreciate any advice
Thanks
Avani
The text was updated successfully, but these errors were encountered: