LinuxÄÚºËÆô¶¯·ÖÎö
Linux ÄÚºËÆô¶¯·ÖÎö
1. ÄÚºËÆô¶¯µØÖ·
1.1. Ãû´Ê½âÊÍ
ZTEXTADDR
½âѹ´úÂëÔËÐеĿªÊ¼µØÖ·¡£Ã»ÓÐÎïÀíµØÖ·ºÍÐéÄâµØÖ·Ö®·Ö£¬ÒòΪ´ËʱMMU´¦ÓڹرÕ״̬¡£Õâ¸öµØÖ·²»Ò»¶¨Ê±RAMµÄµØÖ·£¬¿ÉÒÔÊÇÖ§³Ö¶ÁдѰַµÄflashµÈ´æ´¢Öн顣
Start address of decompressor. here's no point in talking about virtual or physical addresses here, since the MMU will be off at the time when you call the decompressor code. You normally call the kernel at this address to start it booting. This doesn't have to be located in RAM, it can be in flash or other read-only or read-write addressable medium.
ZRELADDR
ÄÚºËÆô¶¯ÔÚRAMÖеĵØÖ·¡£Ñ¹ËõµÄÄÚºËÓ³Ïñ±»½âѹµ½Õâ¸öµØÖ·£¬È»ºóÖ´ÐС£
This is the address where the decompressed kernel will be written, and eventually executed. The following constraint must be valid:
__virt_to_phys(TEXTADDR) == ZRELADDR
The initial part of the kernel is carefully coded to be position independent.
TEXTADDR
ÄÚºËÆô¶¯µÄÐéÄâµØÖ·£¬ÓëZRELADDRÏà¶ÔÓ¦¡£Ò»°ãÄÚºËÆô¶¯µÄÐéÄâµØÖ·ÎªRAMµÄµÚÒ»¸öbankµØÖ·¼ÓÉÏ0x8000¡£
TEXTADDR = PAGE_OFFSET + TEXTOFFST
Virtual start address of kernel, normally PAGE_OFFSET + 0x8000.This is where the kernel image ends up. With the latest kernels, it must be located at 32768 bytes into a 128MB region. Previous kernels placed a restriction of 256MB here.
TEXTOFFSET
ÄÚºËÆ«ÒƵØÖ·¡£ÔÚarch/arm/makefileÖÐÉ趨¡£
PHYS_OFFSET
RAMµÚÒ»¸öbankµÄÎïÀíÆðʼµØÖ·¡£
Physical start address of the first bank of RAM.
PAGE_OFFSET
RAMµÚÒ»¸öbankµÄÐéÄâÆðʼµØÖ·¡£
Virtual start address of t
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Linux IPÉèÖÃ
ÐÞ¸Äip£º
±à¼Îļþ/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 //É豸Ãû³Æ£¬²»ÒªÐÞ¸Ä
BOOTPROTO=static //²»ÒªÐÞ¸Ä
BROADCAST=10.10.22.255 //¹ã²¥µØÖ·£¬Ò»°ãΪ±¾Íø¶ÎµÄ×îºóÒ»¸öIP
IPADDR=10.10.22.145 //ipµØÖ·
NETMASK=255.255.255.0 //×ÓÍøÑÚÂë
NETWORK=10.10.22.0 //Íø¶ÎµØÖ·
ONBOOT ......
linuxÍøÂç±à³Ì
1. »ù±¾¸ÅÄî
˵µ½ÍøÂç±à³Ì,²»µÃ²»ÏÈÌáµ½OSI²Î¿¼Ä£ÐÍ,ÆäÆß²ãÄ£ÐÍ´Óϵ½ÉÏ·Ö±ðΪ
1.ÎïÀí²ã(Physical Layer,PH)
2.Êý¾ÝÁ´Â·²ã(Data Link Layer,DL)
3.ÍøÂç²ã(Network Layer,N)
4.ÔËÊä²ã(Transport Layer,T)
5.»á»°²ã(Session Layer,S)
......
http://blog.chinaunix.net/u1/38994/showart_1132089.html
dzÎölinuxÏÂÊó±êÇý¶¯µÄʵÏÖ
¡¾Ç³ÎölinuxϼüÅÌÉ豸¹¤×÷ºÍ×¢²áÁ÷³Ì¡¿
¶ÔÓÚÊó±êÇý¶¯ºÍÇ°Ãæ·ÖÎö¹ýµÄ¼üÅÌÇý¶¯¶¼Êǹ²ÓÃinputÄ£ÐÍ,
ËùÒÔ,
¶ÔÓÚʼþÉϱ¨ºÍ´¦ÀíµÄ·½Ê½¶¼Ã»ÓÐÇø±ð,
Ö»ÊÇmouseÊó±êÇý¶¯µ±Éϱ¨Íêdx,
dy,
left
,
middle,
rightÖ®ºó,
ÐèÒªµ÷ÓÃinput_ ......
ÈçºÎÔÚlinux/unixÖÐÉèÖÃÏ̵߳ÄÓÅÏȼ¶
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);
À´´´½¨Ị̈߳¬µ«ÊÇÈçºÎÉèÖÃÏ̵߳ÄÓÅÏȼ¶ÄØ£¿
ÔÚÌÖÂÛÕâ¸öÎÊÌâµÄʱºò£¬ÎÒÃÇÏÈҪȷ¶¨µ±Ç°Ïß³ÌʹÓõĵ÷¶È²ßÂÔ£¬posixÌṩÁË
int pthread_attr_getschedpolicy(const pth ......