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

Re: [microblaze-uclinux] Block device driver



Hello John,

Thanks for you cooperation.
"Set version information" id off in my experiments.
When I declare  "init", "clean" routines and "register_blkdev" - OK
When I declare "block_device_operations " structure - OK
When declare "blk_init_queue " - error "unresolved symbol divsi3_proc"

Thank you,
Pavel.


----- Original Message ----- From: "John Williams" <jwilliams@xxxxxxxxxxxxxx>
To: <microblaze-uclinux@xxxxxxxxxxxxxx>
Sent: Thursday, October 27, 2005 10:44 AM
Subject: 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/



___________________________
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/