forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing gentoo on the PS3
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Sun Dec 10, 2006 8:13 pm    Post subject: Installing gentoo on the PS3 Reply with quote

Lets face it, nobody would want to run FC5 or YDL on their desktop, so why on earth would they want to install them on their PS3?

:)

http://www.daniel.jp/joomla/info/ps3/installing-gentoo-on-the-ps3.html

There is also a version for people with an aversion to spending 2 days compiling gnome:)

http://www.daniel.jp/joomla/info/ps3/installing-a-gentoo-stage4-tarball-on-the-ps3.html
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Dec 11, 2006 4:41 am    Post subject: Reply with quote

Personally, Fedora Core is my favorite distro. I'm running FC6 on my system right now. Never cared much for Gentoo...
Back to top
View user's profile Send private message AIM Address
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Tue Dec 12, 2006 9:22 am    Post subject: Reply with quote

J.F. wrote:
Personally, Fedora Core is my favorite distro. I'm running FC6 on my system right now. Never cared much for Gentoo...


And?

Guess you haven't used FC5 on a PS3...
You need to treat the PS3 due to the limitations of the PPU and lack of memory as an embedded system - and the last thing you would ever want on an embedded system is FC5 or YDL.

Simplest proof is to boot and then simply open an teminal window in gnome on FC5 and then do the same in gnome-2.14 on gentoo. Unbelievable difference. Then try navigating the fs.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Dec 12, 2006 10:34 am    Post subject: Reply with quote

Comparing an optimized Gentoo install to a generic FC5 install... real fair. Spend as much time tuning FC5 as you did putting Gentoo together and it'll run just as fast. There are all kinds of web pages dedicated to making Fedora work better for different systems - for example, when memory is a little tight.
Back to top
View user's profile Send private message AIM Address
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Tue Dec 12, 2006 7:36 pm    Post subject: Reply with quote

J.F. wrote:
Comparing an optimized Gentoo install to a generic FC5 install... real fair. Spend as much time tuning FC5 as you did putting Gentoo together and it'll run just as fast. There are all kinds of web pages dedicated to making Fedora work better for different systems - for example, when memory is a little tight.


Doh you don't say.

That exactly is the point. You can install my tarball of a Cell install of gentoo instead of FC5 in the same amount of time and have a pre-tweaked install.

To be blunt, I and probably everyone else here don't give a monkey's what distribution you use. The thread isn't called Gentoo Vs other distributions/discuss - it's on installing Gentoo.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Dec 13, 2006 2:37 am    Post subject: Reply with quote

mtb wrote:
To be blunt, I and probably everyone else here don't give a monkey's what distribution you use. The thread isn't called Gentoo Vs other distributions/discuss - it's on installing Gentoo.


Then why did you start the thread with this statement?

Quote:
Lets face it, nobody would want to run FC5 or YDL on their desktop, so why on earth would they want to install them on their PS3?


You could have simply said something like "Not everyone cares for Fedora Core or YDL, and those of you who like Gentoo will appreciate this - you can now install Gentoo on the PS3! Here's how..."

See the difference? One is mocking and making sweeping generalizations which have no basis in reality, the other merely informs those of a particular frame of mind.
Back to top
View user's profile Send private message AIM Address
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Wed Dec 13, 2006 7:09 am    Post subject: Reply with quote

Okay, let's stop the distro war.
I don't care who started it, I don't care what distros are involved.
Let's keep threads on topic. If the general spirit of the post was distroX questions/information/etc, leave it as that.
I will lock and hall of fame this thread (and other threads) if this continues.
Back to top
View user's profile Send private message Visit poster's website
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Wed Dec 13, 2006 8:15 am    Post subject: Reply with quote

J.F. wrote:
mtb wrote:
To be blunt, I and probably everyone else here don't give a monkey's what distribution you use. The thread isn't called Gentoo Vs other distributions/discuss - it's on installing Gentoo.


Then why did you start the thread with this statement?

Quote:
Lets face it, nobody would want to run FC5 or YDL on their desktop, so why on earth would they want to install them on their PS3?


You could have simply said something like "Not everyone cares for Fedora Core or YDL, and those of you who like Gentoo will appreciate this - you can now install Gentoo on the PS3! Here's how..."

See the difference? One is mocking and making sweeping generalizations which have no basis in reality, the other merely informs those of a particular frame of mind.


Valid point - missed that, and I apologize - it was a throw away comment and I forgot how thin skinned certain distro users are:)
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Dec 13, 2006 4:02 pm    Post subject: Re: Installing gentoo on the PS3 Reply with quote

