Linux¶¨Ê±Æ÷ Ïê½â[ת]
[ת]Linux¶¨Ê±Æ÷
ºËÖ÷ÒªÐèÒªÁ½ÖÖÀàÐ͵Äʱ¼ä£º
1.
ÔÚÄÚºËÔËÐÐÆÚ¼ä³ÖÐø¼Ç¼µ±Ç°µÄʱ¼äÓëÈÕÆÚ£¬ÒÔ±ãÄں˶ÔijЩ¶ÔÏóºÍʼþ×÷ʱ¼ä±ê¼Ç£¨
timestamp
£¬Ò²³ÆÎª
“
ʱ¼ä´Á
”
£©£¬»ò¹©ÓÃ
»§Í¨¹ýʱ¼ä
syscall
½øÐмìË÷¡£
2.
ά³ÖÒ»¸ö¹Ì¶¨ÖÜÆÚµÄ¶¨Ê±Æ÷£¬ÒÔÌáÐÑÄں˻òÓû§Ò»¶Îʱ¼äÒѾ¹ýÈ¥ÁË¡£
PC
»úÖеÄʱ¼äÊÇÓÐÈýÖÖʱÖÓÓ²¼þÌṩµÄ£¬¶øÕâЩʱÖÓÓ²¼þÓÖ¶¼»ùÓڹ̶¨ÆµÂʵľ§ÌåÕñµ´Æ÷À´ÌṩʱÖÓ·½²¨ÐźÅÊäÈë¡£ÕâÈýÖÖʱÖÓÓ²¼þ
ÊÇ£º£¨
1
£©ÊµÊ±Ê±ÖÓ£¨
Real Time Clock
£¬
RTC
£©£»£¨
2
£©¿É±à³Ì¼ä¸ô¶¨Ê±Æ÷£¨
Programmable Interval Timer
£¬
PIT
£©£»£¨
3
£©
ʱ¼ä´Á¼ÆÊýÆ÷£¨
Time Stamp Counter
£¬
TSC
£©¡£
7
£®
1
ʱÖÓÓ²¼þ
7
£®
1
£®
1
ʵʱʱÖÓ
RTC
×Ô´Ó
IBM PC AT
Æð£¬ËùÓеÄ
PC
»ú¾Í¶¼°üº¬ÁËÒ»¸ö½Ð×öʵʱʱÖÓ£¨
RTC
£©µÄʱÖÓоƬ£¬ÒÔ±ãÔÚ
PC
»ú¶ÏµçºóÈÔÈ»Äܹ»¼ÌÐø±£³Öʱ¼ä¡£ÏÔ
È»£¬
RTC
ÊÇͨ¹ýÖ÷°åÉÏµÄµç³ØÀ´¹©µçµÄ£¬¶ø²»ÊÇͨ¹ý
PC
»úµçÔ´À´¹©µçµÄ£¬Òò´Ëµ±
PC
»ú¹ØµôµçÔ´ºó£¬
RTC
ÈÔÈ»»á¼ÌÐø¹¤×÷¡£Í¨
³££¬
CMOS RAM
ºÍ
RTC
±»¼¯³Éµ½Ò»¿éоƬÉÏ£¬Òò´Ë
RTC
Ò²³Æ×÷
“CMOS Timer”
¡£×î³£¼ûµÄ
RTC
оƬÊÇ
MC146818
£¨
Motorola
£©ºÍ
DS12887
£¨
maxim
£©£¬
DS12887
ÍêÈ«¼æÈÝÓÚ
MC146818
£¬²¢ÓÐÒ»¶¨µÄÀ©Õ¹¡£±¾½ÚÄÚÈÝÖ÷Òª»ùÓÚ
MC146818
ÕâÒ»±ê×¼µÄ
RTC
оƬ¡£¾ßÌåÄÚ
ÈÝ¿ÉÒԲο¼
MC146818
µÄ
Datasheet
¡£
Ïà¹ØÎĵµ£º
LinuxϵͳÔÚʹÓùâÅÌ¡¢ÈíÅÌ»òUÅÌʱ£¬±ØÐëÏÈÖ´ÐйÒÔØ£¨mount£©ÃüÁî¡£¹ÒÔØÃüÁî»á½«ÕâЩ´æ´¢½éÖÊÖ¸¶¨³ÉϵͳÖеÄij¸öĿ¼£¬ÒÔºóÖ±½Ó·ÃÎÊÏàӦĿ¼¼´¿É¶Áд´æ´¢½éÖÊÉϵÄÊý¾Ý¡£
¡¡¡¡
¡¡¡¡1.¹ÒÔØ¹âÅÌ
¡¡¡¡
¡¡¡¡¹ÒÔØ¹âÅ̵ÄÃüÁîÈçÏ£º
¡¡¡¡
¡¡¡¡# mount -t is09660 /dev/cdrom /mnt/cdrom
¡¡¡¡
¡¡¡¡¸ÃÃüÁ¹âÅ̹ÒÔØµ½/ ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øÓ²ÅÌ·ÖÒ»¸öÇø£¬ÓÃ×÷Îļþϵͳ¡£²ÎÕÕu-boot-ppc±àÒë˵Ã÷Ò»ÎÄ¡£
£²¡¢ÓÃmke2fs¸ñʽ»¯Ó²Å̵ÄÒ»¸ö·ÖÇømke2fs /dev/sd ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øSD¿¨·ÖÇø£¬ÓÃ×÷Îļþϵͳ¡£
½«¶Á¿¨Æ÷²åÈëPC»úÐéÄâ»ú£¬ÔÚPC»úÉÏÖ´ÐÐfdisk /dev/sdb
Ñ¡Ôñn¡¡¡£¡£¡£¡£¡£¡£¡£¡£² ......
LinuxÉ豸Çý¶¯Ñ§Ï°£Davinci¿ª·¢°åÉÏÔËÐеÄhelloÄ£¿é
¿´Á˺ܶà¸öhello worldÁË£¬×Ô¼ºÀ´Ð´Ò»¸öÔÚdavinci°å¿éÉÏÅܵİɡ£
Ö÷ÌåºÜ¼òµ¥£¬¾ÍÊÇÒ»¸öCÎļþhello_davinci.c¡£
/*================hello_davinci.c==============*/
#include <linux/module.h> /*ËùÓÐÄ£¿é¶¼ÐèÒªµÄÍ·Îļþ*/
#include <lin ......
µ±½ñ£¬²»¿¼ÂÇ Linux ºÍÎÞÏßÍøÂç¼¼ÊõµÄ»°£¬¾ÍÎÞ·¨Ì¸µ½¼ÆËã»úºÍÍøÂç¡£ÔÚÕâÆªÎÄÕÂÖУ¬Sreekrishnan Venkateswaran ÓÃ
Linux ¹Ûµã²ûÊÍÁËͨ¹ý WLAN¡¢Bluetooth¡¢GPRS¡¢GSM ÒÔ¼° IrDA
ʵÏÖÎÞÏßÁªÍø¡£ËûʹÓø÷ÖÖ²»Í¬µÄÎÞÏßÉ豸ºÍÏàÓ¦µÄÄں˲㣬ÒÔ¼°Óû§¿Õ¼ä¹¤¾ßÀ´Ê¾·¶ËüÃÇÔÚ Linux ÏÂÈçºÎ¹¤×÷¡£
ÎÞÏß¼¼Êõ£¬ÀýÈç
WLAN (Wireles ......