Using PCam 5C camera from Ubuntu on Digilent ZYBO Z7-20 CPU+FPGA board
$30-250 USD
已取消
已发布将近 6 年前
$30-250 USD
货到付款
Please solve my problem, please teach the solution method and deliver the project file.
This project is relevant to FPGA, Ubuntu.
My problem is the following.
===========================
I want to get image from Pcam 5C from Ubuntu running on ZYBO-Z7-20.
First, I cloned this repository,([login to view URL]) and tested pre-built image. I could get camera image by command-line.
Next, To use ubuntu, I changed the configuration and built petalinux project.
$ petalinux-config
Linux Components Selection -> u-boot -> u-boot-plnx
Linux Components Selection -> linux-kernel -> linux-xlnx
Image Packaging Configuration -> Root filesystem type -> SD card
And I modified project-spec/meta-user/recipes-bsp/device-tree/files/[login to view URL] as described in README.md.
After change the configuration, I created kernel image file and copy them to the first partition of SD card.([login to view URL], [login to view URL]).
$petalinux-build -c kernel
$petalinux-build -c u-boot
$petalinux-build -c fsbl
$petalinux-package --boot --fsbl images/linux/[login to view URL] --fpga images/linux/[login to view URL] --u-boot --force
I downloaded ubuntu rootfs [login to view URL] from here([login to view URL])
And copy them to the second partition of SD card.
Ubuntu was successfully booted, and I tested command to get image. But I couldn't get image from pcam.
media-ctl -d /dev/media0 -V '"ov5640 2-003c":0 [fmt:UYVY/'"$width"x"$height"'@1/'"$rate"' field:none]'
media-ctl -d /dev/media0 -V '"43c60000.mipi_csi2_rx_subsystem":0 [fmt:UYVY/'"$width"x"$height"' field:none]'
When I run this command, the following error is occurred.
failed to enumerate /dev/media0 (-2)
When I run v4l2-ctl -d /dev/video0 --info command, it seemed that I got camera information correctly.
But /dev/media0 is missing. /dev/video0 is appeared.
Why /dev/media0 is missing?
Got any ideas on how to fix this?