how to install cmemk kernel module on beaglebone ai

133 views
Skip to first unread message

Christopher Hansen

unread,
Feb 14, 2020, 4:31:30 PM2/14/20
to BeagleBoard
I'm trying to run the opencl examples.  Where can I find the cmemk.ko module?


Stephan Böck

unread,
Feb 17, 2020, 3:43:02 AM2/17/20
to BeagleBoard


Am Freitag, 14. Februar 2020 22:31:30 UTC+1 schrieb Christopher Hansen:
I'm trying to run the opencl examples.  Where can I find the cmemk.ko module?

As far as I can tell, cmemk should be already running if you use one of these images: https://beagleboard.org/latest-images


Nevertheless, when I changed the kernel on my system, I had some issues getting cmemk running. For me running /opt/scripts/tools/update_kernel.sh fixed this. 

Stephan

Christopher Hansen

unread,
Feb 17, 2020, 8:53:49 PM2/17/20
to BeagleBoard
Thanks.  I was trying this one: Debian 10.0 2019-07-07 4GB SD IoT

Ugrading the kernel with /opt/scripts/tools/update_kernel.sh worked for me, but it still doesn't include the driver.  

Does this look right for the kernel version?  Is there any other way to get the cmemk.ko driver?

Chris

debian@BeagleBoard-X15:~$ uname -r
4.19.94-ti-r35

Robert Nelson

unread,
Feb 17, 2020, 10:12:10 PM2/17/20
to Beagle Board, hans...@gmail.com
On Mon, Feb 17, 2020 at 7:54 PM Christopher Hansen <hans...@gmail.com> wrote:
>
> Thanks. I was trying this one: Debian 10.0 2019-07-07 4GB SD IoT
>
> Ugrading the kernel with /opt/scripts/tools/update_kernel.sh worked for me, but it still doesn't include the driver.
>
> Does this look right for the kernel version? Is there any other way to get the cmemk.ko driver?
>
> Chris
>
> debian@BeagleBoard-X15:~$ uname -r
> 4.19.94-ti-r35

cmem was added to the v4.19.x-ti kernel around: Sep 25, 2019 (after 2019-07-07)

https://github.com/RobertCNelson/boot-scripts/commit/8f20cac93cbbec2ab705333a543903287ff9e7d4#diff-026364be61dc00428c22a7d18643d5c1

So... From:

/opt/scripts/

run "git pull"

Regards,


--
Robert Nelson
https://rcn-ee.com/

Christopher Hansen

unread,
Feb 18, 2020, 2:12:19 PM2/18/20
to BeagleBoard
That worked, but now I get a segmentation fault when I try to run the float_compute example:


debian@BeagleBoard-X15:/usr/share/ti/examples/opencl/float_compute$ sudo ./float_compute

This example computes y[i] = M[i] * x[i] + C on single precision floating point arrays of size 2097152
- Computation on the ARM is parallelized across the A15s using OpenMP.
- Computation on the DSP is performed by dispatching an OpenCL NDRange kernel across the compute units (C66x cores) in the compute device.

RunningSegmentation fault
debian@BeagleBoard-X15:/usr/share/ti/examples/opencl/float_compute$ 

Robert Nelson

unread,
Feb 18, 2020, 2:51:18 PM2/18/20
to Beagle Board, hans...@gmail.com
On Tue, Feb 18, 2020 at 1:12 PM Christopher Hansen <hans...@gmail.com> wrote:
>
> That worked, but now I get a segmentation fault when I try to run the float_compute example:
>
>
> debian@BeagleBoard-X15:/usr/share/ti/examples/opencl/float_compute$ sudo ./float_compute
>
> This example computes y[i] = M[i] * x[i] + C on single precision floating point arrays of size 2097152
> - Computation on the ARM is parallelized across the A15s using OpenMP.
> - Computation on the DSP is performed by dispatching an OpenCL NDRange kernel across the compute units (C66x cores) in the compute device.
>
> RunningSegmentation fault
> debian@BeagleBoard-X15:/usr/share/ti/examples/opencl/float_compute$

Switch to v4.14.x-ti, now that i'm back from vacation, i'm jumping
back into my work on v4.19.x-ti + opencl..
Reply all
Reply to author
Forward
0 new messages