Altera_Forum
Honored Contributor
11 years agoOpenCL Work Flow on Sockit: system hangs when I do "source ./init_opencl.sh"
Hi,
I just got the OpenCL BSP for Sockit and tried to test the OpenCL work flow on this board. After I setup the environment parameters on my PC, I can get "aoc --list-boards" output "sockit". But when I burned the img to my sd card and try to do "source ./init_opencl.sh", the system hangs there, I cannot stop it via ctrl+c also, no response at all. I checked the init_opencl.sh file and runned the commands one by one, it seems "insmod $AOCL_BOARD_PACKAGE_ROOT/driver/aclsoc_drv.ko" caused this. I tried to recompile the linux kernel and linux device driver myself using "socfpga-3.13-rel14.0 git files. I followed the steps in this file "http://www.altera.com/literature/hb/opencl-sdk/ug_aocl_c5soc_devkit_platform.pdf". After the recompile, I copied zImage and regenerated aclsoc_drv.ko to my sd card. Now if i run "insmod aclsoc_drv.ko", the system hangs up again, the same as before. But if i try to insmod the old aclsoc_drv.ko file, the console says: aclsoc_drv: version magic '3.13.0-00298-g3c7cbb9-dirty SMP mod_unload ARMv7 p2v8' should be '3.13.0-00298-g3c7cbb9' Error: could not insert module aclsoc_drv.ko: Invalid module format. This means i generated the matched version kernel zImage and device driver. But still, what should i do then? Any ideas or comment? Or did i miss something? Thanks Qin