Posts Tagged ‘fridu’

How to compile Nvidia proprietary drivers on Moblin 2.1 final (Acer Revo)

Tuesday, November 17th, 2009

For fully working revo on moblin 2.1 go here

Todo : understand and fix the issue in Clutter to get it to work with Nvidia drivers (as previously with Moblin 2.0)

Thanks to :

  • Dominique Le Foll - dominig@fridu.net - for testing all this on Moblin 2.1
  • Li Peng - peng.li@intel.com - for his help on recompiling x11-server in a clean way
  • - Install Moblin
    It should work from the USB stick (on Acer Revo F12 during Bios test will let you slect to boot on the USB stick)

    - Boot in Text Mode (init 3)
    enter Esc during Grub initialisation (easier is to enter Esc every second during boot) to access Grub Menu
    press e to go to Edit mode press arrow down to get to the second line press e to go in Line Edit mode replace "quiet vga=current" by the digit 3 press b to boot

    log with the user and password you entered during installation

    Become root (note type "su -" the space and the "-" are important)
    sudo su -

    Installing ssh - (just to make it easier - not neccessary)

    yum install openssh-server
    service sshd start
    ifconfig

    # Become root (note type "su -" the space and the "-" are important)

    sudo su -

    # enter your user password

    cd /root

    - Install packages required to build x11-server.

    Note next line is very very LONG because escaping with "\" seems to create trouble with yum.

    yum install "pkgconfig(scrnsaverproto)" "pkgconfig(xtrans)" "pkgconfig(libdrm)" "pkgconfig(randrproto)" "pkgconfig(renderproto)" "pkgconfig(kbproto)" "pkgconfig(glproto)" "pkgconfig(fixesproto)" "pkgconfig(dri2proto)" "pkgconfig(damageproto)" "pkgconfig(xf86driproto)" "pkgconfig(xcmiscproto)" "pkgconfig(bigreqsproto)" "pkgconfig(resourceproto)" "pkgconfig(compositeproto)" "pkgconfig(resourceproto)" "pkgconfig(evieproto)" "pkgconfig(xf86dgaproto)" "pkgconfig(xf86vidmodeproto)" "pkgconfig(xkbfile)" "pkgconfig(xres)" "pkgconfig(xau)" "pkgconfig(xext)" "pkgconfig(xfont)" "pkgconfig(fontenc)" "pkgconfig(xdmcp)" "pkgconfig(xt)" "pkgconfig(dmx)" "pkgconfig(xmuu)" "pkgconfig(xrender)" "pkgconfig(xi)" "pkgconfig(xpm)" "pkgconfig(xaw7)" "pkgconfig(xfixes)" "pkgconfig(xv)" "pkgconfig(pixman-1)" "pkgconfig(gl)" "pkgconfig(x11)" "pkgconfig(openssl)" "pkgconfig(pciaccess)" "pkgconfig(hal)" "pkgconfig(dbus-1)" byacc flex autoconf automake gcc gcc-c++ rpm-build make xineramaproto kernel-netbook-devel

    you will need to enter y for Yes twice ??

    Download the source code of x11-server and install it

    curl -o xorg-x11-server-1.6.4.901-7.8.moblin2.src.rpm http://repo.moblin.org/moblin/releases/2.1/source/xorg-x11-server-1.6.4.901-7.8.moblin2.src.rpm
    rpm -i xorg-x11-server-1.6.4.901-7.8.moblin2.src.rpm

    edit the spec file /root/rpmbuild/SPECS/xorg-x11-server.spec and replace
    --disable-xinerama by --enable-xinerama

    build the target

    rpmbuild --target=i586 -bb /root/rpmbuild/SPECS/xorg-x11-server.spec

    install the newly built x11-server (-i uses only one hyphen and --force two)

    rpm -iv --force rpmbuild/RPMS/i586/xorg-x11-server-*

    download the nvidia drivers

    curl -o NVIDIA-Linux-x86-190.42-pkg1.run http://uk.download.nvidia.com/XFree86/Linux-x86/190.42/NVIDIA-Linux-x86-190.42-pkg1.run

    make the script executable

    chmod +x ./NVIDIA-Linux-x86-190.42-pkg1.run

    Run the Nvidia script

    ./NVIDIA-Linux-x86-190.42-pkg1.run

    accept Nvidia license, it will compile the kernel module and install what is needed ask Nvidia installation script to create a new xorg.conf file

    reboot!

    After a few extra second of boot you will see the Nvidia logo Any clutter application will fail to start (including Mutter) after a few restart of X you will get the Moblin 2.1 top bar.

    Hope someone will find a fix for Clutter!