Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Camera module 3 on Raspberry Pi 5

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

Camera module 3 on Raspberry Pi 5

  • Quote

Post by costel78 » Sat May 31, 2025 4:57 pm

Can not use a Camera module 3 on custom kernel, Gentoo, of course.

Dmesg diff between Raspberry Pi OS and Gentoo is:

Code: Select all

[    6.977321] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch0] node id 0 successfully as /dev/video0
[    6.984921] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-embedded] node id 1 successfully as /dev/video1
[    6.985171] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch2] node id 2 successfully as /dev/video2
[    6.985714] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch3] node id 3 successfully as /dev/video3
[    6.986053] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image0] node id 4 successfully as /dev/video4
[    6.986211] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image1] node id 5 successfully as /dev/video5
[    6.986332] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_stats] node id 6 successfully as /dev/video6
[    6.986674] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_config] node id 7 successfully as /dev/video7
This is the common output:

Code: Select all

[    0.025757] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.025780] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.025936] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.025961] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.342293] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.351288] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.351304] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.691370] rp1-cfe 1f00110000.csi: bcm2712_iommu_of_xlate: MMU 1000005280.iommu
[    0.691374] rp1-cfe 1f00110000.csi: bcm2712_iommu_probe_device: MMU 1000005280.iommu
[    0.691378] rp1-cfe 1f00110000.csi: bcm2712_iommu_device_group: MMU 1000005280.iommu
[    0.691382] rp1-cfe 1f00110000.csi: Adding to iommu group 2
[    0.691385] rp1-cfe 1f00110000.csi: bcm2712_iommu_attach_dev: MMU 1000005280.iommu
[    0.691700] rp1-cfe 1f00110000.csi: DW dphy Host HW v1.20
[    0.691706] rp1-cfe 1f00110000.csi: PiSP FE HW v0.1
[    0.691781] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.691802] rp1-cfe 1f00110000.csi: Using sensor imx708 for capture
From Gentoo kernel config:

Code: Select all

