View previous topic :: View next topic |
Author |
Message |
Influence n00b
Joined: 29 Mar 2003 Posts: 7
|
Posted: Sun Aug 21, 2005 4:12 pm Post subject: Downgrading Hardware (Changing CHOST) |
|
|
Hi there!
Untily recently I've secured my wireless network using IPSEC, but now since I've switched to a WPA2 capable access point, my Pentium 2-350 seems grossly oversized and idles most of his time.
Therefore I'm planning to move my internet gateway to an old dell featuring a 133 megahertz pentium. Now I would very much like to keep my 2 year old gentoo installation whichs just runs perfectly ever since.
So to get there i need to change my CFLAGS from
"-march=pentium2 -O3 -pipe -fomit-frame-pointer" to
"-march=pentium -O3 -pipe -fomit-frame-pointer"
change my cpu in the kernel config
and my CHOST from
"i686-pc-linux-gnu"
to
"i586-pc-linux-gnu", right?
Then recompile everything using --emptytree and move the harddisk to my old dell.
Only problem is: As far as I know I just can't change CHOST without breaking everything, so what's the right way to do this? Or is this just not possible?
Thanks for your help,
Influence |
|
Back to top |
|
|
majk n00b
Joined: 17 Jul 2005 Posts: 19 Location: Europe, Croatia, Ri
|
Posted: Sun Aug 21, 2005 4:24 pm Post subject: |
|
|
Maybe right option for processor is "-march=pentium-mmx" or something
like that. Try "man make.conf".
I think you must recompile all installed packages (non binary) when changing CHOST,
wouldn't this be a nightmare on 166Mhz processor? |
|
Back to top |
|
|
Influence n00b
Joined: 29 Mar 2003 Posts: 7
|
Posted: Sun Aug 21, 2005 4:35 pm Post subject: |
|
|
majk wrote: | Maybe right option for processor is "-march=pentium-mmx" or something
like that. Try "man make.conf".
|
"pentium" should be right since the cpu does not support mmx.
majk wrote: | I think you must recompile all installed packages (non binary) when changing CHOST,
wouldn't this be a nightmare on 166Mhz processor? |
Well I think I _must_ recompile everything on my pentium 2 (with changed CFLAGS and CHOST) cos I would not even be able to boot on my pentium 133 with the p2 optimized binaries, right?
But yeah, even on the P2 a full recompile is going to be a nightmare. |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Sun Aug 21, 2005 4:38 pm Post subject: |
|
|
unless you have a more modern high-powered machine to do the compiling for your older machines and if this is just an internet gateway/router, then just go grab a binary distribution custom made for firewalling, etc. No sense spending 3 weeks compiling.... |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sun Aug 21, 2005 4:50 pm Post subject: |
|
|
Just a note, the man page to check info about architectures and the like is the gcc man page. make.conf man page is about the layout of that file, but have no specific info about archs and so.
Also, I agree with adsmith. I would put something like red hat into that box. There is no point into customizing a machine that you will never play with. |
|
Back to top |
|
|
|