View previous topic :: View next topic |
Author |
Message |
iMike Apprentice
Joined: 01 Apr 2005 Posts: 217 Location: Stockholm, Sweden
|
Posted: Sat Dec 24, 2005 8:47 pm Post subject: Profile/USE for MIPS O2 [SOLVED] |
|
|
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 |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Dec 25, 2005 12:15 pm Post subject: |
|
|
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 |
|
|
iMike Apprentice
Joined: 01 Apr 2005 Posts: 217 Location: Stockholm, Sweden
|
Posted: Sat Jan 07, 2006 10:19 am Post subject: |
|
|
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!
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 |
|
|
|
|
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
|
|