AnsweredAssumed Answered

adv7511.c linux driver getting error when inserting the module

Question asked by Ramanji@567 on Jun 22, 2016
Latest reply on Sep 8, 2016 by larsc

Hi,

 

Am currently working on adv7511.c Linux driver. I have taken this file into temporary directory and written a Makefile for that. I have compiled it and generated adv7511.ko file. When I insert this module into the target board it gets the below error.

 

insmod adv7511.ko                                           

[   71.399670] adv7511: Unknown symbol v4l2_i2c_subdev_init (err 0)            

[   71.406284] adv7511: Unknown symbol v4l2_enum_dv_timings_cap (err 0)        

[   71.413303] adv7511: Unknown symbol v4l2_ctrl_handler_init_class (err 0)    

[   71.420689] adv7511: Unknown symbol v4l2_find_dv_timings_cap (err 0)        

[   71.427675] adv7511: Unknown symbol v4l2_print_dv_timings (err 0)           

[   71.434392] adv7511: Unknown symbol v4l2_ctrl_handler_setup (err 0)         

[   71.441307] adv7511: Unknown symbol __v4l2_ctrl_s_ctrl (err 0)              

[   71.447720] adv7511: Unknown symbol v4l2_device_unregister_subdev (err 0)   

[   71.455205] adv7511: Unknown symbol media_entity_init (err 0)               

[   71.461558] adv7511: Unknown symbol v4l2_ctrl_new_std_menu (err 0)          

[   71.468369] adv7511: Unknown symbol media_entity_cleanup (err 0)            

[   71.474976] adv7511: Unknown symbol v4l2_valid_dv_timings (err 0)           

[   71.481701] adv7511: Unknown symbol v4l2_ctrl_new_std (err 0)               

[   71.488019] adv7511: Unknown symbol v4l2_ctrl_handler_free (err 0)          

insmod: ERROR: could not insert module adv7511.ko: Unknown symbol in module

 

Can you please help me to over come this problem.

Below lines directly we may add to device tree source(dtsi) file. I have a doubt, in our custom board it is connected I2C0 interface but below line shows "adv7511w". How this may change  to I2C0. Please help me to solve this issue.

adv7511w: hdmi@39 {
  compatible = "adi,adv7511w";
  reg = <39>;
  interrupt-parent = <&gpio3>;
  interrupts = <29 IRQ_TYPE_EDGE_FALLING>;

  adi,input-depth = <8>;
  adi,input-colorspace = "rgb";
  adi,input-clock = "1x";
  adi,input-style = <1>;
  adi,input-justification = "evenly";

  ports {
   #address-cells = <1>;
   #size-cells = <0>;

   port@0 {
    reg = <0>;
    adv7511w_in: endpoint {
     remote-endpoint = <&dpi_out>;
    };
   };

   port@1 {
    reg = <1>;
    adv7511_out: endpoint {
     remote-endpoint = <&hdmi_connector_in>;
    };
   };
  };
};

 

 

Thanks,

Ramanjineyulu.

Outcomes