VERY IMPORTANT
If you ask the question about something that doesn't work please post relevant/related information(for example "emerge info" or dmesg output if the error is shown there), so we dont have to deduce it.It is wise to check http://bugs.gentoo.org because there is a possibility that your particular problem is already listed there. Also you might try this amd64 howto . It is also a good idea to check gentoo-wiki site cause it might help alot. Here is a nice article: 64-bit computing: Co-existing in a 32-bit world which might explain you better how 32bit emulation work on 64bit linux. If you are going to use hardened profile, hardened multilib is not supported in the kernel so you might get problems with 32-bit applications.
COMMON MISTAKES
Many people tend to forget to enable 32bit emulation in kernel, so CONFIG_IA32_EMULATION=y.
Please read the technotes and have a look at gentoo on amd64 HANDBOOK .
Q: I am new and interested in amd64 improvements over old x86:
A: Some little benchmarks can be found in this forum.An interesting article. Some xmame benchmarks.
Q: Will performance suffer if I use 32-bit emulation?
A: The 32-bit binaries will run as fast as you'd expect from a modern processor. The performance loss is insignificant.
Q: Example CFLAGS for amd64
A: CFLAGS="-march=athlon64 -O2 -pipe" should be stable enough. Search the forums for this because there is pretty much info availible. Please don't add -m64 to your CFLAGS! Some posts about it.
Here is a post about -ffast-math. Here is a document from amd with recommended cflags.
Q Example CFLAGS for em64t
A: CFLAGS="-march=nocona -O2 -pipe", check this thread.
Q: Example CFLAGS for 32 bit installation on athlon64/opertron
A: Just like normal athlons but you can use sse2. You can also use -march=athlon64 if you use gcc3.4+ and install using x86 livecd. This will imply sse. Also see here for more details.
Q: I've got problems with Athlon X2 , livecd won't boot with it.
A: If you get "Kernel panic - not syncing: Aiee, killing interrupt handler!" while booting livecd try "nosmp" boot option.
Here is a thread with some suggestions.
Q: mplayer / xine dont play some movies , *.wmv/*.rm/win32codecs dont work
A: You need 32bit mplayer to use 32bit codecs (for stuff like wmv9 and real). No win64codecs are currently availible.
Take a look at this guide and this topics: xine thread or this mplayer thread or just search for "mplayer" in amd64 forum what will answer your questions on this topic more completely. 32bit realpayer also works on amd64 if you want to play *.rm files.
See here what gentoo-wiki has to say about it.
Q: How to compile in 32 bits on amd64?
A: You have to have to compile gcc with "multilib" in your USE flags. Then take your software you want to compile and run
Code: Select all
CFLAGS="-march=i386 -m32 " LDFLAGS="-m32" ./configure --prefix=/usr
Q: How do i enable nx (non-execute) on amd64
A: This kernel boot parameters do the job : noexec=on and noexec32=on for 32 bit applications. Here are some amd64 boot parameters.
Q: How to use Cool and Quiet/Cool'n'Quiet/powernow
A: First check http://gentoo-wiki.com/HOWTO_PowerNow!.
Quick summary:
kernel config:
Code: Select all
Power management options --->
[*] Power Management support
< > /proc/cpufreq interface (deprecated)
CPU Frequency scaling --->
Default CPUFreq governor (ondemand)
<*> 'powersave' governor
<*> 'ondemand' cpufreq policy governor
<*> CPU frequency table helpers
<*> 'conservative' governor
[*] Use ACPI tables to decode valid frequency/voltage pairs
<*> CPU frequency table helpers
<*> AMD Opteron/Athlon64 PowerNow!
Code: Select all
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice
Code: Select all
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 2000000 > sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Q: Bootloader on amd64
A: lilo , syslinux , grub:
Here is a very nice grub error collection.
A nice grub howto.
Q: The realtime clock of my pc runs at insane rate, clock is too fast/slow
A: Try using "clock=pmtmr notsc" as kernel parameters. Some people report to have more success with "noapictimer" kernel paramter. Also try "no_timer_check=0".
Q: "Warning: many lost ticks. Your time source seems to be instable or some driver is hogging resources."
A: Check this post.
Q: Lost Interrupts
A: http://forums.gentoo.org/viewtopic.php? ... 49#1395349
Q: My 32 bit software needs * libraries.
A: 1) Check if you installed all emul- ebuilds with "emerge -s emul-linux-x86"
2) Use filename on google to get library name, get 32 bit library from some other 32 bit distribution (I prefer fedora core). Convert rpm to tar.gz by using rpm2targz. Copy unpacked libs in /usr/lib32, run ldconfig. Hope it works
Q: How to install some ebuild which are masked.
A: Dont use ACCEPT_KEYWORDS="x86" because it tends to break!
There are several methods to do this.
1) Just add "<package name> amd64" to your /etc/portage/package.keywords
2) You can use "ekeyword" from the gentoolkit-dev package:
Code: Select all
ekeyword \amd64 /usr/portage/x11-libs/wxGTK/wxGTK-2.5.1-r1.ebuild
Code: Select all
nano /usr/portage/x11-libs/wxGTK/wxGTK-2.5.1-r1.ebuild
Q: Wine/Cedega with amd64 ?
This post deals with latest problems people have with wine. Also here is a nice amd64 cedega faq at transgaming.
Q: My flash / java / some other 32bit plugin doesn`t work.
A: At the moment if you want to use 32 plugins with 64 bit browser your only choice is to use konqueror or to use 32 bit browser. How to use 32 bit plugins with 64 bit Konqueror here , post with a package here
32bit flash/32 bit java wont work with 64 bit browser so you have to either live with 32bit browser or dont use flash.
Q: openoffice-bin fails
A: A quick Openoffice 2 beta howto.
try FEATURES="-sandbox" emerge openoffice-bin
A pair of reference threads here and here
Q: I want to try reiser4 on amd64
A:There is a user created livecd which has theese features. Also see this wiki for more info. I myself use reiser4 with
nitro sources without any problems.
Q: I am having problems with 32bit games/opengl applications
A: Please be sure you installed your nvidia or ati card correctly. Then run "glxinfo" to check if you have hardware accelerated rendering. You can also fix lots of 32bit opengl software by
"export LD_PRELOAD=/usr/lib32/libGL.so.1" or/and "export LD_LIBRARY_PATH=/usr/lib32".
Also try "export LD_LIBRARY_PATH=/usr/lib32/opengl/nvidia/lib/" if you get this error with nvidia card.
Q: DRI OpenGL doesn't work with 32-bit applications (et, ut, whatever) on ATI, what can I do?
A:
Code: Select all
export LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri"Code: Select all
LIBGL_DRIVERS_PATH="/usr/lib32/modules/dri/:/usr/lib64/modules/dri"For more details see this howto.
Q: Teamspeak (ts2) Runtime error 234 at 0805D21F
A: Please READ the first post in this thread as it will solve your problem with 99% probablility. Also this and this bugzilla links might give you the clue.
-------------------------------[HARDWARE RECOMENDATIONS]-----------------------------------------
Q: What Wireless to buy for amd64?
A: Atheros chipset cards are supported by madwifi drivers. Atmel AT76C503/505A cards schould also work, check here. Ralink has also amd64 support, ra2500 gentoo's wiki, here is ra2500 problems thread. Older prism-based cards work except newer 802.11g cards like SMC2802W ver.2+ (v1 works fine). Here is a quote from prism54.org wiki:
Check linux-wlan-ng(it is also in portage) if you have Intersil Prism2/2.5/3. Broadcom-based cards work with this 64bit windows driver if loaded with ndiswrapper, also check this thread. Here is a very usefull list if you don't know exactly what chipset does your wlan card have. Also Linuxant DriverLoader might be a solution for you.
If you want to get WPA working you probably schould try something like this:
Code: Select all
ifconfig ra0 up
iwconfig ra0 channel 0
iwpriv ra0 set SSID=Gallien
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK=passphrase
dhcpcd ra0
Q: Which video card to buy for amd64?
A: Nvidia: works great for most of us 32bit/64bit with full 3D.
Ati : Here is also a little howto for it
Q: What about Motherboard recommendations?
A DFI Lan Party causes problems also here for some people. Here is a thread with reccomendations on pci-express motherboards. Most resent thread on this topic. Old one.sis 939 thread.
Q: What about Memory?
A: Note, that athlon64 is quite picky about it's memory because of the onboard memory controller. The only way to fix problems with memory is a bios update or to lower the timings in bios. Check this thread.
Q: What Notebooks?
A: General , also this , Acer Aspire and it's thread , Compaq 3000 and it's (wiki).
Q: Problems with Acer Aspire 1501/1511LMI
A: Here is a large thread about it.
Some experieces with it.






