ÔÚs3c2410ÉÏÔËÐÐlinuxµÄ·½·¨
1. ×¼±¸¹¤×÷£º
¿ª·¢°åµÄipÉèÖÃ
gzsd> net set ipaddr 192.168.0.11 ÉèÖÿª·¢°åµÄIP
gzsd> net set serverip 192.169.0.10 ÉèÖÃtftp serverµÄIP
gzsd> net set netmask 255.255.255.0 ÉèÖÃ×ÓÍøÑÚÂë
gzsd> net save ±£´æÉèÖÃ
gzsd> net ping XXX ²âÊÔÁ¬½Ó×´¿ö
°²×°tftp·þÎñÆ÷
windowsÏÂ
ÔËÐйâÅ̹¤¾ßĿ¼ÏµÄTFTPSRV.exe
c:\>TFTPSRV.exe dc:\
ÓÃd²ÎÊýÀ´ÉèÖøùĿ¼¡£
linuxÏÂ
#setup
ÔÚSystem servicesÖÐÑ¡Ôñtftp£¬±£´æÖØÆô¡£
tftp serverµÄÅäÖÃÎļþΪ/etc/xinetd.d/tftp£¬¿ÉÒÔÔÚÀïÃæÉèÖÃtftp serverµÄ¸ùĿ¼
ÁíÍâÐèÒª¹Ø±Õ·À»ðǽ
#chkconfig iptables off (ÖØÆôºóÉúЧ)
#service iptables stop (¼´Ê±ÉúЧ£¬ÖØÆôºóʧЧ)
°²×°NFS·þÎñÆ÷
/etc/exports
+ /home/s3c2410/nfs 192.168.0.11(rw,sync,no_root_squash)
²ÎÊýº¬Ò壺Ê×ÏÈÊÇÖ¸¶¨nfsµÄĿ¼£¬ipµØַΪ¿ÉÒÔ·ÃÎÊÕâ¸öĿ¼µÄipµØÖ·
rw£¬¿ÉÒÔ¶Áд¡£
±à¼ÍêÄǸöÎļþºóÔËÐÐÃüÁî:
#exportfs -rav
#/etc/init.d/nfs start|restart
¹Ò½Ó·½·¨£º
mount -t nfs 192.168.0.12:/home/s3c2410/nfs /tmp
2. ·ÖÇø
gzsd> part add kernel 0x00030000 0x001c0000 0
¸ÃÎÄÇø´æ·ÅÄÚºË
gzsd> part add root 0x00200000 0x00200000 0
¸Ã·ÖÇø´æ·Å¸ùÎļþϵͳ
gzsd> part add usr 0x00400000 0x03cf8000 0
¸Ã·ÖÇø´æ·ÅÓ¦ÓóÌÐò,usr·ÖÇøÎÒÃǹÒÔصÄÊÇ¿ÉдµÄyaffsÎļþϵͳ
gzsd> part save
±£´æ·ÖÇøÐÅÏ¢
3. ÉèÖÃlcdÊä³öģʽºÍϵͳ×Ô¶¯Æô¶¯µÄ²Ù×÷ϵͳģʽ
gzsd> param set distype 1
gzsd> param set ostype 1
gzsd> param save
ostype: 1 linux 2 wince
distype: 0 lcd 1 vga 2 tv 640X400 3 tv 640X480
4. ½«Äں˺͸ùÎļþϵͳÉÕÈëflash
tftp server ip: 192.168.0.10
¿ª·¢°åip: 192.168.0.12
±¾ÎIJ»½éÉÜÄÚºËÓë¸ùÎļþϵͳµÄ±àÒë,ËùÒÔÖ±½ÓʹÓùâÅÌÖÐÌṩµÄÄÚºËÓë¸ùÎļþϵͳÎļþ
½«¹âÅÌlinux/imageÖеÄroot_china.cramfsºÍzImage¿½±´µ½PC tftp¸ùĿ¼Ï¡£
È»ºóÏÂÔص½¿ª·¢°å²¢ÉÕÈë
gzsd> net tftp 192.168.0.10 30008000 zImage
gzsd> net flash kernel
gzsd> net tftp 192.168.0.10 30008000 root_china.cramfs
gzsd> net flash root
´ËʱÉý¼¶viviÒ²¿ÉÒÔͨ¹ýtftp·½Ê½£º
gzsd> net tftp 192.168.0.10 30008000 vivi
gzsd> net flash vivi
×îºóÉèÖÃÏÂlinuxµÄÆô¶¯²ÎÊý£º
gzsd> param set linux_cmd_line "noinitrd
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
#include <stdio.h>
#define N 19
int main()
{
int i;
for (i=0;i<=N;i++)
{
printf("%*.*s%-*.*s\n",N,i<=N/2?i:N-1,"*******************",\
N,i<=N/2?i+1:N-i+1,"*******************");
}
return 0;
}
%m.ns ......
linuxÏ°²×°ÐÂÓ²Å̲¢¼ÓÔØʹÓÃÊÖ¼Ç
================================================================================
Ò»¡¢¹ý³Ì²½Öè
1¡¢#kudzu //¼ì²âÐÂÓ ......