beagleboard / Latest-Images

Please use; https://git.beagleboard.org/beagleboard/Latest-Images
https://git.beagleboard.org/beagleboard/Latest-Images
MIT License
10 stars 11 forks source link

Hard coded path in /usr/bin/pvrsrvctl #105

Open 7-Core opened 1 year ago

7-Core commented 1 year ago

Using current Debian 11.x (Bullseye) TI EDGEAI (Xfce) Desktop Snapshot bbai64-debian-11.7-xfce-edgeai-arm64-2023-05-03-10gb.img.xz

root@BeagleBone:/lib/modules# pvrsrvctl --start Failed to load /lib/modules/5.10.140-00001-g69e7a81501b2/extra/pvrsrvkm.ko: No such file or directory

Creating the following symlinks gets my application running

root@BeagleBone:/lib/modules# ls -l total 4 lrwxrwxrwx 1 root root 22 May 16 23:54 5.10.140-00001-g69e7a81501b2 -> 5.10.168-ti-arm64-r102 drwxr-xr-x 4 root root 4096 May 16 23:49 5.10.168-ti-arm64-r102

root@BeagleBone:/lib/modules/5.10.168-ti-arm64-r102/extra# ls -l total 4 drwxr-xr-x 2 root root 4096 May 3 14:33 j721e lrwxrwxrwx 1 root root 17 May 16 23:53 pvrsrvkm.ko -> j721e/pvrsrvkm.ko

(Correct output below) root@BeagleBone:/lib/modules/5.10.168-ti-arm64-r102/extra# pvrsrvctl --start Using default driver configuration (no powervr.ini present)

pvrsrvctl is required for the Imagination University AI Demos.

Shoutout and thanks for the help in the live chat channel.

RobertCNelson commented 1 year ago

Oh fun, so Imagination built pvrsrvkm.ko against, 5.10.140-00001-g69e7a81501b2 a non-production random build..

i need to take a look at their docs again..

7-Core commented 1 year ago

That might be true, but I will point out there is a pvrsrvkm.ko in the *r102/ (current kernel version module) directory which seems to work once I create the symlinks to where pvrsrvctl is looking.

It is the loader /usr/bin/pvrsrvctl that seems to be looking in the wrong place.

[Disclaimer - not an expert, just trying]