Enable camera in buildroot SDK
Posted: 2024-12-17 23:18
I have successfully flashed my Luckfox Pico Pro Max with the stock OS images, which are available on Google Drive. With this image installed, I am able to communicate with the camera.
I see files located in /userdata/ and /dev/video0 is populated.
However, when I use the SDK to do my own buildroot compilation and install, and then flash the image, the camera is not available.
Which packages must be enabled in: `./build.sh buildrootconfig` in order to enable the camera?
More details about buildroot `.config`:
```
$ cat sysdrv/source/buildroot/buildroot-2023.02.6/.config | grep "CAMERA"
BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS=y
BR2_PACKAGE_LIBCAMERA=y
BR2_PACKAGE_LIBCAMERA_V4L2=y
BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE=y
# BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI is not set
BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1=y
# BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE is not set
# BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO is not set
# BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC is not set
# BR2_PACKAGE_LIBCAMERA_COMPLIANCE is not set
# BR2_PACKAGE_LIBCAMERA_APPS is not set
```
```
cat sysdrv/source/buildroot/buildroot-2023.02.6/.config | grep "RKISP"
BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1=y
```
I see files located in /userdata/ and /dev/video0 is populated.
However, when I use the SDK to do my own buildroot compilation and install, and then flash the image, the camera is not available.
Which packages must be enabled in: `./build.sh buildrootconfig` in order to enable the camera?
More details about buildroot `.config`:
```
$ cat sysdrv/source/buildroot/buildroot-2023.02.6/.config | grep "CAMERA"
BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS=y
BR2_PACKAGE_LIBCAMERA=y
BR2_PACKAGE_LIBCAMERA_V4L2=y
BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE=y
# BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI is not set
BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1=y
# BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE is not set
# BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO is not set
# BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC is not set
# BR2_PACKAGE_LIBCAMERA_COMPLIANCE is not set
# BR2_PACKAGE_LIBCAMERA_APPS is not set
```
```
cat sysdrv/source/buildroot/buildroot-2023.02.6/.config | grep "RKISP"
BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1=y
```