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

ÔÚPS3 FC7 LinuxÉϱàÒë°²×°RSXÖ§³ÖÄ£¿é

·¢²¼Ê±¼ä:2008-06-20 01:29:37À´Ô´:ºìÁª×÷Õß:Stealth
Èç¹ûÄãµÄfirmwareÔÚ2.10ÒÔÉÏ£¬¿ÉÒÔ²»Óÿ´ÁË¡£ÒòΪ2.10Ö®ºóË÷Äá°ÑRSXµÄ·ÃÎʳ¹µ×·âËÀÁË¡£

Ê×ÏÈ£¬ÏÂÔØFC7 powerpcµÄDVD°æ±¾£¬ÉÕ¼³ÉÅÌƬ¡£¸úÔÚps3ÉÏ°²×°ÈκÎlinuxÒ»Ñù£¬ÏÈ·ÖÇøºÍ°²×°otheros¡£Æô¶¯otheros¡£°Ñ¹âÅÌ·ÅÈë¹âÇý£¬ÖØÆô»úÆ÷¡£

Ëæanaconda°²×°£¬°Ñ±ØÒªµÄ¶«Î÷¹´ÉÏ£¬¿ªÊ¼°²×°¡£´óÔ¼ÐèÒª¼¸¸öСʱ¡£

°²×°Íê±Ïºó£¬ÏµÍ³ÖØÆô¡£µ«ÕâʱϵͳÎÞ·¨ÖØÆô£¬ÐèÒª³¤°´µçÔ´°´Å¥5ÃëÇ¿ÖƹرջúÆ÷¡£Õâ¸öÎÊÌâÔÚÉÔºóа²×°µÄkernelÖлá½â¾ö¡£

Æô¶¯ºó£¬rootµÇÈë¡£´Óyum install¼¸¸ö±ØÒªµÄÈí¼þ£¬Èçwget rsyncµÈ¡£È»ºó´ÓÍøÉÏÕÒgeofferyµÄÒ»¸öCELL-Linux addon iso¡£°æ±¾Ó¦¸ÃÒª20071023µÄ¡£Ëû±¾ÈË(ps3°ækernelµÄά»¤Õß)µÄÍøÕ¾ÉÏÒѾ­Ã»ÓÐÁË£¬ÐèÒªÕÒ¸ö¾µÏñ¡£ÒòΪ¾ÝÊÔÑéÏÂÀ´£¬Ö»ÓÐÕâÀïÃæ´øµÄ2.6.23 kernel sourceÊÇ¿ÉÒÔ±àÒë³ö¿ÉÒÔÔÚ2.10ÒÔÏÂfirmwareÅܶøÇÒÖØÆôºÍ¹Ø»úÕý³£µÄÄںˡ£

°Ñiso mountÆðÀ´£¬ÀïÃæµÄsrc/linux-2.6.23-20071023.tar.bz2¾ÍÊÇÄÚºËÔ´Âë¡£tar jxvfÒ»°Ñ°Ñbz2Îļþ½âѹµ½/usr/srcÖС£È»ºóµ½½âѹºóµÄ/usr/src/linux-2.6.23ÖУ¬´Ó./arch/ps3/Öп½±´.configÎļþ³öÀ´£¨Â·¾¶¿ÉÄÜÓÐÎ󣩣¬µ½ÄÚºËÔ´ÂëµÄ¸ùĿ¼¡£Õâ°üº¬ÁËps3ÄÚºËËùÐèµÄ»ù±¾ÅäÖᣵ«ÊÇÓÐÒ»¸öÄÚºËÑ¡ÏîÊÇ°²×°rsxÖ§³ÖËù±ØÐëҪѡÔñµÄ£¬ËùÒÔmake menuconfigÒ»°Ñ£¬²Ëµ¥ÖÐÔÚ'enable loadable module support'£¬¹´ÉÏ'module versioning'¡£È»ºó´æÅÌÍ˳ö¡£

½ÓמÍÊDZê×¼µÄ±àÒëÄںˡ£
make
make modules
make modules install

Õâ¸ö´óÔ¼ÐèÒª°ë¸ö¶àСʱ°É£¬Ö®ºó°Ñ/bootÖеļ¸¸öboot configºÍÄں˱¸·Ýһϡ£È»ºóÀÁÈ˾Ímake installÒÔÏ£¬°²×°µ½/bootĿ¼¡£°Ñ/boot/etc/yaboot.confÅäÖÃһϣ¬ÒÀÑù»­ºù«¡£

