LINUX.ORG.RU

Сборка ядра для Athlon64 X2 в Debian


0

0

Здравствуйте, хотел узнать какие опции нужно включать при компиляции ядра для полноценной поддержки возможностей 64битной архитектуры? Может быть команды дополнительные при сборке? Рассматривается в частности Debian x86_64 (Etch), Athlon64 X2 +5200, ядро 2.6.25.9. Заранее СПАСИБО!!! :-)

в makeopts (или что там в дебиане) нужно поставить --march=k8. В конфиге опции что-то там про CPU. Найдёшь вобщем.

amoralyrr ★☆
()
Ответ на: комментарий от vanek82

>В этом вопросе мне поможет эта книжка?

Примерно в той же степени, в какой от головной боли поможет отрубание головы.

ist76 ★★★★★
()
Ответ на: комментарий от ist76

Думаю до головы еще долеко. :-)

Из этой книжки я пока узнал что:

1) Building Faster on Multiprocessor Machines

The kernel build system works very well as a task that can be split up into little pieces and given to different processors.

By doing this, you can use the full power of a multiprocessor machine and reduce the kernel build time considerably. To build the kernel in a multithreaded way, use the -j option to the make program.

It is best to give a number to the -j option that corresponds to twice the number of processors in the system.

So, for a machine with two processors present, use:

$ make -j4

Вопрос: под многопроцессорными машинами подразумеваются именно физические процессоры? (т.е. если у меня 2х ядерный процессор но физически он ОДИН, значит эта опция не для меня?)

2)Different Architectures

A very useful feature is building the kernel in a cross-compiled manner to allow a more powerful machine to build a kernel for a smaller embedded system, or just to check a build for a different architecture to ensure that a change to the source code did not break something unexpected.

The kernel build system allows you to specify a different architecture from the current system with the ARCH= argument. The build system also allows you to specify the specific compiler that you wish to use for the build by using the CC= argument or a cross-compile toolchain with the CROSS_COMPILE argument.

For example, to get the default kernel configuration of the x86_64 architecture, you would enter:

$ make ARCH=x86_64 defconfig

Если я правильно понял, эта опция используется когда я хочу собрать ядро для другой архитектуры.

(если я собираю ядро на Intel машине для дальнейшего использования на машине с процессором AMD)

3) It is useful even for a non-cross-compiled kernel to change what the build system uses for the compiler.

Examples of this are using the distcc or ccache programs, both of which help greatly reduce the time it takes to build a kernel.

To use the ccache program as part of the build system, enter:

$ make CC="ccache gcc"

To use both distcc and ccache together, enter:

$ make CC="ccache distcc"

А эти опции используются только для увеличения производительности

самого процесса компиляции (т.е. для уменьшения времени компиляции)

vanek82
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.