ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÔÚFedora 9ÏÂÒÆÖ²uClinuxµ½NIOS II

·¢²¼Ê±¼ä:2008-06-18 16:13:08À´Ô´:ºìÁª×÷Õß:wmbodbc
ÒòΪҪ²Î¼Ó¾ºÈü,ÎÒÃǵķ½°¸ÖÐÒªÓõ½²Ù×÷ϵͳuClinux,¿ª·¢°åÊÇAlteraÌṩµÄDE1µÄ°å×Ó,ÒÆÖ²uClinux¾ÍÊDZز»¿ÉÉÙµÄÒ»²½ÁË,ÒÔÇ°½Ó´¥¹ýÕâ¸öϵͳ,µ«´ÓÀ´Ã»ÓÐ×Ô¼ºÇ×ÊÖÒÆÖ²¹ý.

µÚÒ»²½,ÊÇÓÃSOPC Builder°ÑÓ²¼þ×öºÃ,²¢ÇÒ×Ô¼ºÐ´Ò»¸öСµÄ²âÊÔ³ÌÐò,¿´ÄÜ·ñÕýÈ·ÔËÐÐ,Ö÷ÒªÊDzâÊÔÄãµÄSDRAMºÍFLASHÊÇ·ñ¿ÉÓÃ,ҪעÒâµÄ¾ÍÊÇFLASHµÄ·ÃÎÊʱ¼äÒ»¶¨²»ÒªÌ«¶Ì,ÎÒ¾ÍÒòΪÕâ¸öÎÊÌâÀË·ÑÁËÁ½Ìì¶øûÓÐÈκνøÕ¹.»¹ÓÐÒ»¸öÐèÒªÌرð×¢ÒâµÄ¾ÍÊÇÒ»¶¨Òª°ÑCPUµÄÖжÏÏòÁ¿ÉèÔÚSDRAMÖÐ,ÕâÊÇÎÒµ±Ê±·¸µÄÒ»¸öÖØÒªµÄ´íÎó,µ±È»,Èç¹ûÄã²»ÓÃuClinuxµÄ»°Õâ¸öÎÞËùν.ÎÒÒ»¿ªÊ¼ÊÇ°ÑÏòÁ¿ÉèÔÚƬÄÚRAMÖеÄ,½á¹ûÊÇÂã»ú³ÌÐò¿ÉÒÔÕý³£ÔËÐÐ,µ«uclinuxÔõôҲÅܲ»ÁË,Õâ¸öССµÄÒ»°ã²»»áÒýÆð×¢ÒâµÄСʧÎóÓÖÈÃÎÒÍ´¿àÁËÒ»Ìì,²»¹ýÎÒÏÖÔÚҪ˵µÄ×îÖ÷ÒªµÄÒ²ÊÇÈÃÎÒÍ´¿àÁ˺ܳ¤Ò»¶Îʱ¼äµÄÎÊÌâÊÇuClinuxµÄ±àÒë´íÎó.

ÎÒÓõÄÊÇFedora9µÄLinuxϵͳ,AlteraµÄ¿ª·¢Ì×¼þÈ´ÊÇWINXPϵÄ,ÕâÑùÎÒ²»µÃ²»Í£µØ°ÑµçÄÔÖØÆô,ÔÚÁ½¸öϵͳ¼ä²»Í£µØÇл»(Ë­ÈÃÎҵĻúÆ÷Ì«²îÅܲ»ÁËÐéÄâ»úÄØ).µ½www.uclinux.orgÏÂÔØÔ´Âë°ü,http://nioswiki.jot.com/WikiHomeÕâÀïÓÐNIOSIIµÄ²¹¶¡,´ò²¹¶¡ºÍ°²×°½»²î±àÒë»·¾³¿ÉÒԲÕâÀïhttp://blog.ednchina.com/duckfly/35483/message.aspx.²»¹ý°´duckflyµÄ²½ÖèÔÚmakeÊÇ»á³ö´í,²»ÊDz½ÖèÓдí,¶øÊÇÔ´ÂëµÄÎÊÌâ,²»ÖªµÀÆäËüµÄÅóÓÑÓÐûÓöµ½Í¬ÑùµÄÎÊÌâ,Ò»°ã´íÎóÔ­ÒòÊÇbzero,index,rindex,bcopy·ûºÅδÕⶨÒå,¶¼ÊÇÔÚuserĿ¼ÏµÄÎļþÓõ½Õ⼸¸öº¯ÊýÒýÆðµÄ,ËüÃÇÔÚÖж¨Òå,Óõļ¸¸öͬÑù¹¦Äܵĺ¯Êý´úÌæ¾Í¿ÉÒÔÁË:memset,strchr,strrchr,memcpy,ÆäÖÐmemsetÓÐÈý¸ö²ÎÊý,¶øbzeroÖ»ÓÐÁ½¸ö,Ì滻ʱ°ÑmemsetµÄµÚ¶þ¸ö²ÎÊýÉèΪ0¼´¿É,ÆäËüµÄÈý¸ö¾ÍÐ躯ÊýÃûÌ滻һϾͿÉÒÔÁË.¿ÉÒÔʹÓÃÒÔÏÂÃüÁî²éÕÒÓõ½Õ⼸¸öº¯ÊýµÄÔ´Îļþ(ÔÚuClinux-distĿ¼ÏÂÖ´ÐÐ):

grep -lr bzero user/

grep -lr index user/

grep -lr bcopy user/

ÓÃgedit»òvim·Ö±ð´ò¿ªÃ¿¸öÃüÁî¶ÔÓ¦µÄÄÇЩԴÎļþ,Ö±½ÓÓÃÉÏÃæÌáµ½µÄº¯ÊýÌæ»».±£´æ.²îµãÍüÁËÌáÁË,ÎÒ»¹Óöµ½ÁíÒ»¸öС´íÎó,´ó¸ÅÊÇPATH_MAX䶨Òå,¸ù¾ÝmakeµÄÌáʾ,ÕÒµ½ÏàÓ¦µÄÔ´Îļþ,ÔÚÎļþÍ·²¿¼ÓÉÏ:

#define PATH_MAX 100 //100ÊÇÎÒËæ±ãÏëµÄÒ»¸öÊý.

ÕâЩ¹¤×÷×öºÃÁË,ÔÙ°´ÕâÀïhttp://blog.ednchina.com/duckfly/35483/message.aspxµÄ²½Öè¾Í³É¹¦ÁË.

Ï£ÍûÕâƪÎÄÕ¶ÔÓöµ½ºÍÎÒͬÑùµÄ´íÎóµÄÅóÓÑÓаïÖú,ҲϣÍû¸ßÊÖÃÇÊÍÒ»ÏÂΪʲô±ðÈË¿ÉÒÔ±àÒë³É¹¦,¶øÎÒÐèÒªÐÞ¸ÄÔ´Âë²ÅÐÐ.

×÷Õßbrother.abc¡¡³ö×Ôhttp://brother.abc.blog.163.com/
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. kevinsamuel ÓÚ 2008-07-14 13:39:57·¢±í:

    user ÏÂÓкܶàÎļþ ÔõôÌæ»»ÄØ Èç¹ûÒ»Ò»Ìæ»»µÄ»° ¹¤³ÌÁ¿ºÜ´ó ÓÐûÓÐʲô¼òµ¥µÄ·½·¨