This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VL-Q1:OV x1f 传感器驱动程序输入成功、但无法在"media-ctl -p"结果中找到

Guru**** 2329830 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1516709/tda4vl-q1-ov-x1f-sensor-driver-insmod-successfully-but-can-not-be-find-in-media-ctl--p-result

器件型号:TDA4VL-Q1
主题中讨论的其他器件:TDA4VL

工具/软件:

您好专家

硬件:tda4vl + max9296a(DES)+ max96701(SER)+ x1f(CMOS)

软件: max9296a 驱动程序和 x1f 驱动程序

max9296a 驱动器集 max96701的初始寄存器

设备树为:  

&{/} {
	clk_x1f_fixed: x1f-xclk {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <24000000>;
	};
};

&main_i2c0 {

	status = "okay";

};

&main_i2c3 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";
	deser@48 {
		compatible = "maxim,max9296a";
		reg = <0x48>;
		max9296a_0_ports: ports {
			#address-cells = <1>;
			#size-cells = <0>;
			/* CSI-2 TX */
			port@4 {
				reg = <4>;
				max9296a_0_csi_out: endpoint {
					data-lanes = <1 2 3 4>;
					clock-lanes = <0>;
					link-frequencies = /bits/ 64 <800000000>;
					remote-endpoint = <&csi2_phy0>;
				};
			};
			port@0 {
				reg = <0>;
				max9296_1_in: endpoint {
					data-lanes = <1 2 3 4>;
					remote-endpoint = <&x1f_csi_out>;
				};
			};
		};
	};

	sensor@36{
		compatible = "ovti,ox01f10";
        reg = <0x36>;
        clocks = <&clk_x1f_fixed>;
        clock-names = "xclk";
        port {
            x1f_csi_out: endpoint {
                remote-endpoint = <&max9296_1_in>;
                data-lanes = <1 2 3 4>;          
                link-frequencies = /bits/ 64 <800000000>;
            };
        };
	};
};

&cdns_csi2rx0 {
	ports {
		#address-cells = <1>;
		#size-cells = <0>;
		csi0_port0: port@0 {
			reg = <0>;
			status = "okay";
			csi2_phy0: endpoint {
				remote-endpoint = <&max9296a_0_csi_out>;
				clock-lanes = <0>;
				data-lanes = <1 2 3 4>;
				link-frequencies = /bits/ 64 <800000000>;
			};
		};
	};
};

&ti_csi2rx0 {
	status = "okay";
};
&dphy0 {
	status = "okay";
};

结果是在 insmod max9296a 和 x1f 驱动程序之后、media-ctl -p 命令无法在链接消息中  找到 x1f 信息、可以找到 max9296a。 并且带有驱动程序日志消息、x1f' probe()函数

特征值。

请帮助确认器件树是否有问题。

最好的考虑

守护程序

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、  

    您使用的是哪个 SDK 版本、您可以与两个 insmod 共享完整的引导日志和日志。  

    此致、

    Keerthy  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引述 userid="642175" url="~/support/processors-group/processors/f/processors-forum/1516709/tda4vl-q1-ov-x1f-sensor-driver-insmod-successfully-but-can-not-be-find-in-media-ctl--p-result/5837817 #5837817"]

    root@j721s2-EVM:/opt/vision_apps、insmod max9296a_drv.ko
    [ 161.960311] max9296a_drv:加载树外模块会污染内核。
    [ 161.967022]驱动程序版本:01.00.00

    insmod x1f 驱动程序日志:

    root@j721s2-EVM:/opt/vision_apps、insmod x1f_drv.ko
    [ 161.960311] x1f_drv:加载树外模块会污染内核。
    [ 161.967022]驱动程序版本:01.00.00

    [/报价]

    如何编译这些模块? Linux 无法插入树外模块。

    - Keerthy

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好  Keerthy

    这两个驱动程序属于外部编译的驱动程序模块、应该可以。

    守护程序

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    我咨询了我们的专家、树外模块加载不能很好地与内核配合使用。

    代码与 内核的构建位置不同、因此会产生许可混淆。

    申请咨询相应的模块专家。

    - Keerthy