ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] How to add loadable kernel modules


From: kshen
Subject: Re: [Ltib] How to add loadable kernel modules
Date: Mon, 31 Aug 2009 12:59:02 -0700
User-agent: Microsoft-Entourage/12.20.0.090605

I just found that I made a mistake in menuconfig. I should add the driver as
a module (M), instead of just enabling it (*). That solved the problem.

Thanks a lot for all the helps and suggestions.

Ke


On 8/31/09 12:55 PM, "Hamilton Vera" <address@hidden> wrote:

> Hi Ke, have you compiled this driver in another platform like x86?
> 
> Is the source code available? If so, we can provide a better way to help you.
> 
> []'s
> 
> 
> 
> On Mon, Aug 31, 2009 at 2:42 PM, kshen<address@hidden> wrote:
>> Hi,
>> I¹m trying to add a loadable kernel module.
>> 
>> I put the device driver under linux/drivers/my_drivers/my_driver_1. I
>> changed the Kconfig in linux/drivers and linux/drivers/my_drivers to add
>> this module to the config menu. I wrote the Makefile in
>> linux/drivers/my_drivers/my_driver_1 as
>> 
>> obj-$(CONFIG_MY_DRIVER_1)   += my_driver_1.o
>> my_driver_1-objs := mydriverfile.o
>> 
>> I also enabled the Loadable Kernel Modules option in menuconfig.
>> 
>> However, after compile, I got the my_driver_1.o and mydriverfile.o files,
>> but not the my_driver_1.ko file.
>> 
>> What did I do wrong?
>> 
>> Thanks a lot.
>> 
>> Ke
>> _______________________________________________
>> LTIB home page: http://ltib.org
>> 
>> Ltib mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/ltib
>> 
>> 
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]