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

[microblaze-uclinux] Re: [uClinux-dev] keyboard



Hi Devi,

devi wrote:
> hi,
> 
> I am using microblaze-uclinux.I am trying to get my keyboard working.But I don't have the proper driver for the keyboard.Can anyone help me.Since my driver is compiling but I am not getting any print statement which is present in the driver (while booting).I am adding this driver in linux-2.4.x/arch/microblaze/kernel.It is a simple driver as same as given in this link.
> http://www.faqs.org/docs/kernel/x1206.html.

The example on that page is far from complete.  Specifically, the 
init_module() function needs to be registered as an init_call - this is 
why your module messages are not being printed.  The module is in the 
kernel, but the kernel doesn't know that it is supposed initialise it.

I recommend you get a copy of "Linux Device Drivers" by Rubini and 
Corbet, or read it for free online http://www.xml.com/ldd/chapter/book/
It is the best reference for device driver development.

Also, look at other drivers in the linux kernel for pointers on how to 
initialise drivers/modules.

It might be worth posting your driver source to the microblaze-uclinux 
list - someone there might have time to look over it.

Regards,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/