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.