zcat /proc/config.gz | grep 'RP1\|CFE\|V4L\|I2C'
CONFIG_REGMAP_I2C=y
CONFIG_FIRMWARE_RP1=y
CONFIG_RP1_PIO=y
CONFIG_WS2812_PIO_RP1=y
# CONFIG_SENSORS_LIS3_I2C is not set
# I2C support
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y
# Multiplexer I2C Chip support
CONFIG_I2C_ARB_GPIO_CHALLENGE=y
CONFIG_I2C_MUX_GPIO=y
CONFIG_I2C_MUX_GPMUX=y
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
CONFIG_I2C_MUX_PINCTRL=y
CONFIG_I2C_MUX_REG=y
CONFIG_I2C_DEMUX_PINCTRL=y
# CONFIG_I2C_MUX_MLXCPLD is not set
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_ALGOBIT=y
# I2C Hardware Bus support
CONFIG_I2C_CCGX_UCSI=y
CONFIG_I2C_BCM2708=y
CONFIG_I2C_BCM2708_BAUDRATE=100000
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
# I2C system bus drivers (mostly embedded / system-on-chip)
CONFIG_I2C_BCM2835=y
CONFIG_I2C_BRCMSTB=y
CONFIG_I2C_CADENCE=y
# CONFIG_I2C_CBUS_GPIO is not set
CONFIG_I2C_DESIGNWARE_CORE=y
CONFIG_I2C_DESIGNWARE_SLAVE=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_PCI=y
# CONFIG_I2C_EMEV2 is not set
CONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set
# CONFIG_I2C_HISI is not set
# CONFIG_I2C_NOMADIK is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_RK3X is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_THUNDERX is not set
# CONFIG_I2C_XILINX is not set
# External I2C/SMBus adapter drivers
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_CP2615 is not set
# CONFIG_I2C_PCI1XXXX is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
# Other I2C/SMBus bus drivers
# CONFIG_I2C_VIRTIO is not set
# end of I2C Hardware Bus support
# CONFIG_I2C_STUB is not set
CONFIG_I2C_SLAVE=y
CONFIG_I2C_SLAVE_EEPROM=y
CONFIG_I2C_SLAVE_TESTUNIT=y
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
CONFIG_PINCTRL_MCP23S08_I2C=y
CONFIG_PINCTRL_RP1=y
# I2C GPIO expanders
# end of I2C GPIO expanders
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_NCT6775_I2C is not set
# CONFIG_SENSORS_OCC_P8_I2C is not set
CONFIG_SENSORS_RP1_ADC=y
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CS42L43_I2C is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_RK8XX_I2C is not set
CONFIG_MFD_SIMPLE_MFD_I2C=y
CONFIG_STMPE_I2C=y
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS6594_I2C is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_CS40L50_I2C is not set
CONFIG_MFD_RP1=y
# CONFIG_MFD_RSMU_I2C is not set
CONFIG_VIDEO_V4L2_I2C=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
CONFIG_V4L2_MEM2MEM_DEV=y
CONFIG_V4L2_FWNODE=y
CONFIG_V4L2_ASYNC=y
CONFIG_VIDEO_EM28XX_V4L2=y
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_V4L_MEM2MEM_DRIVERS=y
CONFIG_VIDEO_RP1_CFE=y
CONFIG_V4L_TEST_DRIVERS=y
CONFIG_VIDEO_V4L2_TPG=y
CONFIG_VIDEOBUF2_V4L2=y
CONFIG_VIDEO_IR_I2C=y
CONFIG_VIDEO_I2C=y
# CONFIG_DVB_AU8522_V4L is not set
# I2C encoder or helper chips
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
# CONFIG_DRM_I2C_ADV7511 is not set
CONFIG_DRM_RP1_DSI=y
CONFIG_DRM_RP1_DPI=y
CONFIG_DRM_RP1_VEC=y
CONFIG_SND_RP1_AUDIO_OUT=y
CONFIG_SND_SOC_I2C_AND_SPI=y
# CONFIG_SND_SOC_AD193X_I2C is not set
# CONFIG_SND_SOC_ADAU1372_I2C is not set
# CONFIG_SND_SOC_ADAU1761_I2C is not set
# CONFIG_SND_SOC_ADAU7118_I2C is not set
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_I2C is not set
# CONFIG_SND_SOC_CS35L56_I2C is not set
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS4271_I2C is not set
# CONFIG_SND_SOC_CS42XX8_I2C is not set
# CONFIG_SND_SOC_CS530X_I2C is not set
# CONFIG_SND_SOC_ES8328_I2C is not set
# CONFIG_SND_SOC_MAX98373_I2C is not set
# CONFIG_SND_SOC_PCM1789_I2C is not set
# CONFIG_SND_SOC_PCM179X_I2C is not set
# CONFIG_SND_SOC_PCM186X_I2C is not set
# CONFIG_SND_SOC_PCM3060_I2C is not set
# CONFIG_SND_SOC_PCM3168A_I2C is not set
# CONFIG_SND_SOC_PCM512x_I2C is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
CONFIG_SND_SOC_WM8731_I2C=y
# CONFIG_SND_SOC_WM8804_I2C is not set
CONFIG_I2C_HID=y
CONFIG_I2C_HID_OF=y
# CONFIG_I2C_HID_OF_ELAN is not set
# CONFIG_I2C_HID_OF_GOODIX is not set
CONFIG_I2C_HID_CORE=y
# I2C RTC drivers
CONFIG_RTC_I2C_AND_SPI=y
# SPI and I2C RTC drivers
CONFIG_COMMON_CLK_RP1=y
CONFIG_COMMON_CLK_RP1_SDIO=y
CONFIG_MBOX_RP1=y
CONFIG_PWM_PIO_RP1=y
CONFIG_PWM_RP1=y
Does somebody know what I am missing from kernel config ?

Thank you!
Sorry for my English. I'm still learning this language.
Top
gentoo_ram
Guru
Guru
Posts: 528
Joined: Thu Oct 25, 2007 10:04 pm
Location: San Diego, California USA

  • Quote

Post by gentoo_ram » Tue Jun 03, 2025 9:32 pm

