All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v6 0/1] package/libcamera-apps: new package
@ 2022-02-11 15:06 Peter Seiderer
  2022-02-11 15:06 ` [Buildroot] [PATCH v6 1/1] " Peter Seiderer
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2022-02-11 15:06 UTC (permalink / raw)
  To: buildroot

- patch on top of latest libcamera version bump ([1])

- tested with test-pkg and the following test config

    BR2_PACKAGE_MESA3D=y
    BR2_PACKAGE_MESA3D_GALLIUM_DRIVER=y
    BR2_PACKAGE_MESA3D_DRIVER=y
    BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
    BR2_PACKAGE_MESA3D_GBM=y
    BR2_PACKAGE_MESA3D_OPENGL_EGL=y
    BR2_PACKAGE_XORG7=y
    BR2_PACKAGE_XLIB_LIBX11=y
    BR2_PACKAGE_LIBEPOXY=y
    BR2_PACKAGE_LIBDRM=y
    BR2_PACKAGE_BOOST=y
    BR2_PACKAGE_BOOST_PROGRAM_OPTIONS=y
    BR2_PACKAGE_LIBEXIF=y
    BR2_PACKAGE_JPEG=y
    BR2_PACKAGE_TIFF=y
    BR2_PACKAGE_LIBPNG=y
    BR2_PACKAGE_LIBCAMERA=y
    BR2_PACKAGE_LIBCAMERA_V4L2=y

- runtime tested on RPi3-b-plus/Pi-Camaera-v2.1) with the followig defconfig
  (raspberrypi3_64_defconfig based)

    BR2_aarch64=y
    BR2_ARM_FPU_VFPV4=y
    BR2_OPTIMIZE_3=y
    BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
    BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
    BR2_PACKAGE_GLIBC_UTILS=y
    BR2_GCC_VERSION_11_X=y
    BR2_TOOLCHAIN_BUILDROOT_CXX=y
    BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
    BR2_SYSTEM_DHCP="eth0"
    BR2_GENERATE_LOCALE="en_US"
    BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi3-64/post-build.sh"
    BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi3-64/post-image.sh"
    BR2_LINUX_KERNEL=y
    BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
    BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,0b54dbda3cca2beb51e236a25738784e90853b64)/linux-0b54dbda3cca2beb51e236a25738784e90853b64.tar.gz"
    BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
    BR2_LINUX_KERNEL_DTS_SUPPORT=y
    BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2837-rpi-3-b"
    BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
    BR2_PACKAGE_STRACE=y
    BR2_PACKAGE_MTOOLS=y
    BR2_PACKAGE_DEJAVU=y
    BR2_PACKAGE_MESA3D=y
    BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4=y
    BR2_PACKAGE_MESA3D_OPENGL_ES=y
    BR2_PACKAGE_QT5=y
    BR2_PACKAGE_QT5BASE_EXAMPLES=y
    BR2_PACKAGE_QT5BASE_OPENGL_LIB=y
    BR2_PACKAGE_QT5BASE_EGLFS=y
    BR2_PACKAGE_QT5BASE_DEFAULT_QPA="eglfs"
    BR2_PACKAGE_QT5BASE_FONTCONFIG=y
    BR2_PACKAGE_QT5BASE_HARFBUZZ=y
    BR2_PACKAGE_QT5BASE_GIF=y
    BR2_PACKAGE_QT5BASE_JPEG=y
    BR2_PACKAGE_QT5BASE_PNG=y
    BR2_PACKAGE_QT5QUICKCONTROLS=y
    BR2_PACKAGE_QT5QUICKCONTROLS2=y
    BR2_PACKAGE_RPI_FIRMWARE=y
    BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
    BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI=y
    BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi3-64/config_3_64bit.txt"
    BR2_PACKAGE_LIBXKBCOMMON=y
    BR2_PACKAGE_LIBCAMERA_V4L2=y
    BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI=y
    BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1=y
    BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE=y
    BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO=y
    BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC=y
    BR2_PACKAGE_LIBCAMERA_COMPLIANCE=y
    BR2_PACKAGE_LIBCAMERA_APPS=y
    BR2_PACKAGE_DDRESCUE=y
    BR2_TARGET_ROOTFS_EXT2=y
    BR2_TARGET_ROOTFS_EXT2_4=y
    BR2_TARGET_ROOTFS_EXT2_SIZE="384M"
    # BR2_TARGET_ROOTFS_TAR is not set
    BR2_PACKAGE_HOST_DOSFSTOOLS=y
    BR2_PACKAGE_HOST_GENIMAGE=y
    BR2_PACKAGE_HOST_MTOOLS=y

  and the additional /boot/config.txt entries

    dtoverlay=vc4-kms-v3d           
    dtoverlay=imx219

  and the followig change in the kernel config to fix imx219 camera
  detection ('imx219 10-0010: failed to get regulators')

    @@ -3485,7 +3485,7 @@
 
     CONFIG_REGULATOR=y
     # CONFIG_REGULATOR_DEBUG is not set
    -# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
    +CONFIG_REGULATOR_FIXED_VOLTAGE=y
     # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
     # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
     # CONFIG_REGULATOR_88PG86X is not set

  and the following libcamera patch to disable the signature check
  (see [2] and [3] for details)

    diff --git a/src/libcamera/ipa_manager.cpp b/src/libcamera/ipa_manager.cpp
    index ad05b9c9..66d4ea48 100644
    --- a/src/libcamera/ipa_manager.cpp
    +++ b/src/libcamera/ipa_manager.cpp
    @@ -302,6 +302,9 @@ std::unique_ptr<IPAProxy> IPAManager::createIPA(PipelineHandler *pipe,
     
     bool IPAManager::isSignatureValid([[maybe_unused]] IPAModule *ipa) const
     {
    +#if 1
    +	return true;
    +#else
     #if HAVE_IPA_PUBKEY
     	File file{ ipa->path() };
     	if (!file.open(File::ReadOnly))
    @@ -321,6 +324,7 @@ bool IPAManager::isSignatureValid([[maybe_unused]] IPAModule *ipa) const
     #else
     	return false;
     #endif
    +#endif
     }
     
     } /* namespace libcamera */


[1] https://patchwork.ozlabs.org/project/buildroot/patch/20220211112245.1357817-1-kieran.bingham@ideasonboard.com/
[2] https://lists.buildroot.org/pipermail/buildroot/2020-June/284963.html
[3] http://lists.busybox.net/pipermail/buildroot/2021-January/302373.html


Peter Seiderer (1):
  package/libcamera-apps: new package

 DEVELOPERS                                    |  1 +
 package/Config.in                             |  1 +
 ...ror-and-Wfatal-errors-compiler-comma.patch | 37 +++++++++++++++
 package/libcamera-apps/Config.in              | 30 ++++++++++++
 package/libcamera-apps/libcamera-apps.hash    |  3 ++
 package/libcamera-apps/libcamera-apps.mk      | 46 +++++++++++++++++++
 6 files changed, 118 insertions(+)
 create mode 100644 package/libcamera-apps/0001-cmake-remove-Werror-and-Wfatal-errors-compiler-comma.patch
 create mode 100644 package/libcamera-apps/Config.in
 create mode 100644 package/libcamera-apps/libcamera-apps.hash
 create mode 100644 package/libcamera-apps/libcamera-apps.mk

-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-12 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 15:06 [Buildroot] [PATCH v6 0/1] package/libcamera-apps: new package Peter Seiderer
2022-02-11 15:06 ` [Buildroot] [PATCH v6 1/1] " Peter Seiderer
2022-02-12 17:24   ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.