Difference between revisions of "Uvesafb"

From Funtoo
Jump to: navigation, search
(Back to kernel configuration)
(Kernel configuration)
(6 intermediate revisions by 2 users not shown)
Line 17: Line 17:
 
</pre>}}
 
</pre>}}
  
Build the kernel, do not install the kernel and modules. Note, that you can choose uvesafb as module, unlike vesa.
+
{{fancynote| Build the kernel, do not install the kernel and modules. You can choose uvesafb as a module, unlike vesa.}}
  
 
== Klibc ==
 
== Klibc ==
Line 23: Line 23:
 
Next, we emerge {{Package|dev-libs/klibc}}:
 
Next, we emerge {{Package|dev-libs/klibc}}:
 
<console>
 
<console>
###i## emerge -av klibc
+
###i## emerge klibc
 
</console>
 
</console>
 
This step is necessary because klibc has to be compiled against a kernel that includes uvesafb. You need to do it only once.
 
This step is necessary because klibc has to be compiled against a kernel that includes uvesafb. You need to do it only once.
Line 30: Line 30:
 
{{Package|sys-apps/v86d}} is the userspace helper that runs x86 code in emulated environment. Uvesafb will not work without v86d. Now, we emerge <code>v86d</code>:
 
{{Package|sys-apps/v86d}} is the userspace helper that runs x86 code in emulated environment. Uvesafb will not work without v86d. Now, we emerge <code>v86d</code>:
 
<console>
 
<console>
###i## emerge -av v86d
+
###i## emerge v86d
 
</console>
 
</console>
  
Line 38: Line 38:
 
| <br> |<pre>
 
| <br> |<pre>
 
General Setup->
 
General Setup->
(*)Initial RAM filesystem and RAM disk (initramfs/initrd) support
+
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
 +
(/usr/share/v86d/initramfs)    Initramfs source file(s)
 
</pre>}}
 
</pre>}}
 
Rebuild the kernel: make and install it, install the modules
 
Rebuild the kernel: make and install it, install the modules
  
=Bootloader configuration=
+
== Bootloader configuration ==
 
add <code>video=uvesafb:1440x900-32,mtrr:3,ywrap</code> (or similar) to your kernel command line, like in example <code>boot.conf</code>
 
add <code>video=uvesafb:1440x900-32,mtrr:3,ywrap</code> (or similar) to your kernel command line, like in example <code>boot.conf</code>
  
<pre>boot {
+
{{File
 +
|/etc/boot.conf|<pre>
 +
boot {
 
         generate grub
 
         generate grub
 
         default "Funtoo Linux uvesafb"  
 
         default "Funtoo Linux uvesafb"  
Line 53: Line 56:
 
         kernel bzImage-uvesafb[-v]
 
         kernel bzImage-uvesafb[-v]
 
         params += video=uvesafb:1440x900-32,mtrr:3,ywrap
 
         params += video=uvesafb:1440x900-32,mtrr:3,ywrap
}</pre>
+
}
 +
</pre>}}
  
 
Then run:
 
Then run:
 
<console>
 
<console>
##i### boot-update
+
###i## boot-update
 
</console>  
 
</console>  
 
and then run:  
 
and then run:  
 
<console>
 
<console>
##i### reboot
+
###i## reboot
 
</console>
 
</console>
 
and enjoy uvesafb!
 
and enjoy uvesafb!
 +
 +
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 14:10, 31 January 2014

Contents

How to : Framebuffer: Userspace VESA VGA graphics support

Uvesafb is an improved framebuffer driver for Linux systems with some enhancements compared to vesa.

Kernel configuration


Note: Build the kernel, do not install the kernel and modules. You can choose uvesafb as a module, unlike vesa.

Klibc

Next, we emerge dev-libs/klibc:

# emerge klibc

This step is necessary because klibc has to be compiled against a kernel that includes uvesafb. You need to do it only once.

v86d

sys-apps/v86d is the userspace helper that runs x86 code in emulated environment. Uvesafb will not work without v86d. Now, we emerge v86d:

# emerge v86d

Back to kernel configuration

Reconfigure the kernel:


Rebuild the kernel: make and install it, install the modules

Bootloader configuration

add video=uvesafb:1440x900-32,mtrr:3,ywrap (or similar) to your kernel command line, like in example boot.conf

boot {
        generate grub
        default "Funtoo Linux uvesafb" 
        timeout 3 
}
  "Funtoo Linux uvesafb" { 
        kernel bzImage-uvesafb[-v]
        params += video=uvesafb:1440x900-32,mtrr:3,ywrap
}

Then run:

# boot-update

and then run:

# reboot

and enjoy uvesafb!