Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈÃǶÈëʽLinuxÖ§³ÖÆÕͨUSBÉãÏñÍ·

ÎÒÓõÄÊÇ×îÆÕͨµÄusbÉãÏñÍ·£¬Ö÷оƬΪÖÐÐÇ΢ZC0301P£¨¾Ý˵Êг¡Õ¼ÓÐÂÊ70£¥ÒÔÉÏ£©£¬COMS´«¸ÐÆ÷ΪhynixµÄhv7131e1,ÊÐÃæÉÏÄÜÂòµ½µÄ»ù±¾ÉÏÊÇÕâÖÖÅäÖá£
    linuxÏÂÇý¶¯£¬ÎÒÖ±½ÓÒÆÖ²spca5xx£¬ÏÖÔÚ³öÁËspc5xx-le£¨Light-Edition for Linux Embedded£©¸ü·½±ã£¬Ö±½ÓÕë¶ÔǶÈëʽϵͳ×öÁËÓÅ»¯£¬¿ÉÒԲο¼ÕâÀïhttp://mxhaard.free.fr/embedded.html
¸Õ²ÅʵÑéÁËһϣ¬spc5xx-leÒ²¿ÉÒÔÓá£ÏÂÃæ¾ÍÒÔspc5xx-leΪÀý¡£
¾ßÌå²½Ö裺
1¡¢ÎÒµÄlinuxÊÇATMEL×îа汾£¬Linux-2.4.27-vrs1-Atmel¡£toolchainΪarm-linux-2.95.3¡£
2¡¢ÅäÖÃÄںˣ¬ÊÔ×ÅÈÃlinux¿ÉÒÔÔÚat91rm9200ÉÏÔËÐÐÆðÀ´¡£
3¡¢ÏÂÔز¹¶¡£¨http://mxhaard.free.fr/spca50x/Doc/KernelPatch
£©£¬´ò²¹¶¡
    cp usb-2.4.31.patch.gz  /work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/drivers/usb
    cd /work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/drivers/usb
    tar -xvzf usb-2.4.31.patch.gz
    patch -p1 < usb-2.4.31.patch
4¡¢ÖØÐÂÅäÖÃÄںˣ¬ÄÚºË USB support  ---> USB Multimedia devices   Ñ¡ÏîÏÂÓ¦¸ÃÓÐ
   <M>   USB SPCA5XX Sunplus Vimicro Sonix Cameras£¬Òª°ÑËüÅäÖóÉmodule¡£
5¡¢ÈÃÄÚºËÖ§³Öusb-ohci ºÍvideo for linux (V4L)¡£
6¡¢ÖØбàÒëÄںˣ¬make dep Image module
   make module ºó£¬ÔÚ/work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/drivers/usb/spc5xx/Ŀ¼ÏÂÉú³Éspc5xx.o
7¡¢¼ÓÔØÐÂÄÚºËÔËÐС£
8¡¢ÅäÖÃÍøÂç ifconfig eth0 192.168.8.241
9¡¢mknod /dev/video0 c 81 0
10¡¢insmod spca5xx.o »áÕÒµ½ÉãÏñÍ·
  [root@AT91RM9200DK /]$insmod spca5xx.o
  usb.c: registered new driver spca5xx
  spca_core.c: USB SPCA5XX camera found. Type Vimicro Zc301P 0x301b
  spca_core.c: spca5xx driver 00.57.06LE registered
  [root@AT91RM9200DK /]$
11¡¢ÏÂÃæ¾ÍÊÇÓ¦ÓóÌÐòµÄÎÊÌâÁË£¬ÎÒÒ»Ö±ÁËÒ»¸öwebcam server£¬½»²æ±àÒëºó£¬¿ÉÒÔÔÚARMÉÏÔËÐÐÁË¡£Èç¹û×Ô¼ºÐ´£¬Ö÷ÒªÊÇÊìϤv4l±à³Ì£¬¹ØÓÚv4lÎÒ²»Ì«¶®£¬¾Í²»Ï׳óÁË¡£


Ïà¹ØÎĵµ£º

LinuxС¼¼ÇÉÊÕ¼¯

