Najlepiej byłoby zmienić router na lepszy ale... uparłem się na ten. Za dużo czasu i pracy mu poświęciłem.
Na temat ww. błędu znalazłem trochę -szczególnie na zagranicznych stronach.
Zgaduje ze chodzi o to. Swego czasu driver gspca nie wspieral w ogole
interfejsu v4l1, tylko v4l2 i czasami dzialaly obejscia z libv4l (czy
jak to sie nazywalo), a czasami nie. Zainstaluj libv4l, poczytaj jakie
zmienne trzeba poustawiac i potestuj.
Więc instaluję bibliotekę libv4l szukam dalej i znajduję:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/motion
Jest już jakiś postęp ale żeby to było takie proste 
root@OpenWrt:/# LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/motion
[0] Processing thread 0 - config file /etc/motion.conf
[0] Unknown config option "ffmpeg_cap_new"
[0] Unknown config option "ffmpeg_cap_motion"
[0] Unknown config option "ffmpeg_timelapse"
[0] Unknown config option "ffmpeg_timelapse_mode"
[0] Unknown config option "ffmpeg_bps"
[0] Unknown config option "ffmpeg_variable_bitrate"
[0] Unknown config option "ffmpeg_video_codec"
[0] Unknown config option "ffmpeg_deinterlace"
[0] Unknown config option "movie_filename"
[0] Unknown config option "timelapse_filename"
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.11.1 Started
[0] Thread 1 is from /etc/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.11.1 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "spca561"
[1] cap.card: "Creative WebCam Vista"
[1] cap.bus_info: "usb-ADM5120-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: RGB3 (RGB3)
[1] 1: BGR3 (BGR3)
[1] 2: YU12 (YU12)
[1] Selected palette YU12
[1] index_format 8 Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace 0
0000008
[1] found control 0x00980903, "Hue", range 1,127
[1] "Hue", default 64, current 64
[1] found control 0x00980910, "Gamma (software)", range 500,3000
[1] "Gamma (software)", default 1000, current 1000
[1] found control 0x00980911, "Exposure", range 1,2372
[1] "Exposure", default 700, current 700
[1] found control 0x00980912, "Auto Gain (software)", range 0,1
[1] "Auto Gain (software)", default 1, current 1
[1] found control 0x00980913, "Gain", range 0,255
[1] "Gain", default 63, current 63
[1] mmap information:
[1] frames=4
[1] 0 length=16777216
[1] 1 length=16777216
[1] 2 length=16777216
[1] 3 length=16777216
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
libv4l2: error dequeuing buf: Input/output error
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Error capturing first image
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Resizing pre_capture buffer to 1 items
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] Calling vid_close() from motion_cleanup
[0] Closing video device /dev/video0
Czyli z tym problem
libv4l2: error dequeuing buf: Input/output error
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Error capturing first image
I jest o tym wspomniane na stronie: http://www.lavrsen.dk/foswiki/bin/view/ … Discussion jednak nie bardzo wiem gdzie szukać pliku video2.c
Jeszcze coś o samym v4l2 http://en.wikipedia.org/wiki/Video4Linux może ktoś pomoże mi torozgryźć
Gdzie mogę szukać jakiś innych sterowników dla tej kamerki lub innej wersji motion?
Takie trochę głupie pytanie czy z tego http://www.lavrsen.dk/foswiki/bin/view/ … SourceSnap idzie skompilować motion? W wersji 3.2.11.1 (czyli ta która instalowałem przez opkg) plik video2.c zawiera
* Supported features and TODO
* - preferred palette is JPEG which seems to be very popular for many 640x480 usb cams
* - other supported palettes (NOT TESTED)
* V4L2_PIX_FMT_SBGGR8 (sonix)
* V4L2_PIX_FMT_SN9C10X (sonix)
* V4L2_PIX_FMT_MJPEG, (tested)
* V4L2_PIX_FMT_JPEG, (tested)
V4L2_PIX_FMT_RGB24,
V4L2_PIX_FMT_UYVY, (tested)
V4L2_PIX_FMT_YUV422P,
V4L2_PIX_FMT_YUV420, (tested)
V4L2_PIX_FMT_YUYV (tested)
Natomiast wersja najnowsza w powyższej strony:
* Supported features and TODO
- preferred palette is JPEG which seems to be very popular for many 640x480 usb cams
- other supported palettes (NOT TESTED)
V4L2_PIX_FMT_SN9C10X (sonix)
V4L2_PIX_FMT_SBGGR16,
V4L2_PIX_FMT_SBGGR8, (sonix)
V4L2_PIX_FMT_SPCA561,
V4L2_PIX_FMT_SGBRG8,
V4L2_PIX_FMT_SGRBG8,
V4L2_PIX_FMT_PAC207,
V4L2_PIX_FMT_PJPG,
V4L2_PIX_FMT_MJPEG, (tested)
V4L2_PIX_FMT_JPEG, (tested)
V4L2_PIX_FMT_RGB24,
V4L2_PIX_FMT_SPCA501,
V4L2_PIX_FMT_SPCA505,
V4L2_PIX_FMT_SPCA508,
V4L2_PIX_FMT_UYVY, (tested)
V4L2_PIX_FMT_YUV422P,
V4L2_PIX_FMT_YUV420, (tested)
V4L2_PIX_FMT_YUYV (tested)
czyli jest mój SPCA561.
TL-WR1043ND + Edimax BR-6104K(USB mod)