mtb wrote:
http://www.daniel.jp/joomla/info/ps3/installing-gentoo-on-the-ps3.html


Thanks. I've updated it to the current files (cells add-on etc.) and started a wiki page: http://wiki.ps2dev.org/ps3:linux:installing_gentoo

Instead of lots of choices and text to enter my goal was to make it as easy as possible for newbies (and lazy programmers like me), so I've created two scripts. Currently it compiles Linux, I'll finish the rest of the scripts when it is ready.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Dec 13, 2006 4:07 pm    Post subject: Reply with quote

No problem... sorry if I over-reacted. :)

Back on topic - the HowTo is rather detailed. I don't think anyone would have trouble following it, but I'd recommend printing the instructions out first. Nothing beats having a hardcopy in hand.

However, I didn't see where he set up a window manager. Even if he thinks 256M is too little memory for Gnome or KDE (which is silly - I've run a FULL install of Fedora Core 4 set for Gnome on a 450MHz G3 iMac with 128M), he could at least set up the latest xfce. Have you tried Xubuntu on a lower end machine? It's a really nice distro, and xfce has come a long ways. XFCE on the PS3 should ROCK. :)
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Dec 13, 2006 5:33 pm    Post subject: Reply with quote

J.F. wrote:
the HowTo is rather detailed. I don't think anyone would have trouble following it, but I'd recommend printing the instructions out first. Nothing beats having a hardcopy in hand.


I've never installed Gentoo before, so "From this point on, you can just follow from Chapter 8 in the Gentoo handbook" is not very detailed. Do you have just some commands which I could add to my install script?

When I try to follow the Gentoo manual, it is trying to compile "yaBoot" and the Linux kernel, which doesn't look like the right thing, because I have already kboot.
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Wed Dec 13, 2006 11:11 pm    Post subject: Reply with quote

J.F. wrote:

However, I didn't see where he set up a window manager.


Window manager? It's Gentoo - why would I install a window manager?

:)

The only thing that is PS3 specific is the initial install, see the docs at www.gentoo.com for installing xorg etc - they spend a lot of time and money on their manuals so pointless me replicating it.

Shine wrote:

I've never installed Gentoo before, so "From this point on, you can just follow from Chapter 8 in the Gentoo handbook" is not very detailed. Do you have just some commands which I could add to my install script?


Um, the reason it isn't very detailed is becouse from Chapter 8 on you are simply setting up system config files - kernel installation is in Chapter 7:)

Shine wrote:

Instead of lots of choices and text to enter my goal was to make it as easy as possible for newbies (and lazy programmers like me), so I've created two scripts.


You might be onto a bit of a loser there, there is a gentoo-ps3 live cd project with a full installer, and there is all ready a mechanism in Gentoo for "newbies (and lazy programmers", it's called a stage4 install. However a script that automates that in kboot could be cool - have a look at http://www.daniel.jp/joomla/info/ps3/installing-a-gentoo-stage4-tarball-on-the-ps3.html for details.

There is a good thread at:

http://forums.gentoo.org/viewtopic-t-443551.html

if you have problems, and also gentoo-ppc64 on IRC will give you direct access to the PPC64 developers.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Dec 14, 2006 2:54 am    Post subject: Reply with quote

mtb wrote:
J.F. wrote:

However, I didn't see where he set up a window manager.


Window manager? It's Gentoo - why would I install a window manager?

:)


Oh, right... forgot about that. Everyone knows that gentoo has software in it that monitors whether you install a window manager, and if so then it alerts the Gentoo Goon Squad who kick in your door at 3am and take away your gentoo secret decoder ring. (note to mods - IT'S A JOKE!)

:)

Quote:
The only thing that is PS3 specific is the initial install, see the docs at www.gentoo.com for installing xorg etc - they spend a lot of time and money on their manuals so pointless me replicating it.


Yep. I wasn't sure if there was anything more or if that were the end of the PS3 specific stuff. i guess it is - until they get an RSX driver from Sony.
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Thu Dec 14, 2006 7:17 am    Post subject: Reply with quote

mtb wrote:
have a look at http://www.daniel.jp/joomla/info/ps3/installing-a-gentoo-stage4-tarball-on-the-ps3.html for details.


Thanks, now Gentoo Linux works on my PS3! See the updated article at http://wiki.ps2dev.org/ps3:linux:installing_gentoo

It's time to port Lua Player :-)
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Fri Dec 15, 2006 3:10 am    Post subject: Reply with quote

Shine wrote:

