Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving my current install to new hardware...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Uncle_Psychosis
Guru
Guru


Joined: 31 Jan 2004
Posts: 387

PostPosted: Mon Sep 03, 2012 6:25 pm    Post subject: Moving my current install to new hardware... Reply with quote

Hi guys

Currently I'm running an Intel Core2Duo on an Asus P5N-E motherboard, with a 32-bit x86 Gentoo install.

I've just acquired a new MOBO and CPU---Asus P6TD and Intel i7 920 QuadCore. I would like to try running 64-bit (might as well give it a try...)

What I would like to do is to try and keep as much of my existing install as possible, and just boot off a rescue cd, recompile a suitable kernel, adjust make.conf, and then do emerge -e system and emerge -e world. Is this possible? If so, is it sensible?

Here is my existing makefile. Can anyone tell me what (if anything) I would need to change? The CFLAGS and similar sections have always been gobbledegook to me. Also, are there any kernel gotchas I should look out for?

Thanks

Code:
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j3"

GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="X aac asf avi cdr divx divx4linux dvd dvdr dvdread flac gphoto2 mozilla
kde libsamplerate xcomposite quicktime realmedia wmp alsa dbus glitz svg mpt -hal msn njb nptlonly nvidia oggvorbis
consolekit policykit unicode xv real usb vcd win32codecs xcb kde4 qt3 qt4 tetex gstreamer jack gtk oss mad lame ogg encode ffmpeg sndfile mp3 vorbis imagemagick truetype
gnutls kpathsea cairo xulrunner -firefox nls mjpeg jack-tmpfs bluetooth xscreensaver gpm imap -gnome matplotlib scipy numpy ipython
-semantic-desktop scanner cameras_ptp2 udev ukit cameras_fuji qt3support cdparanoia mpeg gif xine xinerama xvid scga opengl -eds kde jpeg tiff png javascript directfb"

VIDEO_CARDS="nvidia nv vesa"

INPUT_DEVICES="keyboard mouse evdev"

LINGUAS="en_GB"

FEATURES="userfetch parallel-fetch"

ALSA_CARDS="hda-intel ice1712 intel8x0"

PORT_LOGDIR="/var/log/portage/"
PORTAGE_ELOG_CLASSES="warn error log qa"
PORTAGE_ELOG_SYSTEM="save"

PORTDIR_OVERLAY="/usr/local/portage"
#source /usr/portage/local/layman/make.conf
source /usr/local/portage/layman/make.conf
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54813
Location: 56N 3W

PostPosted: Mon Sep 03, 2012 6:33 pm    Post subject: Reply with quote

Uncle_Psychosis,

Its not possible to upgrade a 32 bit install to a 64 bit install. Well OK, if you are determined, its possible but a reinstall is much faster.
There is a shortcut though.

Keep your /etc to pick over, use it for ideas for your new install.
Keep your world file /var/lib/portage/world and put it into your new install. Now
Code:
emerge -e world

will do what you want.

The problem with the migration is your toolchain gets into a mess of some 32 bit and some 64 bit packages as soon as the update starts.
The toolchaing is then dead. Another problem is the mix of 64bit and 32 bit libs.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Uncle_Psychosis
Guru
Guru


Joined: 31 Jan 2004
Posts: 387

PostPosted: Mon Sep 03, 2012 6:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Uncle_Psychosis,

Its not possible to upgrade a 32 bit install to a 64 bit install. Well OK, if you are determined, its possible but a reinstall is much faster.
There is a shortcut though.

Keep your /etc to pick over, use it for ideas for your new install.
Keep your world file /var/lib/portage/world and put it into your new install. Now
Code:
emerge -e world

will do what you want.

The problem with the migration is your toolchain gets into a mess of some 32 bit and some 64 bit packages as soon as the update starts.
The toolchaing is then dead. Another problem is the mix of 64bit and 32 bit libs.


Ok, thanks. I guess it'll be a reinstall. Its probably time anyway, my system hasn't had a fresh install for about 5 years and there's probably all sorts of cobwebs hanging about in the corners.

I take it that the install guide explains the CFLAGS and everything for 64 bit?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54813
Location: 56N 3W

PostPosted: Mon Sep 03, 2012 6:49 pm    Post subject: Reply with quote

Uncle_Psychosis,

Follow the amd64 handbook.

Unless you want to send code to a complie farm, CFLAGS="-O2 -march=native -pipe" is all you will need.
If you want to use distcc, get gcc to tell you what -march=native means on your hardware and use that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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