OpenWrt Forum Archive

Topic: Webcam PWC Modul

The content of this topic has been archived on 3 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

i have tried, different trunk versions 47xx till the newest 48xx. But althogh i included the pwc webcam module, it will not be compiled. I looked in the .config under kernel-directory and there aren't any v4l devices.
If i include it by myself, i will get an loadable modul, but only grey-pictures. I know that the pwc modul was quite a lot over-worked in Kernel 2.6.18? Maybe it is broken? I have even tried the most recent pwc-modul from saillard.org/linux/pwc/.


Has anyone successfully run a webcam (Logitech Pro 4000) with the pwc-modul?


My Router is a
Netgear wgt634u





my .config:
....
CONFIG_LINUX_2_6_BRCM=y
....
#
# Multimedia devices support
#
CONFIG_PACKAGE_KMOD_PWC=y
CONFIG_PACKAGE_KMOD_SOUNDCORE=y
CONFIG_PACKAGE_KMOD_VIDEODEV=y
....
#
# USB support
#
CONFIG_PACKAGE_KMOD_USB=y
CONFIG_PACKAGE_KMOD_USB_UHCI=y
CONFIG_PACKAGE_KMOD_USB_OHCI=y
CONFIG_PACKAGE_KMOD_USB2=y
CONFIG_PACKAGE_KMOD_USB_CONTROLLER=y
....




Thx.
Martin

(Last edited by ares321 on 24 Sep 2006, 18:49)

i posted this topic about my problems with the pwc modul. In my case - netgear wgt634u, trunk 4832, kernel 2.6.17 - the pwc modul will not be compiled, even if i included it in the .config as modul or direct in the kernel. when i use make V=99 there are no hints for the complication of the pwc-modul.
I have tried so much. Can anybody the a working pwc-modul post his/her .config and the trunk version?

I need to run the webcam with my netgear wgt634u for my master thesis.

Thx. 4 any help.

Martin

In the meanwhile i tried "make menuconfig" in the build_mipsel/linux and
enabled
CONFIG_VIDEO_V4L1=y
and now i am asked by "make oldconfig" for the v4l devices, e.g. pwc.

now its compiling...... :-))

i think it will be fixed with kernel 2.6.18.

I try the webcam today, and will post my approach.

Greetz Martin

i am just rebuilding it.
does anybody know how to clear the kernel-build and rebuild the kernel, without downloading the new kernel-image.
at the moment i doing it with:
    * make target/clean
    * make target/install
          o rebuilds install image (and kernel too?)

but this will clear the openwrt/build_mipsel/linux directory.
Its important because i downloaded the most recent pwc-module from saillard.org/pwc and want to unpack it into the kernel-tree (under ./build_mipsel/linux/drivers/media/video/pwc/ )

and does anybody know where to find infos about howto cross-compile sources e.g. the pwc module with the openwrt-toolchain.

really thx a lot.

I got it.

It works :-)

will post the procedure later.

greetz Martin

Yes ;-))

everything works find.

cat /dev/v4l/video0 .... makes "signs"

and even palantir works (jpeg-webserver).


the procedure was ...


svn co https://svn.openwrt.org/openwrt/branches/buildroot-ng
make V=99 | tee log_run0

this will download and build everything ...

BUT ... as described, the pwc module will not be included even if u selected it.

the problem is the "switch" to v4l2 ... you can see it. when
"make ARCH=mips menuconfig"     ### in buildroot-ng/openwrt/build_mipsel/linux

default
   [ ]   Enable Video For Linux API 1 (DEPRECATED)                                     ? ?
  ? ?             [*]   Enable Video For Linux API 1 compatible Layer
choose
  [*]   Enable Video For Linux API 1 (DEPRECATED)                                     ? ?
  ? ?             ---   Enable Video For Linux API 1 compatible Layer         

only then u can select under
Video Capture Adapters  --->
           V4L USB devices  --->
                      <M> USB Philips Cameras
finally i downloaded the most recent package from
http://www.saillard.org/linux/pwc/
and extracted it in the kernel_directory under  buildroot-ng/openwrt/build_mipsel/linux where the old module was.

then i followed your advice:

"make clean" in buildroot-ng/openwrt/build_mipsel/linux
Remove .linux-compile and .modules_done, which are the "stamp files".
After you're done, go to "openwrt" directory, and start "make V=99" there.

find buildroot-ng/openwrt/build_mipsel/linux -iname "*pwc*"
then u get the pwc.ko

then upgrade the router.
install videodev and usb-stuff
wget 192.168.1.XXX/pwc.ko /lib/modules/2.6.17

insmod pwc
should work now....

no problems any more....

hope this "howto" is understandable ;-))

Greetz Martin

So you are running a logitech pro 4000 webcam with OpenWrt?  That's pretty sweet!  I'm interested in your benchmarks.

How many frames per second are you getting?

Does Palantir make a difference?

Congrats!

(Last edited by dRax on 2 Nov 2006, 21:25)

ares321 wrote:

Yes ;-))

everything works find.....

hope this "howto" is understandable ;-))

Greetz Martin

Thank you very much Martin, I followed this guide of urs and now it just works perfect! Thanks again you are the man!

The discussion might have continued from here.