<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px">Hi,</span></span></span></span><br></div><table style="word-break: normal; min-width: 100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="font-family: Lato; font-size: 14px;"><div><div style=""><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:10pt"><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br></div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">Please check the answers in below email as inline.</div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br></div></span></span></div></div></td></tr></tbody></table><div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px">Thanks & Regards</span></span></span></span><br></div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><b><span class="colour" style="color:rgb(192, 192, 192)">-<span> </span></span><i><span class="colour" style="color:rgb(51, 51, 51)">Asad</span></i></b></span></span></span></span><br></div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><b><i><span class="colour" style="color:rgb(51, 51, 51)">  IQ Root Technologies</span></i></b></span></span></span></span><br></div></div><div><br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Fri, 16 Mar 2018 13:51:00 +0530 <b>Greg KH <greg@kroah.com></b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div>On Fri, Mar 16, 2018 at 01:23:38PM +0530, MUHAMMED ASAD P T wrote: <br></div><div>> Hi, <br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>> We need to add the driver  as 'built in' in kernel. We had changed in kernel configuration for our custom driver. But, when the kernel is booted up, it is not calling the driver. what are the necessary steps to do this built-in to Kernel? <br></div><div> <br></div><div>You just built it into the kernel image. <br></div><div> <br></div><div>To start with, how are you building your kernel image?  Is your driver <br></div><div>build "separate"?  If so, that will not work as the kernel image has to <br></div><div>be built at the same time as your driver for that to work. <br></div><div> <br></div><div><b>[Reply] <span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px">I am building the driver with kernel build time. not separate.<span> </span></span></span></span></span></b></div><div><br></div><div>Do you have a pointer to the source of your driver anywhere to see if it <br></div><div>even can be built into the kernel? <br></div></div></blockquote></div><div><br></div><div>  <b>[Reply] </b><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><b>For module, we use module_init(), I am looking for the kernel functions</b><span><b>  </b></span><b>for built-in driver.  As a module, driver probe() gets called.</b><span> </span></span></span></span></span></span></span></span></span><br></div><div><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><span>  <b>When driver  configured as built-in, then module_init() is not called, i.e. print in module_init() is not coming.</b></span></span></span></span></span></span></span></span></span><br></div><div class="zmail_extra"><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div> <br></div><div>thanks, <br></div><div> <br></div><div>greg k-h <br></div><div> <br></div><div>_______________________________________________ <br></div><div>Kernelnewbies mailing list <br></div><div><a target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a> <br></div><div><a target="_blank" href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a> <br></div></div></blockquote></div><div><br></div></div><br></body></html>