Stache Cam with BeagleBone 3.1MP Camera

Good afternoon.

I recently downloaded the stache cam code from the web. I have a Beaglbone black and 3.1 MP Camera Cape. I’ve managed to get the code to compile (I wanted to cross compile from my Linux environment, but that is a future project), but when I run the compiled stache cam code, this is what I get:

VIDIOC_REQBUFS: Cannot allocate memory
munmap: Invalid argument

munmap: Invalid argument

munmap: Invalid argument

munmap: Invalid argument

Unable to stop the stream.: Bad File Descriptor

munmap: Invalid argument

munmap: Invalid argument

munmap: Invalid argument

munmap: Invalid argument

Floating Point Exception

I don’t see in the stache cam code where there is a link to a specific device for the camera. If I try running the code passing in a 0 or 1 (which I assume represents the camera in the system), I receive the error message “Could not load 0” or “Could not load 1”

I’m thinking there is something very simple I have wrong, either with the driver for the camera or the stache cam code. Any suggestions?