What kernel are you using? Are you using the Raspberry Pi kernel sources at https://github.com/raspberrypi/linux.git ? The default for RPi 5 would be "make bcm2835_defconfig" in that tree. I personally use the config for the RPi 4 ("make bcm2709_defconfig") and use the same kernel on both RPi 4 and 5. I started with the RPi 4 config and modified it to add more features I wanted in my Gentoo install on RPi 4/5. Make sure you get the device trees (overlays directory) and the bcm2712-rpi-5-b.dtb in /boot.
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Thu Jun 05, 2025 7:26 pm

Sorry, I haven't had time in the last days for this project.
Tested with boot folder, /lib/modules and firmware from Raspberry Pi OS, but there were errors:

Code: Select all

platform rp1_firmware: deferred probe pending: (reason unknown)
platform 1f00178000.pio: deferred probe pending: rp1-pio: failed to find RP1 firmware driver
Yes, the kernel is compiled from official Raspberry Pi Kernel sources. Will pursue your suggestion and start from a scratch config.
Thank you!
Sorry for my English. I'm still learning this language.
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Sat Jun 07, 2025 4:31 pm

Have compiled kernel with bcm2712_defconfig and video devices are there:

Code: Select all

[    0.061147] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.061170] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.061326] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.061351] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.553836] rp1 0002:01:00.0: bar0 len 0x4000, start 0x1f00410000, end 0x1f00413fff, flags, 0x40200
[    0.553838] rp1 0002:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
[    0.553847] rp1 0002:01:00.0: enabling device (0000 -> 0002)
[    0.554454] rp1 0002:01:00.0: chip_id 0x20001927
[    0.558207] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.558583] genirq: irq_chip rp1_irq_chip did not update eff. affinity mask of irq 109
[    0.571537] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.571556] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    1.394743] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
[    1.424607] rp1-pio 1f00178000.pio: Created instance as pio0
[    1.4649[    0.061147] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.061170] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.061326] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.061351] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    0.553836] rp1 0002:01:00.0: bar0 len 0x4000, start 0x1f00410000, end 0x1f00413fff, flags, 0x40200
[    0.553838] rp1 0002:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
[    0.553847] rp1 0002:01:00.0: enabling device (0000 -> 0002)
[    0.554454] rp1 0002:01:00.0: chip_id 0x20001927
[    0.558207] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.558583] genirq: irq_chip rp1_irq_chip did not update eff. affinity mask of irq 109
[    0.571537] /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
[    0.571556] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    1.394743] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55
[    1.424607] rp1-pio 1f00178000.pio: Created instance as pio0
[    1.464930] rp1-cfe 1f00110000.csi: bcm2712_iommu_of_xlate: MMU 1000005280.iommu
[    1.464936] rp1-cfe 1f00110000.csi: bcm2712_iommu_probe_device: MMU 1000005280.iommu
[    1.464944] rp1-cfe 1f00110000.csi: bcm2712_iommu_device_group: MMU 1000005280.iommu
[    1.464949] rp1-cfe 1f00110000.csi: Adding to iommu group 2
[    1.464953] rp1-cfe 1f00110000.csi: bcm2712_iommu_attach_dev: MMU 1000005280.iommu
[    1.465309] rp1-cfe 1f00110000.csi: DW dphy Host HW v1.20
[    1.465321] rp1-cfe 1f00110000.csi: PiSP FE HW v0.1
[    1.467049] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@88000/imx708@1a
[    1.644040] rp1-cfe 1f00110000.csi: Using sensor imx708 for capture
[    1.644145] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch0] node id 0 successfully as /dev/video0
[    1.644175] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-embedded] node id 1 successfully as /dev/video1
[    1.647435] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch2] node id 2 successfully as /dev/video2
[    1.648802] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch3] node id 3 successfully as /dev/video3
[    1.650779] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image0] node id 4 successfully as /dev/video4
[    1.650814] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image1] node id 5 successfully as /dev/video5
[    1.650834] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_stats] node id 6 successfully as /dev/video6
[    1.651140] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_config] node id 7 successfully as /dev/video7

Code: Select all

