sss22213
Posts: 6
Joined: Fri May 14, 2021 8:59 am

HQ camera can not use

Sat May 15, 2021 11:37 am

Hello all,

I build the system by yocto, and can not take the picture.

I can not find solving to the issue.

error message after boot:

Code: Select all

root@raspberrypi4:~# [   33.115617] imx477_vddl: disabling
[   33.119088] imx477_vdig: disabling
[   33.122560] imx477_vana: disabling

Code: Select all

root@raspberrypi4:~# [   33.115617] lsmod
imx477                 24576  1
sha256_generic         16384  0
bcm2835_v4l2           45056  0
bcm2835_unicam         40960  0
bcm2835_isp            32768  0
v4l2_dv_timings        36864  1 bcm2835_unicam
bcm2835_mmal_vchiq     28672  3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2
v4l2_mem2mem           36864  1 bcm2835_codec
v4l2_fwnode            24576  2 bcm2835_unicam,imx477
videobuf2_dma_contig    20480  3 bcm2835_unicam,bcm2835_isp,bcm2835_codec

Code: Select all

root@raspberrypi4:~# vcgencmd version
Apr 30 2021 15:55:03 
Copyright (c) 2012 Broadcom
version 3e104c5ed69dc796755b7195973a8d00482d76dd (clean) (release) (start_x)

Code: Select all

root@raspberrypi4:~# vcgencmd get_camera
supported=1 detected=0
Try to raspistill.

Code: Select all

root@raspberrypi4:~# raspistill -t 0 -hf -vf
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Only 76M of gpu_mem is configured. Try running "sudo raspi-config" and ensure that "memory_split" has a value of 128 or greater

Code: Select all

root@raspberrypi4:~# v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
        [1]: 'RG12' (12-bit Bayer RGRG/GBGB)
        [2]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
        [3]: 'RG10' (10-bit Bayer RGRG/GBGB)
        

Code: Select all

root@raspberrypi4:~# ls /dev/video*
/dev/video0   /dev/video10  /dev/video12  /dev/video14  /dev/video16
/dev/video1   /dev/video11  /dev/video13  /dev/video15

Code: Select all

root@raspberrypi4:~# uname -a
Linux raspberrypi4 5.10.31-v7l #1 SMP Fri Apr 23 15:16:49 UTC 2021 armv7l GNU/Linux
Thanks in advance.

sss22213
Posts: 6
Joined: Fri May 14, 2021 8:59 am

Re: HQ camera can not use

Sat May 15, 2021 5:53 pm

Thanks here.

I solve the problem by rmmod imx477.

Code: Select all

Module                  Size  Used by
nfc                    86016  0
bnep                   20480  2
bluetooth             421888  9 bnep
ecdh_generic           16384  1 bluetooth
ecc                    36864  1 ecdh_generic
ipv6                  503808  30
stmpe_ts               16384  0
brcmfmac              331776  0
bcm2835_codec          40960  0
bcm2835_v4l2           45056  0
brcmutil               24576  1 brcmfmac
bcm2835_isp            32768  0
v4l2_mem2mem           36864  1 bcm2835_codec
bcm2835_mmal_vchiq     28672  3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2
sha256_generic         16384  0
videobuf2_dma_contig    20480  2 bcm2835_isp,bcm2835_codec
videobuf2_vmalloc      16384  1 bcm2835_v4l2
fb_hx8357d             16384  1
videobuf2_memops       16384  2 videobuf2_dma_contig,videobuf2_vmalloc
fbtft                  40960  1 fb_hx8357d
videobuf2_v4l2         32768  4 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common       61440  5 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
cfg80211              782336  1 brcmfmac
v3d                    77824  0
rfkill                 32768  4 bluetooth,nfc,cfg80211
gpu_sched              45056  1 v3d
gpio_backlight         16384  0
backlight              20480  1 gpio_backlight
videodev              258048  6 bcm2835_isp,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
edt_ft5x06             24576  0
raspberrypi_hwmon      16384  0
mc                     45056  6 bcm2835_isp,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2
spi_bcm2835            20480  0
vc_sm_cma              32768  2 bcm2835_isp,bcm2835_mmal_vchiq
rpivid_mem             16384  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
nvmem_rmem             16384  0

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11246
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: HQ camera can not use

Sat May 15, 2021 8:03 pm

Why did you add "dtoverlay=imx477" to config.txt if you're wanting to use the firmware?

There is no inter-processor arbitration for the CSI2 receiver hardware block. If the firmware notes that device tree has enabled the CSI2 receiver then it will NOT touch the peripheral, and vcgencmd get_camera / raspistill/vid will fail.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

sss22213
Posts: 6
Joined: Fri May 14, 2021 8:59 am

Re: HQ camera can not use

Sun May 16, 2021 3:54 pm

OK, I understand.

Thanks for your solution, and I solve the problem.

Return to “Camera board”