Page 1 of 12 12311 ... LastLast
Results 1 to 10 of 111

Thread: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

  1. #1
    Join Date
    Oct 2006
    Beans
    63

    HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    You can see the old (deprecated) version of this HOWTO here. The attachments on this post are only relevant to that old version.

    ______________

    If your webcam reports something similar to this:
    Code:
    $ lsusb
    Bus 001 Device 005: ID 2770:9120 NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera
    Then it is now fully supported by Ubuntu (version 10.04, Lucid Lynx).

    Ubuntu has, however, a bug that needs a workaround:
    Code:
    $ sudo modprobe -rv gspca_sq905
    $ sudo modprobe -v gspca_sq905
    You have to do this after every reboot or after every time you connect the camera plug.

    After this you can use XawTV or VLC to see video from your webcam:
    XawTV must not need any configuration. Just install and run it.
    With VLC, use the "Open Capture Device" (Ctrl+C) menu and point the "Video device name" to /dev/video or /dev/video0.
    aMSN must also recognise the webcam without any issues.
    See the mentioned bugreport for tips on making Skype work with it (I haven't tested it).


    You may also be able to download still photos or record your own movies with xawtv. Notice that these procedures were not confirmed by me on the most recent versions of Ubuntu.
    Recording movies with VLC should work without any issues.

    If you detect any problems with this webcam, please check if they are already reported on Ubuntu's bug-tracker. If not, feel free to submit a new ticket.


    This is the full output that must be seen on the console:
    Code:
    ubuntu@ubuntu:~$ sudo modprobe -rv gspca_sq905
    rmmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/gspca/gspca_sq905.ko
    rmmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/gspca/gspca_main.ko
    rmmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/videodev.ko
    rmmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/v4l1-compat.ko
    
    ubuntu@ubuntu:~$ sudo modprobe -v gspca_sq905
    insmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/v4l1-compat.ko
    insmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/videodev.ko
    insmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/gspca/gspca_main.ko
    insmod /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/gspca/gspca_sq905.ko

    ...and on /var/log/syslog:
    Code:
    May 10 12:07:24 ubuntu kernel: [ 1554.561023] usbcore: deregistering interface driver sq905
    May 10 12:07:24 ubuntu kernel: [ 1554.561065] sq905: deregistered
    May 10 12:07:24 ubuntu kernel: [ 1554.576046] gspca: main deregistered
    
    May 10 12:07:39 ubuntu kernel: [ 1568.757217] Linux video capture interface: v2.00
    May 10 12:07:39 ubuntu kernel: [ 1568.789711] gspca: main v2.7.0 registered
    May 10 12:07:39 ubuntu kernel: [ 1568.840283] gspca: probing 2770:9120
    May 10 12:07:39 ubuntu kernel: [ 1568.953414] gspca: probe ok
    May 10 12:07:39 ubuntu kernel: [ 1568.953475] usbcore: registered new interface driver sq905
    May 10 12:07:39 ubuntu kernel: [ 1568.954649] sq905: registered
    Attached Files Attached Files
    Last edited by Pitxyoki; May 10th, 2010 at 03:18 PM. Reason: Webcam finally supported

  2. #2
    Join Date
    May 2007
    Beans
    8

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    Hello, I need help. I want to compile sqcam for Ubuntu 7.04 with kernel 2.6.20-15-generic

    First i need to crate file : config.h by ln -s autoconf.h config.h in /usr/share/linux-headers-2.6.20-15-generic/include/linux

    after make makegamma and ./makegamma i write make for sqcam and I get :

    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/pablo/sqcam26 modules
    make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.20-15-generic'
    CC [M] /home/pablo/sqcam26/sq905.o
    In file included from /home/pablo/sqcam26/sq905.c:65:
    /home/pablo/sqcam26/usbvideo.h:203: error: field ‘vdev’ has incomplete type
    /home/pablo/sqcam26/usbvideo.h:277: error: field ‘vdt’ has incomplete type
    /home/pablo/sqcam26/sq905.c:116: error: field ‘vdev’ has incomplete type
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_ioctl’:
    /home/pablo/sqcam26/sq905.c:358: warning: implicit declaration of function ‘video_devdata’
    /home/pablo/sqcam26/sq905.c:358: warning: initialization makes pointer from integer without a cast
    /home/pablo/sqcam26/sq905.c:359: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:384: warning: implicit declaration of function ‘copy_to_user’
    /home/pablo/sqcam26/sq905.c:456: warning: implicit declaration of function ‘copy_from_user’
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_open’:
    /home/pablo/sqcam26/sq905.c:896: warning: initialization makes pointer from integer without a cast
    /home/pablo/sqcam26/sq905.c:898: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:908: warning: ISO C90 forbids mixed declarations and code
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_close’:
    /home/pablo/sqcam26/sq905.c:980: warning: initialization makes pointer from integer without a cast
    /home/pablo/sqcam26/sq905.c:981: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c: In function ‘read_frame’:
    /home/pablo/sqcam26/sq905.c:1071: warning: ISO C90 forbids mixed declarations and code
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_read’:
    /home/pablo/sqcam26/sq905.c:1104: warning: initialization makes pointer from integer without a cast
    /home/pablo/sqcam26/sq905.c:1105: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_mmap’:
    /home/pablo/sqcam26/sq905.c:1149: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:1150: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:1150: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:1152: warning: initialization makes pointer from integer without a cast
    /home/pablo/sqcam26/sq905.c:1162: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:1162: warning: ISO C90 forbids mixed declarations and code
    /home/pablo/sqcam26/sq905.c:1187: warning: implicit declaration of function ‘remap_pfn_range’
    /home/pablo/sqcam26/sq905.c:1188: error: ‘PAGE_SHARED’ undeclared (first use in this function)
    /home/pablo/sqcam26/sq905.c:1188: error: (Each undeclared identifier is reported only once
    /home/pablo/sqcam26/sq905.c:1188: error: for each function it appears in.)
    /home/pablo/sqcam26/sq905.c: At top level:
    /home/pablo/sqcam26/sq905.c:1228: error: unknown field ‘owner’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1228: warning: initialization from incompatible pointer type
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_exclusive_release’:
    /home/pablo/sqcam26/sq905.c:1239: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c:1257: error: dereferencing pointer to incomplete type
    /home/pablo/sqcam26/sq905.c: At top level:
    /home/pablo/sqcam26/sq905.c:1264: error: variable ‘sqcam_template’ has initializer but incomplete type
    /home/pablo/sqcam26/sq905.c:1265: error: unknown field ‘owner’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1265: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1265: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1266: error: unknown field ‘name’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1266: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1266: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1267: error: unknown field ‘type’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1267: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1267: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1268: error: unknown field ‘hardware’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1268: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1268: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1269: error: unknown field ‘release’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1269: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1269: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1270: error: unknown field ‘fops’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1270: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1270: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c:1271: error: unknown field ‘minor’ specified in initializer
    /home/pablo/sqcam26/sq905.c:1271: warning: excess elements in struct initializer
    /home/pablo/sqcam26/sq905.c:1271: warning: (near initialization for ‘sqcam_template’)
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_probe’:
    /home/pablo/sqcam26/sq905.c:1331: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
    /home/pablo/sqcam26/sq905.c:1331: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
    /home/pablo/sqcam26/sq905.c:1331: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
    /home/pablo/sqcam26/sq905.c:1342: warning: implicit declaration of function ‘video_register_device’
    /home/pablo/sqcam26/sq905.c:1342: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
    /home/pablo/sqcam26/sq905.c: In function ‘sqcam_disconnect’:
    /home/pablo/sqcam26/sq905.c:1367: warning: implicit declaration of function ‘video_unregister_device’
    /home/pablo/sqcam26/sq905.c: In function ‘usbvideo_rvmalloc’:
    /home/pablo/sqcam26/sq905.c:1708: warning: implicit declaration of function ‘SetPageReserved’
    /home/pablo/sqcam26/sq905.c:1708: warning: implicit declaration of function ‘vmalloc_to_page’
    /home/pablo/sqcam26/sq905.c: In function ‘usbvideo_rvfree’:
    /home/pablo/sqcam26/sq905.c:1725: warning: implicit declaration of function ‘ClearPageReserved’
    /home/pablo/sqcam26/sq905.c: In function ‘usbvideo_kvirt_to_pa’:
    /home/pablo/sqcam26/sq905.c:1736: warning: implicit declaration of function ‘page_address’
    make[2]: *** [/home/pablo/sqcam26/sq905.o] Błąd 1
    make[1]: *** [_module_/home/pablo/sqcam26] Błąd 2
    make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.20-15-generic'
    make: *** [module] Błąd 2

    What I should do?
    Please help me

  3. #3
    Join Date
    Oct 2006
    Beans
    63

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    LOCOSLAW_PL, I'm not sure about your problem.
    Why did you have to create that symbolic link? Were you having any errors before those?
    And where did you get the source from? Did you get that from my post or from the sqcam cvs?

  4. #4
    Join Date
    May 2007
    Beans
    8

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    I download souruces from your attached files. I create symbolic link because before that when I type make i get no linux/config.h in kernel.

    I read that 2.6.20-15 don't have config.h and it must be created. I thing that is kernel problem.

    In feisty it can't be installed or I don't know how

  5. #5
    Join Date
    Mar 2007
    Beans
    4

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    hey.. its great to see someone else with the same cheapo webcam.
    I cant wait to get it up and running in linux, however i am having some troubles.
    Maybe because i am using LinuxMint, i dont know.. but its based heavily on ubuntu, so i cant see it being a problem.

    When i type make, i get the following...
    Code:
    tzi@mintbox:~/sqcam26$ make
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/tzi/sqcam26 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.17-11-generic'
      CC [M]  /home/tzi/sqcam26/sq905.o
    /home/tzi/sqcam26/sq905.c: In function ‘sqcam_open’:
    /home/tzi/sqcam26/sq905.c:908: warning: ISO C90 forbids mixed declarations and code
    /home/tzi/sqcam26/sq905.c: In function ‘read_frame’:
    /home/tzi/sqcam26/sq905.c:1071: warning: ISO C90 forbids mixed declarations and code
    /home/tzi/sqcam26/sq905.c: In function ‘sqcam_mmap’:
    /home/tzi/sqcam26/sq905.c:1162: warning: ISO C90 forbids mixed declarations and code
    /home/tzi/sqcam26/sq905.c: At top level:
    /home/tzi/sqcam26/sq905.c:1228: error: unknown field ‘owner’ specified in initializer
    /home/tzi/sqcam26/sq905.c:1228: warning: initialization from incompatible pointer type
    make[2]: *** [/home/tzi/sqcam26/sq905.o] Error 1
    make[1]: *** [_module_/home/tzi/sqcam26] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-11-generic'
    make: *** [module] Error 2

    When i look in the folder there is no compiled file.. so its more than just warnings.
    Is there something i am missing?

  6. #6
    Join Date
    Oct 2006
    Beans
    63

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    I'm sorry I can't help you better, but I really have not much experience on any other distro/version of linux, but I can show you the output I get so you can see where there is something different:

    Code:
    $ make
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/luis/Downloads/Setups/Webcam/cvs/sqcam26 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-28-686'
      CC [M]  /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.o
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c: In function ‘sqcam_open’:
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c:908: warning: ISO C90 forbids mixed declarations and code
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c: In function ‘read_frame’:
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c:1071: warning: ISO C90 forbids mixed declarations and code
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c: In function ‘sqcam_mmap’:
    /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sq905.c:1162: warning: ISO C90 forbids mixed declarations and code
      LD [M]  /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sqcam.o
      Building modules, stage 2.
      MODPOST
      CC      /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sqcam.mod.o
      LD [M]  /home/luis/Downloads/Setups/Webcam/cvs/sqcam26/sqcam.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-28-686'
    $
    It seems that the error points at line 1228...
    Code:
    /home/tzi/sqcam26/sq905.c:1228: error: unknown field ‘owner’ specified in initializer
    /home/tzi/sqcam26/sq905.c:1228: warning: initialization from incompatible pointer type
    make[2]: *** [/home/tzi/sqcam26/sq905.o] Error 1
    make[1]: *** [_module_/home/tzi/sqcam26] Error 2
    I absolutely can't tell you what may be the problem there, as I do not have that much deep knowledge about the Linux kernel.
    This may be related to something(s?) that has(ve?) changed in the kernel and the modules may not be adapted to that, but I'm not sure... Anyway, in a few days (or weeks, depending on my work.. ) I'm going to try to check this on a Debian machine, which currently is running a 2.6.18 kernel.
    Please tell me if you can make it to work.

    P.S.- Has anyone else been able to make this camera work?

  7. #7
    Join Date
    Mar 2007
    Beans
    4

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    i got it to compile my simply commenting out that line, as i have seen done with other drivers..
    Works fine now... xawtv doesnt run for some reason unless its "sudo xawtv".
    Either way... it works

    --------------------------------------------------------------------

    .owner = THIS_MODULE,

    comment it out:

    /* .owner = THIS_MODULE, */


    http://www.gossamer-threads.com/list...tv/users/40136

  8. #8
    Join Date
    Oct 2006
    Beans
    63

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    To LOCOSLAW_PL and others possibily needing help: I have updated the HOWTO and I think I found a solution for your situation. Can you check that please?

  9. #9
    Join Date
    May 2007
    Beans
    8

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    You are greats!!

    It Finnaly works;D

    But I need to type : sudo touch /usr/src/linux-headers-2.6.20-16-generic/include/linux/config.h before I make make

  10. #10
    Join Date
    Feb 2006
    Location
    West Sussex, UK
    Beans
    3
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: See video with NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    I have a Che-ez! Snap tiny digital camera that works as a webcam on my Windows 98 system. When plugged into my linux box (running ubuntu fiesty) I get:

    Bus 002 Device 004: ID 2770:9120 NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera

    So I downloaded your sqcam26-new.tar.gz and followed your instructions. This was my first attempt at compiling anything!

    Initially the driver would not compile since it could not find linux/config.h However, I read that config.h is no longer used and so I commented it out of usbvideo.h

    The driver then compiled and I installed it following your instructions.

    I also installed xawtv. It shows the attached image. Each of the five vertical strips is part of the image and you can see movement. Changing the video source in xawtv gives the same layout but changes the colour.

    Running xawtv -hwscan shows that the camera is mounted on /dev/video0. However, I also installed Camorama which gives the error 'Could not connect to video device (/dev/video0).' and does not start.

    If I run locate sqcam.ko then I only get the line
    /lib/modules/2.6.20-16-generic/kernel/drivers/usb/media/sqcam.ko

    Do you have any suggestions?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot-xawtv.png 
Views:	170 
Size:	137.5 KB 
ID:	37139  

Page 1 of 12 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •