http://archive.ubuntu.com/ubuntu/pool/main/l/linux-ubuntu-modules-2.6.24/linux-ubuntu-modules-2.6.24_2.6.24-23.36.tar.gz
tar zxvf linux-ubuntu-modules*.tar.gz
wget http://people.mandriva.com/~blino/patches/psb-kmd-2.6.27.patch
sudo aptitude install patch
patch -d lum/ubuntu/media/drm-poulsbo -p1 < psb-kmd-2.6.27.patch
cd lum/ubuntu/media/drm-poulsbo
sed -i ‘s/u*ret = NOPFN_REFAULT.* /unsigned long ret = VM_FAULT_NOPAGE;/;s/NOPFN_SIGBUS/VM_FAULT_SIGBUS/g;s/NOPFN_REFAULT/VM_FAULT_NOPAGE/g;727D;728D;729D’ drm_vm.c
sed -i ’36a#include ‘ psb_drv.c
sed -i ‘s/change_page_attr/set_pages_uc/g;s/, PAGE_KERNEL_NOCACHE//g’ psb_drv.c
make -C /lib/modules/2.6.27-9-generic/build M=pwd CFLAGS=-UDRM_IDR_COMPAT_FN
sudo cp drm.ko psb.ko /lib/modules/2.6.27-9-generic/kernel/drivers/gpu/drm/
sudo depmod -a
xorg driver:
sudo sh -c ‘echo deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted >> /etc/apt/sources.list’
sudo sh -c ‘echo deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted >> /etc/apt/sources.list’
sudo sh -c ‘echo deb http://ppa.launchpad.net/ubuntu-mobile/ubuntu/ hardy main >> /etc/apt/sources.list’
sudo apt-get update
sudo aptitude install xserver-xorg-video-psb (say ‘n’ to first solution; say ‘Y’ to second)
sudo aptitude install xserver-xorg-video-psb (this time say ‘Y’ to first solution)
sudo dpkg –force-all -r xserver-xorg-video-ati
sudo aptitude install xserver-xorg-video-psb (one more time)
wget http://ppa.launchpad.net/ubuntu-mobile/ubuntu/pool/main/libd/libdrm/libdrm2_2.3.0.16-0ubuntu2~804um3_i386.deb
sudo dpkg -i libdrm2*.deb
xorg.conf:
sudo sed -i ‘s/vesa/psb/’ /etc/X11/xorg.conf
reboot