-
Follow https://libcamera.org/getting-started.html to install libcamera on your native machine.
-
Clone latest media_tree using:
git clone git://linuxtv.org/media_tree.git
-
Install virtme:
pip3 install --user git+https://github.com/ezequielgarcia/virtme.git
-
Compile Kernel with Virtme:
-
cd media_tree virtme-configkernel --defconfig
- Enable vimc/vivid/ etc as per requirement
- Enable CONFIG_DRM_VIRTIO_GPU=y in kernel config
- make -j8
-
-
Run virtme (on native machine)
- Use a variable to pass memory and CPUs to be used by QEMU to prevent Out of Memory error. Adjust the values accordingly.
export MEM_CPU="-m 2G -smp 2"
- Run virtme
where $KDIR is kernel directory's pathvirtme-run --graphics --kdir $KDIR --kopt="console=ttyS0" --qemu-opts $MEM_CPU -vga virtio -serial mon:stdio
- Use a variable to pass memory and CPUs to be used by QEMU to prevent Out of Memory error. Adjust the values accordingly.
-
To run qcam (in virtme):
QT_QPA_PLATFORM=linuxfb /usr/local/bin/qcam
Last active
June 15, 2020 09:35
-
-
Save KaairaGupta/848ac3b0988010e6903eba3a56648199 to your computer and use it in GitHub Desktop.
Steps to set up libcamera for dev (with latest media_master) using virtme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry I missed that, it defines the resources one uses for virtme. I'll edit it right away.
Thanks!