RobertCNelson / linux-dev

MIT License
150 stars 96 forks source link

uio_pruss support #37

Closed eliasbakken closed 9 years ago

RobertCNelson commented 9 years ago

Awesome!

eliasbakken commented 9 years ago

When do you rebuild the deb for the kernel and SGX?

eliasbakken commented 9 years ago

I can rebuild the SGX modules myself if I have the right repository. Is this the repo you are using for that? https://github.com/rcn-ee/ti-sgx

RobertCNelson commented 9 years ago

After building the kernel, you can use this branch: https://github.com/rcn-ee/ti-sgx/tree/ti-5.01.01.02

from src dir run: ../build-es8.sh

You'll have to tweak the cross compiler/etc

Regards,

eliasbakken commented 9 years ago

Good, exactly what I did, so then I'm the right track! I'm getting an error with reset_control_clear_reset, but I'll figure it out.

RobertCNelson commented 9 years ago

Oh you have to build with the defconfig-bone, just copy it into KERNEL/.config and rebuild. The mainline reset kernel logic doesn't work with sgx

RobertCNelson commented 9 years ago

It looks like you forgot to add:

/opt/github/linux-dev/patches/pru/0001-clean-up-errors.patch: No such file or directory
eliasbakken commented 9 years ago

Robert, quick question, should CONFIG_RESET_CONTROLLER be set or not? If it is not set, as it is in both defconfig-bone and my current config, pdata->deassert_reset is never assigned a function. What has been done here before?

Kind regards, -Elias

2015-04-10 20:57 GMT+02:00 Robert Nelson notifications@github.com:

It looks like you forgot to add:

/opt/github/linux-dev/patches/pru/0001-clean-up-errors.patch: No such file or directory

— Reply to this email directly or view it on GitHub https://github.com/RobertCNelson/linux-dev/pull/37#issuecomment-91651822 .

RobertCNelson commented 9 years ago

Just disable it, to didn't port it past 3.12..

eliasbakken commented 9 years ago

Ok, but it seems that the engine wont start without a reset. I'm only guessing here, but I'm getting a

/usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4)

which I'm thinking is related to the deassertion of the reset?

Kind regards, -Elias

2015-04-11 2:08 GMT+02:00 Robert Nelson notifications@github.com:

Just disable it, to didn't port it past 3.12..

— Reply to this email directly or view it on GitHub https://github.com/RobertCNelson/linux-dev/pull/37#issuecomment-91725038 .