Difference between pages "Install/pt-br/BootLoader" and "News:New OpenGL management in Funtoo"

< Install(Difference between pages)
(First Boot, and in the future...)
 
(explanation of the new system)
 
Line 1: Line 1:
=== Instalar um Bootloader ===
+
{{News
 +
|Summary=Funtoo is switching to an improved system for managing multiple OpenGL providers (Mesa/Xorg, AMD and nVidia). The update may involve blockers and file collisions.
 +
|News Format=Extended
 +
|News Category=Packages
 +
|Author=Mgorny
 +
|Publication Status=Draft
 +
|Publication Date=2015/02/28
 +
}}
 +
== New OpenGL management ==
 +
=== System principles ===
 +
The new OpenGL management design assumes that the reference OpenGL implementation (mesa/Xorg) is to be used to build packages. After switching to the new system, all packages will use the mesa/Xorg headers and link to the mesa/Xorg libraries. This improves portability of software built on Funtoo and solves some of the build failures when non-standard OpenGL provider was enabled.
  
Estas instruções de instalação the mostra como usar o GRUB para o boot utilizando BIOS (moda antiga) ou UEFI (moderno). Como no boot-update-1.7.2, agora no Portage, os passos são muito similares.
+
The third-party OpenGL libraries and modules provided by proprietary driver vendors can be enabled for run-time program use. They will not affect how the program is built. However, they will be loaded by the dynamic loader when starting executables. The Xorg server will also load the modules provided by blob driver vendor if appropriate.
  
Primeiro, emerge <code>boot-update</code>. Isso também causará que o <code>grub-2</code> e o {{c|efibootmgr}} sejam emergidos (merged), desde que eles são dependências:
+
=== Implementation ===
 +
The reference implementation (mesa/Xorg) packages install headers and libraries into standard system locations (/usr/include, /usr/lib*). The compiler and linker finds them using the usual rules and uses them.
  
<console>
+
The third-party OpenGL vendors install libraries and server extension modules into vendor-named subdirectories of /usr/lib*/opengl. Those files are not used directly.
(chroot) # ##i##emerge boot-update
+
</console>
+
  
Depois, edite <code>/etc/boot.conf</code> utilizando {{c|nano}} e especifique "<code>Funtoo Linux genkernel</code>" como a configuração <code>default</code> no topo do arquivo, substituindo <code>"Funtoo Linux"</code>.
+
{{Package|app-admin/eselect-opengl}} is used to select OpenGL implementation used at run-time. The choice of implementation is controlled via dynamic linker configuration (ld.so.conf) and Xorg server configuration. If the reference implementation is selected, the eselect module outputs null configuration that causes the linker and server to use the standard paths. If an another implementation is selected, the configuration prepends /usr/lib*/opengl paths to linker and server configuration, causing them to prefer the third-party libraries over reference.
 
+
{{NewsFooter}}
<code>/etc/boot.conf</code> deve agora parecer como isso:
+
 
+
<pre>
+
boot {
+
generate grub
+
default "Funtoo Linux genkernel"
+
timeout 3
+
}
+
 
+
"Funtoo Linux" {
+
kernel bzImage[-v]
+
}
+
 
+
"Funtoo Linux genkernel" {
+
kernel kernel[-v]
+
initrd initramfs[-v]
+
params += real_root=auto
+
}  
+
 
+
"Funtoo Linux better-initramfs" {
+
kernel vmlinuz[-v]
+
initrd /initramfs.cpio.gz
+
}
+
</pre>
+
 
+
Se você estiver inicializando um kernel personalisado ou não padrão, por favor leia <code>man boot.conf</code> para informações nas várias opções disponíveis para você.
+
 
+
==== Moda Antiga (BIOS) MBR ====
+
 
+
Quando utilizar inicialização "a moda antiga (old school)" pela BIOS, execute o seguinte comando para instalar o GRUB no seu MBR, e gere o arquivo de configuração {{c|/boot/grub/grub.cfg}} que o GRUB utilizará para a inicialização:
+
 
+
<console>
+
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
+
(chroot) # ##i##boot-update
+
</console>
+
 
+
==== Entrada de Boot moderno (UEFI) ====
+
 
+
Se você estiver utilizando inicialização "moderna" com o UEFI, uma execução do seguinte conjunto de comandos, dependendo se você estiver instalando um sistema de 64-bit ou de 32-bit. Isso aicionará GRUB como uma entrada de boot UEFI.
+
 
+
Para sistemas x86-64bit:
+
 
+
<console>
+
(chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
+
(chroot) # ##i##boot-update
+
</console>
+
 
+
Para sistemas x86-32bit:
+
 
+
<console>
+
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
+
(chroot) # ##i##boot-update
+
</console>
+
 
+
==== Primeiro Boot, e no futuro... ====
+
 
+
OK -- você está pronto para inicializar!
+
 
+
Você só precisa executar <code>grub-install</code> quando você instalar o Funtoo Linux pela primeira vez, mas você precisa re-executar <code>boot-update</code> toda vez que você modificar o seu arquivo <code>/etc/boot.conf</code> ou adicionar novos kernels ao seu sistema. Isso irá gerar {{c|/boot/grub/grub.cfg}} então assim você terá novos kernels disponíveis no seu GRUB boot menu, a próxima vez que você reiniciar.
+

Revision as of 18:53, February 28, 2015

New OpenGL management in Funtoo

Funtoo is switching to an improved system for managing multiple OpenGL providers (Mesa/Xorg, AMD and nVidia). The update may involve blockers and file collisions.

By Mgorny / February 28, 2015

New OpenGL management

System principles

The new OpenGL management design assumes that the reference OpenGL implementation (mesa/Xorg) is to be used to build packages. After switching to the new system, all packages will use the mesa/Xorg headers and link to the mesa/Xorg libraries. This improves portability of software built on Funtoo and solves some of the build failures when non-standard OpenGL provider was enabled.

The third-party OpenGL libraries and modules provided by proprietary driver vendors can be enabled for run-time program use. They will not affect how the program is built. However, they will be loaded by the dynamic loader when starting executables. The Xorg server will also load the modules provided by blob driver vendor if appropriate.

Implementation

The reference implementation (mesa/Xorg) packages install headers and libraries into standard system locations (/usr/include, /usr/lib*). The compiler and linker finds them using the usual rules and uses them.

The third-party OpenGL vendors install libraries and server extension modules into vendor-named subdirectories of /usr/lib*/opengl. Those files are not used directly.

Eselect (OpenGL) is used to select OpenGL implementation used at run-time. The choice of implementation is controlled via dynamic linker configuration (ld.so.conf) and Xorg server configuration. If the reference implementation is selected, the eselect module outputs null configuration that causes the linker and server to use the standard paths. If an another implementation is selected, the configuration prepends /usr/lib*/opengl paths to linker and server configuration, causing them to prefer the third-party libraries over reference.

blog comments powered by Disqus