It's time to port Lua Player :-)


Heh, that would be great:)

I've pointed people on the gentoo.org forum towards your install tutorial, we have had a few people on irc for whom the manual install was a bit much.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Fri Dec 15, 2006 9:20 am    Post subject: Reply with quote

mtb wrote:
Shine wrote:

It's time to port Lua Player :-)


Heh, that would be great:)


I think first I have to install spu-gcc to compile programs for the SPEs. Any idea how I can do this on my PS3? I've found http://overlays.gentoo.org/dev/lu_zero/wiki/CellTutorial but when trying to call "crossdev ppu" it says "Refusing to create a cross-compiler using the same target name as your host utils.".
Back to top
View user's profile Send private message
0okm0000



Joined: 13 Jan 2006
Posts: 116

PostPosted: Fri Dec 15, 2006 1:06 pm    Post subject: Reply with quote

http://kernel.org/pub/linux/kernel/people/geoff/cell/ps3-linux-distro-kit-20061208-iso/

Cell Programming Libraries & Examples
http://www.powerdeveloper.org/playstation.php

:)
_________________
PSP hardware hack
http://0okm.blogspot.com/
Back to top
View user's profile Send private message Visit poster's website
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Fri Dec 15, 2006 5:50 pm    Post subject: Reply with quote

0okm0000 wrote:
http://kernel.org/pub/linux/kernel/people/geoff/cell/ps3-linux-distro-kit-20061208-iso/

Cell Programming Libraries & Examples
http://www.powerdeveloper.org/playstation.php

:)


I have burned the ISO image, like described in my manual, because you'll need it for the otheros.bld, and there are some docs on the CD, libraries and sample code, but I didn't found a description which compiler I need and how to install it for the compute-intensive processor cores (SPEs). The second link contains a link to the page, where I had the problems compiling it.
Back to top
View user's profile Send private message
0okm0000



Joined: 13 Jan 2006
Posts: 116

PostPosted: Fri Dec 15, 2006 7:27 pm    Post subject: Reply with quote

GNU Toolchain 4.0.2 and GDB for the Cell BE's SPU
http://www.bsc.es/plantillaH.php?cat_id=107
_________________
PSP hardware hack
http://0okm.blogspot.com/
Back to top
View user's profile Send private message Visit poster's website
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Fri Dec 15, 2006 9:37 pm    Post subject: Reply with quote

No you want to give those precompiled packages a wide birth.

crossdev ppu will not work as the ppu (powerpc processor unit) is part of the PPE - and you already have a toolchain for the PPE.

So I think you need to jump that bit and go straight to cossdev spu - though I haven't had time to look into this myself.
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Fri Dec 15, 2006 10:15 pm    Post subject: Reply with quote

One little thing to watch out for - for stage1 it uses gcc-4.3, so before starting the process you need to:

export I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1

:)
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Sat Dec 16, 2006 4:25 am    Post subject: Reply with quote

Code:

<mtb> Wahoo!
<mtb> PS3 spu # ./ppu_hello
<mtb> Hello, World! (From SPU:0)
<lu_zero> =)
<lu_zero> great =)
<mtb> hmm, guess that works:)
<lu_zero> seems so =)
<mtb> also
<mtb> PS3 spu # elfspe2 spu_hello
<mtb> Hello, World! (From SPU:0)


Guide up at:
http://www.daniel.jp/joomla/info/ps3/creating-ps3-toolchains-on-gentoo.html
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Dec 16, 2006 5:02 am    Post subject: Reply with quote

J.F. wrote:
Personally, Fedora Core is my favorite distro. I'm running FC6 on my system right now. Never cared much for Gentoo...


One main advantage currently is that the standard Fedora Core version for the PS3 is only compiled in 32 bit mode, but Gentoo is 64 bit (at least the version which mtb has built).
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Dec 16, 2006 12:11 pm    Post subject: Reply with quote

Shine wrote:
J.F. wrote:
Personally, Fedora Core is my favorite distro. I'm running FC6 on my system right now. Never cared much for Gentoo...


One main advantage currently is that the standard Fedora Core version for the PS3 is only compiled in 32 bit mode, but Gentoo is 64 bit (at least the version which mtb has built).


Is it? That would surprise me as ppc64 has been part of Fedora officially since FC4. Most of the Fedora mirrors have all the ppc64 RPMs. Like this one for FC7...

http://ftp.crihan.fr/mirrors/fedora.redhat.com/fedora/linux/core/development/ppc64/os/Fedora/RPMS/
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Dec 16, 2006 5:34 pm    Post subject: Reply with quote

