AMD64/FAQ

From Gentoo Wiki
< AMD64
Jump to: navigation, search
This page is a translated version of the page AMD64/FAQ and the translation is 51% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎ • ‎日本語 • ‎한국어

Gentoo AMD64 artykuł o Najczęściej Zadawanych Pytaniach (FAQ).

Article status
This article has some todo items:


Wprowadzenie

Ten dokument zawiera najcześciej zadawane pytania o korzystaniu z Gentoo Linux w architekturze amd64. Wiele z tych pytań pochodzi z forum, IRC oraz różnych list mailingowych. Projekt AMD64 zapewnia wsparcie dla Gentoo Linux w tej architekturze. Jeżeli masz sugestie lub pytania odnośnie tego artykułu, proszę pozostaw komentarz na powiązanej stronie dyskusji.

Instalacja

Czym różni się AMD64 od EM64T?

Oba odnoszą się do procesorów 64-bitowych, pierwszy to AMD (AMD64) i drugi to Intel (EM64T). Procesory 64-bitowe AMD obejmują rodziny Athlon 64, Opteron, Turion, Neo, Phenom, FX, AX/EX/CX, Ryzen i EPYC. Procesory 64-bitowe Intela obejmują Core 2, Core iX, Celeron, Xeon oraz Pentium (wszystkie bazujące na architekturze Core 2 i późniejsze). Kilka ostatnich wersji starego Pentium 4 i Xeon także wspierają EM64T.

64-bitowe procesory AMD zostały wydane znacznie wcześniej niż Intela. Dlatego w Gentoo, z powodów historycznych, wszystkie architektury kompatybilne z x86-64 są określane mianem amd64. Stąd "AMD64" jest ogólnym odniesieniem do układów 64-bitowych, zarówno do AMD jak i Intel.

Jakie CFLAGS powinienem użyć?

Powinno się używać prostych parametrów w CFLAGS, aby uniknąć przyszłych problemów z systemem. Wspierane wartości dla CFLAGS to -O2 -march=native -pipe dla obu systemów, AMD oraz Intel (EM64T).

Jakie jądro powinienem użyć??

Możesz użyć prawie każde źródła jądra dostępne w Portage. Rekomendujemy używanie sys-kernel/gentoo-sources, ponieważ jest to jądro specjalnie zaprojektowane dla Gentoo Linux. Zawiera wiele specyficznych łatek dla AMD64 i dlatego jest to jedyne jądro oficjalnie wspierane przez Gentoo/AMD64.

Upewnij się, że masz włączoną opcję IA32_EMULATION w jądrze.

root #cd /usr/src/linux
root #make menuconfig
KERNEL Enabling IA32 emulation
Executable file formats / Emulations  --->
  [*] IA32 Emulation
Warning
Mogą wystąpić błędy w kompilacji na systemach multilib jeżeli dezaktywujesz tą opcję.

Czy doświadczę lepszej wydajności, jeśli użyję 64-bitowego systemu zamiast 32-bitowego ?

That is a difficult question to answer. In some cases, you will experience a performance improvement, in other cases you will not. For everyday use, there is almost no difference between 64-bit and 32-bit. 64-bit is generally faster when it comes to floating point computing, which is normally the case in multimedia applications and 3D rendering. Linux.com's articles 64-bit performance in Gentoo Linux and 64-bit Linux and BSD are maturing steadily may interest you. There's also a nice thread, Article: 64-bit performance in Gentoo Linux in our forums.

Co to jest multilib i jak mogę go użyć?

Every AMD64 processor is able to run 32-bit code as well as 64-bit code. However, when you have a 32-bit application, you are unable to mix it with 64-bit libraries or vice versa. You can, however, natively (without emulation) run 32-bit applications if all shared libraries it needs are available as 32-bit objects. You can choose whether you want multilib support or not by selecting the according profile. The default is a multilib-enabled profile.

Warning
Switching from a no-multilib to a multilib-enabled profile is currently not supported, so think over your decision twice before you use the no-multilib profile.

Jak utworzyć 32-bitowy chroot?

Proszę, przeczytaj Przewodnik Chroot 32-bit.

Can I upgrade from my x86 system to AMD64 by doing emerge -e @world?

