Tiny Core Base > Raspberry Pi
libcamera
Juanito:
libcamera and libcamera-apps added to the armv* repos - note that piCore-13.1 is required.
Add the following to config.txt: to enable the camera:
--- Code: --- camera_auto_detect=0
dtoverlay=imx219
--- End code ---
Load libcamera-apps and then:
--- Code: ---sudo chown tc:staff /dev/media*
sudo chown tc:staff /dev/dma_heap/*
--- End code ---
Check things are OK with:
--- Code: ---libcamera-hello -n
libcamera-still -r -n -o test.jpg
--- End code ---
* tested with an RPi3
* RPi camera v2.1 used - a different dtoverlay will be required for other cameras
* there is a fix for /dev/media permissions in tc git
segfault:
Are there any official plans to upgrade the libcamera extension?
I just tested installed libcamera on piCore v14, which results in an error with libtiff.so.
I also just tested it withe the same hardware, but running piCore v13 and there it works fine,
using: camera_auto_detect=1
Machine: Raspberry Pi 2 Model B V1.1
Camera: picamera v2.1
Rich:
Hi segfault
I think libtiff.tcz needs to be changed to libtiff5.tcz in libcamera-apps.tcz.dep.
Try this:
--- Code: ---tce-load -wi libtiff5.tcz
--- End code ---
and let us know if that fixes the issue.
segfault:
--- Quote from: Rich on July 13, 2024, 11:03:16 AM ---
--- Code: ---tce-load -wi libtiff5.tcz
--- End code ---
and let us know if that fixes the issue.
--- End quote ---
Success. Yes that fixes the issue with libtiff. Yeay!!!!
The camera is still not working. Now I got another error.
Using the same config.txt camera config (which is a single line: camera_auto_detect=1) and same hardware (swiching SDCARD on device I get repeated and 100% reproduceability, so not likely HW issue), I did the following on both piCore v13 and v14:
--- Code: ---sudo chown tc:staff /dev/media*
sudo chown tc:staff /dev/dma_heap/*
export LIBCAMERA_LOG_LEVELS=0
libcamera-hello -n
--- End code ---
Then I compared the logs. The logs were first very similar, but on piCore v14 I get this error:
[0:08:32.444569804] [1699] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media1 found
[0:08:32.444826314] [1699] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: bcm2835-isp
[0:08:32.445415116] [1699] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRPi'
[0:08:32.445719543] [1699] DEBUG RPI raspberrypi.cpp:1163 Unable to acquire a Unicam instance
ERROR: *** no cameras available ***
While on piCore v13 I first get:
[0:04:48.718246712] [889] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: unicam
Then:
[0:04:48.718126556] [889] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media0 found
[0:04:48.718246712] [889] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: unicam
[0:04:48.718732285] [889] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRPi'
[0:04:48.718939004] [889] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "unicam"
[0:04:48.719118379] [889] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "bcm2835-isp"
[0:04:48.719868118] [889] DEBUG V4L2 v4l2_device.cpp:627 'imx219 10-0010': Control: Exposure (0x00980911)
So it seems as though on piCore v14 the software is unable to register unicam.
From what I gather it could be either kernel mismatch or some bad permission.
Im going to look into this tomorrow.
Rich:
Hi segfault
I changed libtiff.tcz to libtiff5.tcz in libcamera-apps.tcz.dep.
Seems a little odd to me TC13 finds it on /dev/media0 but TC14 is
looking at /dev/media1.
I'm not up on piCore or cameras but could this be related:
https://github.com/raspberrypi/libcamera/issues/44
Navigation
[0] Message Index
[#] Next page
Go to full version