{"id":62,"date":"2009-02-27T07:45:00","date_gmt":"2009-02-27T12:45:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=62"},"modified":"2010-02-10T23:24:03","modified_gmt":"2010-02-11T04:24:03","slug":"cell-sdk-on-ps3-with-yellow-dog-linux-5-0","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2009\/02\/27\/cell-sdk-on-ps3-with-yellow-dog-linux-5-0\/","title":{"rendered":"Cell SDK on PS3 with Yellow dog linux 5.0"},"content":{"rendered":"<p>People tend to think that gone are the days when the &#8220;RPM Hell&#8221; used to exist.  We have yum, aptitude and what not!  If you install linux on a PS3, I&#8217;d like to bring you back to reality, especially like me when you have yellowdog 5.0 installed on a first gen PS3.<br \/>What is interesting is that all these package managers rely on repositories in <span style=\"font-family:courier new;\">\/etc\/yum.repos.d\/*<\/span>.<br \/>If you do not have the good repositories then you can kiss goodbye to installing the Cell Broadband Engine SDK provided by IBM.  This SDK has the spu-gcc, spu-g++ which is the right set of compilers if you want to use the 1 master processor (Power Processor Element &#8211; PPE) and the other six SPE (Synergistic Processor Elements &#8211; SPEs) &#8230;think of these as slaves.  You might wonder where&#8217;s the 7th of the cell processor, well, you cannot access it because it is used internally by the PS3 for virtualization. <br \/>So I got a yellow dog 5.0 iso image from <a href=\"http:\/\/mirror.anl.gov\/yellowdog\/iso\/\">here<\/a>.  I  followed the instructions for installing it from <a href=\"http:\/\/www.tweaktown.com\/guides\/1305\/installing_linux_onto_your_sony_ps3\/\">here<\/a>.  I did this almost a year ago!  Yes&#8230;I did actually keep it dead for a while!  Then I installed gcc and compiled John the ripper! To my utter disappointment, there was no performance benefit!<br \/>Then Marc Bevand told me at Toorcon X that I needed spu-gcc to compile JTR on PS3 to get the benefits.  So I got the cell sdk ISO from <a href=\"http:\/\/www.ibm.com\/developerworks\/power\/cell\/pkgdownloads.html#1\">here<\/a>.  I then mounted the ISO.<br \/><span style=\"font-family:courier new;\">mount -o loop cellsdk11.iso \/mnt\/disk <\/span><br \/><span style=\"font-family:courier new;\">cd \/mnt\/disk<\/span><br \/><span style=\"font-family:courier new;\">cd software<\/span><br \/><span style=\"font-family:courier new;\">.\/cellsdk install<\/span><br \/>I got bunch of errors.  It wanted me to install freeglut-devel and tk-8.4.*.<br \/>Thus began my journey of 10,000 steps to get the dependencies resolved and I burnt my fingers, keyboard, brains, etc&#8230;.and although I realized that everyone in the US and the world had found hope&#8230;things were not looking bright for me!   Until I bumped into this fantastic repository <a href=\"http:\/\/ftp.kddlabs.co.jp\/Linux\/distributions\/yellowdog\/yum\/5.0\/base\/RPMS\/\">here<\/a>.  Trust me it took me about 8 hours of incessant installing and compiling (almost 120 odd different files) and scores of google searches to land me into this.  I installed the glut, libx11, tk, tcl, libtcl, glut-devel, libstdc++, libstdc-so7, and many other packages that I cannot even recall now to get the cellsdk to work!  And even though I did, I still couldnt get .\/cellsdk install to work!   After about 8 hours of effort and being so close to success just seemed evil.  Then I realized that all the packages needed were related to the PPC64 simulator (libx11.ppc64, libtcl.ppc.64, etc.)&#8230;a quick look into the readme told me that I could neglect that using the &#8211;nosim directive to make it work.<br \/>Finally,<br \/><span style=\"font-family:courier new;\">.\/cellsdk install &#8211;nosim <\/span><br \/>worked!!!!!<br \/>A small step for mankind but a giant step for me!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>People tend to think that gone are the days when the &#8220;RPM Hell&#8221; used to exist. We have yum, aptitude and what not! If you install linux on a PS3, I&#8217;d like to bring you back to reality, especially like me when you have yellowdog 5.0 installed on a first gen PS3.What is interesting is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230,196],"tags":[244,243,246,245],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-howto","category-programming","tag-cell-sdk","tag-ps3","tag-ydl","tag-yellowdoglinux"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}