Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.1 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.1 KB

rpi-vcsm

A Python library for the VCSM (VideoCore Shared Memory service) and VCSM-CMA (contiguous memory allocator) kernel drivers of Raspberry Pi.

Requirements

This driver opens /dev/vcsm-cma or /dev/vcsm, which are the official devices for the VCSM and VCSM-CMA, respectively. The owner of the devices are usually root.video, and the permission is set as rw-rw----, so you need to belong to video group or need to be root user. If you choose the former, run the command below (re-login to take effect).

sudo usermod --append --groups video $USER

Installation

$ sudo apt update
$ sudo apt install python3-pip git
$ python3 -m pip install --user -U pip setuptools wheel
$ python3 -m pip install --user git+https://github.com/Idein/rpi-vcsm.git

Testing

$ sudo apt update
$ sudo apt install python3-pip git
$ python3 -m pip install --user -U pip setuptools wheel
$ git clone https://github.com/Idein/rpi-vcsm.git
$ cd rpi-vcsm/
$ python3 setup.py egg_info
$ python3 -m pip install --user -r rpi_vcsm.egg-info/requires.txt
$ python3 -m unittest -v tests/*.py