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

Re: [microblaze-uclinux] Driver compile



No, I create simple SPI core and do modify SysACE driver.
 
Pavel.
----- Original Message -----
From: Antti
Sent: Monday, May 22, 2006 1:06 AM
Subject: Re: [microblaze-uclinux] Driver compile

There is working MMC driver for MicroBlaze uClinux at the CVS !? ?
 
Are you really sure?
 
 
Antti Lukats
----- Original Message -----
Sent: Sunday, May 21, 2006 9:01 PM
Subject: [microblaze-uclinux] Driver compile

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.


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1 - Release Date: 18.05.2006