Jump to content

amin

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by amin

  1. On 9/28/2016 at 6:11 PM, Max said:

    First of all thanks to everybody here. This is the most useful thread a find about my problem but still I have not figure out how to solve it. 

     

    - I just received a nanopi M1 and the CAM500A. 

    - I installed this debian image: http://www.mediafire.com/file/6a9wmjz826rvngw/nanopi-m1-debian-sd4g-20160907.img.zip

    - I connected the camera as in the image:

      https://dl.dropboxusercontent.com/u/18065445/Tmp/nanopi-m1-cam500a.jpg

    - followed these instructions:

       sudo bash

       cd /root/mjpg-streamer
       make
       ./start.sh

    but I received the infamous:

       ERROR opening V4L interface: No such file or directory

       Init v4L2 failed !! exit fatal

       i: Init_VideoIn failed

     

    modprobe ov5640 returns Module ov5640 not found

    modprobe vfe_v4l2 produces no output

     

    looking into /var/log/kern.log shows

    [ov5640] error at senor_detect

    [ov5640] chip found not an target chip

     

    I tried two different new cameras (same models) and two different new nanopis (same models). So I have no reason to think it is a defective camera or connector.

     

    I would appreciate if you could help me with the following:

    1) does it look like I inserted the connector in the proper direction?

    2) is there a known fix?

    3) is there anything I can do to further debug this problem?

     

    hi

    I am grateful for the help that will be given to me.

    Please help me with the launch of the cam500a by Nano Air.
     

    I tried to use http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B guides and go along with it.

     

    but I did not succeed .
    I am very beginner and need help.

     

     

    This is all that I get by following the guide http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B.

    Spoiler

     

    
    root@NanoPi-NEO-Air:~# cd /root/mjpg-streamer
    root@NanoPi-NEO-Air:~/mjpg-streamer# make
    make: svnversion: Command not found
    make: Warning: File 'Makefile' has modification time 427105 s in the future
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o mjpg_streamer.o mjpg_streamer.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o utils.o utils.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall  mjpg_streamer.o utils.o -lpthread -ldl -o mjpg_streamer
    chmod 755 mjpg_streamer
    make -C plugins/input_uvc all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_uvc'
    make[1]: Warning: File 'Makefile' has modification time 427103 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
    v4l2uvc.c: In function init_videoIn’:
    v4l2uvc.c:88:23: warning: variable currentHeight set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
                           ^
    v4l2uvc.c:88:9: warning: variable currentWidth set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
             ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
    jpeg_utils.c: In function compress_yuv_to_jpeg’:
    jpeg_utils.c:208:27: warning: v may be used uninitialized in this function [-Wmaybe-uninitialized]
                 r = (y + (359 * v)) >> 8;
                               ^
    jpeg_utils.c:209:26: warning: u may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                              ^
    jpeg_utils.c:209:20: warning: y may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                        ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_uvc'
    cp plugins/input_uvc/input_uvc.so .
    make -C plugins/output_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_file'
    make[1]: Warning: File 'Makefile' has modification time 427099 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_file'
    cp plugins/output_file/output_file.so .
    make -C plugins/output_udp all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_udp'
    make[1]: Warning: File 'Makefile' has modification time 427098 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_udp.so output_udp.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_udp'
    cp plugins/output_udp/output_udp.so .
    make -C plugins/output_http all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_http'
    make[1]: Warning: File 'Makefile' has modification time 427097 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_http'
    cp plugins/output_http/output_http.so .
    make -C plugins/input_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_file'
    make[1]: Warning: File 'Makefile' has modification time 427094 s in the future
    make[1]: Nothing to be done for 'all'.
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_file'
    cp plugins/input_file/input_file.so .
    make: warning:  Clock skew detected.  Your build may be incomplete.
    root@NanoPi-NEO-Air:~/mjpg-streamer# ./start.sh
    MJPG Streamer Version: svn rev:
     i: Using V4L2 device.: /dev/video0
     i: Desired Resolution: 1280 x 720
     i: Frames Per Second.: 30
     i: Format............: YUV
     i: JPEG Quality......: 90
    ERROR opening V4L interface: No such file or directory
     Init v4L2 failed !! exit fatal
     i: init_VideoIn failed
    root@NanoPi-NEO-Air:~/mjpg-streamer#

    What should i do

     

  2. 1 hour ago, @lex said:

    CAM500A needs to add some resistor to work with neo air.

    There was an instruction on FriendlyArm  to add this resistor to become CAM500B, but i can't find it right now.

     

     

     

     

     

    I also feel there is another problem, I do not understand it

    When I execute command ''make'' , the operation is not successful

    Can you guide me where the problem is?

    root@NanoPi-NEO-Air:~/mjpg-streamer# make
    make: svnversion: Command not found
    make: Warning: File 'Makefile' has modification time 427105 s in the future
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o mjpg_streamer.o mjpg_streamer.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o utils.o utils.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall  mjpg_streamer.o utils.o -lpthread -ldl -o mjpg_streamer
    chmod 755 mjpg_streamer
    make -C plugins/input_uvc all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_uvc'
    make[1]: Warning: File 'Makefile' has modification time 427103 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
    v4l2uvc.c: In function init_videoIn’:
    v4l2uvc.c:88:23: warning: variable currentHeight set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
                           ^
    v4l2uvc.c:88:9: warning: variable currentWidth set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
             ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
    jpeg_utils.c: In function compress_yuv_to_jpeg’:
    jpeg_utils.c:208:27: warning: v may be used uninitialized in this function [-Wmaybe-uninitialized]
                 r = (y + (359 * v)) >> 8;
                               ^
    jpeg_utils.c:209:26: warning: u may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                              ^
    jpeg_utils.c:209:20: warning: y may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                        ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_uvc'
    cp plugins/input_uvc/input_uvc.so .
    make -C plugins/output_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_file'
    make[1]: Warning: File 'Makefile' has modification time 427099 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_file'
    cp plugins/output_file/output_file.so .
    make -C plugins/output_udp all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_udp'
    make[1]: Warning: File 'Makefile' has modification time 427098 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_udp.so output_udp.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_udp'
    cp plugins/output_udp/output_udp.so .
    make -C plugins/output_http all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_http'
    make[1]: Warning: File 'Makefile' has modification time 427097 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_http'
    cp plugins/output_http/output_http.so .
    make -C plugins/input_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_file'
    make[1]: Warning: File 'Makefile' has modification time 427094 s in the future
    make[1]: Nothing to be done for 'all'.
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_file'
    cp plugins/input_file/input_file.so .
    make: warning:  Clock skew detected.  Your build may be incomplete.

     

  3. hi

    I am grateful for the help that will be given to me.

    Please help me with the launch of the cam500a by Nano Air.
     

    I tried to use http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B guides and go along with it.

     

    but I did not succeed .
    I am very beginner and need help.

     

     

    This is all that I get by following the guide http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B.

    root@NanoPi-NEO-Air:~# cd /root/mjpg-streamer
    root@NanoPi-NEO-Air:~/mjpg-streamer# make
    make: svnversion: Command not found
    make: Warning: File 'Makefile' has modification time 427105 s in the future
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o mjpg_streamer.o mjpg_streamer.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o utils.o utils.c
    gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall  mjpg_streamer.o utils.o -lpthread -ldl -o mjpg_streamer
    chmod 755 mjpg_streamer
    make -C plugins/input_uvc all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_uvc'
    make[1]: Warning: File 'Makefile' has modification time 427103 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
    v4l2uvc.c: In function init_videoIn’:
    v4l2uvc.c:88:23: warning: variable currentHeight set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
                           ^
    v4l2uvc.c:88:9: warning: variable currentWidth set but not used [-Wunused-but-set-variable]
         int currentWidth, currentHeight = 0;
             ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
    jpeg_utils.c: In function compress_yuv_to_jpeg’:
    jpeg_utils.c:208:27: warning: v may be used uninitialized in this function [-Wmaybe-uninitialized]
                 r = (y + (359 * v)) >> 8;
                               ^
    jpeg_utils.c:209:26: warning: u may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                              ^
    jpeg_utils.c:209:20: warning: y may be used uninitialized in this function [-Wmaybe-uninitialized]
                 g = (y - (88 * u) - (183 * v)) >> 8;
                        ^
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_uvc'
    cp plugins/input_uvc/input_uvc.so .
    make -C plugins/output_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_file'
    make[1]: Warning: File 'Makefile' has modification time 427099 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_file'
    cp plugins/output_file/output_file.so .
    make -C plugins/output_udp all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_udp'
    make[1]: Warning: File 'Makefile' has modification time 427098 s in the future
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_udp.so output_udp.c
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_udp'
    cp plugins/output_udp/output_udp.so .
    make -C plugins/output_http all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/output_http'
    make[1]: Warning: File 'Makefile' has modification time 427097 s in the future
    gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
    gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_http'
    cp plugins/output_http/output_http.so .
    make -C plugins/input_file all
    make[1]: Entering directory '/root/mjpg-streamer/plugins/input_file'
    make[1]: Warning: File 'Makefile' has modification time 427094 s in the future
    make[1]: Nothing to be done for 'all'.
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_file'
    cp plugins/input_file/input_file.so .
    make: warning:  Clock skew detected.  Your build may be incomplete.
    root@NanoPi-NEO-Air:~/mjpg-streamer# ./start.sh
    MJPG Streamer Version: svn rev:
     i: Using V4L2 device.: /dev/video0
     i: Desired Resolution: 1280 x 720
     i: Frames Per Second.: 30
     i: Format............: YUV
     i: JPEG Quality......: 90
    ERROR opening V4L interface: No such file or directory
     Init v4L2 failed !! exit fatal
     i: init_VideoIn failed
    root@NanoPi-NEO-Air:~/mjpg-streamer#

     

    What should i do

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines