[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] howto add a new kernel driver in the uclinux_dist filetree?
John Williams wrote:
> Are you statically linking the module into your PC kernel, or
> building
> it as a module?
>
> John
John, thanks for the hint about dynamic/static load. The .c file just
contained
#ifndef MODULE
# define MODULE
#endif
which was right for SuSE PC-Linux where I insmod the driver, but I have to
leave it out on the µBlaze to get statical loading of the driver. Now it
works well! :-)
BTW, I moved the stuff to directory uclinux_dist/linux-2.4.x/drivers/misc.
Maybe one can the content of my first email as HowToAddANewDriver.txt to the
uclinux doc dir. It would save the people the hours I spent finding out what
is to do.
Cheers
F@lk
___________________________________
Falk Brettschneider
Softwareentwickler / Software Developer
Baumer Optronic GmbH
Deutschland / Germany
http://www.baumeroptronic.de
___________________________
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/