Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½¨Á¢ARM+LinuxÓ¦ÓóÌÐòµ÷ÊÔ»·¾³

 
½¨Á¢ARM+LinuxÓ¦ÓóÌÐòµ÷ÊÔ»·¾³
 
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¿âÎ


Ïà¹ØÎĵµ£º

ǶÈëʽarm linuxÀ¶ÑÀÎļþ´«ÊäÒÆÖ²

ǶÈëʽarm linuxÀ¶ÑÀÎļþ´«ÊäÒÆÖ²
Ä¿Ç°£¬À¶ÑÀ¼¼ÊõÒѾ­±È½Ï³ÉÊ죬ÌرðÊÇ»ùÓÚÊÖ»úºÍPCµÃÀ¶ÑÀÎļþ´«Êä¡£
±¾ÎÄÖ÷Òª½²Êö»ùÓÚǶÈëʽarm linuxµÄÀ¶ÑÀÎļþ´«Êä¡£
 
   ÏÖÐÐ2.6.xµÄlinuxÄں˶¼ÒѾ­¼¯³ÉÁËbluezÀ¶ÑÀÇý¶¯£¬¶ÔÓÚ2.4°æ±¾Äں˵ÄÐèÒªµ½bluez¹Ù·½ÍøÕ¾ÏÂÔز¢°²×°bluezÀ¶ÑÀÇý¶¯¡£
http://www.bluez.org/d ......

Security Enhanced LinuxµÄÀúÊ·


       Ò»¸öСÀúÊ·½«ÓÐÖúÓÚ°ïÖúÄúÀí½â Security-Enhanced Linux£¨SELinux£©——¶øÇÒËü±¾ÉíÒ²ÊǶÎÓÐȤµÄÀúÊ·¡£
ÃÀ¹ú¹ú¼Ò°²È«¾Ö
£¨National
Security
Agency£¬NSA£©³¤Ê±¼äÒÔÀ´¾Í¹Ø×¢´ó²¿·Ö²Ù×÷ϵͳÖÐÊÜÏ޵ݲȫÄÜÁ¦¡£±Ï¾¹£¬ËûÃǵŤ×÷Ö®Ò»¾ÍÊÇҪȷ±£ÃÀ¹ú¹ú·À²¿Ê¹ÓõļÆËã»úÔÚà ......

ѧϰ linux kernelµÄ½¨Òé

ÊÇÒªÓм¸¸ö½×¶ÎµÄ¡£ ¿ªÊ¼¿´ulk,
ulk×îºÃµÄµØ·½¾ÍÊÇËûËù³«µ¼µÄѧϰ·½·¨ÌرðºÃ¡£µ±ÄãÏëѧϰij·½Ãæʱ£¬ÏÈ¿´Í·Îļþ£¬ÔÚû°Ñÿ¸öÊý¾Ý½á¹¹ÖеÄÿ¸öÊý¾ÝÔªËØŪÇå³þ֮ǰ²»Òª¿´ÊµÏÖ´úÂë¡£
¶ÁÍêÍ·Îļþ£¬Òâζ×ÅÆäÖеÄ×éÖ¯¹Øϵ¸ú±ðµÄµØ·½µÄÁªÏµ¾ÍÇå³þÁË£¬ÕâʱºòÄãÈ¥¿´ÊµÏֵĴúÂëÄã»á·¢ÏÖËûÒѾ­×öµÄÕýÊÇÄãËùÏëµÄ¡£
¸ú×Åulk°ÑÕâЩ»ù±¾µ ......

FreebsdÓëlinux¶Ô±È·ÖÎö


FreeBSDÊÇÒ»¸öÍêÕûµÄ²Ù×÷ϵͳ£¬°üº¬ÁË´Ó¿ª·¢¹¤¾ßµ½¸÷ÖÖ¸÷ÑùµÄÓ¦ÓóÌÐò¡£
Ä¿Ç°ÈËÃÇÈÏΪFreeBSDÔÚÎȶ¨ÐÔºÍÍøÂçÔË×÷ÉϵÄÐÔÄÜÒªÓÅÓÚLinux¡£
ËüÓÉÒ»¸öÈí¼þ¿ª·¢µÄºËÐÄÍŶÓÀ´Î¬»¤£¬Õû¸öԭʼ³ÌÐò´úÂë»áÓÐ×éÖ¯µØ½øÐиüУ¬ËùÒÔ³ÌÐò´úÂë±È½ÏÓÐÒ»ÖÂÐÔ¡£
ÓÉÓÚÈËÃǶÔFreeBSDµÄÈÏʶ±È½ÏÉÙ£¬Ê¹Ó÷¶Î§Ò²±È½ÏС£¬µ¼ÖÂÁËËüÔÚ¶ÔһЩвúÆ· ......

linux find exec rm

#find ... -exec rm {} \;
#find ... | xargs rm -rf
Á½Õ߶¼¿ÉÒÔ°ÑfindÃüÁî²éÕÒµ½µÄ½á¹ûɾ³ý£¬ÆäÇø±ð¼òµ¥µÄ˵ÊÇÇ°ÕßÊÇ°Ñfind·¢ÏֵĽá¹ûÒ»´ÎÐÔ´«¸øexecÑ¡ÏÕâÑùµ±ÎļþÊýÁ¿½Ï¶àµÄʱºò£¬¾Í¿ÉÄÜ»á³öÏÖ“²ÎÊýÌ«¶à”Ö®ÀàµÄ´íÎó£¬Ïà±È½Ï¶øÑÔ£¬ºóÕ߾ͿÉÒÔ±ÜÃâÕâ¸ö´íÎó£¬ÒòΪxargsÃüÁî»á·ÖÅú´ÎµÄ´¦Àí½á¹û¡£ÕâÑù¿´À´£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