ummmn... had a n00b moment :)
just found instructions in <buildroot>/docs/buildroot.html
nevertheless, i would love to hear any tips / suggestions you may have reg
this :-)
thanks,
hypo
hypo wrote:
>
> hi Pete,
>
> i'm trying to get your makefile going with buildroot -v1614. Since i'm a
> n00b, could you please tell me were exactly i should drop this make file?
> Also when you mention "top-level" Makefile for "TARGETS+=gspca", where do
> I find this?
>
> thanks,
> hypo
>
>
> pvm wrote:
>>
>>
>> Chuck Randall wrote:
>>>
>>> I've spent more than a week trying to add V4L modules to my verdex
>>> kernel build, but still am getting no .ko files generated. How did you
>>> manage to get a USB webcam going in under an hour?
>>>
>>
>> 1. I used buildroot (my personal opinion is that open embedded is
>> convoluted and difficult.)
>> 2. edit target/device/Gumstix/verdex/linux.config enable the following...
>> """
>> CONFIG_VIDEO_DEV=m
>> #CONFIG_VIDEO_V4L1 is not set
>> CONFIG_VIDEO_V4L1_COMPAT=m
>> CONFIG_VIDEO_V4L2=m
>>
>> #
>> # V4L USB devices
>> #
>> CONFIG_VIDEO_USBVISION=m
>> CONFIG_VIDEO_USBVIDEO=m
>> """
>> 3. write a make file for your usb camera driver if it isn't already in
>> the build tree... here is mine for the GSPCA driver...
>> """
>> #############################################################
>> #
>> # Driver for GSPCA USB web cams.
>> #
>> #############################################################
>>
>> GSPCA_VERSION=20071224
>> GSPCA_SOURCE:=gspcav1-$(GSPCA_VERSION).tar.gz
>> GSPCA_SITE:=http://mxhaard.free.fr/spca50x/Download/$(GSPCA_SOURCE)
>> GSPCA_BUILD_DIR=$(BUILD_DIR)/gspcav1-$(GSPCA_VERSION)
>> GSPCA_PKG_DIR=$(BASE_DIR)/package/gspca
>> GSPCA_CAT:=gzcat
>> GSPCA_MODULE=$(GSPCA_BUILD_DIR)/gspca.ko
>> GSPCA_TARGET_MODULE=$(TARGET_DIR)/lib/modules/2.6.21gum/extra/gspca.ko
>>
>> GSPCA_CFLAGS := "-DGSPCA_ENABLE_COMPRESSION"
>> GSPCA_CFLAGS += "-DCONFIG_USB_GSPCA_MODULE=1"
>> GSPCA_CFLAGS += "-DVID_HARDWARE_GSPCA=0xFF"
>> GSPCA_CFLAGS += -DGSPCA_VERSION=\\\"01.00.20\\\"
>>
>> $(DL_DIR)/$(GSPCA_SOURCE):
>> $(WGET) -P $(DL_DIR) $(GSPCA_SITE)/$(GSPCA_SOURCE)
>>
>> gspca-source: $(DL_DIR)/$(GSPCA_SOURCE)
>>
>> $(GSPCA_BUILD_DIR)/.unpacked: $(DL_DIR)/$(GSPCA_SOURCE)
>> $(GSPCA_CAT) $(DL_DIR)/$(GSPCA_SOURCE) | \
>> tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
>> touch $(GSPCA_BUILD_DIR)/.unpacked
>>
>> $(GSPCA_MODULE): $(BASE_DIR)/uImage $(GSPCA_BUILD_DIR)/.unpacked
>> $(MAKE) -C "$(LINUX_DIR)" \
>> CROSS_COMPILE="$(KERNEL_CROSS)" \
>> ARCH=$(ARCH) \
>> CC="$(TARGET_CC)" \
>> EXTRA_CFLAGS="$(TARGET_CFLAGS) $(GSPCA_CFLAGS)" \
>> SUBDIRS="$(GSPCA_BUILD_DIR)" \
>> modules
>> touch $@
>>
>> $(GSPCA_TARGET_MODULE): $(GSPCA_MODULE)
>> $(MAKE) -C "$(LINUX_DIR)" \
>> CROSS_COMPILE="$(KERNEL_CROSS)" \
>> ARCH=$(ARCH) \
>> CC="$(TARGET_CC)" \
>> EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
>> SUBDIRS="$(GSPCA_BUILD_DIR)" \
>> INSTALL_MOD_PATH="$(TARGET_DIR)" \
>> modules_install
>>
>> gspca: uclibc $(GSPCA_TARGET_MODULE)
>>
>> gspca-clean:
>> -$(MAKE) -C $(GSPCA_BUILD_DIR) clean
>>
>> gspca-dirclean:
>> rm -rf $(GSPCA_BUILD_DIR)
>>
>> #############################################################
>> #
>> # Toplevel Makefile options
>> #
>> #############################################################
>> ifeq ($(strip $(BR2_PACKAGE_GSPCA)),y)
>> TARGETS+=gspca
>> endif
>> """
>> 4. do a full clean, enable the driver you just added in the menuconfig,
>> and make
>> 5. come back when it is done compiling and re-flash.
>>
>> -Pete
>>
>
>
--
View this message in context: http://www.nabble.com/CCD-cameras-and-the-Quick-Capture-Interface-tp19498519p21156824.html
Sent from the Gumstix mailing list archive at Nabble.com.
|