Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on PS3
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6 ... 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

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

anunakin wrote:
Any here knows how to boot at kboot and dont start Gentoo ? :?

guess you can move the kboot.conf file out of the way if you just want to tinker in the kboot.
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Wed Dec 13, 2006 9:24 pm    Post subject: Some things to do to the gnome/ps3 tarball Reply with quote

Here are some things I recommend adding to the stage 4 tarballs:

Add the following line to /etc/fstab for spu support:
Code:
none    /spu    spufs   default    0 0


Add the following modules to /etc/modules.autoload.d/kernel-2.6:
Code:
# add support for spufs
spufs

# uncomment for bluetooth printers/modems/comm ports
#rfcomm


Add video mode lines to /etc/kboot.conf so its easy to choose a res to boot to
Add support for sound (snd_ps3pf). I'm not sure what it actually takes to get this working.

Install vim (we can't all love nano :wink:)

On the Gnome tarball, add xdm to the default runlevel and modify /etc/conf.d/xdm:
Code:
DISPLAYMANAGER="gdm"



Oh yeah.. Thanks again for making these in the first place :) Please don't take these "suggestions" as complaining :)
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

PostPosted: Wed Dec 13, 2006 10:30 pm    Post subject: Re: Some things to do to the gnome/ps3 tarball Reply with quote

dutchman wrote:
Here are some things I recommend adding to the stage 4 tarballs:
Add support for sound (snd_ps3pf). I'm not sure what it actually takes to get this working.

Good list of ideas. The alsa stuff just takes /etc/modules.d/alsa edited to have
Code:
##  ALSA portion
alias snd-card-0 snd-ps3pf
##  OSS/Free portion
alias sound-slot-0 snd-card-0

in those sections, then run update-modules and rc-update add alsasound default.


Last edited by clintar on Wed Dec 13, 2006 11:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Wed Dec 13, 2006 10:54 pm    Post subject: Re: Some things to do to the gnome/ps3 tarball Reply with quote

clintar wrote:
dutchman wrote:
Here are some things I recommend adding to the stage 4 tarballs:
Add support for sound (snd_ps3pf). I'm not sure what it actually takes to get this working.

Good list of ideas. The alsa stuff just takes /etc/modules.d/alsa edited to have
Code:
##  ALSA portion
alias snd-card-0 snd-ps3pf
##  OSS/Free portion
alias sound-slot-0 snd-card-0

in those sections, then run update-modules and rc-update add alsasound.


Thanks for that. I'm emerging alsa-utils at the moment. I figured I could just run alsaconf and let it take care of this for me :) Also nice to have alsamixer around just in case.

I've noticed that the PS3 seems to take forever to compile. I really hope it'll be possible to upgrade the ram at some point or I'll need to look into setting up distcc with a cross compiler.. Not looking forward to that..

-d

EDIT:

Ok, it seems that alsaconf didn't do so well. Thanks for the manual instructions, it seemed to work. I'll verify once I get home that it actually outputs something :)
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Thu Dec 14, 2006 11:40 am    Post subject: Reply with quote

Alsa works :) Cool.

My big complaint now is that its thrashing the hard disk when it compiles. It looks like we have less than 256MB of ram to work with within Linux. I tried to shut down everything I could, but its not helping. Whats the best way to limit the ram thats needed when emerging packages? Just limit make to 1 processor?

-d
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Thu Dec 14, 2006 12:30 pm    Post subject: Reply with quote

dutchman wrote:
ust limit make to 1 processor?


It's a start:)

I used distcc and it made a pretty big difference, it takes very little time to set up and there are great guides on the main gentoo site.

To be honest I'm used to working on embedded systems, and so for me it is WOW 200MB OF RAM!!

Changes to the stage4 are a great idea, it was just a dump of where I'd got to last week - one option is I can use NFS to chroot into the original which is on a machine with more hd space.
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Thu Dec 14, 2006 1:50 pm    Post subject: Reply with quote

If I had a G5 w/ linux on it I'd certainly use distcc. I guess I'll have to break down and set up cross compiling on my x86.

For what its worth, I woke up to MythTV working this morning :) I have to play around with it a bit to speed up the video updates, but it compiled and ran fine (frontendonly use flag). Now its time to work on Mame and to get the spu test apps to run.

-d
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Thu Dec 14, 2006 4:45 pm    Post subject: Reply with quote

dutchman wrote:
I guess I'll have to break down and set up cross compiling on my x86.


It's the way to go:)

See:
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

Pretty painless.
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Thu Dec 14, 2006 5:15 pm    Post subject: Reply with quote

Interesting development for the noobs...:)

