AnsweredAssumed Answered

how to compile the driver to BFLT format

Question asked by zcyhansen on Apr 21, 2013
Latest reply on Apr 22, 2013 by zcyhansen

I was using the bf537  the process running the uclinux OS . 

and i want to add other driver to the system.   the os support  BFLT format

i  compile the code in my PC and copy the driver.ko to the bf537.

when i using the command:

$ file drive.ko

drive.ko: ELF 32-bit LSB relocatable, Analog Devices Blackfin, version 1 (SYSV), not stripped

 

so I  think  I shoud  compile the driver to the format of BFLT  ..but how???  this is my  makefile:

 

obj-m := drive.o

PWD := $(shell pwd)

CROSS_COMPILE_PATH := /lib/modules/2.6.22.18-ADI-2008R1-svn

#CROSS_COMPILE =bfin-uclinux-

#CC :=$(CROSS_COMPILE)gcc 

#LD :=$(CROSS_COMPILE)ld 

all:

    make -C  $(CROSS_COMPILE_PATH)/build M=$(PWD)  modules 

    #make -C $(CROSS_PATH) M=$(PWD) modules 

clean:

     rm -rf *.o *.symvers *.order *.mod.c *.ko

 

should i  using the  elf2flt  ??

Outcomes