# Prerequisites

Complete these preconditions before running the Python-based sample applications.

- In the terminal of the target device, run the following commands in a shell to create a directory:

mount -o remount,rw /usr
        Copy to clipboard

mkdir -p /etc/media/
        Copy to clipboard
- Ensure that the model and label files are available on the device. For instructions, see [Prerequisites](https://docs.qualcomm.com/doc/80-80021-50/topic/download-model-and-label-files.html).
- Rename the model and label files according to the application in use.
- In the terminal of the host computer, run the following command to push the files from the host computer to the target device:

scp <video.mp4> root@<IP address of target device>:/etc/media/
        Copy to clipboard
- In the terminal of the target device, run the following command to enable the camera:

> 
> 
> > 
> > 
> > echo -n "camx" > /var/data
> >         efivar -n 882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays -w -f /var/data
> >         efivar -n 882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays -p
> >         sync
> >         reboot
> >         Copy to clipboard
> 
> 
> 
> If you cannot locate the qtiqmmfsrc plugin, ensure that the camera server is running and clear the GStreamer cache using the following commands:
> 
> 
> 
> > 
> > 
> > ps -ef | grep cam-server
> >         Copy to clipboard
> > 
> > 
> > rm ~/.cache/gstreamer-1.0/registry.aarch64.bin
> >         Copy to clipboard

If you face issues with camera or display, see [Camera troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-17/troubleshooting.html) and [Display troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-18/debug.html).

See also

- [Camera Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-17/camera-overview.html)
- [Video Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-20/overview.html)
- [Audio Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-80021-16/overview.html)

Last Published: Mar 26, 2026

[Previous Topic
Run Python-based applications](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/python-sample-applications.md) [Next Topic
Camera encoding](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/camera-encode.md)