Open YuryAlkevich opened 7 years ago
This is fixed in the am33x-v4.11 branch
Regards,
Thank you for the response. The script sgx_build_modules.sh works fine on the am33x-v4.11 branch, but I've encountered a new problem now. I can't insmod the module:
insmod pvrsrvkm.ko [ 100.552555] pvrsrvkm: loading out-of-tree module taints kernel. [ 100.560392] pvrsrvkm: section 3 reloc 482 sym 'mutex_unlock': relocation 10 out of range (0xbf80294a -> 0xc084c009) insmod: can't insert 'pvrsrvkm.ko': invalid module format
modinfo pvrsrvkm.ko filename: pvrsrvkm.ko author: Imagination Technologies Ltd. gpl-support@imgtec.com license: Dual MIT/GPL alias: of:NTCti,sgxC alias: of:NT*Cti,sgx depends:
vermagic: 4.11.4-bone2 mod_unload modversions ARMv7 thumb2 p2v8
The problem doesn't relate to sgx. So the issue may be actually closed. But GFX_5.01.01.02_es8.x.tar.gz archive contains wrong *.ko's. So I had to copy them from "ignore/ti-sdk-pvr/Graphics_SDK/gfx_rel_es8.x". Also the error mentioned above doesn't happen when I load module again right after the first try. But I still don't know why.
Hello, I'm using am33x-v4.9 branch of the repo and trying to build sgx modules. But the script sgx_build_modules.sh ends up with the following errors:
A script for building a kernel works fine. First error I've resolved with the following line of code
psInfo->iNumPagesMapped = get_user_pages_remote(current, current->mm, uStartAddr, psInfo->iNumPages, FOLL_WRITE, psInfo->ppsPages, NULL);
But I don't know what to do with the rest. Could someone help with that problem?