|
Hello, I am trying to add a new
driver to the kernel 2.6, so that it is initialized at booting. Steps I do are: 1) Create directory “~/drivers/misc/mydriver”
with source code mydriver.c and the following Makefile: +obj-$(CONFIG_MICROBLAZE_MYDRIVER)
:= mydriver.o 2) Add next lines to file “~/drivers/misc/Kconfig” : +CONFIG_MICROBLAZE_MYDRIVER + tristate “My driver” + depends on MICROBLAZE 3) Add next line to file “~/drivers/misc/Makefile” : +obj-$(CONFIG_MICROBLAZE_MYDRIVER) += mydriver/ 4) Add device file to
~/vendors/PetaLogix/common/common.mak: +ifdef
CONFIG_MICROBLAZE_MYDRIVER +DEVICES += \ + mydriver,c,14,0 +endif 5) Select “My driver”
in make menuconfig, and do make dep all. The new driver compiles
together with the kernel, but it is not initialized at booting. Where I am missing
something??? Thank you. Raul Camaras.
R&D Engineer. Nokian Capacitors GmbH Zum Hussenstein 7 D-78642 Konstanz Nr.:
+49 7531 9189649. Handy: +49 151 17337921 Fax
07531/919574 Geschäftsführer Ralf Jessler Sitz Konstanz Registergericht Amtsgericht Freiburg i.Br. HRB381566 |