|
Hello.
I have driver MMC-card, now I was dowload
latest uClinux-dist and update it through CVS.
So, my driver compile successful, but "insmod"
return:
Warning: unhandled reloc 10
insmod: Unhandled relocation of type 10 for cfgaddr_write Warning: unhandled reloc 10 insmod: Unhandled relocation of type 10 for cfgaddr_write Warning: unhandled reloc 10 insmod: Unhandled relocation of type 10 for cfgaddr_write Warning: unhandled reloc 10 insmod: Unhandled relocation of type 10 for cfgaddr_write Warning: unhandled reloc 1 insmod: Unhandled relocation of type 1 for ...
My makefile:
ROOTDIR=/usr/src/uClinux-dist
UCLINUX_BUILD_USER=1 include $(ROOTDIR)/.config LIBCDIR = $(ROOTDIR)/linux-2.4.x/lib include $(ROOTDIR)/config.arch CC=mb-gcc
AR=mb-ar CFLAGS = -DMODULE -D__KERNEL__ -DLINUX
-I/usr/src/uClinux-dist/linux-2.4.x/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -DPLATFORM=uclinux-auto
-O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__ -DMAGIC_ROM_PTR
-DUTS_SYSNAME=\"uClinux\" -D__linux__
-I/usr/Xilinx/EDK8.1/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/./include
-mxl-soft-div -mno-xl-soft-mul -nostdinc -I$(ROOTDIR)/include
-I$(ROOTDIR)/include/include
adapter.o: adapter.c
$(CC) $(CFLAGS) -c adapter.c clean: rm -f *.o core Also I have driver for EthernetLite core, it use same makefile, but
"insmod" return:
Using ./ethlite.o
insmod: unresolved symbol __umodsi3 Pavel.
|