Closed SCVready closed 3 years ago
I have the same problem.
Add local.conf and bitbake core-image-weston
VIDEO_CAMERA = "1"
KERNEL_MODULE_AUTOLOAD += "bcm2835-v4l2"
GPU_MEM = "512"
dunfell
and zeus
branches.I get dmsg | grep bcm2835
[ 3.024650] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 3.201590] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.201613] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.251221] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.263214] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.269040] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 3.269069] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 3.271035] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 3.271066] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 3.274723] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 3.274747] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
@SCVready I was able to solve this problem. Changed /boot/config.txt (Near line 460 to 480).
Before:
## start_x
## Set to "1" to enable the camera module.
##
## Enabling the camera requires gpu_mem option to be specified with a value
## of at least 128.
##
## Default 0
##
#start_x=0
After:
## start_x
## Set to "1" to enable the camera module.
##
## Enabling the camera requires gpu_mem option to be specified with a value
## of at least 128.
##
## Default 0
##
start_x=1
Probably "start_x=1" near the last line of config.txt is not read.
Thank you so much @NobuoTsukamoto, it is also working for me.
Description Creating a distro for the Raspberry Pi 4 B using yocto dunfell, I'm getting an error message when I'm trying to launch:
raspivid -d
(error copied below) and when I launch:vcgencmd get_camera
I get:supported=0 detected=0
But using Raspbian it works correctly.
Steps to reproduce the issue:
in local.conf add:
in bblayers.conf add:
Describe the results you received: Launching:
raspivid -d
I get:Launching:
vcgencmd get_camera
I get:supported=0 detected=0
Describe the results you expected: Launching:raspivid -d
Get no errors. Launching:vcgencmd get_camera
Get:supported=1 detected=1
Additional information you deem important (e.g. issue happens only occasionally):
Additional details (revisions used, host distro, etc.): It works with raspbian: 2020-05-27-raspios-buster-lite-armhf.img