Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Profile/USE for MIPS O2 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Sat Dec 24, 2005 8:47 pm    Post subject: Profile/USE for MIPS O2 [SOLVED] Reply with quote

Having successfully gotten my O2 to boot into my own kernel via arcload, I'd now like to concentrate on getting a well-optimized system. At the time I set up the system, I choose the following profile, which I still have now:

Code:

ls -FGg /etc/make.profile
lrwxrwxrwx 1 49 Oct 18 16:56 /etc/make.profile -> ../usr/portage/profiles/default-linux/mips/2005.0/

The "make.defaults" file in that directory shows that you get:
Code:

CFLAGS="-O2 -pipe -march=mips2"

In my "make.conf" file, I set:
Code:

CFLAGS="-O2 -mips4 -mabi=32 -pipe"

which, as I understand it, overrides make.defaults's CFLAGS.

Now I'm wondering
(1) Do I have an appropriate set of CFLAGS?
(2) Would one of the following profiles be more appropriate for an O2:
Code:

/usr/portage/profiles/default-linux/mips/mips64/2005.0
/usr/portage/profiles/default-linux/mips/mips64/n32/2005.0

They both give CFLAGS "-O2 -pipe -march=mips3 -mabi=32", but there are some differences in their ACCEPT_KEYWORDS, and USE variables. Have I got it straight that the O2 uses a 64-bit kernel but userland (noted by abi=32) is 32-bit? That is why I was guessing the mips64/n32 profile would be the best match.

Thanks for any advice.


Last edited by iMike on Sat Jan 07, 2006 10:19 am; edited 1 time in total
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Dec 25, 2005 12:15 pm    Post subject: Reply with quote

Actually, for 64-bit machines (such as the O2), you need to use the /usr/portage/profiles/default-linux/mips/mips64/2005.0/ profile. This is covered in the new handbook which is due to be uploaded shortly. (See my blog for details).

Otherwise, you're fine there. Those CFLAGS should be just fine, and should optimise everything as required without breaking anything.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Sat Jan 07, 2006 10:19 am    Post subject: Reply with quote

Thank you, Redhatter. I used your new handbook and the new r5 livecd to install another O2. This went much smoother than the install using r4 and the old handbook. I will try to give my feedback on that to help in the next revision. The work you guys have been putting in on this is much appreciated! :D

BTW, I used -O3 on this system and so far have had no problem. I have already emerge -e {system world} as well as built a few other apps. Seems stable. (I didn't used any special optimization building the kernel.)

/iMike
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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