opkg update
opkg install usbutils
lsusb
...
Bus 001 Device 011: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

Install USB sound card driver:

opkg update
opkg install kmod-sound-core 
opkg install kmod-usb-audio 
reboot -f

Confirm driver installed:

root@Arduino:/mnt/sda1# ls -al /dev/audio
crw-r--r--    1 root     root       14,   4 Jun 13 02:17 /dev/audio
root@Arduino:/mnt/sda1#  ls -al /dev/dsp
crw-r--r--    1 root     root       14,   3 Jun 13 02:17 /dev/dsp
root@Arduino:/mnt/sda1#  ls -al /dev/mixer
crw-r--r--    1 root     root       14,   0 Jun 13 02:17 /dev/mixer

Write comment (0 Comments)
lsusb -v
...
Bus 002 Device 005: ID 041e:4068 Creative Technology, Ltd

Linux gspca webcam list:

http://eko.one.pl/?p=openwrt-webcam

041E:4068 kmod-video-gspca-ov519

Install gspca driver:

opkg update
opkg install kmod-usb-core kmod-video-core kmod-input-core
opkg install kmod-video-gspca-core kmod-video-gspca-ov519

Confirm driver installed:

root@Arduino:/mnt/sda1# ls -al /dev/video*
crw-r--r--    1 root     root       81,   0 Jun 13 01:45 /dev/video0

Write comment (0 Comments)
lsusb
...
Bus 001 Device 010: ID 046d:08c2 Logitech, Inc. QuickCam PTZ

Linux UVC webcam list:

http://www.ideasonboard.org/uvc/

046d:08c2	Logitech Quickcam Orbit/Sphere MP	Logitech

Install UVC driver:

opkg update
opkg install kmod-usb-core kmod-video-core kmod-input-core 
opkg install kmod-video-uvc

Confirm driver installed:

root@Arduino:/mnt/sda1# lsmod | grep uvc
uvcvideo               57752  0
videobuf2_vmalloc       1585  1 uvcvideo
videobuf2_core         16456  1 uvcvideo
videodev               70150  2 uvcvideo,v4l2_common

Write comment (0 Comments)
find /etc -maxdepth 1 -type f | wc -l
32

at ETC directory has 32 files.

ATmega32u4 Code:

#include <Process.h>
void setup() {
  Bridge.begin();   // Initialize the Bridge
  Serial.begin(9600);   // Initialize the Serial
  while (!Serial);  // Wait until a Serial Monitor is connected.
  countfiles();
}
void loop() { }
void countfiles() {
  Process p;
  p.runShellCommand("find /etc -maxdepth 1 -type f | wc -l");
  while (p.running());
  while (p.available()) {
    int result = p.parseInt();          // look for an integer
    Serial.println(result);       // print the number as well
    break;
  }
}

Write comment (0 Comments)

Subcategories

Expand the Storage at Yun

Languages Supported by Yun

Backup and Recover

Network and Yun

Hardware & Yun

OpenWrt-SDK & Yun