ARM+LinuxÖÐÎÞ·¨ÏìÓ¦ctrl+cÊÇÔõô»ØÊÂ
µ½×îºó»¹ÊÇ×Ô¼º½â¾öÁË£¬µ¼Ö¸ÃÎÊÌâµÄÔÒòÊÇÔÚlinuxÆô¶¯µ½×îºó³öÏÖ£º
/bin/sh: can't access tty; job control turned off
¶ø³öÏָôíÎóµÄÔÒòºÍ½â¾ö·½·¨googleºóÓÐǧ°ÙÖÖ£¬³¢ÊÔÁ˺ܶàÖÖ¶¼Ã»ÓаïÎÒ½â¾öÎÊÌâ¡£
ÏÂÃæÊÇÎÒ×Ô¼ºµÄ½â¾ö·½·¨£º
1. vi /etc/inittab µÚÒ»ÐÐÌí¼Ó
console::sysinit:/etc/init.d/rcS
2.Ö´ÐÐÃüÁÕÒ³öÕæÕý´®¿ÚËù¶ÔÓ¦µÄÉ豸ºÅ£¬ÕâÀïΪ204
# cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
14 sound
21 sg
29 fb
90 mtd
99 ppdev
116 alsa
128 ptm
136 pts
180 usb
188 ttyUSB
189 usb_device
204 s3c2410_serial
253 usb_endpoint
254 rtc
3.ɾ³ýÔÀ´µÄ /dev/console
#rm /dev/console
4.´´½¨ÕæÕý´®¿ÚµÄÉ豸½Úµã
#mknod -m 666 /dev/ttySAC0 c 204 64
5.°ÑconsoleÁ´½Óµ½ÕæÕýµÄ´®¿Ú½Úµã ttySAC0
#ln -s /dev/ttySAC0 /dev/console
¸ãµàÖØÆô£¬²âÊÔһϣº
# ping 192.168.0.228
PING 192.168.0.228 (192.168.0.228): 56 data bytes
64 bytes from 192.168.0.228: seq=0 ttl=64 time=11.609 ms
64 bytes from 192.168.0.228: seq=1 ttl=64 time=4.204 ms
64 bytes from 192.168.0.228: seq=2 ttl=64 time=1.853 ms
64 bytes from 192.168.0.228: seq=3 ttl=64 time=1.238 ms
^C
--- 192.168.0.228 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 1.238/4.726/11.609 ms
#
Ctrl+C ³É¹¦Í£Ö¹
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍ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 ......
Ëæ×ÅiPhoneµÄÉÏÊУ¬Ò»¿ÅÖØ°õÕ¨µ¯ÔÒÏòÁËǶÈëʽÁìÓò¡£Ç¶ÈëʽMacOSµÄÎȶ¨ºÍÒ»¹á¶À¾ß½³Ðĵķç¸ñÅäºÏ¸ßÐÔÄܵÄоƬÔٴμ¤ÆðǶÈëʽ²Ù×÷ϵͳµÄ²¨À½¡£ÓÚ´ËͬʱͬÊôUNIXÕóÓªµÄǶÈëʽLinuxÒÀ¾É±£³Ö¿ìËٳɳ¤µÄÊÆÍ·£¬¼ÌÐø¼áÊØĿǰǶÈëʽÊг¡µÄÁì¾üµØλ¡£Ëæ×ÅARMоƬµÄÓ¦Ó÷¢Õ¹£¬Î´À´»áÓдóÁ¿»ùÓÚARM£«LinuxÄں˵ÄǶÈëʽÉ豸ӿÏÖ¡£ & ......
1.ÒýÑÔ
¡¡¡¡C++ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++ÖÐÀàËÆCÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëCÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC¼æÈݵÄÓïÑÔ£¬C++±£ÁôÁËÒ»²¿·Ö¹ý³ÌʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“²»³¹µ×µØÃæÏò¶ÔÏ󔣩£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓÚÈκÎÀàµÄÈ«¾Ö±äÁ¿ºÍº¯Êý¡£µ«ÊÇ£¬C++±Ï¾ ......
ÒÔÏÂÈ«ÎÄתÔØ×Ôhttp://www.keil.com/support/docs/697.htm Copyright © 2010 Keil™, An ARM® Company.
Information in this article applies to:
C51 Versio ......