Hey Robert, Cool. Thanks.
However, I now end up with a different error: NOTE: I did an upgrade after the update. Also, the update_kernel bumped my kernel to r131 from r130. info: you are running: [4.14.108-ti-r130], latest is: [4.14.108-ti-r131] updating... The result of removing and installing the cmem modules: debian@beaglebone:~$ sudo apt remove ti-cmem-4.15.00.02-modules-`uname -r` --purge Reading package lists... Done Building dependency tree Reading state information... Done Package 'ti-cmem-4.15.00.02-modules-4.14.108-ti-r131' is not installed, so not removed The following packages were automatically installed and are no longer required: bb-beaglebone-io-installer bb-johnny-five-installer ti-c6000-cgt-v8.2.x-installer Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. debian@beaglebone:~$ sudo apt install ti-cmem-4.16.00.00-modules-`uname -r` Reading package lists... Done Building dependency tree Reading state information... Done ti-cmem-4.16.00.00-modules-4.14.108-ti-r131 is already the newest version (1stretch). The following packages were automatically installed and are no longer required: bb-beaglebone-io-installer bb-johnny-five-installer ti-c6000-cgt-v8.2.x-installer Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Error from TIDL classification example: Started /var/lib/cloud9/: classification.tidl.cpp File path: /var/lib/cloud9/BeagleBone/AI/tidl File: /var/lib/cloud9/BeagleBone/AI/tidl/classification.tidl.cpp Arguments: File name: classification.tidl.cpp File extension: cpp File base name: classification.tidl Packages: ~.c9/packages Project path: /var/lib/cloud9/ Project name: projectname Hostname: localhost Hostname path: https://undefined/BeagleBone/AI/tidl/classification.tidl.cpp URL: http://localhost Port: 8080 IP: 0.0.0.0 Command: BeagleBone/AI/tidl/classification.tidl.cpp Python: python3 Python path: /usr/lib/python3.7/dist-packages:/usr/local/lib/python3.7/dist-packages /var/lib/cloud9/common/Makefile:28: MODEL=BeagleBoard.org_BeagleBone_AI,TARGET=classification.tidl,COMMON=/var/lib/cloud9/common /var/lib/cloud9/common/Makefile:147: GEN_DIR=/tmp/cloud9-examples,CHIP=am57xx,PROC=tidl,PRUN=,PRU_DIR=,EXE=.so CXX classification.tidl.cpp LD /tmp/cloud9-examples/classification.tidl.o ti-mct-heap-check -c sudo mjpg_streamer -i "input_opencv.so -r 640x480 --filter ./classification.tidl.so" -o "output_http.so -p 8080 -w /usr/share/mjpg-streamer/www" [sudo] password for debian: MJPG Streamer Version.: 2.0 i: device........... : default i: Desired Resolution: 640 x 480 Unable to stop the stream: Invalid argument i: VideoCapture::open() failed /var/lib/cloud9/common/Makefile:169: recipe for target 'start' failed make: *** [start] Error 1 rm /tmp/cloud9-examples/classification.tidl.o Process exited with code: 2 Cheers, Jon On Tuesday, March 24, 2020 at 3:40:47 PM UTC-7, RobertCNelson wrote: > > On Tue, Mar 24, 2020 at 5:31 PM Jon Morss <jonn...@gmail.com <javascript:>> > wrote: > > > > After recently upgrading my BBAI via the link below, the Cloud9 TIDL > classification example fails for CMEM error. > > Link used to upgrade BBAI > > https://beagleboard.org/upgrade > > > CMEM Error: init: major version mismatch between interface and driver. > > CMEM Error: needs driver version 0x4160000, got 0x4150002 > > TIOCL FATAL: The cmemk kernel module is not installed. Consult the > OpenCL UserGuide at > http://software-dl.ti.com/mctools/esd/docs/opencl/index.html > > Yeap, I've been busy upgrading both Debian Stretch & Buster to TI's > sdk 06.02.00.81 > > https://github.com/beagleboard/Latest-Images/issues/11 > > To fix your problem, two fixes: > > Fix 1: update "./update_kernel.sh" so stretch uses cmem 4.16.00.00 on > kernel modules: > > https://github.com/RobertCNelson/boot-scripts/commit/43e2e0e554b10d779fdbc730bb0d5d197e467d02 > > > Run: > > cd /opt/scripts/tools/ > git pull > > Fix 2: switch your current version of cmem: (the kernel update script > will fix it going forward, but this will fix your version today) > > Run: > > sudo apt update > sudo apt remove ti-cmem-4.15.00.02-modules-`uname -r` --purge > sudo apt install ti-cmem-4.16.00.00-modules-`uname -r` > sudo depmod -a > sudo update-initramfs -uk `uname -r` > > and reboot.. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/1ef9bf14-ed1a-49dd-8b0a-3a5525eb7c00%40googlegroups.com.