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

Re: [microblaze-uclinux] Block device driver



Hi Pavel,

When using loadable modules, make sure you disable module symbol versioning - under kernel config menu -> loadable module support -> Set version information (make sure it is OFF)

Regards,

John

Pavel Ivanchenko wrote:
Hello.
I'm trying write driver to MMC card.
Begin with examples from "Linux Device Drivers" book.
It have block driver example "sbull - Simple Block Utility for Loading Localities" (attach to mail).
I creat next Make file to compile object file:

    ROOTDIR=/usr/src/uClinux-dist
    UCLINUX_BUILD_USER=1
    include $(ROOTDIR)/.config
    LIBCDIR = $(CONFIG_LIBCDIR)
    include $(ROOTDIR)/config.arch
CFLAGS += -D__KERNEL__ -DMODULE -DLINUX sbull.o: sbull.c $(CC) $(CFLAGS) -c sbull.c
    clean:
     rm -f *.o core
Some warning printing after compile, but object file create.
I'm dowmload it to /var and try "insmod ./sbull.o"
But return:
Using ./sbull.o
insmod: unresolved symbol divsi3_proc
insmod: unresolved symbol mulsi3_proc
Please prompt direction to resolve this.
I think, I do not turn on some elements of kernel.
Thank, Pavel.

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