c++ - Unable to run OpenCV code from beaglebone -
i trying run program using opencv in beaglebone black described @ end of link https://solarianprogrammer.com/2014/04/21/opencv-beaglebone-black-ubuntu/
i had compilation issues resolved using
g++ `pkg-config --cflags --libs opencv` test_2.cpp -o test_2
it compiles, when try run using
./test_2
i error:
cmem error: init: failed open /dev/cmem: 'no such file or directory'
the cmemk kernel module not appear installed.
commands such following run root install cmemk , allow opencl proceed properly.
for available cmem ddr block size: ~512mb: modprobe cmemk phys_start=0xa0000000 phys_end=0xc0000000 pools=1x536870912 allowoverlap=1
i not sure why getting this, , i've been unable resolve few days already. please guide me right direction.
regards
so, had same problem (running latest debian release on beaglebone site - 8.5).
i found link here - suggested these things:
for older images this: sudo apt-get update sudo apt-get upgrade sudo apt-get remove dkms --purge #get rid of dkms/etc.. cd /opt/scripts/tools/ git pull sudo ./update_kernel.sh sudo reboot cd /usr/share/ti/examples/opencl/float_compute/ sudo make sudo modprobe cmemk sudo ./float_compute
now, update_kernel.sh didn't work (grep breaks on last update-initramfs), tried installing initramfs-tools
, still didn't work... commented out. after rebooting, tried find opencvl/float_compute folder... didn't exist ran code , hoped best , worked.
so, suggestion do:
sudo apt-get update sudo apt-get upgrade sudo apt-get remove dkms --purge #get rid of dkms/etc.. cd /opt/scripts/tools/ git pull sudo apt-get install initramfs-tools
then edit update_kernel commenting out update-initramfs -uk ${latest_kernel}
line in third_party_final()
method (just add # in front of line). do:
sudo ./update_kernel.sh sudo reboot
installing initramfs-tools might not necessary, i'm not sure. have feeling actual solution remove dkms
or update of kernel, again, not sure. can doing of worked me.
Comments
Post a Comment