On Sunday, 29 June 2025 03:19:59 British Summer Time Frank Steinmetzger wrote:
> Am Sat, Jun 28, 2025 at 10:33:24AM -0700 schrieb Jay Faulkner:
> > On 6/28/2025 9:38 AM, whiteman808 wrote:
> > > Is it necessary to reinstall Gentoo if I change CPU or motherboard? If
> > > not, what steps should be done on the existing Gentoo installation? Do I
> > > need to do these operations from chroot?
> > 
> > I'm assuming this is amd64->amd64.
> > 
> > So the main thing to worry about is CPU compatibility, and your CFLAGS. If
> > you're using -march=native, there's a chance your system won't work as
> > compiled. This isn't always true, but these days it's no longer a
> > guarantee
> > that a newer CPU will have all the features of the old.
> > 
> > 
> > What I usually do in this case is:
> > 
> > - set -march=x86-64-v3 (or whatever lowest-common-denominator CPU arch
> > generic target works) --
> > https://wiki.gentoo.org/wiki/Safe_CFLAGS#Generic_psABI_levels can help
> > with
> > this. - Ensure my system is fully updated, and `emerge --depclean`'d. -
> > emerge -e @world # this will rebuild your entire system.
> 
> I see no point in rebuilding the system on the old machine with with a
> generic -march, just to migrate it to a new machine where you rebuild it
> again with -march=native. So if you do run march=native and it doesn’t just
> boot, I would build from scratch and migrate my settings. It’s more
> efficient.

+1 ^^^

When moving a Gentoo system from one hardware platform to another your need to 
check and adjust if necessary:

1. The CPU architecture and compiler flags.
2. The CPU microcode.
3. The NICs drivers and firmware.
4. The graphics drivers and firmware.
5. The drivers for any change in MoBo bus(es), partition types and 
filesystems.
6. The drivers and firmware for any peripherals.

Unless I've missed anything, after you build the new kernel with the above in 
mind you should be able to boot with it.  You can rebuild @world on the PC 
which runs faster.

If you're using the Gentoo Distribution Kernel and Binhost packages, the 
migration could be much easier due to the generic choices of the precompiled 
software.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to