Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PS3 32 to 64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
leon_73
Guru
Guru


Joined: 13 Mar 2003
Posts: 505
Location: Milano

PostPosted: Mon Feb 18, 2008 12:48 am    Post subject: PS3 32 to 64 Reply with quote

Hi all,

I'm pokeing on my ps3 just to see what can I do with it...

Just intalled a brand new gentoo using the stage4-32 .... Now I've tried to compile a new kernel (reiserfs was missing :evil: ) and I decided to compile it as 64 bit kernel but I noticed that if I enable it, I get the following error:
Code:
# make
scripts/kconfig/conf -s arch/powerpc/Kconfig
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 31: printf: #: invalid
number
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 31: 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.25-rc2/scripts/gcc-version.sh: line 31: printf: #: invalid
number
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 31: printf: #: invalid
number
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 29: printf: #: invalid
number
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 29: printf: #: invalid
number
/usr/src/linux-2.6.25-rc2/scripts/gcc-version.sh: line 29: printf: #: invalid
number
CHK     include/linux/version.h
UPD     include/linux/version.h
CHK     include/linux/utsrelease.h
UPD     include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-powerpc
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


but if I disable it, it seems to start.

Does it mean that I'm stucked in a 32 env, and if I want to try the 64 bit emotion I have to reinstall everything? there is no other chance?

Leo
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Mon Feb 18, 2008 12:51 am    Post subject: Reply with quote

Probably it would be easiest to install a full 64 bit setup. Compiling 64 bit code on a 32 bit arch is usually considered cross compiling, which is somewhat of a pain to deal with (you'd need to install another set of compilers, etc).
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Mon Feb 18, 2008 3:18 pm    Post subject: You don't need to install the 64-bit UL Reply with quote

The 32bit-userland has a compiler capable of compiling 64bit output. And it's provided with the stage4. To compile a 64bit kernel on a 32bit userland, the easiest way is to set the cross compiler in the top level makefile of /usr/src/linux, like so:

CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-

You very likely need to run a make mrproper before trying to recompile, so be sure to back up your .config.

As a side note, kboot does not support reiserfs. So if you plan to use reiser, you should create a /boot partition with not only the kernels and ramdisks but also an etc/kboot.conf.

Also, be certain you use one of the ps3 kernel sources ebuilds in the cell overlay unless you really know what you are doing.
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
leon_73
Guru
Guru


Joined: 13 Mar 2003
Posts: 505
Location: Milano

PostPosted: Mon Feb 18, 2008 3:55 pm    Post subject: Re: You don't need to install the 64-bit UL Reply with quote

rangerpb wrote:
The 32bit-userland has a compiler capable of compiling 64bit output. And it's provided with the stage4. To compile a 64bit kernel on a 32bit userland, the easiest way is to set the cross compiler in the top level makefile of /usr/src/linux, like so:

CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-

You very likely need to run a make mrproper before trying to recompile, so be sure to back up your .config.

As a side note, kboot does not support reiserfs. So if you plan to use reiser, you should create a /boot partition with not only the kernels and ramdisks but also an etc/kboot.conf.

Also, be certain you use one of the ps3 kernel sources ebuilds in the cell overlay unless you really know what you are doing.



Thnx a lot for the hint... I will try. And for the rest, don't worry, reiserfs is only on my external HD, all the / is in ext3 :-)

Leo
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
Page 1 of 1

 
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