libcamera-hello --list-cameras
No cameras available!
Still, no camera. Right now, the dmesg output between Gentoo and Raspberry Pi OS are, except timing, the same.
What else could be ?
Sorry for my English. I'm still learning this language.
Top
Ralphred
l33t
l33t
Posts: 822
Joined: Tue Dec 31, 2013 11:52 am

  • Quote

Post by Ralphred » Sat Jun 07, 2025 7:04 pm

You have
dtoverlay=imx708
in your config? It's worth checking the overlay exists too...
From https://www.raspberrypi.com/documentati ... amera-apps
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Sun Jun 08, 2025 11:49 am

Tested with every variant: camera_auto_detect=1, dtoverlay=imx708 and nothing regarding camera in config.txt.
Sorry for my English. I'm still learning this language.
Top
Ralphred
l33t
l33t
Posts: 822
Joined: Tue Dec 31, 2013 11:52 am

  • Quote

Post by Ralphred » Sun Jun 08, 2025 12:49 pm

costel78 wrote:Tested with every variant: camera_auto_detect=1, dtoverlay=imx708 and nothing regarding camera in config.txt.
camera_auto_detect=1 is the default, so you have to you have to pair dtoverlay=imx708 with camera_auto_detect=0.
This is quite odd as cam3 is like over 2 years old, have you pulled any older pre-built kernels to check for a regression?
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Sun Jun 08, 2025 2:00 pm

Code: Select all

vclog -m
005940.107: *** Restart logging
005963.532: Initial voltage 800000 temp 38929
006164.130: avs_2712: AVS pred 8839 883900 temp 40577
006167.731: vpred 883 mV +0
006975.777: FB framebuffer_swap 1
006995.156: Select resolution HDMI0/2 hotplug 1 max_mode 2
007011.583: HDMI0 edid block 0 offset 0
007013.966: 00ffffffffffff004c2d76714e575843
007019.639: 04200103804024782a6115ad5045a426
007025.311: 0e5054bfef80714f810081c081809500
007030.984: a9c0b300010108e80030f2705a80b058
007036.657: 8a0078682100001e000000fd0030901e
007042.330: ff8f000a202020202020000000fc004c
007048.003: 53323841473730304e0a2020000000ff
007053.676: 0048345a543130313233300a20200387
007071.731: HDMI0 edid block 1 offset 128
007074.285: f0027000000000000000000000000000
007079.958: 00000000000000000000000000000000
007085.631: 00000000000000000000000000000000
007091.304: 00000000000000000000000000000000
007096.977: 00000000000000000000000000000000
007102.649: 00000000000000000000000000000000
007108.322: 00000000000000000000000000000000
007113.995: 0000000000000000000000000000009e
007132.042: HDMI0 edid block 2 offset 256
007134.600: 00ffffffffffff004c2d76714e575843
007140.272: 04200103804024782a6115ad5045a426
007145.945: 0e5054bfef80714f810081c081809500
007151.618: a9c0b300010108e80030f2705a80b058
007157.291: 8a0078682100001e000000fd0030901e
007162.964: ff8f000a202020202020000000fc004c
007168.636: 53323841473730304e0a2020000000ff
007174.309: 0048345a543130313233300a20200387
007192.353: HDMI0 edid block 3 offset 384
007194.906: f0027000000000000000000000000000
007200.579: 00000000000000000000000000000000
007206.252: 00000000000000000000000000000000
007211.924: 00000000000000000000000000000000
007217.597: 00000000000000000000000000000000
007223.270: 00000000000000000000000000000000
007228.943: 00000000000000000000000000000000
007234.616: 0000000000000000000000000000009e
007240.302: HDMI0: best-mode 1 (limit 2) 1280x720 60 Hz CEA modes 10000000000000000000000000000000 extensions 3
007251.813: Select resolution HDMI1/2 hotplug 0 max_mode 2
007258.736: FB0 disp 0 max-fb 2 1280x720 stride 2560 base 0x3fa00000
007276.254: dtb_file 'bcm2712-rpi-5-b.dtb'
007382.057: Found camera 'imx708' on port 1, unicam_port 1
007459.417: Loaded overlay 'imx708'
007585.223: dtparam: i2c_arm=on
007600.587: dtparam: spi=on
007660.379: Loaded overlay 'vc4-kms-v3d-pi5'
007780.938: Loaded overlay 'w1-gpio'
007783.073: dtparam: uart0=on
007854.506: Loaded overlay 'dwc2'
007856.367: dtparam: dr_mode=host
007861.252: dtparam: nvme=true
007875.238: dtparam: pciex1_gen=3
007885.855: dtparam: pwr_led_trigger=default-on
007905.281: dtparam: pwr_led_activelow=off
007923.752: dtparam: act_led_trigger=default-on
007942.970: dtparam: act_led_activelow=off
007961.274: dtparam: eth_led0=4
007977.662: dtparam: eth_led1=4
007993.609: dtparam: rtc_bbat_vchg=3000000
008058.154: Loaded overlay 'dwc2'
008060.020: dtparam: dr_mode=host
008064.909: dtparam: fan_temp0=20000
008085.137: dtparam: fan_temp0_hyst=10000
008103.124: dtparam: fan_temp0_speed=240
008214.988: Read command line from file 'cmdline.txt':
008221.302: 'console=serial0,115200 console=tty1 root=PARTUUID=41c569fe-87dc-47ae-ac65-86920a53044e rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=RO brcmfmac.roamoff=1 brcmfmac.feature_disable=0x282000
008449.308: RPM 8361, max RPM 8361
009283.303: Device tree loaded to 0x2efec100 (size 0x13e89)
009359.486: Starting OS 9359 ms
009365.009: 00000040: -> 00000480
009366.863: 00000030: -> 00100080
009371.575: 00000034: -> 00100080
009376.288: 00000038: -> 00100080
009381.001: 0000003c: -> 00100080
009490.578: sdram: sdram refresh 2081->4162 (2)
069414.441: initial_turbo of 60 deactivated
As it stats:
007382.057: Found camera 'imx708' on port 1, unicam_port 1
007459.417: Loaded overlay 'imx708'
maybe not detection is the issue.