ºÃ°É£¬Æíµ»Äں˿ÉÒÔÕý³£boot¡£Èç¹ûÎÞ·¨Æô¶¯£¬ÓÃÔ­À´µÄÄÚºËÆô¶¯£¬ÔÙÖØиãһϡ£ÆäÖеÄdebug²½Öè¾Í²»ËµÁË¡£

Æô¶¯³É¹¦£¿¹§Ï²¡£½Ó×Å´Óps2dev.orgµÄsvn·þÎñÆ÷ÉÏ°ÑIronsPeterµÄlibps3rsx´úÂë×¥ÏÂÀ´¡£µ±È»Äã¿ÉÄÜÐèÒªÏÈyum install svn¡£svnµØÖ·ÊÇsvn://svn.ps2dev.org/ps3ware

syncÍêÒÔºó£¬ÕÒµ½libps3rsxĿ¼£¬ÔÚ./src/initÖÐÓиöstartup.sh½Å±¾£¬Ö´ÐÐһϣ¬»á×Ô¶¯±àÒëÄÚºËÄ£¿é£¬²¢×Ô¶¯insmod½øÈ¥¡£Èç¹ûÄãûÓÐ×öÇ°ÃæµÄÄÚºËÖرàÒ룬dmesg |tailÄ㽫»áµÃµ½Ò»¸ömagic version not matchµÄ´íÎó¡£ËùÒÔ²»ÄÜ͵ÀÁ¡£

ºÃÁË£¬Èç¹ûÉÏÊö¶¼Ã»ÓÐÎÊÌâµÄ»°£¬libps3rsxÒѾ­°²×°ÔÚÄÚºËÖÐÁË¡£Õâʱºòµ½./src/example/simple_dxt1ÖУ¬makeÒ»°Ñ£¬ÔËÐÐ./ps3gpu¿´¿´£¬ÓÐûÓÐÒ»¸öÊÞÈË£¿

Èç¹ûÐèÒªX windowÒ²ÄÜÊÜÒæÓÚRSX£¬¿ÉÒÔ°´ÕÕboxbuilderµÄ½Ì³ÌÀ´¡£ÏÂÃæ¼òÊö£º

Ê×ÏÈyum install X11-server-sdk¡£È»ºó£º
git clone http://mandos.homelinux.org/~glaurung/git/xf86-video-ps3.git ./xf86-video-ps3.(todaysdate)

Èç¹ûÓÉÓÚÖÚËùÖÜÖªµÄÎÊÌâgit²»ÄÜ·ÃÎÊÕâ¸öÍøÕ¾£¬ÄÇô¿ÉÒÔ°ÑÓòÃûÄÃipµØÖ·91.121.147.47´úÌæ¡£

×¥ÏÂÀ´µÄxf86-video-ps3´úÂë
./configure -prefix=/usr
make
make install

È»ºó½«kernelÆô¶¯optionÖеÄrhgbɾ³ý£¨ÎÒûÓÐÓöµ½Õâ¸öÎÊÌ⣬ֻÊÇboxbuilder½Ì³ÌÉÏÓÐÕâôд£©¡£

ÔÙÐÞ¸Ä/etc/X11/xorg.conf£¬¼ÇµÃ×öºÃ±¸·Ý£º

½«Driver "fbdev"¸ÄΪDriver "ps3"£¬²¢¿ÉÒÔ¼ÓÒÔÏÂextension£º
Section "Extensions"
Option "Composite" "Enable"
EndSection

´æÅÌÖØÆô¡£ÔٴεǼºó£¬ÏÈÈ·±£ps3rsx.koÄ£¿éÒѾ­insmodÇÒÒѳõʼ»¯rsx£¨libps3rsx/src/init/initÔËÐÐһϣ©µÄÇé¿öÏ£º

startx &

¼´¿ÉÆô¶¯ÀûÓÃRSXäÖȾµÄX WindowÁË¡£Èç¹ûûÓгõʼ»¯RSX»òÄÚºËÄ£¿é¶¼Ã»¼ÓÔصĻ°£¬X Window»áhangÔÚÄÇÀï¡£Õâʱºò¿ÉÒÔÖØÆô»»»ØÔ­À´µÄfbdev°æ±¾£¬Ò²¿ÉÒÔÖØÆôºóÏȼÓÔØÄÚºËÄ£¿é¡¢³õʼ»¯RSXºó£¬ÔÙ½øÈëX Window¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