Due to several differences between x86 (32-bit) and amd64 (64-bit) installations, it is impossible to upgrade this way. Please perform a fresh install using the AMD64 Handbook.

Note that binary files created on an x86 system most likely cannot be read by packages on an AMD64 system. In particular, some databases, such as OpenLDAP, cannot simply be copied as-is. You will need to dump the database into an architecture-independent format, such as a text file, before attempting to restore it on an AMD64 system. Database files for MySQL, Berkley DB and SQLite are architecture-independent and can be moved freely when a related daemon, if any, is cleanly shut down.

Hardware

Czy moje binarne sterowniki NVIDIA/ATI będą działały?

Yes, NVIDIA and ATI provide drivers that work on AMD64. You can install either x11-drivers/nvidia-drivers or x11-drivers/xf86-video-ati. If you have more questions about these drivers, you should read the nvidia-drivers guide or the ATI FAQ.

How do I use Cool'n'Quiet/PowerNow/SpeedStep features?

You have to compile your kernel with support for these features. You just need to enable the features below:

KERNEL Kernel options for Cool'n'Quiet/PowerNow/SpeedStep
Power management and ACPI options --->
  [*] Device power management core functionality
  [*] ACPI (Advanced Configuration and Power Interface) Support --->
    <*>   Processor
    <*>     Thermal Zone
  CPU Frequency scaling --->
  [*] CPU Frequency scaling
         Default CPUFreq governor (ondemand) --->
  -*-   'performance' governor
  <*>   'userspace' governor for userspace frequency scaling
  -*-   'ondemand' cpufreq policy governor
  <*>   ACPI Processor P-States driver
  CPU Idle  --->
    -*- CPU idle PM support

Then install sys-power/cpupower and edit /etc/conf.d/cpupower with a preferred text editor.

FILE /etc/conf.d/cpupowerExample configuration
# Options when starting cpufreq (given to the `cpupower` program)
START_OPTS="--governor ondemand"
  
# Options when stopping cpufreq (given to the `cpupower` program)
STOP_OPTS="--governor performance"

Now you only have to run rc-update add cpupower boot to make sure it is started every time the system boots.

Note
You may want to read the Power Management Guide for more tips on CPU power management.

Aplikacje

Can I get Adobe Flash working?

Yes. Install www-plugins/adobe-flash. Be sure to read any messages displayed by the ebuild once it has been emerged.

I want to install package foo, but emerge says: (masked by: ~amd64 keyword)

This means that the package is still in the 'testing' tree. Please read Portage's manual page (man portage) or the Mixing Software Branches chapter of the AMD64 Handbook for more information.

I want to install package foo, but emerge says: (masked by: missing keyword)

This means that the package has not been tested yet. It does not necessarily mean that the package does not work. You can unmask it by accepting another architecture (or set of architectures) for the package. The following example shows you can tell Portage to accept the installation of the given package under any keyword.

root #echo "category/packagename **" >> /etc/portage/package.accept_keywords
root #emerge packagename

If it works fine for you, please let us know and file a bug on Gentoo's Bugzilla, so that the AMD64 team can keyword the package and other users can benefit from your test.

Warning
Do not try to invoke commands like ACCEPT_KEYWORDS="~x86" emerge packagename. It will most certainly break the Portage tree and render the system useless.

Jak mogę pomóc projektowi Gentoo/AMD64 ?

Jak mogę pomóc?

With a growing popularity of the amd64 architecture, we also increasingly need more help. There's still much work to be done to improve the quality of Gentoo/AMD64. An average user can help us by:

  • Filing general bug reports.
  • Testing software that does not yet have the ~amd64 keyword.
  • Help answering questions on the mailing lists, forums and IRC channels.
  • Sending patches.
  • Participating in the AMD64 Arch Testers project.

Inne zasoby

Gdzie mogę uzyskać pomoc lub więcej informacji o Gentoo/AMD64?

If any of your questions wasn't answered here, you can try other resources listed on our project homepage. You can also ask us at #gentoo-amd64 on chat.freenode.net, Gentoo/AMD64 Forums, or on the gentoo-amd64@lists.gentoo.org mailing list.


This page is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: Simon Stelling, Luis Medinas, Gerald J. Normandin Jr., Xavier Neys,
They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page.