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 ... 16, 17, 18, 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Sat Apr 21, 2007 6:58 pm    Post subject: Reply with quote

Crymson wrote:
garlicbread wrote:
I'm guessing the inbuilt alsa in the 2.6.21-rc6 Head / PS3 git-tree will probably be more up to date than the seperate drivers in the alsa-driver ebuild. failing that, it's ether a case of waiting for a newer kernel release or waiting for a new sony firmware release (depending on where the problem is)


Hmmm, so by that logic, I might get better sound if I upgrade the kernel? I have the newest gentoo sources, but I don't know enough about the additions to configure it properly. Is there a HOWTO around somewhere for upgrading? I don't need to cross compile it, I have a lot of time on my hands (and it can compile the new kernel while I'm at work :D )

I don't want to mess up my mostly functional system by borking a kernel update.

Thanks for the reply though!


There is a guide mentioned several times in this thread.
_________________
http://en.wikipedia.org/wiki/Cell_(microprocessor)
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 200
Location: Flagstaff, AZ

PostPosted: Sun Apr 22, 2007 2:46 am    Post subject: Reply with quote

The thread talks about cross-compiling, which I'm not interested in... unless I missed it. I'll go read it all again.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9266

PostPosted: Sun Apr 22, 2007 6:08 am    Post subject: Reply with quote

Merged former topic "xfce question".
Back to top
View user's profile Send private message
fatboynotsoslim
n00b
n00b


Joined: 23 Apr 2007
Posts: 2

PostPosted: Mon Apr 23, 2007 1:00 pm    Post subject: Reply with quote

I've had Gentoo installed and running for several weeks now, but I stuffed up my kboot on the weekend, seeing if my plasma would run 1080p, which it didnt, and I'm in some trouble.
I'm trying to change the kboot.conf file back to ps3videomode:3 from 5, but when doing this from the initial kboot prompt, before gentoo laods, I get an error in nano telling me that the file is write protected.
I figured that I'd have to chroot into the gentoo install, but using the guide from here: http://ps3wiki.qj.net/index.php/Fixing_a_Gentoo_install , the second step fails, as there is no /dev/sda1 on my ps3. I tried a mkdir /mnt/gentoo aswell, but still no luck.
Can anyone think of how I can force kboot.conf to load videomode 3 or how I can edit it?
Any help is appreciated

N.B. I am fairly new to Gentoo and Linux, but seem to have the basics under control.
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Mon Apr 23, 2007 1:42 pm    Post subject: Reply with quote

Crymson wrote:
The thread talks about cross-compiling, which I'm not interested in... unless I missed it. I'll go read it all again.


I meant this one, http://julipedia.blogspot.com/2007/03/building-updated-kernel-for-ps3.html .
_________________
http://en.wikipedia.org/wiki/Cell_(microprocessor)
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Thu Apr 26, 2007 11:30 pm    Post subject: Reply with quote

I've just posted an overlay / ebuild for the 2.6.21 PS3 git release on a new thread
https://forums.gentoo.org/viewtopic-t-555684.html
this should save downloading 160Mb via git-clone
also I added in a couple of other patches as well

this fixes sound problems with alsa / snes9x etc
you'll need to install dtc first of all, ebuild also located in the overlay

also there's a more up to date version of snes9x (1.50)
https://bugs.gentoo.org/show_bug.cgi?id=139347
one of the things you need to do at least (apart from the kernel) is enable "Thread Sound"
under the sound menu under snes9express
snes9x appears to use /dev/dsp which is the old OSS interface so you'll also need the OSS compatibility enabled in the kernel

Note I've only tested this with ppc64 not ppc
so results may vary
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 200
Location: Flagstaff, AZ

PostPosted: Fri Apr 27, 2007 4:07 am    Post subject: Reply with quote

Wow! I can't wait to get home and try it out!

Does the alsa stuff fix the bad sound in FCE Ultra as well, or just snes9x?

Thanks so much for working on this for us!
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 200
Location: Flagstaff, AZ

PostPosted: Fri Apr 27, 2007 4:14 am    Post subject: Reply with quote

Ok now before I get ahead of myself... what kinds of things do I need to do?

Change the overlay in /etc/make.conf to yours, or just copy your stuff over?

Do I need to build the 2.6.21 kernel now, on my own?

Maybe you could PM me some basic instructions so I don't hose my system. Once I've done it once, I'd feel a lot better about continuing to do so.

Thanks again!
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
epsilongamma
n00b
n00b


Joined: 02 May 2007
Posts: 2

PostPosted: Wed May 02, 2007 7:15 pm    Post subject: IBM Tools Reply with quote

You can get the source code o the ibm cell compiler gcc (and spu-gcc) from their site (google-it, and you can't miss it). I am trying right now to build the entire system from a stage 3 tarball using ibm's compiler and binutils. I haven't created any ebuilds so far (dunno how :P, never got the time to poke around) but so far so good.
A few pointers:
1. If you go on ppc64 manually symlink make.profile to 2006.1. Otherwise you'll get cc 3.4.6, which sucks.
2. I tried to compile with gcc 3.4.6 and glibc 2.3.6 the ibm sources but it failed. Could be because i did not pass the correct options. Anyway I compiled gcc 4.1.2 and then glibc 2.5
3. Be very carefull when using mixed 64/32 bit stuff. I am trying to stay clean with 64 bits.
4. When you compile the ibm sources, poke in the portage ebuild and take note of some of the configure flags. Also look in the fedora rpms that ibm links to (the xxxx.spec file).
5. For spu-gcc I have made a build.sh that should call configure with the "right" params, but it seems to fail at several steps. (i got an error with limits.h not being included; you can solve pretty easy this one if you add in the file gcc-4.1.1/gcc/system.h #define HAVE_LIMITS_H 1. I am still in the process of churning this one out.

EDITED: also flound an error in tlink.c regarding max path len. check this out: http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg61387.html

Install Order
1. ppu-binutils
2. ppu - gcc ( i installed it as gcc)
3. spu-binutils (with --progam-preficx=spu)
4. spu-newlib+spu-gcc in the same tree. When you get the sources for newlib the directory should be like newlib-1.xx/ with all the configure scripts inside copy/symlink the newlib and libgloss directory there in toolchain/gcc/. toolchain/gcc/ is the where you find the "./configure" of the gcc sources.

Edit 2: spu-gcc must have --with-newlib and --disable-multilib and --program-prefix=spu. You are not cross-compiling spu-gcc. Remember that. So --disable-multilib required. You might want to check out options related to embedded systems. (After all an SPU only has ~ 256KBs of memory - local storage instead of an L1 CACHE and has acces to main memory, other resources - RSX :-", via DMA, so it is an emmbedded system in its own right).

spu-gcc it's still pending though.
_________________
Power to the people !
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Thu May 03, 2007 10:41 am    Post subject: Reply with quote

Wireless is up and running on Yellowdog, http://www.ps3forums.com/showthread.php?t=71113 . Support is coming soon to other distros. What I don't understand is that the 5.0.1 update was released a lot earlier from what I've seen.
_________________
http://en.wikipedia.org/wiki/Cell_(microprocessor)
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Thu May 03, 2007 4:08 pm    Post subject: Reply with quote

I noticed that one of the wireless options had been enabled in the default config in the git tree a short while ago
Looking at the recent git tree
"[PS3] Add gelic wireless" was added 22 hours ago
so I'll have to try doing another snapshot

I'll try to get my overlays sorted out and set something up via Layman
as we need a patched version of Bluez-utils to use the controller via bluetooth as well
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Thu May 03, 2007 8:32 pm    Post subject: Reply with quote

Any knows where to get patchs from YDL for use wifi at Gentoo/PS3 ? :wink:
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 200
Location: Flagstaff, AZ

PostPosted: Fri May 04, 2007 6:57 am    Post subject: Reply with quote

Sweet, wireless. Can't wait to get rid of the long cable in my living room :)
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
epsilongamma
n00b
n00b


Joined: 02 May 2007
Posts: 2

PostPosted: Fri May 04, 2007 8:54 am    Post subject: Gentoo on ps3 using the ppu compiler Reply with quote

Update:
It appears that either IBM's sources from the latest SDK have some bugs, or I have done something bad when patching/compiling these sources. When trying to recompile the ibm sorces with the new compiler (-mcpu=cell -mtune=cell) it fails with an internal compiler error after all the automatons have been processed. I need to get a system up and running, so i think i'll leave this be for the time being.
_________________
Power to the people !
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Sat May 05, 2007 2:07 pm    Post subject: Reply with quote

I found, here the new ADDON CD this have the sources for wifi driver and kernel 2.6.21, patched by Sony.
ISO:
ftp://ftp.uk.linux.org/pub/linux/Sony-PS3/CELL-Linux-CL_20070425-ADDON.iso

2.6.16 Kernel sources with wifi patches
http://ps3.vivaphp.net/kernel/linux-2.6.16-20070425.tar.bz2
http://ps3.vivaphp.net/kernel/linux-2.6.21-20070425.tar.bz2
:P

OK I using 2.6.16, with wifi patch on Gentoo ... now... but I dont know how to configure it to works on my wireless network ...
my conf.d/net is like it:
Code:
essid_eth0="SAORI"
mode_eth0="managed"
channel_eth0="6"
key_SAORI="XXXXXXXXXX enc open"

config_eth0=("192.168.0.2/24")
routes_eth0=("default via 192.168.0.1")


I removed the LAN cable... but the wifi not going to WEP mode.... any suggestion?
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
mecolik
n00b
n00b


Joined: 06 Aug 2003
Posts: 21

PostPosted: Mon May 07, 2007 3:29 pm    Post subject: New Addon kernel Reply with quote

Hi,
yesterday I've compiled many times the 2.6.21 kernel patched from Sony.
Compile ok and boot ok but I can't get my USB keyboard to work...
With the keyboard plugged, gentoo stop booting after the hid module load.
Without keyboard, gentoo boot and I can login via ssh.
I use to compile kernel as modular as I can, but even with a monolithic kernel, gentoo boot with keyboard attached but it doesn't work.
dmesg give me a lot of messages when in debug mode, just need to check at home what it was.

Using the config file delivered with the kernel or the ps3_defconfig give the same results.

The keyboard works well with kernel 2.6.16 from my original gentoo installation (beta livecd + stage4) but not with the new 2.6.16 (20070425).

The keyboard works also with the new kboot image (or maybe not so new), this kboot thing is cool,
being able to repair the installation from the bootloader is usefull.

Does anyone have encountered the same issues with the patched kernel ?
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Mon May 07, 2007 7:52 pm    Post subject: Reply with quote

Are you using this steps to compile the sony's patched kenel?

Code:
# tar jxvf linux-20070425.tar.bz2 -C /usr/src
# ln -s /usr/src/linux-20070425/ /usr/src/linux
# cd /usr/src/linux
# cp arch/powerpc/configs/ps3pf_defconfig .config
# make
# make modules_install
# cp vmlinux /boot
# genkernel initrd

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

Dont need change nothing at .config! :wink:
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
mecolik
n00b
n00b


Joined: 06 Aug 2003
Posts: 21

PostPosted: Tue May 08, 2007 9:27 am    Post subject: Reply with quote

Not exactly :
for
# cp arch/powerpc/configs/ps3pf_defconfig .config
# make

I use
# make ps3_defconfig
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Tue May 08, 2007 12:21 pm    Post subject: Reply with quote

mecolik wrote:
Not exactly :
for
# cp arch/powerpc/configs/ps3pf_defconfig .config
# make

I use
# make ps3_defconfig

Man, this is the same think.... :P
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
Jugix
n00b
n00b


Joined: 01 May 2007
Posts: 3

PostPosted: Tue May 08, 2007 5:07 pm    Post subject: Reply with quote

I have installed Gentoo on my PS3 using this guide. Seems I have 2.6.16 kernel and 32bit userland. I downloaded "linux-2.6.16-20070425.tar.bz2" from the link above to get wireless networking working, but the error message I get after "make" is this:
Code:
localhost linux # make
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.16-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-2.6.16-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/bin/sh: line 0: [: too many arguments
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.16-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-2.6.16-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
  CHK     include/linux/version.h
  HOSTCC  scripts/basic/docproc
  CC      arch/powerpc/kernel/asm-offsets.s
arch/powerpc/kernel/asm-offsets.c:1: error: -m64 not supported in this configuration
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


So any help would be apreciated! :)
_________________
PS3 - gentoo
Back to top
View user's profile Send private message
hexonn
n00b
n00b


Joined: 11 Feb 2007
Posts: 16
Location: LA, CA

PostPosted: Tue May 08, 2007 5:21 pm    Post subject: Reply with quote

anunakin wrote:
Code:
# cp arch/powerpc/configs/ps3pf_defconfig .config

everytime i use this i get this error :oops:

Code:
cp /arch/powerpc/configs/ps3pf_defconfig .config
cp: cannot stat `/arch/powerpc/configs/ps3pf_defconfig': No such file or directory


edit: I renamed ps3pf_defconfig to ps3_defconfig

and then I tried make ps3_defconfig

but I get an error

and then if I just try make, I get the same error as the person above :/
_________________
working on it
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Wed May 09, 2007 7:54 pm    Post subject: Reply with quote

To compile the kernel on a 32bit ul, you need install sys-devel/kgcc64

And use this:
Code:
alias powerpc64make='make ARCH=powerpc CROSS_COMPILE=powerpc64-unknown-linux-gnu-'


And use powerpc64make to compile the kernel.... :wink: this tip was posted on this... topic... some pages later :wink:
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
hexonn
n00b
n00b


Joined: 11 Feb 2007
Posts: 16
Location: LA, CA

PostPosted: Fri May 11, 2007 2:03 am    Post subject: Reply with quote

okay, i tried

Code:
localhost linux # powerpc64make
bash: powerpc64make: command not found


so then i tried

Code:
localhost linux # make powerpc64make
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/bin/sh: line 0: [: too many arguments
make: *** No rule to make target `powerpc64make'.  Stop.


am i supposed to use it elsewhere?
_________________
working on it
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Fri May 11, 2007 3:43 am    Post subject: Reply with quote

hexonn wrote:
okay, i tried

Code:
localhost linux # powerpc64make
bash: powerpc64make: command not found


so then i tried

Code:
localhost linux # make powerpc64make
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-20070425/scripts/gcc-version.sh: line 13: printf: #: invalid number
/bin/sh: line 0: [: too many arguments
make: *** No rule to make target `powerpc64make'.  Stop.


am i supposed to use it elsewhere?


run
Code:
alias powerpc64make='make ARCH=powerpc CROSS_COMPILE=powerpc64-unknown-linux-gnu-'

before try powerpc64make .....
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Fri May 11, 2007 12:09 pm    Post subject: Reply with quote

why try to compile a 64bit kernel for a 32bit instalation of Gentoo?
I'm not sure if that'd work if the system and kernel don't matchup
(I would have thought it would simply be better to select the option for 32bit compilation in the linux config)
I think the default config ps3pf_defconfig defaults to 64bit by default

for later releases of the kernel the "pf" prefix has been removed from a lot of files
to try and find it just cd into the kernel directory and try
Code:
find -iname '*ps3*'

to find something that looks like the config file and copy it across to .config

for the system I've got running at the moment I started off with the beta Gentoo Stage4 / ppc64
as a 64bit system and then just re-compiled a 64bit kernel on the 64bit system using the usual make vmlinux etc
without any special use of crosscompiling

something to be aware of for 2.6.21
first you'll need dtc installed at the very least
next when compiling the kernel you have the following
Code:
make vmlinux - create an uncompressed kernel image
make modules - make all the modules required
make bzImage - similar to "make vmlinux" but creates a smaller compressed version of the file


running just "make" on it's own I think does all 3 of the above
the problem is with certain versions of 2.6.21 the bzImage bit doesn't always work and throws up an error at compilation
so it's usually best to just

To configure
copy across to the default kernel to .config at the top of the kernel src tree
to alter any of the options "make menuconfig"

To compile
Code:
make vmlinux
make modules


To install
Code:
make modules_install
cp vmlinux /boot/kernel-<version>
genkernel initrd
edit /etc/kboot.conf


unless the bootloader has been updated recently (I still need to check out the new Cell CD)
I don't think it's possible to use bzImage files at the moment anyway
I know that the otheros.bld that comes with the first version of the Cell CD couldn't boot CD's
the otheros.bld that came with initial version of yellow Dog (which is what I'm using at the moment) can boot CD's but doesn't work with bzImage's
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 ... 16, 17, 18, 19, 20, 21  Next
Page 17 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