Thank you very much for your support. Will post camera-bug-report on github, finger crossed.
Sorry for my English. I'm still learning this language.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Jun 08, 2025 2:28 pm

I wonder could it be permission issue?

Have you try to use strace on the command "libcamera-hello --list-cameras"

Code: Select all

strace -ff -o /tmp/libcamera-hello libcamera-hello --list-cameras
The idea here is to see if the libcamera-hello want to access something but because permission not allow therefor it just show nothing.

strace output is in /tmp/libcamera-hello.*
Top
costel78
Guru
Guru
Posts: 416
Joined: Fri Apr 20, 2007 6:17 pm

  • Quote

Post by costel78 » Mon Jun 09, 2025 11:49 am

The issue was lack of pisp support on libcamera. I also compile for a Raspberry Pi 4, still in service, so I didn't think that this could be another "gpiod case". Support for Pi5 was missing.
Here is the issue on rpicam-apps, github.

Except libpisp, the ebuilds are (updated) from zugaina.org,
For anyone interested:
media-libs/libcamera/libcamera-0.5.0-r1.ebuild

Code: Select all

# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="A complex camera support library for Linux, Android, and ChromeOS"
HOMEPAGE="https://libcamera.org/"

MYP="rpt20250429"

if [[ ${PV} == "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/raspberrypi/libcamera.git"
	KEYWORDS="~amd64 ~x86 ~arm64"
else
	SRC_URI="https://github.com/raspberrypi/libcamera/archive/refs/tags/v${PV}+${MYP}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86 ~arm64"
fi

LICENSE="LGPL-2.1+"
SLOT="0"

IUSE="debug drm gnutls gstreamer jpeg libevent qt6 sdl tiff trace udev unwind v4l2"
REQUIRED_USE="qt6? ( tiff )"

S="${WORKDIR}/${P}-${MYP}"

DEPEND="
	dev-libs/libyaml:=
	dev-python/jinja2
	dev-python/ply
	dev-python/pyyaml
	|| (
		net-libs/gnutls
		dev-libs/openssl
	)
	debug? ( dev-libs/elfutils:= )
	gstreamer? ( media-libs/gstreamer:= )
	libevent?
	(
		dev-libs/libevent:=
		drm? ( x11-libs/libdrm:= )
		jpeg? ( media-libs/libjpeg-turbo:= )
		sdl? ( media-libs/libsdl2:= )
	)
	qt6?
	(
		dev-qt/qtbase
		dev-qt/qtwidgets:6
	)
	tiff? ( media-libs/tiff:= )
	trace? ( dev-util/lttng-ust:= )
	udev? ( virtual/libudev:= )
	unwind? ( sys-libs/libunwind:= )
"
RDEPEND="
	${DEPEND}
	media-libs/libpisp
	trace? ( dev-util/lttng-tools )
"

src_configure() {
	local emesonargs=(
		-Ddocumentation=disabled
		$(meson_feature libevent cam)
		$(meson_feature gstreamer)
		$(meson_feature qt6 qcam)
		$(meson_feature trace tracing)
		$(meson_feature v4l2)
		-Dipas=rpi/vc4,rpi/pisp,simple
		-Dpipelines=uvcvideo,ipu3,simple,rpi/vc4,rpi/pisp
	)

	meson_src_configure
}
media-libs/libpisp/libpisp-1.2.1.ebuild

Code: Select all

# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="A helper library to generate run-time configuration for the Raspberry Pi ISP (PiSP)"
HOMEPAGE="https://github.com/raspberrypi/libpisp"

if [[ ${PV} == "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/raspberrypi/libpisp.git"
	KEYWORDS="~amd64 ~x86 ~arm64"
else
	SRC_URI="https://github.com/raspberrypi/libpisp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86 ~arm64"
fi

LICENSE="LGPL-2.1+"
SLOT="0"

IUSE=""

RDEPEND="
	dev-cpp/nlohmann_json
"
src_configure() {
	meson_src_configure
}
media-gfx/rpicam-apps/rpicam-apps-1.7.0.ebuild

Code: Select all

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="libcamera-based applications to drive the cameras on a Raspberry Pi platform"
HOMEPAGE="https://github.com/raspberrypi/rpicam-apps"

if [[ ${PV} == "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/raspberrypi/rpicam-apps.git"
	KEYWORDS="~amd64 ~arm64"
else
	SRC_URI="https://github.com/raspberrypi/rpicam-apps/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm64"
fi

LICENSE="BSD-2"
SLOT="0"

IUSE="drm egl ffmpeg opencv qt6"

DEPEND="
	dev-libs/boost:=
	>=media-libs/libcamera-0.3.0:=
	media-libs/libexif:=
	media-libs/libjpeg-turbo:=
	media-libs/libpng:=
	media-libs/tiff:=
	drm? ( x11-libs/libdrm:= )
	egl? ( media-libs/libepoxy:= )
	ffmpeg? ( media-video/ffmpeg:= )
	opencv? ( media-libs/opencv:= )
	qt6? (
		dev-qt/qtbase
		dev-qt/qtwidgets:6
	)
"
RDEPEND="${DEPEND}"
BDEPEND="
	virtual/pkgconfig
"

src_configure() {
	local emesonargs=(
		$(meson_feature drm enable_drm)
		$(meson_feature ffmpeg enable_libav)
		$(meson_feature opencv enable_opencv)
		$(meson_feature qt6 enable_qt)
		-Denable_egl=enabled
		-Denable_tflite=disabled
		-Denable_hailo=disabled
		-Ddownload_hailo_models=false
	)
	meson_src_configure
}
Tested with:

Code: Select all

emerge -pvO libcamera libpisp rpicam-apps 

These are the packages that would be merged, in order:

[ebuild   R    ] media-libs/libcamera-0.5.0-r1::pi  USE="drm gnutls jpeg libevent sdl tiff trace udev v4l2 -debug -gstreamer -qt6 -unwind" 0 KiB
[ebuild   R    ] media-libs/libpisp-1.2.1::pi  0 KiB
[ebuild   R    ] media-gfx/rpicam-apps-1.7.0::pi  USE="drm egl ffmpeg -opencv -qt6" 0 KiB

Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
Thanks everyone for your support!
Sorry for my English. I'm still learning this language.
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy