Alpha/FAQ/ru

This FAQ is intended to answer some of the most frequently asked questions relating to Gentoo/Alpha and Linux/Alpha in general.

Введение
This document contains answers to the most commonly asked questions about Gentoo/Alpha and Alpha/Linux. It's aimed at both new users and experienced users alike.

Что такое Gentoo/Alpha?
Проект Gentoo/Alpha ответственен за сохранение дистрибутива Gentoo обновленным для платформы Alpha. Это в первую очередь администрирование переменной KEYWORDS в пакетах, портирование программного обеспечения, а также создание новых релизов. Проект Gentoo/Alpha стремится обеспечить рабочую среду для настольных компьютеров и серверов.

Архитектура Alpha мертва?
Вроде, да. HP прекратила принимать заказы на новые системы Alpha 27 апреля 2007 года и для опций и обновлений Alpha 25 апреля 2008. Просмотрите страницу планирования для подробной информации.

Я могу запустить 32-bit приложения?
Нет, все системы Альфа используют чистое 64 битное ядро и чистое 64-битное пользовательское пространство. Вы не можете даже заставить gcc выводить 32 битный код с помощью   флага компилятора.

Is Alpha big endian or little endian?
Alpha systems are little endian. A large Cray system using Alphas was big endian, but Linux will never support it.

Можно ли запускать Linux/x86 приложений на Alpha?
Да, но с x86 эмулятором, таким как QEMU. В прошлом DEC/Compaq/HP поддерживали программу под названием, которая позволяла запускать Linux/x86 приложения на системах Linux/Alpha. Тем не менее, программа распространялась с закрытым исходным кодом и больше не поддерживается. Больше нет доступных бинарников, которые совместимы с ABI gcc-3.

Зачем устанавливать Gentoo на Alpha?
Следует признать, что вы можете найти более быстрые 64-разрядные системы, например amd64. Тем не менее, это не означает, что системы Alpha бесполезны. Ниже приведены несколько хороших причин, почему вы можете хотеть установить Linux на такого рода оборудования:


 * Вы можете превратить старый компьютер в нечто полезное. Из старых Alpha делают большие маршрутизаторы и серверы. Их производительность не так уж плоха.
 * Вы узнаете о необычной компьютерной технике.
 * Это круто. Сколько человек может сказать, что у них есть Linux, который работает на Alpha?

Где я могу купить Alpha?
Alpha, как правило, не доступны в вашем местном компьютерном магазине. eBay, как правило, хороший вариант, если предположить, что доставка не будет стоить вам слишком много. Есть несколько дилеров, бывшего в употреблении оборудования, которые могут быть найдены с помощью Google, однако большинство из них стоят слишком много.

I opened up the case on an AlphaServer and now it won't power on, what do I do?
Make sure the top panel of the case is on and properly in place. The middle of the top panel of the case has a small piece of metal oriented downwards. When the top panel is put back in place properly, the small piece of metal will press down on a switch. When the switch isn't pressed down, the system will refuse to power on.

Is the use of Alpha specific compiler flags recommended?
As with all compiler optimizations, don't over do it. Use these flags with care and they will give you a stable, speedy system; use them too aggressively and you could seriously break your system. When in doubt, leave it out. If you need further clarification, check the  man page.

How do I optimize for a specific instruction set and scheduling model?
You can optimize for a specific instruction set and scheduling model with, where XXX is your cpu type. Valid cpu types are,  ,  ,  ,  ,   and. If you do not use the  flag, then   will default to the cpu type of the machine it was compiled on. is equivalent to the  flag on x86.

How do I specify the scheduling model without changing the instruction set?
You can specify the scheduling model without changing the instruction set with, where XXX is your cpu type. Valid cpu types are,  ,  ,  ,  ,   and. is implied by, so you don't need to specify this with if you set. is equivalent to the  flag on x86.

How do I enable software assisted floating point numbers?
You can enable software assisted floating point numbers with. This will enable software assistance to correctly support denormalized numbers and exceptional IEEE values such as not-a-number and plus/minus infinity.

This should be in your global  unless you really know what you are doing.

How do I specify the memory latency of my system?
You can specify the memory latency of your system with, where XXX is the number of clock cycles. This sets the latency time that the scheduler should assume for memory references. has some predefined "typical" values that are also accepted by. Those values are  for Dcache,   for Scache,   for Bcache, and   for main memory.

This flag should probably not be use in your global  as the value you choose is highly dependent on the memory access pattern of the application you are compiling.

How do I specify that static data should be placed in the small data area?
You can specify that static data should be placed in the small data area with. This will cause  to take advantage of some features of the Alpha architecture by storing heavily used pieces of data in specific sections called the small memory sections. The sections are limited to 64KiB which means accessing anything stored in them will only take one instruction.

will override, so you should use the flag instead if you do not want  to be overridden.

This flag should probably not be used in your global  as some objects require more than 64KiB to be stored, and this will cause a gp_overflow ld error.

How do I specify that object code should be placed in the small text area?
You can specify that object code should be placed in the small text area with. This will cause  to assume that the entire program (or library) fits in 4MB, and is thus reachable with a branch instruction. This reduces the number of instructions required for a function call from 4 to 1.

This flag should probably not be used in your global  as some programs (or libraries) are larger than 4MB, and this will cause an ld error.

What do I do if any of these compiler flags cause a compile, linker, or runtime error?
As, please use these  cautiously. They may break your system. If you experience problems, try using less aggressive  before.

What is SRM?
SRM is based on the Alpha Console Subsystem specification, which provides an operating environment for OpenVMS, Tru64 UNIX, and Linux operating systems. See the SRM Howto for more information about SRM.

What is ARC?
ARC is based on the Advanced RISC Computing (ARC) specification, which provides an operating environment for Windows NT.

How can I tell if which firmware my Alpha has, ARC or SRM?
When you power your system on you will see a screen with a blue background and white text if it is using SRM. You will see a graphical boot system if it is using ARC.

Which bootloader do I use?
If your Alpha system supports SRM, then you should use aboot. If your system supports both SRM and ARCs (ARC, AlphaBIOS, ARCSBIOS), then you should follow the SRM Firmware Howto for switching to SRM and use aboot. If your system can only use ARCs (Ruffian, xl, etc.) then you will need to choose milo.

Can aboot boot kernels from EXT4, XFS, ReiserFS, or JFS partitions?
No,  only supports booting kernels from   and   partitions. You may still use other files systems for your root partition, you just need to create a partition with either   or   on it.

Support for ext4 is planned. In fact, there are patches floating around that add support for ReiserFS, XFS, and ext4.

How is Java support in Gentoo/Alpha?
Compaq/HP offered binary packages, called  and. They stopped all support, and the packages were removed from Gentoo on October 11, 2006. Since then, we haven't supported Java.

Will there ever be working Java support?
It's possible to use  on Alpha, but we have no plans to support it, due to the high maintenance costs involved with testing hundreds of additional packages.

How is .NET support in Gentoo/Alpha?
Neither of the two main open source efforts, mono nor DotGNU, support the alpha architecture.

What is needed for .NET support?
Bringing .NET to Alpha isn't a simple task. It requires coding all of the assembly language code generation macros for the JIT (just in time) compiler and coding architecture specific functions (register allocators, etc).

Which kernel sources should I use?
We recommend using  but   is also supported by Gentoo/Alpha. You should read the Gentoo Kernel Guide to determine which one is right for your needs.

My system is broken with kernel-2.6, Can I build a 2.4 bassed system?
Gentoo/Alpha stopped supporting 2.4 kernel and profile in January 2008. Technically you can build a 2.4 Gentoo System (the kernel is in the tree) but you will have to mask all the 2.6 only packages by yourself and you won't have support from developers.

Gentoo/Alpha will review all bug reports about non-working 2.6 systems and will try to help as much as we can.

Are hardened-sources supported?
Short answer is no. They were supported some time ago, but we lost the hardware and the maintainer so now they are not supported. If you are interested and want to continue the initial work, please let us know.

Does the 2.6 kernel support Alpha SMP?
There were some times in the past when it was broken. However, modern kernel versions are known to work well.

How do I report bugs?
If you find a bug or you want to send us patches, then you need to file a bug report. It only takes you a little bit of your time, and your help is really appreciated. Please follow the Gentoo Bug Reporting Guide.

How can I help the Gentoo/Alpha Project?
Users can help us by:


 * Filing clear and concise.
 * Testing software that does not yet have the  keyword.
 * Answering questions on the mailing lists, forum and IRC channel.
 * Sending patches
 * Becoming an AT

Is there an Alpha Arch Testers Project?
Yes, see the Gentoo Linux Alpha Arch Testers Project page for details.

Why is Xorg locking up my Alpha?
This is usually caused by a bad -mcpu setting. For example, the AlphaServer 800 needs to be compiled with the  flag for xorg and glibc. Failing to do so will cause undesired results.

Why is there no Gentoo on Alpha forum?
On the Gentoo Forums there are several arch specific categories like Gentoo on PPC and Gentoo on Sparc. There is no Gentoo on Alpha category because there simply isn't enough Gentoo/Alpha activity on the forums to warrant one. All Alpha related posts should go in the Gentoo on Alternative Architectures category.

Where can I get more help or information about Gentoo/Alpha?
If any of your questions weren't answered here, you can try other resources like the Alpha Handbook or our project homepage. You can also ask us at  on , Gentoo on Alternative Architectures Forum, or on the  mailing list.

Where can I get more help or information about Alpha/Linux?
AlphaLinux.org is a central repository for all things Alpha/Linux.