̰Ðݲװ64λlinuxµÄÞÏÞÎ
administer@administer-laptop:~/tem/tt$ cat hello.asm
[section .data]
strHello db "Hello, world!",0Ah
STRLEN equ $-strHello
[section .text]
global _start
_start:
mov edx,STRLEN
mov ecx,strHello
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
administer@administer-laptop:~/tem/tt$ nasm -f elf hello.asm -o hello.o
administer@administer-laptop:~/tem/tt$ ls
a b boot.asm boot.bin Coded f g hello hello.asm hello.c hello.o
administer@administer-laptop:~/tem/tt$ ld -s hello.o -o hello
ld: i386 architecture of input file `hello.o' is incompatible with i386:x86-64 outputadminister@administer-laptop:~/tem/tt$
ʹÓÃ64λ²Ù×÷ϵͳµÄÞÏÞΣ¬Ï൱µÄ¾½,¿Éϧµ±Ê±Ì°ÐÄÁË£¬
Ò»Ìý˵Intel´Ó¿áªÊ¼È«Ãæ²ÉÓÃ64λCPU£¬¾Í×°ÁË£¬囧¡£
Ïà¹ØÎĵµ£º
ÓÉÓÚÔÚ¿ª·¢A1200ÉϵÄÁ÷ýÌå²¥·ÅÆ÷£¬Ãâ²»Á˳¤ÆÚ²¥·ÅÊÓÆµ£¬½øÐÐÎȶ¨ÐÔ²âÊÔ¡£¿ªÊ¼ÊÇͨ¹ýGPRS²¦ºÅÉÏÍø£¬µ«²¥·ÅÊÓÆµÌ«·ÑÁ÷Á¿ÁË£¬³ä¸ö50Ôª£¬¶¼¶¥²»×¡Ò»ÌìµÄ²âÊÔ¡£¿´µ½window mobileµÄÊÖ»ú¶¼¿ÉÒÔͨ¹ýPCÉÏÍø£¬Òò´ËÏëµ½moto linuxÊÖ»úÒ²¿ÉÒÔ¹²ÏíPCÉÏÍø£¬½ÚÊ¡Á÷Á¿·ÑÓᣴÓÀíÂÛÉϽ«ÊÇ¿ÉÐеģ¬ÒòΪmotoÊÖ»ú¿ÉÒÔ¿ªÆôUSB LAN£¬Í¨¹ýUSBÁ¬½Ó ......
I learned some experience while Nanjing found 0x03 error. At begining, we don't know why our GSRM(a linux process) hang in a short time 5 seconds sometimes. It didn't handle any message at that time and the interruption is not regularly. So we assume we have Linux OS problem. We did following checks ......
¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
ÆäʵÔÚÈ¥Äê8Ô·ÝÎÒ×öÏµÍ³ÒÆÖ²Ê±¾Í¹¹½¨ºÃÁËÒ»¸ö¿ÉÒÔÓõĸùÎļþϵͳ£¬µ«ÊÇÄÇʱÊǸú×űðÈ˵ġ¶LinuxÈ«ÏßÒÆÖ²Îĵµ¡·×öµÄ¡£ÓÐЩ¶«Î÷ÎÒÒ²²»Çå³þ£¬Ö»ÊǸú×Å×ö£¬×ö³öÀ´ÄÜÓþÍÁËÊÂÁË£¬Ã»ÓÐÉÆäÖеĹ淶£¬ÒÔ¼°ÎļþϵͳÖÐÄÄЩҪ£¬ÄÄЩ²»Òª¡£
³Ã׎ñÄê¹ýÄêµÄ¼¸Ìì¼ÙÆÚ£¬ÎÒÒÆÖ²ÖØÐÂÒÆÖ²ÁËU-Boot1.3.1 ......
ÕªÒª
ÎÒÃÇÔÚÕâÀïÌÖÂÛµÄÊǶÔǶÈëʽlinuxϵͳµÄÆô¶¯¹ý³ÌµÄÊä³öÐÅÏ¢µÄ×¢ÊÍ£¬Í¨¹ýÎÒÃǵÄÌÖÂÛ£¬´ó¼Ò»á¶ÔǶÈëʽlinuxÆô¶¯¹ý³ÌÖгöÏֵġ¢ÒÔǰ¸Ð¾õÊìϤµÄ¡¢µ«È´ÓÖËÆÊǶø·ÇµÄ¶«Î÷ÓÐÒ»¸öÈ·ÇеÄÁ˽⣬²¢ÇÒÄÜÁ˽⵽ÕâЩÊä³öÐÅÏ¢µÄÀ´ÁúÈ¥Âö¡£
ǶÈëʽlinuxµÄÆô¶¯ÐÅÏ¢ÊÇÒ»¸öºÜÖµµÃÎÒÃÇÈ¥ºÃºÃÑо¿µÄ¶«Î÷£¬ËüÄܽ«Ò»·ùËõӰͼ³ÊÏÖÔÚÎÒÃÇÃæÇ°£ ......