One of the ps2dev.org peeps has rewritten my stage 4 install guide - (my guide is written for people who know their way around gentoo, know that nano is an editor etc), and more importantly for beginners he has created two shell scripts to automate the entire process.

http://wiki.ps2dev.org/ps3:linux:installing_gentoo

I'm not too sure what someone who can't follow my guides would want with linux on their PS3 (bar dd'ing games and telling their friends they are a master hacker!), but the more info and tools out there the better!

The same person has written a simple video speed test:

http://forums.ps2dev.org/viewtopic.php?t=7209

In other news, I got round to setting up nfs and am currently doing an update of my gnome-stage4, so am very open to ideas about what could be changed/improved - sound and getting rid of the additional kernels are high on the list:)
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Thu Dec 14, 2006 6:59 pm    Post subject: Reply with quote

tokka wrote:
Interesting development for the noobs...:)In other news, I got round to setting up nfs and am currently doing an update of my gnome-stage4, so am very open to ideas about what could be changed/improved - sound and getting rid of the additional kernels are high on the list:)


I'd suggest adding support for the spe's. You saw my spufs stuff above - thats part of it. Here's the other part:

Luca Barbato (from lu_zero's overlay) wrote:
You have to unmask the latest gcc, binutils and newlib, emerge the latest crossdev and then run

crossdev spu

this way you should be able to try the spe examples.

Currently the only thing you need from the overlay is libspe (or libspe2 if I manage to put it there)

Keep in mind that spu support is quite work in progress and that will get better once an updated gcc snapshot will be available.

lu
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

PostPosted: Thu Dec 14, 2006 9:40 pm    Post subject: Reply with quote

dutchman wrote:
tokka wrote:
Interesting development for the noobs...:)In other news, I got round to setting up nfs and am currently doing an update of my gnome-stage4, so am very open to ideas about what could be changed/improved - sound and getting rid of the additional kernels are high on the list:)


I'd suggest adding support for the spe's. You saw my spufs stuff above - thats part of it. Here's the other part:

Luca Barbato (from lu_zero's overlay) wrote:
You have to unmask the latest gcc, binutils and newlib, emerge the latest crossdev and then run

crossdev spu

this way you should be able to try the spe examples.

Currently the only thing you need from the overlay is libspe (or libspe2 if I manage to put it there)

Keep in mind that spu support is quite work in progress and that will get better once an updated gcc snapshot will be available.

lu

I tried what you said in my fstab and them mounting /spu, and it didn't work for me. I had the spufs module loaded, too. Anything else you have to do first?
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

PostPosted: Thu Dec 14, 2006 9:57 pm    Post subject: Reply with quote

Quote:
I tried what you said in my fstab and them mounting /spu, and it didn't work for me. I had the spufs module loaded, too. Anything else you have to do first?


I'm pretty sure all I did was add it to my fstab. I tried modprobe'ing spufs too, but it loads on its own now and its not in my modules.autoload.d/kernel-2.6 file.

Fwiw, here is my /etc/fstab file:
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noauto,noatime  1 2
/dev/sda2               /               ext3            noatime         0 1
/dev/sda1               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
none                    /spu            spufs           defaults        0 0


With that in place, I think all you do is:

# mount /spu

Make sure you create the directory first.

Also, are you starting with the Gnome stage 4? If not, maybe you are missing something else?

Note that you won't actually see anything appear in the directory. Things appear in the directory only when an spe enabled app is running.

-d
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

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

well, I thought I copied and pasted before, but I just copied and pasted what you had in your fstab and it worked, thanks. Do I need to install gcc-cell to get the crossdev stuff to work, too, by the way?
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

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

Also, I've been running Suse on my desktop for a while, so I don't have an installable distcc in any of my repositories. Anyone know of a guide for Suse? Feel free to flame me for asking :).
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

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

clintar wrote:
well, I thought I copied and pasted before, but I just copied and pasted what you had in your fstab and it worked, thanks. Do I need to install gcc-cell to get the crossdev stuff to work, too, by the way?


I assume that crossdev ppu is actually only if you were cross compiling on another platform, and so for a spe toolchain on the ps3 you need to use crosdev spu.

I know that the PPU (PowerPC Processor Unit) is the core of the PPE (PowerPC Processor Element), but all of the current documentation refers simply to the PPE, a PPU toolchain is simply confusing. Yeah I understand it is technically right but all SCE's doc's talk about the PPE Programming Environment and the SPE Programming Environment, so a PPU and SPU toolchain seems misslabeled.

Anyway, I'm trying crosdev spu right now...
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

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

Hmmm. well crossdev spu when it gets to cross-gcc-stage2 gives me:
Code:

gcc   -O2 -pipe -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -Wl,-O1 -o cc1 c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o spu-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o cc1-checksum.o \
          main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp
libbackend.a(spu.o):(.text+0x9c98): undefined reference to `builtin_define_std'
libbackend.a(spu.o):(.text+0x9cc4): undefined reference to `builtin_define_std'
libbackend.a(spu.o):(.toc+0x0): undefined reference to `warn_main'
libbackend.a(spu.o):(.data.rel+0x298): undefined reference to `spu_expand_builtin'
libbackend.a(spu.o):(.data.rel+0x2a0): undefined reference to `spu_resolve_overloaded_builtin'
collect2: ld returned 1 exit status

Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

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

I haven't tried yet.. I have to extract your kernel source directory again first (somehow managed to delete it - doh!).

Did you emerge the unstable toolchain first as Lu mentioned? Also, I wonder if your crossdev distcc setup is getting in the way? Or maybe you are doing everything right and he was just wrong ;)

I'll give it a shot today and see what happens..

-d
Back to top
View user's profile Send private message
dutchman
n00b
n00b


Joined: 16 Aug 2006
Posts: 20

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

While I'm thinking of it, I think we should make some changes to /etc/make.conf as well to help with the memory issue.

I think we should remove -pipe from CFLAGS and change MAKEOPTS to -j1. Additionally, we might want to try -Os instead of -O2. It should help with memory consumption as well.

thoughts?

-d
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

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

dutchman wrote:

Did you emerge the unstable toolchain first as Lu mentioned?


Yup.

dutchman wrote:

Did you emerge the unstable toolchain first as Lu mentioned? Also, I wonder if your crossdev distcc setup is getting in the way? Or maybe you are doing everything right and he was just wrong ;)


I don't think it has been ever tried native on a PS3... I offered lu_zero access to my machine a couple of weeks ago but he never took me up on it.

dutchman wrote:
Additionally, we might want to try -Os instead of -O2. It should help with memory consumption as well.
-d


As far as I remember that only is useful on processors with small caches.

The ps2dev guy shine has also tried crossdev spu with no joy, so I think we are stuck until we get in touch with lu_zero - he is on IRC but has been quiet for a while
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

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

Success:)

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)


Lu_zero surfaced and yes on PS3 we don't need crossdev ppu, just crossdev spu - and where mine was bailing out was when it was compling g++ - not needed for the spu's.

So...
:twisted:

http://www.daniel.jp/joomla/info/ps3/creating-ps3-toolchains-on-gentoo.html

I've banged that together in a hurry as I want to go out, if there are any glaring errors please tell me:)
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

PostPosted: Sat Dec 16, 2006 12:32 am    Post subject: Reply with quote

Oh yes, thank you very much, and thanks lu_zero. I also saw http://www.cellperformance.com/articles/2006/11/crosscompiling_for_ps3_linux.html that there's a new libspe and libspe2. I'll be playing with this tonight.
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Sat Dec 16, 2006 12:50 am    Post subject: Reply with quote

clintar wrote:
Oh yes, thank you very much, and thanks lu_zero. I also saw http://www.cellperformance.com/articles/2006/11/crosscompiling_for_ps3_linux.html that there's a new libspe and libspe2. I'll be playing with this tonight.


I think lu_zero tried to include the new libspe2 in his overlay but there seemed to be missing patches so has stuck to 2.0.0 which is now in his overlay.

www.cellperformance.com has some interesting stuff, seems the guy who runs it works at Vivendi:)
Back to top
View user's profile Send private message
boachan
n00b
n00b


Joined: 03 Dec 2005
Posts: 11
Location: Victoria, Canada

PostPosted: Sat Dec 16, 2006 1:37 am    Post subject: Reply with quote

How do i go back the original PS3 dash. xmb or whatever its called.
Back to top
View user's profile Send private message
clintar
n00b
n00b


Joined: 15 Dec 2005
Posts: 30

PostPosted: Sat Dec 16, 2006 1:55 am    Post subject: Reply with quote

boachan wrote:
How do i go back the original PS3 dash. xmb or whatever its called.

You need to install the ps3pf_utils which is explained here, then run boot-game-os. Or if you can't figure it out, when you are on the kboot prompt when first booting, you can run it there.
Back to top
View user's profile Send private message
Shai Hulud
n00b
n00b


Joined: 08 Dec 2006
Posts: 5

PostPosted: Sat Dec 16, 2006 8:46 pm    Post subject: Reply with quote

Heads up.

IBM just posted SDK 2.0 for CBE on 12/15.

http://www.alphaworks.ibm.com/tech/cellsw?open&S_TACT=105AGX16&S_CMP=DWPA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6 ... 19, 20, 21  Next
Page 5 of 21

 
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