Posts Tagged ‘Gutsy Gibbon’

Recompilando el kernel (Ubuntu Gutsy)

Tuesday, December 11th, 2007

A pesar de lo que mucha gente cree, recompilar el kernel hoy en día no es excesivamente complicado. Además de esto en ciertas ocasiones puede ser necesario, por ejemplo, para poder instalar un módulo que necesitamos y que no viene incluido en el kernel (véase artículo relacionado).

Bueno, comenzamos, como siempre, instalando todos los paquetes necesarios para la compilación del kernel.

sudo apt-get install linux-kernel-devel linux-source build-essential pkg-config ncurses-dev qt3-apps-dev qt3-assistant qt3-designer qt3-dev-tools qt3-doc qt3-qtconfig

acto seguido descomprimimos el kernel en el directorio /usr/src

cd /usr/src
sudo tar xjf linux-source-2.6.22.tar.bz2

Y ahora tenemos que configurarlo (esto lo vamos a hacer de una forma realmente sencilla) : tecleamos

cd linux-source-2.6.22
make xconfig

y nos aparecerá un menú parecido a:

qconf

Abrimos (File>load) el fichero de configuración que se encuentra en /boot/config-2.6.22-14-generic y acto seguido lo guardamos como “.config

a continuación ejecutamos en este orden.

sudo su
make ; make modules ; make modules_install ; exit

estos tres pasos suelen tomarse bastante tiempo aunque no necesitan ninguna atención, a no ser que algo haya ido mal.

Una vez terminado, copiamos el kernel recien compilado al directorio /boot

sudo cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.22

creamos su correspondiente fichero initrd

sudo mkdir /lib/firmware/2.6.22.9
sudo mkinitramfs -o /boot/initrd.img-2.6.22 2.6.22.9

Y por último sólo nos queda añadir en el fichero de configuración del grub el nuevo kernel.

sudo gedit /boot/grub/menu.lst

Nos vamos a la linea donde aparece por primera vez

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,?)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=???????-????-????-????-?????????????? ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

y añadimos justo antes:

title Ubuntu 7.10, kernel 2.6.22
root (hd0,?)
kernel /boot/vmlinuz-2.6.22 root=UUID=???????-????-????-????-?????????????? ro quiet splash
initrd /boot/initrd.img-2.6.22
quiet

(Notar que los caracteres marcados como ? son diferentes dependiendo de la instalación de cada uno, así que hay que copiar y pegarlo sin modificarlos)

Una vez finalizado todo esto ya podemos reiniciar el ordenador con el kernel nuevo. Recordar que ahora probablemente necesitemos recompilar para el nuevo kernel todos los módulos que teníamos antes.

Webcam Acer Crystal Eye funcionando en Ubuntu Gutsy

Monday, November 19th, 2007


Note: I have corrected this post in order to solve the problem that most of the people was having. It seems that some of you got it working properly and some others, however, had some errors during the module compilation. This could be solved completely if you recompile the kernel

Well, I got the webcam working properly in Ubuntu Gutsy, as follows I will detail how to do it if someone else have the same problem

First of all it’s necessary (however some people got it working without doing it) to compile the kernel as I say in this post.

After that you must install subversion in order to download the latest version of the modules.

sudo apt-get install subversion

svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

cd trunk

sudo su

make

make install

modprobe uvcvideo

It’s important to make “suod su” because it can avoid some problems during the compilation, but, from my point of view is better to have the right permision in the directory /usr/src

Finally, you must add all the users that are going to use the web cam to the group “video” and ensure that the device “/dev/video0” is owned by this group.

If this information was useful for someone just comment it, it helps to keep on writing for me.

Acer crystal eye funcionando en ubuntu gutsy