[×Éѯ] Linux Kernel UART ÊÕ·¢Êý¾Ý
´ó¼ÒºÃ£¡
CPUµÄUART1¿ÚÁ¬½ÓÍâÉèµÄUART£¬ÈçºÎÔÚÄÚºËÖÐʵÏÖUARTµÄͨÐÅ£¬ÊµÏÖ¶ÔÍâÉèÊý¾ÝµÄÊÕ·¢£¿
ÇëÖ¸µ¼£¬Ð»Ð»£¡
http://www.lupaworld.com/325267/viewspace-136664.html
ÓбØÒª ÔÚÄÚºË̬ʹÓô®¿ÚÊý¾Ýô £¿
Õâ¸öÍâÉèÐèͬÄÚºËÖÐijģ¿é½øÐÐÐÅÁî½»»¥£¬Òò´Ë·ÅÔÚKernelÖкÃЩ£¬
CPUÓÐÁ½UART£¬uart0¸öÒÑ×öconsoleÁË£¬ÁíÍâÒ»¸öuart1¼Æ»®ÓÃÀ´ÓëÍâÉèͨÐÅ£¬
Ôø³¢ÊÔ°Éuart1×÷ΪttyS1£¬µ«µ¼ÖÂÆäʵ¼ÊÉÏÊäÈëÊä³ö¶¼ÔÚttyS0(¼´uart0)ÉÏ¡£
ÄÚºËÖеÄUART²¿·ÖºÃЩÊÇconsole·½ÃæµÄ£¬µÚÒ»´Î½Ó´¥£¬²»ÊǺÜÇå³þ¾ßÌåµÄuartÇý¶¯£¬ÇëÖ¸½Ì£¬Ð»Ð»£¡
æÁËÒ»ÖÜ£¬¸ã¶¨ÁË£¡
ϵͳÆô¶¯Ê±³õʼ»¯console¿Ú»á³õʼ»¯uart_port,Ö®ºóµ÷ÓÃearly_serial_setup¼´¿É£¡
´ò¿ª´®¿ÚÉ豸ʱ¼ÇµÃ°ÑECHOµÈÆÁ±Î£¬·ñÔòÿ´ÎÊÕµ½Êý¾Ýºó¾Í»áд»ØÈ¥¡£
......
struct uart_port up;
up.mapbase = XXXXXXXXXXXXXXXXXX;
up.membase = ioremap_nocache(up.mapbase,XXXXXXXXXXXXXXXX);
up.irq = XXXXXXXXXXXXXXXXXXXXXXXXXX;
up.uartclk = 50000000;
up.regshift = 2;
Ïà¹ØÎÊ´ð£º
LinuxÐÂÊÖ£¬Çë´ó¸ç´ó½ã²»Òª¼ûЦ¡£
ÎÒÓÃrootÓû§µÇ¼µ½Linuxϵͳ¡£ÔÚ¸ùĿ¼ÏÂÃæ½¨ÁËĿ¼dir1£¬ºóÓÃÃüÁîcd /dir1½øÈëµ½dir1Ŀ¼Ï£¬È»ºóÔÙÓÃmkdir dir2½¨Á¢ÁËĿ¼dir2 £¬ÔÙºóÀ´ÓÃÃüÁîcd /dir2ÊÇ£¬ÌáʾΪ£º-bush ......
ÎÒµÄÒâ˼ÊÇ£º
ÔÚ²»¸ü¸ÄÔÀ´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§
±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬ÔÀ´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔÀ´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......
ÓÐʲôºÃµÄLinux½Ì³ÌÂð£¿
СµÜл¹ý~
[ÎÊÌâµãÊý:0·Ö]
google
¾Ý˵Äñ¸çµÄ˽·¿²Ë²»´í¡£
Äñ¸çµÄLinux˽·¿²Ë
¸ü¶àµÄÔÙÕâÉÏÃæÈ¥ËÑË÷һϺÜLIUNXÊé¼®»¹²»´í
ÒýÓÃ
google
Õý½â
Äñ¸çµÄLinux˽·¿²Ë ......
Çë½Ì£º
ÔÚ LINUXϵͳÖеÄORACLEÔõôн¨±í¿Õ¼ä£¿
Ò»ÑùµÄÃüÁî°¡¡£Èç¹ûûÓÃomfµÄ»°£¬Äã¾ÍÖ¸¶¨Ï·¾¶ºÍÊý¾ÝÎļþÃû¾ÍÐÐÁË¡£
create tablespace xxx datafile '/u01/..../aaa.dbf' size 10m;
CREATE TA ......
ÎÒÓÃRPM±¨°²×°ÁËÒ»¸öÀϰ汾µÄJRE£¬ºóÀ´Ïëװа汾µÄ£¬
²»¹ý£¬ÎÒ°Ñ/usr/javaĿ¼ֱ½Ó¸øÉ¾ÁË£¬
ºóÔÙ°²×°µÄʱºò£¬×ÜÊÇÌáʾ°æ±¾³åÍ»£¬
¶øÇÒÎÒÓÃRPM°üÐ¶ÔØÊ±Ò²ÕÒ²»µ½ÎļþÁË¡£
ÎÒ¶ÔLINUX²»ÊìϤ£¬Ï£Íû¸ßÊÖ°ïæ¡£
http: ......