Howto: uvesafb on Debian (in my case… sid =D)

Hi everybody =).

A few days ago i installed gentoo on my desktop pc, and installed uvesafb without problems (thanks to spock for developing uvesafb and the instructions XDD, ). But now, in my laptop with Debian Sid (compaq v3417la) I didnt find any instructions about how to get it work with uvesafb. 2 hours ago, i could xD.

Mmm i think this will work too with debian-based distributions such the famous ubuntu.
Make sure you have installed kernel-package and patch.

sudo apt-get install kernel-package patch

First… get root privileges (i dont want to type sudo every time I need it jeje), download the sources (in my case that were but there are newer versions =P), klibc , v86d and the uvesafb patch .

cd /usr/src



tar jxvf linux-
tar jxvf
tar jxvf

Make a symbolic link named linux which goes to the linux sources:

ln -s linux- linux

Now go into linux sources directory, patch your sources with uvesafb and configure your kernel:

cd /usr/src/linux
cat ../uvesafb-0.1-rc3-2.6.23-rc3.patch | patch -p1
make menuconfig

Before ending the configuration, make sure this options are included:
Device Drivers ---> Connector - unified userspace <-> kernelspace linker
Graphics support ---> Userspace VESA VGA graphics support

Now we are ready to compile our new linux kernel to the "debian way":

make-kpkg –initrd kernel_image kernel_headers

After some time, two packages will be created in /usr/src directory, install them.

dpkg -i linux-image-
dpkg -i linux-headers-

Reboot and start with your new linux kernel: . After login, go to /usr/src/klibc-1.5.8 and install it.

cd /usr/src/klibc-1.5.8
ln -s /usr/src/linux linux

make install

“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.” I made a symbolic link to the linux source dir because it ask me to do, i don’t know if that step is neccesary.

Go into v86d source dir and install it (against klibc):

cd /usr/src/v86d-0.1.3
./configure –with-klibc
make install

Enter now to the linux kernel source and configure it again.

cd /usr/src/linux
make menuconfig

And now including this options in your kernel:
Initial RAM filesystem and RAM disk (initramfs/initrd) support

and use /usr/src/v86d-0.1.3/misc/initramfs in Initramfs source file(s).

Compile the sources to the “debian way”:

make-kpkg –initrd kernel_image kernel_headers

Reboot again using your previous kernel (the one you have been using before following this guide), uninstall the linux kernel 2.6.23 and install it again (now with the new deb packages created the last time).

dpkg -r linux-image-
dpkg -r linux-headers-
cd /usr/src
dpkg -i linux-image-
dpkg -i linux-headers-

Almost done! edit your grub config adding the uvesafb line to the kernel command line:

nano /boot/grub/menu.lst

It will be somewhat like this:
title           Debian GNU/Linux, kernel
root            (hd0,0)
kernel          /boot/vmlinuz- root=/dev/sda1 ro video=uvesafb:1024×768-32,mtrr:3,ywrap
initrd          /boot/initrd.img-

The bold line is what matters.

Reboot again with your new linux kernel and it will be using uvesafb! =D.

Thanks to spock for the installation instructionsfor gentoo, and for uvesafb of course!.


7 comentarios to “Howto: uvesafb on Debian (in my case… sid =D)”

  1. Vincent Says:

    Can I follow your installation steps likewise in ubuntu8.04?

  2. Otamay Says:

    I haven’t tested but in theory it should work =P.

  3. Vincent Says:

    Yes, it works.
    I have installed it in ubuntu8.04 without installing klibc package successfully.

  4. Ivan Says:

    i had to write
    make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers

  5. ws Says:

    Hola, lei un comentario tuyo en, estoy tratando de instalar una tarjeta broadcom en wifislax para realizar una auditoria, el problema esque no la puedo poner en modo monitor😦, parece que tu encontraste una forma de hacerlo, me podrias ayudar, es una broadcom 4322ag

  6. CPC Exam Study Guide 2013 Says:

    I constantly spent my half an hour to read this weblog’s articles every day along with a cup of coffee.

  7. Ubuntu Networking Setup Says:

    Poost writing is also a fun, if you know afterwsrd you can write otherwise it is complicated to write.


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: