Make sure you ran the last command in step 2 while in /tmp/working/ to ensure you have downloaded mesa.
Hope this helps!
-Philip
hello all
Thanks for the tuto but:....
After have adding
sudo apt-get install x11proto-render-dev
sudo apt-get install x11proto-video-dev
sudo apt-get install x11proto-randr-dev
and modified tmp/working/mesa/configs/linux-dri (to be 'DRI_DIRS = mach64')
and modified /tmp/working/drm/linux-core/drm_compat.c (comment out the function "vm_insert_pfn" )=> /*static int vm_insert_pfn
and do before step 4
cd /tmp/working/drm
./autogen.sh
./configure --prefix=/tmp/build-dir
make install
cd /tmp/build-dir/lib/
sudo cp -P libdrm* /usr/lib/ (must be su to copy)
seems that all is ok but at step 10
pop@pop-laptop:/tmp/working/drm/linux-core$ sudo cp -P /tmp/build-dir/lib/mesalibs/* /usr/lib/dri/
cp: ne peut évaluer `/tmp/build-dir/lib/mesalibs/*': Aucun fichier ou répertoire de ce type
(There is no directory /tmp/build-dir/lib/mesalibs/)
pop@pop-laptop:/tmp/working/drm/linux-core$ sudo cp /tmp/build-dir/drm/* /lib/modules/$KERNEL/kernel/drivers/char/drm/
cp: la cible `/lib/modules//kernel/drivers/char/drm/' n'est pas un répertoire: Aucun fichier ou répertoire de ce type
(and no directory /lib/modules//kernel/drivers/char/drm/)
pop@pop-laptop:/tmp/working/drm/linux-core$ sudo cp /tmp/build-dir/drm/* /lib/modules/$KERNEL/kernel/drivers/char/drm/
And then after reboot
pop@pop-laptop:~$ glxinfo | grep "direct rendering"Mach64 DRI driver expected DRM version 1.0.x but got version 2.0.0
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
direct rendering: No
Don't know where i miss something?
Any help??
Oops, you spotted another typo in my list of steps... The directory is /tmp/build-dir/mesalibs, not /tmp/build-dir/lib/mesalibs.
My apologies!
-Philip
hello
so... no luck i have to re-install fresh version from CD feisty (7.04) and then... it seems to work
pop@pop:~$ glxinfo | grep "direct"
direct rendering: Yes
But it seems to be very slow for direct rending...
So i thing to go back to edgy util another way to enable direct rending
Thank you for all
POP
How do comment out the vm_insert line? I tried /* lllllllllll */ but that didn't work.
unlock:
spin_unlock(&mm->page_table_lock);
return ret;
}
static int vm_insert_pfn(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn)
{
int ret;
if (!drm_pte_is_clear(vma, addr))
return -EBUSY;
Thank you.
Hello
For i've done this:
/*static int vm_insert_pfn(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn)
{
int ret;
if (!drm_pte_is_clear(vma, addr))
return -EBUSY;
ret = io_remap_pfn_range(vma, addr, pfn, PAGE_SIZE, vma->vm_page_prot);
return ret;
}*/
And it works
Bye
Thank you. Everything went fine after tht 8 step however I still don't have rendering enabled.
Bookmarks