[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] howto add a new kernel driver in the uclinux_dist filetree?
Hi,
I wrote a new uclinux kernel driver (irq handler called 'vsint') and
inserted it in the kernel file-tree in a way that it is compiled when I
compile the uclinux kernel. But on booting that kernel the new driver is not
loaded. What is missing? I digged through the docs and archives but haven't
found a hint.
Here is what I've done:
1.) added directory uclinux_dist/linux-2.4.x/drivers/vsint with the source
file vsinthandler.c and the Makefile:
#---------------------------
#
# Makefile for the Linux VeriSend Interrupt handler implementation
# Baumer Optronic GmbH 2005
# Author: fbr/rae/mha
#
O_TARGET := vsint.o
vsint-objs := vsinthandler.o
obj-$(CONFIG_VSINT) += vsint.o
include $(TOPDIR)/Rules.make
vsint.o: $(vsint-objs)
$(LD) $(LDFLAGS) -r -o $@ $(vsint-objs)
#---------------------------
2.) added stuff in uclinux_dist/linux-2.4.x/drivers/Makefile:
...
mod-subdirs := ... vsint
...
subdir-$(CONFIG_VSINT)+= vsint
...
3.) added an entry in uclinux_dist/linux-2.4.x/arch/microblaze/config.in:
...
#added by Baumer Optronic mha/fbr/rae
source drivers/vsint/Config.in
...
4.) went again through the 'make xconfig'-procedure and activated the new
driver in the graphical menu
5.) called 'make dep all' and have seen how the new driver successfully
compiles,
6.) but the driver is not loaded on bootup :-(although it works well in my
PC linux version).
What else is to do for activating the driver in that modified kernel?
Mit freundlichen Grüßen / Best regards
Falk Brettschneider
___________________________________
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/