Xilinx Linux内核中并没有Cameras/video grabbers support选项
时间: 2024-02-13 16:00:06 浏览: 173
非常抱歉,我的回答还是有误。在最新的Xilinx Linux内核中,`CONFIG_VIDEO_V4L2`选项不需要手动启用,而是由Xilinx V4L2驱动自动启用。
如果您想使用Xilinx V4L2驱动,请确保在内核中启用以下选项:
```
Device Drivers --->
[*] Multimedia support --->
[*] V4L2 sub-device userspace API
[*] Media controller API
[*] DMA-BUF support
```
另外,如果您使用的是Xilinx提供的PetaLinux工具链进行开发,则可以在PetaLinux配置文件(project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi)中启用V4L2驱动:
```
/include/ "system-conf.dtsi"
/ {
chosen {
bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait video=display0:640x480-32@60";
};
};
&axi_vdma_0 {
status = "okay";
};
&i2c_0 {
status = "okay";
};
&i2c_1 {
status = "okay";
};
&i2c_2 {
status = "okay";
};
&i2c_3 {
status = "okay";
};
&axi_i2c_0 {
status = "okay";
};
&axi_i2c_1 {
status = "okay";
};
&axi_i2c_2 {
status = "okay";
};
&axi_i2c_3 {
status = "okay";
};
&axi_gpio_0 {
status = "okay";
};
&axi_gpio_1 {
status = "okay";
};
&axi_gpio_2 {
status = "okay";
};
&axi_gpio_3 {
status = "okay";
};
&axi_hdmi_tx_0 {
status = "okay";
};
&video_mixer_ss {
status = "okay";
};
&video_mixer_ss_vproc {
status = "okay";
};
&video_mixer_ss_cproc {
status = "okay";
};
&video_mixer_ss_blend {
status = "okay";
};
&video_mixer_ss_format {
status = "okay";
};
&video_mixer_ss_scaler {
status = "okay";
};
&video_mixer_ss_logo {
status = "okay";
};
```
请注意,以上内容仅适用于某些特定的Xilinx开发板和版本。如果您使用的是其他开发板或不同版本的软件,请查看相应的文档和配置文件以获取更多信息。
阅读全文