l0ner

howto: uvesafb widescreen

  1. You need to configure your kernel kernel. In the “Device Drivers” section select:

    1
    2
    3
    4
    
     [*] Connector - unified userspace kernelspace linker
     Graphics support --->
         Support for frame buffer devices --->
             [*] Userspace VESA VGA graphics support
    
  2. build the kernel: make

  3. emerge klibc
  4. emerge v86d

    1
    
     # emerge klibc
    

    Note: This step is necessary because klibc has to be compiled against a kernel tree that includes uvesafb. You only need to do this once, i.e. you won’t have to remerge klibc every time you install a new kernel or a new kernel module.

  5. install v86d:

    1
    
     # emerge v86d
    
  6. reconfigure your kernel; in the “General Setup” section select:

    1
    
     [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
    

    and use /usr/share/v86d/initramfs in Initramfs source file(s). (that’s CONFIG_INITRAMFS_SOURCE="/usr/share/v86d/initramfs)

  7. rebuild the kernel: make, and install it

  8. add video=uvesafb:1024x768-32,mtrr:3,ywrap (or similar) to your kernel command line

  9. reboot and enjoy uvesafb :)

check /sys/bus/platform/drivers/uvesafb/uvesafb.0/vbe_modes for available video modes.

Source