J.F. wrote:
Is it? That would surprise me as ppc64 has been part of Fedora officially since FC4. Most of the Fedora mirrors have all the ppc64 RPMs. Like this one for FC7...

http://ftp.crihan.fr/mirrors/fedora.redhat.com/fedora/linux/core/development/ppc64/os/Fedora/RPMS/


Thanks, I was wrong. I tried some toolchain programs on Gentoo and "file" said that it was 32 bit. Somewhere I've read that you can't start 32 bit programs on 64 bit systems, but I think this is wrong, too. And at http://www.bsc.es/projects/deepcomputing/linuxoncell/ are a 64 bit versision of Fedora Core for PS3.

So only the usual Gentoo advantages (quote from the web page)
Quote:

We produce Gentoo Linux, a special flavor of Linux that can be automatically optimized and customized for just about any application or need. Extreme performance, configurability and a top-notch user and developer community are all hallmarks of the Gentoo experience.


But I'm not sure, if this is necessary for the end user, because we have a well defined system, so a distribution could be optimized for it. Maybe this is the reason why at least 2 Gentoo developers are creating Gentoo live-CDs for the PS3. Personally I like the idea of Gentoo that usually you compile everything from source.
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Sun Dec 17, 2006 2:35 am    Post subject: Reply with quote

Both FC and ydl have PPC64 branches, but their installs for PS3 are 32bit.

Shame on you Shine for doubting me:)

See the notes at - http://www.cellperformance.com/articles/2006/11/crosscompiling_for_ps3_linux.html#install_linux
Quote:

NOTE: For the sake of this article, Yellow Dog Linux 5 (32 bit version for PS3) will be assumed. A 32 bit host PowerPC Fedora Core 5 installation will also be assumed (Although 64 bit and x64 versions of the libraries are available for other types of hosts.)


A major giveaway is the example code:

ppu-gcc -m32 ppu_hello.c -lspe2 -o ppu_hello

For end users there is the instant advantage that applications like Firefox are stable. For people interested in PPE development it is like having one leg cut off.

Before an amd64 owner who runs i386 code tells me otherwise, go read up on what PPC64 is at power.org:)
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Dec 17, 2006 3:06 am    Post subject: Reply with quote

mtb wrote:
Both FC and ydl have PPC64 branches, but their installs for PS3 are 32bit.


I'm confused. I was looking at the install image on page http://www.bsc.es/projects/deepcomputing/linuxoncell/ and it is named "ppc64bcmfix.img". Maybe the Supercomputer Center has released a 64 bit version?
Back to top
View user's profile Send private message
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Sun Dec 17, 2006 3:38 am    Post subject: Reply with quote

Shine wrote:
mtb wrote:
Both FC and ydl have PPC64 branches, but their installs for PS3 are 32bit.


I'm confused. I was looking at the install image on page http://www.bsc.es/projects/deepcomputing/linuxoncell/ and it is named "ppc64bcmfix.img". Maybe the Supercomputer Center has released a 64 bit version?


Is that for running in the emu?

OK, just discovered a MASSIVE reason to use a PPC64 distribution on a PS3 - yesterdays SDK2 has a PPC64 version of xlc - there was info about it before on the IBM website but no download:)

We need to prod lu_zero into adding to his overlay
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Dec 17, 2006 6:23 am    Post subject: Reply with quote

That ppc64 FC5 install from Barcelona is for the Cell server blades, not the PS3. Actually, it does make more sense that the PS3 linux for the general public would be 32bit - there's little support for 64 bit for PPC for things people want, like Flash or JAVA. So I guess I DO believe the YDL/FC releases for PS3 are 32bit... just to keep most people happy.
Back to top
View user's profile Send private message AIM Address
mtb



Joined: 19 Oct 2006
Posts: 19
Location: UK/Tokyo

PostPosted: Wed Dec 20, 2006 11:37 am    Post subject: Reply with quote

Well, after a week of learning much more about the inner working of gcc than I ever wished to, I give you a new Gentoo tarball with the Cell toolchain put together by the PPC64 developer lu_zero pre-installed and setup.

Forget the official gcc-4.1.1 in Cell-SDK2.0 and the "other" distributions, this toolchain is based around the latest gcc-4.3 alpha and has the latest spu code:)

File is here:

http://www.daniel.jp/mtb-data/ps3-mtb-gentoo-02.tar.bzip2

Installation instructions here:

http://www.daniel.jp/joomla/info/ps3/installing-a-gentoo-stage4-tarball-on-the-ps3.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group