Got the 2253 SDK to compile and install fine for Overo 2.6.32 kernel.  Here's my makefile- recommend modifying KDIR, ARCH, etc directly in makefile.

KDIR = <path_to_kernel_src>
PWD := $(shell pwd)
ARCH = arm
CROSS_COMPILE = <path_to_cross_cc>


ifeq ($(KERNELRELEASE),)
SUBDIR = $(shell pwd)
else
SUBDIR = $(SUBDIRS)
endif

all: modules demo

obj-m := s2253.o

#EXTRA_CFLAGS += -Wall -Wextra -Wno-unused -Wsign-compare
EXTRA_CFLAGS += -Wno-unused

modules:
    #$(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@
    echo $(KDIR)
    $(MAKE) -C $(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules

clean:
    $(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@

install: modules_install firmware_install
    -modprobe -q -r s2253
    modprobe s2253

modules_install:
    $(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@
    depmod $(shell uname -r)

firmware_install:
    install s2253.fw /lib/firmware/

uninstall:
    -modprobe -q -r s2253
    rm -vf /lib/modules/$(shell uname -r)/extra/s2253.ko
    depmod $(shell uname -r)
    rm -vf /lib/firmware/s2253.fw

load:
    sudo modprobe v4l1_compat
    sudo modprobe videodev
    sudo modprobe v4l2_common
    sudo modprobe videobuf_core debug=2
    sudo modprobe videobuf_vmalloc debug=2
    sudo insmod ./s2253.ko debug=99

unload:
    -sudo rmmod s2253


demo:
    $(MAKE) capture LDLIBS=-lpthread



On 03/01/2011 05:26 PM, Eddie Ng wrote:
I am trying to interface an analog camera with the Overo Fire.  I found a USB
framegrabber from www.sensoray.com (P/N 2253S).  They provide the SDK for
the driver.

I downloaded the SDK on my dev machine and tried to build the driver with
the following command:

#make ARCH=arm
CC=~/overo-oe/tmp/sysroots/i686-linux/usr/armv7a/bin/arm-angstrom-linux-gnueabi-gcc-4.3.3
KDIR=~/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.34-r90/git

and I got the following error:

make -C
/home/eng/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.34-r90/git
SUBDIRS=/home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105 modules
make[1]: Entering directory
`/home/eng/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.34-r90/git'
  CC [M]  /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.mod.o
  LD [M]  /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.ko
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
ld: /home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: Relocations
in generic ELF (EM: 40)
/home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.o: could not read
symbols: File in wrong format
make[2]: *** [/home/eng/Desktop/ELIP/sensoray/sdk-2253-linux_v105/s2253.ko]
Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory
`/home/eng/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.34-r90/git'
make: *** [modules] Error 2

Any ideas?  Thanks.  Here is the makefile:

KDIR = /lib/modules/$(shell uname -r)/build

ifeq ($(KERNELRELEASE),)
SUBDIR = $(shell pwd)
else 
SUBDIR = $(SUBDIRS)
endif

all: modules demo

obj-m := s2253.o

#EXTRA_CFLAGS += -Wall -Wextra -Wno-unused -Wsign-compare
EXTRA_CFLAGS += -Wno-unused

modules:
	$(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@

clean:
	$(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@

install: modules_install firmware_install
	-modprobe -q -r s2253
	modprobe s2253

modules_install:
	$(MAKE) -C $(KDIR) SUBDIRS=$(SUBDIR) $@
	depmod $(shell uname -r)

firmware_install:
	install s2253.fw /lib/firmware/

uninstall:
	-modprobe -q -r s2253
	rm -vf /lib/modules/$(shell uname -r)/extra/s2253.ko
	depmod $(shell uname -r)
	rm -vf /lib/firmware/s2253.fw

load:
	sudo modprobe v4l1_compat
	sudo modprobe videodev
	sudo modprobe v4l2_common
	sudo modprobe videobuf_core debug=2
	sudo modprobe videobuf_vmalloc debug=2
	sudo insmod ./s2253.ko debug=99

unload:
	-sudo rmmod s2253
demo:
	$(MAKE) capture LDLIBS=-lpthread