Results 1 to 5 of 5

Thread: gma500 poulsbo psb driver and backtrack 4 RC1

  1. #1
    Just burned his ISO
    Join Date
    Oct 2010
    Posts
    6

    Default gma500 poulsbo psb driver and backtrack 4 RC1

    Hi there.
    I'm here to share my experience about the intel gma500 shipset on backtrack 4 RC1, on a "dell mini 12" also known as "insipron 1210".


    As every gma500 owner experienced it. Out of the box, vesa driver is the only one capable of starting X.

    -- Xpsb and psb-x11 driver --
    To set "properly" the psb driver, i'll need these packets:
    psb-firmware
    xpsp-glx

    i found it on the ppa.lauchpad repository:
    Add this in your source.list
    deb Index of /ubuntu-mobile/ppa/ubuntu intrepid main
    deb-src Index of /ubuntu-mobile/ppa/ubuntu intrepid main

    You may find intrepid "old" but as pawnsauce it uses Xorg version 1.5.2

    First problem is that "xserver-xorg-video-psb" will not compile.
    This package aim to install the psb.ko and drm-psb.ko modules

    -- psb.ko and drm-psb.ko modules --
    You will have to compile it manually from psb-kmod-4.41.1-10.fc11.10.src.rpm
    Use alien to get the sources from this rpm
    Apply all the patchs.
    Compile it in the source folder with "make psb.o"
    place the psb.ko and drm-psb.ko binaries in /lib/modules/2.6.34/kernel/drivers/misc/

    you ll have to rmmod drm, and then insmod drm-psb.ko

    "modprob psb" should insert the module without problems.

    xorg.conf:
    Code:
    Section "Device"
            Identifier      "GMA500"
            Option "AccelMethod" "EXA"
            Option "DRI" "on"
            Option "MigrationHeuristic" "greedy"
            Option "IgnoreACPI" "yes"
            Driver "psb"
            Option "NoDDC"
    EndSection
    
    Section "DRI"
        Mode    0666
    EndSection
    modinfo psb:
    Code:
    filename:       /lib/modules/2.6.34/kernel/drivers/misc/psb.ko
    license:        GPL
    description:    drm driver for the Intel GMA500
    author:         Tungsten Graphics Inc.
    depends:        drm-psb
    vermagic:       2.6.34 SMP mod_unload CORE2
    parm:           ignore_acpi:Ignore ACPI (int)
    parm:           debug:Enable debug output (int)
    parm:           clock_gating:clock gating (int)
    parm:           no_fb:Disable FBdev (int)
    parm:           trap_pagefaults:Error and reset on MMU pagefaults (int)
    parm:           disable_vsync:Disable vsync interrupts (int)
    parm:           detear:eliminate video playback tearing (int)
    parm:           force_pipeb:Forces PIPEB to become primary fb (int)
    parm:           ta_mem_size:TA memory size in kiB (int)
    parm:           mode:initial mode name (charp)
    parm:           xres:initial mode width (int)
    parm:           yres:initial mode height (int)
    modinfo drm-psb:
    Code:
    filename:       /lib/modules/2.6.34/kernel/drivers/misc/drm-psb.ko
    license:        GPL and additional rights
    description:    DRM shared core routines
    author:         Gareth Hughes, Leif Delgass, José Fonseca, Jon Smirl
    depends:
    vermagic:       2.6.34 SMP mod_unload CORE2
    parm:           cards_limit:Maximum number of graphics cards (int)
    parm:           debug:Enable debug output (int)
    Sample of Xorg.0.log
    Code:
    (II) Loading /usr/lib/xorg/modules/drivers//psb_drv.so
    (II) Module psb: vendor="X.Org Foundation"
            compiled for 1.5.2, module version = 0.14.0
            Module class: X.Org Video Driver
            ABI class: X.Org Video Driver, version 4.1
    
    (II) Loading /usr/lib/xorg/modules/drivers//Xpsb.so
    (II) Module Xpsb: vendor="Tungsten Graphics Inc."
            compiled for 1.5.2, module version = 0.1.0
    (II) PSB(0): Debug: psbDeviceScreenInit
    (II) PSB(0): Debug: Initializing device
    (II) Loading sub module "vgahw"
    (II) LoadModule: "vgahw"
    This is all, i think.

    I would gladly build a deb package, can someone give me some tips about debs?

    Did someone tried IEGD drivers?

    Screwt-K

  2. #2
    Just burned his ISO
    Join Date
    Oct 2010
    Posts
    6

    Default Re : gma500 poulsbo psb driver and backtrack 4 RC1

    The brightness issue ("impossible to change BACKLIGHT power")
    On my dell mini 12 has been solved with this tips:

    http://linux-tipps.blogspot.com/2010/07/backlight-finally-works-generic-poulsbo.html

    patch:

    Code:
    diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
    index 60ea984..ad8fc2d 100644
    --- a/drivers/acpi/video.c
    +++ b/drivers/acpi/video.c
    @@ -2394,9 +2394,6 @@ static int __init acpi_video_init(void)
    {
    dmi_check_system(video_dmi_table);
    
    - if (intel_opregion_present())
    - return 0;
    -
    return acpi_video_register();
    }
    patch the file and :

    Code:
    root@bt:/lib/modules/2.6.34/build# make drivers/acpi/video.ko
    root@bt:/# rmmod video
    root@bt:/usr/src/linux/drivers/acpi# insmod ./video.ko

  3. #3
    Just burned his ISO
    Join Date
    Nov 2010
    Posts
    1

    Default Re: gma500 poulsbo psb driver and backtrack 4 RC1

    You will have to compile it manually from psb-kmod-4.41.1-10.fc11.10.src.rpm
    Use alien to get the sources from this rpm
    Apply all the patchs.
    Compile it in the source folder with "make psb.o"
    How exactly would one go about doing this? I'm not exactly new to Linux, but I've never compiled something from an .rpm file for a Debian system.

    Also, would any of the steps change from RC1 to Final? Thanks in advance for the help.

  4. #4
    Just burned his ISO
    Join Date
    Oct 2010
    Posts
    6

    Default Re : gma500 poulsbo psb driver and backtrack 4 RC1

    To get the sources from the rpm:

    Code:
    $alien --to-tgz *.rpm
    Patches are included in the archive.

    You'll also need some more changes before compiling, here are the patches:

  5. #5
    Just burned his ISO
    Join Date
    Oct 2010
    Posts
    6

    Default Re : gma500 poulsbo psb driver and backtrack 4 RC1

    Here are the patches you'll also need

    Patch 1:
    Code:
    --- ./psb-kernel-source-4.41.1/drm_agpsupport.c 2010-12-19 21:07:05.000000000 +0100
    +++ ./psb-kernel-source-4.41.1/drm_agpsupport.c.orig    2010-12-19 21:05:18.000000000 +0100
    @@ -524,7 +524,7 @@
            DRM_DEBUG("Current page count is %ld\n", (long) mem->page_count);
            mem->page_count = 0;
            for (cur_page = pages; cur_page < last_page; ++cur_page)
    -               mem->pages[mem->page_count++] = phys_to_gart(*cur_page);
    +               mem->pages[mem->page_count++] = phys_to_gart(page_to_phys(*cur_page));
            agp_be->mem = mem;
            return 0;
     }
    patch 2
    Code:
    --- ./psb-kernel-source-4.41.1/drm_edid.c       2010-12-19 21:09:39.000000000 +0100
    +++ ./psb-kernel-source-4.41.1/drm_edid.c.orig  2010-12-19 21:08:06.000000000 +0100
    @@ -39,7 +39,7 @@
            if (obj && obj->type == ACPI_TYPE_BUFFER)
                    memcpy(edid, obj->buffer.pointer, obj->buffer.length);
            else {
    -               printk(KERN_ERR "ACPI:" "Invalid _DDC data\n");
    +               printk(KERN_ERR PREFIX "Invalid _DDC data\n");
                    status = -EFAULT;
                    kfree(obj);
            }

Similar Threads

  1. poulsbo gma500 psb-modules video iegd
    By screwt in forum HardWare Compatibility List
    Replies: 1
    Last Post: 01-02-2011, 12:57 AM
  2. Eee 1101HA graphics problem - Intel GMA500
    By Dishwasher in forum Beginners Forum
    Replies: 2
    Last Post: 03-08-2010, 12:50 AM
  3. intel gma500
    By darko in forum Angolo dei Newbie
    Replies: 0
    Last Post: 09-29-2009, 10:28 AM
  4. how to install driver with Backtrack 3? plz help!!!
    By Darika in forum OLD Newbie Area
    Replies: 4
    Last Post: 01-21-2009, 09:23 PM
  5. Help me about Driver for Backtrack 3
    By AlvinDuck in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-19-2008, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •