2021-09-20 04:07 PM
It displays the error message "Failed to open /dev/stvmvl53l5"
If I run the test program in user mode it works fine.
2021-10-08 01:42 PM
Running in user mode is far and away the easiest way to do it.
Debugging kernel modules is a real pain.
But some devices (like cell-phones) do not allow user-level code to communicate with the I2C bus directly. This prevents user code which might have been downloaded from the AppStore from gaining access to eeproms and other sensitive data that might be on the I2C bus.
Our solution was to create a kernel module that user-level programs can call that translate your requests into I2C accesses.
So unless you are building a protected system, I would not bother with the Linux driver.
Now if you are a kernel developer and 'insmod' is something you do a lot, feel free to play with the kernel driver.
But it's not going to be easy.
Our Linux developers have verified they can do it, but that doesn't mean anyone can. (I can do it, but with a lot of help.)
In order to debug what might have gone wrong, I'm going to need a list of all the commands you issued up to the error.
I'm guessing a step got missed somewhere - either in our documentation or in your execution of the instructions.
Think a bit on if you really want the Linux kernel version.
And if you do. begin the procedure and send a listing of the transcript.
-john