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

SGX drivers on beagleboard C4 #8

Open
derkohai opened this issue Jan 4, 2012 · 12 comments
Open

SGX drivers on beagleboard C4 #8

derkohai opened this issue Jan 4, 2012 · 12 comments
Assignees

Comments

@derkohai
Copy link

derkohai commented Jan 4, 2012

Post on http://groups.google.com/group/beagleboard/browse_thread/thread/b55fec7a71d1c6c1:

Hello all,

Since a couple of days now I'm trying to get SGX running on my
Beagleboard Rev C4 with Ubuntu 11.10. I followed the Instructions on
http://elinux.org/BeagleBoardUbuntu#Oneiric_11.10 exactly:

the first run of run-SGX.sh after install worked and after each boot
all SGX modules are loaded (see dmesg on http://paste.ubuntu.com/792534/)

Then I tested the SGX acceleration with the EvilSkull demo as user
ubuntu (root makes no difference) with the immediate result in a
kernel panic (see http://paste.ubuntu.com/792545/).

Doing a pvr restart after reboot also leads to panic (see
http://paste.ubuntu.com/792540/).

Here's my Xorg.log: http://paste.ubuntu.com/792565/

This try was my last try after many attempts with ubuntu 11.04, I also
tried pre installed Ubuntu Images from https://wiki.ubuntu.com/ARM/OMAP
doing "sudo apt-get install libegl1-sgx-omap3 libgles1-sgx-omap3
libgles2-sgx-omap3", that didn't work either.

Does anyone has an idea?

Regards,
Simon

@RobertCNelson
Copy link
Owner

dmesg: on a fresh reboot, before running any demos on my c4..

http://paste.ubuntu.com/793154/

@ghost ghost assigned RobertCNelson Jan 4, 2012
@RobertCNelson
Copy link
Owner

dmesg: after trying to run a demo, boards locks up...(c4)

http://paste.ubuntu.com/793169/

@RobertCNelson
Copy link
Owner

Works fine with v3.0.8-x3

Bisect:
fail: v3.1.6-x6
fail: v3.1.0-x3
fail: v3.1.0-rc9 (rebuilt)
fail: v3.1.0-rc8 (rebuilt)
good: v3.0.8-x3

fun: looks like a v3.1 merge/change

@derkohai
Copy link
Author

derkohai commented Jan 5, 2012

Kernel v3.0.8-x3 works!

Thank you!

@RobertCNelson
Copy link
Owner

fail: v3.2.0-x1 (same omap3_l3_app_irq issue)
fail: v3.2.2-x3 (same omap3_l3_app_irq issue)

@pimartos
Copy link

fail: v3.2.17-x11

@RobertCNelson
Copy link
Owner

Hi fangstar, the easiest way is:

git checkout v3.0.8-x3 -b tmp

And it'll checkout the tag for that version...

But can you actually do a quick favor for me, as i really haven't had time to test my C4's in awhile with this bug.. Please do:

git checkout origin/v3.0.x -b tmp-v3.0.x

and run "./build_kernel.sh"/etc.. and basicly test "v3.0.42-x4" against this bug to see if it works exactly like v3.0.8-x3..

Thanks!!!

@JamesAng
Copy link

Hi Robert,

Is it possible to run the v3.0.8-x3 kernel with SGX on Gumstix Overo FE (OMAP3530) with Angstrom?

Thanks.

@RobertCNelson
Copy link
Owner

Ignoring the Overo part, yes linux is linux, so you could run it on Angstrom.. But back to the Overo part, it may or may not work, as that was never a tested target...

Regards,

@JamesAng
Copy link

JamesAng commented Oct 4, 2012

Hi Robert,

Negative result with v3.0.8-x3 kernel on Overo FE (OMAP3530-ES3.1)

I just tried running 'sgx_init_test' and it hardlocked the system.
The last output message on the console is:
Misc Info API: Query the SGX features from host driver
OK
<--[hardlock here]

Is there a specific suite of test applications to run through to ensure that the SGX is working?

@Risca
Copy link

Risca commented Oct 15, 2016

Sorry to revive such a old issue, but I'm also working on a C4 board trying to get SGX support running. What would be my best bet to get this working? v3.0.8-x3 branch?

@Risca
Copy link

Risca commented Oct 16, 2016

While going through the release notes for the TI gfxsdk I found that the latest version that has been validated on OMAP35x is the RN_4_06_00_01. That version is using a 2.6.37 kernel from the PSP (Linux) release 04.02.00.07. I assume that is my safest bet, or would it be better to try and use later kernels from @RobertCNelson repos?

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

5 participants