LinuxС¼¼ÇÉÊÕ¼¯
Ç°ÑÔ£ºÒòΪÓÃLinuxµÄʱ¼äÔ½À´Ô½³¤£¬ËùÐèÒª×öµÄÊÂÒ²Ô½À´Ô½¶à£¬Ð§ÂʳÉÁËÎÒ±ØÐèÍ»ÆƵÄÆ¿¾±¡£ÔÚ´Ë×ܽáÒ»ÏÂÕâ¶Îʱ¼äÓùýµÄһЩºÃµÄLinux¼¼ÇÉ¡£ÒÔºóʱ³£²¹³äÕâÑù×Ô¼ºÒªÓõÄʱºò¾ÍºÜ·½±ãÁË¡£
Author:Ajian
[Îı¾´¦Àí]
1¡¢²é¿´Ä³ÎļþµÄÒ»²¿·Ö
Èç¹ûÄãÖ»Ïë¿´ÎļþµÄÇ° 5 ÐУ¬¿ÉÒÔʹÓà head ÃüÁ
È磺head -5 ......

LinuxÈí¼þ°²×°³£Ó÷½·¨

1¡¢Èí¼þ°²×°
жÔØ£¬·Ö¼¸ÖÖÇé¿ö£º
A£º
RPM°ü£¬ÕâÖÖÈí¼þ°ü¾ÍÏñwindowsµÄEXE°²×°
ÎļþÒ»Ñù£¬¸÷ÖÖÎļþÒѾ­±àÒëºÃ£¬²¢´òÁË°ü£¬ÄĸöÎļþ¸Ã·Åµ½ÄĸöÎļþ¼Ð£¬¶¼Ö¸¶¨ºÃÁË£¬°²×°
·Ç³£·½±ã£¬ÔÚͼÐνçÃæÀïÄãÖ»ÐèҪ˫»÷¾ÍÄÜ×Ô¶¯°²×°
¡£
==ÈçºÎжÔØ:
1¡¢´ò¿ªÒ»¸öSHELLÖÕ¶Ë
2¡¢ÒòΪLinux
ϵÄÈí¼þÃû¶¼°üÀ¨°æ±¾ºÅ£¬ËùÒÔжÔØÇ°×îºÃ ......

LINUX ½ø³Ì¼ä ÐźÅ

#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <signal.h>
using namespace std;
extern char **environ;
void signal_handle(int signal_no){
cout << "sign:" &l ......

ÐéÄâ»úLinuxÏÂMinicomµÄÅäÖÃ

1¡¢Ìí¼Ó´®¿Ú: ÔÚLinuxÆô¶¯Ö®Ç°£¬ÐéÄâ»ú--¡·ÉèÖÃ--¡·Ìí¼Ó--¡·´®¿Ú--¡·±£´æ--¡·Æô¶¯Linux¡£
 
2¡¢#minicom £¬³öÏÖÆô¶¯½çÃ棬CTRL-A Z ½øÈë°ïÖú½çÃæ
   
3¡¢¼üÈëO £¬ÅäÖô®¿Ú£¬Ñ¡ÔñµÚÈýÏî“Serial port setup”µã»÷»Ø³µ
   
4¡¢Í¨¹ý·Ö±ð¼üÈëA¡¢E¡¢F£¬ÅäÖ㬵ã»÷»Ø³µ£¨FÑ ......

LinuxÉ豸Çý¶¯¿ª·¢Ïê½â ±Ê¼Ç1 LinuxÉ豸Çý¶¯ÈëÃÅ


ʲôÊÇÇý¶¯£¿
×îͨË׵ĽâÊ;ÍÊÇ“ÇýʹӲ¼þÉ豸Ðж¯”
×÷Óã¿
É豸Çý¶¯Óëµ×²ãÓ²¼þÖ±½Ó´ò½»µÀ£¬°´ÕÕÓ²¼þÉ豸µÄ¾ßÌ幤×÷·½Ê½¶ÁдÉ豸¼Ä´æÆ÷£¬Íê³ÉÉ豸µÄÂÖѯ¡¢Öжϴ¦Àí¡¢DMAͨÐÅ£¬½øÐÐÎïÀíÄÚ´æÏòÐéÄâÄÚ´æµÄÓ³É䣬×îÖÕʹͨÐÅÉ豸Äܹ»ÊÕ·¢Êý¾Ý£¬Ê¹ÏÔʾÉ豸Äܹ»ÏÔʾÎÄ×ֺͻ­Ã棬ʹ´æ´¢É豸Äܹ»¼Ç¼ÎļþºÅÊý¾Ý
¼ÆË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