½¨Á¢ARM+LinuxÓ¦ÓóÌÐòµ÷ÊÔ»·¾³
http://blog.csdn.net/dinitial/archive/2009/02/22/3923559.aspx
Gdb+gdbserver+insight»·¾³µÄ´î½¨
1. ÏÂÔØgdbÔ´´úÂë http://ftp.gnu.org/gnu/gdb/
2. ÅäÖð²×°gdb+gdbser
$ tar jxvf gdb-6.6.tar.bz2
$ cd x/gdb
$ ./configure --target=arm-linux --prefix=/usr/local/arm-gdb –v
--prefixÓÃÓÚÖ¸¶¨°²×°Â·¾¶
--target=arm-linux ÓÃÓÚÖƶ¨Ä¿±ê»·¾³µÄ±àÒë
±àÒ룬 $ make
°²×°£¬ $ sudo make install
Ö®ºóÔÚx/binÎļþ¼ÐÏÂÉú³Éarm-linx-gdb¿ÉÖ´ÐÐÎļþ.
$ cd gdbserver
ÅäÖÃÎļþ£º
$ ./configure --target=arm-linux --host=arm-linux
£¨--target=arm-linux±íʾĿ±êƽ̨£¬--host±íʾÖ÷»ú¶ËÔËÐеÄÊÇarm-linux-gdb£¬²» ÐèÒªÅäÖ×prefix£¬ÒòΪgdbserver²»ÔÚÖ÷»ú¶Ë°²×°ÔËÐУ©
$ make CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
(ÕâÒ»²½ÒªÖ¸¶¨Äã×Ô¼ºµÄarm-linux-gccµÄ¾ø¶ÔλÖã¬Ïà¶ÔµÄͨ³£²»ÐУ¬Ìáʾmake: arm-linux-gcc: Command not found£¬Èç¹ûÓõÄÏà¶Ô·¾¶£¬¼´Ö±½Ó¸³Öµarm-linux-gcc£¬¿É²ÉÈ¡makeʱ´«µÝ²ÎÊý£¬Ò²¿ÉÒÔÖ±½ÓÐÞ¸ÄgdbserverĿ¼ÏµÄMakefileÎļþÖеĻ·¾³±äÁ¿CC)
Ö®ºóÔÚgdbserverĿ¼ÏÂÉú³Égdbserver¿ÉÖ´ÐÐÎļþ.
¿É½«Ëüͨ¹ýnfs¿½±´µ½Ä¿±ê°åÉÏÔËÐÐ.
È磺mount –t nfs host:/friendly-arm/root /mnt –o ro,nolock
ÕâÀïÈç¹ûûÓмÓÉÏÑ¡Ïî –o ro,nolock ÎÞ·¨Õý³£mount.
@ÔÚÄ¿±ê°åÉÏÔËÐÐ
(1)½«Òªµ÷ÊÔµÄÎļþºÍgdbserver·ÅÔÚͬһ¸öÎļþ¼ÐÏÂ
vivi> ./gdbserver host:port “´ýµ÷ÊÔÎļþ”
£¨2£©ÔÚÖ÷»ú¶ÎÖ´ÐÐ arm-linux-gdb “´ýµ÷ÊÔÎļþ”
£¨gdb£©target remote client:port Á¬½Ó¿Í»§»ú
×¢Ò⣺£¨1£©ÔÚÄ¿±ê»úÉÏͨ¹ýgdbserverµ÷ÊԵijÌÐòÔÚgdbserverÔËÐеÄʱºòÒѾÔËÐÐÁË£¬²¢ÇÒÆäÖв»°üº¬µ÷ÊԵķûºÅÐÅÏ¢£¬ËùÒÔÒªÏë¼ÓÈë·ûºÅÐÅÏ¢Ö»ÄÜͨ¹ýhostÔËÐеÄgdb¼ÓÈ뺬Óе÷ÊÔÐÅÏ¢µÄ¿ÉÖ´ÐÐÎļþ¡£
£¨2£©¸Õ¿ªÊ¼µÄʱºò½«./gdbserverÏÂÔص½Ä¿±ê»úºó²»ÄÜÔËÐУ¬ÆäÖ÷ÒªÔÒò¾ÍÊÇËùÖÆ×÷µÄÍøÂç¸ùÎļþϵͳȱÉÙlibthread_db.so.1
Ïà¹ØÎĵµ£º
¡¡¡¡Ð´ÁËÕ⼸Äê³ÌÐò£¬Í»È»×ªµ½linuxÏ£¬Í»È»¸Ðµ½×Ô¼º»¹ÒªÑ§µÄÌ«¶à¡£
¡¡¡¡1¡£linuxµÄÃüÁºÃ¶à....
2. Ì«¶àµÄIDE£¬²»ÖªµÀ¾¿¾¹Äĸö²ÅÕæÕýºÃʹ£¬ÔÝʱÓÃeclicpes°É£¬¾Ý˵ºÜÏóVS¡£
¡¡¡¡3. VMWAREϵÄlinux,¡¡ÏÔ¿¨¾¹È»×°²»ºÃ£¬Ìý˵µ½×°VTOOLS,£¬µ«Ã»ÕÒµ½ºÃÓõġ£
¡¡¡¡4¡¡³ýÁËMSµÄ ......
ÕâÁ½Ì죬¸ø×Ô¼ºµçÄÔŪÁË˫ϵͳ£¬³ýÁËÔÀ´µÄWindows 7ϵͳÍ⣬װÉÏÁËLinuxϵͳ£¬Ê¹Óõİ汾ÊÇUbuntu
£¨µã
»÷¿Éµ½ÏàÓ¦µÄÏÂÔØÒ³Ã棩¡£¿ªÊ¼ÎÒ×°µÄLinux°æ±¾ÊÇfedora9£¬¶ÔÓÚÒ»¸ö¸ù±¾Ã»½Ó´¥¹ýLinuxϵͳµÄÈ˶øÑÔ£¬Ê¹ÓÃfedora£¬¼òÖ±ÈÃÈ˱ÀÀ£¡£¸ü
±ÀÀ£µÄÊÇ£¬ÎÒÓõÄÓ¢Îİ档ûµÄ°ì·¨£¬ÓÖÖØÐÂÏÂÔØLinux£¬¿Ìµú¡£×°ÏµÍ³¡£×°ÏµÍ³µÄʱºò ......
Ò»¸öСÀúÊ·½«ÓÐÖúÓÚ°ïÖúÄúÀí½â Security-Enhanced Linux£¨SELinux£©——¶øÇÒËü±¾ÉíÒ²ÊǶÎÓÐȤµÄÀúÊ·¡£
ÃÀ¹ú¹ú¼Ò°²È«¾Ö
£¨National
Security
Agency£¬NSA£©³¤Ê±¼äÒÔÀ´¾Í¹Ø×¢´ó²¿·Ö²Ù×÷ϵͳÖÐÊÜÏ޵ݲȫÄÜÁ¦¡£±Ï¾¹£¬ËûÃǵŤ×÷Ö®Ò»¾ÍÊÇҪȷ±£ÃÀ¹ú¹ú·À²¿Ê¹ÓõļÆËã»úÔÚà ......
1. LinuxCommand
¡¡¡¡LinuxCommandÊÇÒ»¸öѧϰLinuxÃüÁîÐÐ×îºÃµÄÍøÕ¾Ö®Ò»¡£ÍøÕ¾·ÖΪ£ºÑ§Ï°Shell¡¢Ð´Shell½Å±¾¡¢½Å±¾¿â¡¢³¬¼¶MANÒ³Ãæ¡£
http://linuxcommand.org/
2. O’ReillyµÄLinuxÃüÁîÖ¸ÄÏĿ¼
¡¡¡¡O’ReillyµÄLinuxÃüÁîÖ¸ÄÏĿ¼ÊÇÒ»¸ö¼«ºÃµÄ¿ìËٲο¼Ö¸ÄÏ£¬ÁгöÁË´ó ......