All of lore.kernel.org
 help / color / mirror / Atom feed
* Driver as built-in instead of module
@ 2018-03-16  7:53 MUHAMMED ASAD P T
  2018-03-16  8:21 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: MUHAMMED ASAD P T @ 2018-03-16  7:53 UTC (permalink / raw)
  To: kernelnewbies

Hi,



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?  



Thanks & Regards

- Asad

  IQ Root Technologies





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180316/94e3561a/attachment-0001.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Driver as built-in instead of module
  2018-03-16  7:53 Driver as built-in instead of module MUHAMMED ASAD P T
@ 2018-03-16  8:21 ` Greg KH
  2018-03-16 11:18   ` MUHAMMED ASAD P T
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2018-03-16  8:21 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Mar 16, 2018 at 01:23:38PM +0530, MUHAMMED ASAD P T wrote:
> Hi,
> 
> 
> 
> 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?  

You just built it into the kernel image.

To start with, how are you building your kernel image?  Is your driver
build "separate"?  If so, that will not work as the kernel image has to
be built at the same time as your driver for that to work.

Do you have a pointer to the source of your driver anywhere to see if it
even can be built into the kernel?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Driver as built-in instead of module
  2018-03-16  8:21 ` Greg KH
@ 2018-03-16 11:18   ` MUHAMMED ASAD P T
  2018-03-16 11:35     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: MUHAMMED ASAD P T @ 2018-03-16 11:18 UTC (permalink / raw)
  To: kernelnewbies

Hi,



Please check the answers in below email as inline.




 
Thanks &amp; Regards

- Asad

  IQ Root Technologies






---- On Fri, 16 Mar 2018 13:51:00 +0530 Greg KH &lt;greg at kroah.com&gt; wrote ----




On Fri, Mar 16, 2018 at 01:23:38PM +0530, MUHAMMED ASAD P T wrote: 

&gt; Hi, 

&gt; 

&gt; 

&gt; 

&gt; 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? 

 

You just built it into the kernel image. 

 

To start with, how are you building your kernel image? Is your driver 

build "separate"? If so, that will not work as the kernel image has to 

be built at the same time as your driver for that to work. 

 

[Reply] I am building the driver with kernel build time. not separate. 


Do you have a pointer to the source of your driver anywhere to see if it 

even can be built into the kernel? 





  [Reply] For module, we use module_init(), I am looking for the kernel functions  for built-in driver. As a module, driver probe() gets called. 

  When driver configured as built-in, then module_init() is not called, i.e. print in module_init() is not coming.

 

thanks, 

 

greg k-h 

 

_______________________________________________ 

Kernelnewbies mailing list 

Kernelnewbies at kernelnewbies.org 

https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies 






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180316/23ca16b8/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Driver as built-in instead of module
  2018-03-16 11:18   ` MUHAMMED ASAD P T
@ 2018-03-16 11:35     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2018-03-16 11:35 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Mar 16, 2018 at 04:48:52PM +0530, MUHAMMED ASAD P T wrote:
 
> Do you have a pointer to the source of your driver anywhere to see if it 
> even can be built into the kernel? 
> 
> 
>   [Reply] For module, we use module_init(), I am looking for the kernel functions  for built-in driver. As a module, driver probe() gets called. 
>   When driver configured as built-in, then module_init() is not called, i.e. print in module_init() is not coming.

module_init() should work just fine.

Again, do you have a pointer to the source of your code anywhere so we
can review it to see what the problem might be?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-16 11:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16  7:53 Driver as built-in instead of module MUHAMMED ASAD P T
2018-03-16  8:21 ` Greg KH
2018-03-16 11:18   ` MUHAMMED ASAD P T
2018-03-16 11:35     ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.