![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Multimedia & Video Have multimedia question? ATI, Nvidia, Sound cards. Just ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Spilled the Beans
![]() Join Date: Dec 2006
Beans: 14
|
Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
I've successfully compiled the OpenChrome driver under 7.04 for my Gateway MX3210 laptop with a VIA VN800 video card using a combination of the debian guide located here (gives a good list of things to install before you can compile):
http://wiki.openchrome.org/tikiwiki/...code+on+Debian and the Ubutunu OpenChrome Docs located here: https://help.ubuntu.com/community/OpenChrome While this allowed me to increase the resolution, and appears to be working for 2d, when I run "glxinfo | grep render" I get the following error: X Error of failed request: GLXBadContext Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 19 Current serial number in output stream: 19 So, I attempted to install the custom libdrm and drm kernal modules. Using the process in the Ubuntu docs libdrm compiled and installed without problem. However, no luck with DRM. When I tried to make using "sudo make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via" I get the following error make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' CC [M] /home/shad/stuff/drm/linux-core/drm_compat.o /home/shad/stuff/drm/linux-core/drm_compat.c:190: error: static declaration of ‘vm_insert_pfn’ follows non-static declaration include/linux/mm.h:1126: error: previous declaration of ‘vm_insert_pfn’ was here make[2]: *** [/home/shad/stuff/drm/linux-core/drm_compat.o] Error 1 make[1]: *** [_module_/home/shad/stuff/drm/linux-core] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic' make: *** [modules] Error 2 While I can live with 2d only, I would prefer 3d. Also if I have to live with 2d, how do I uninstall the libdrm, as it appears to be slowing down my boot & shutdown times. FYI - was unable to use automake-1.9 as I could only apt-get 1.10. Would this be part of the problem? If so, how do I get 1.9? Thanks for any help. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() |
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
Same problem here, I'm assuming it's a change in the kernel based on the include. If I figure anything out I'll report back.
|
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2007
Beans: 2
|
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
This is what I did. It appears to have worked, I get a positive response when I run glxinfo.
Find drm_compat.c in tmp/openchrome/drm/linux-core Code:
gedit drm_compat.c Code:
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;
}
Code:
/*
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;
}
*/
Code:
make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via sudo cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/ |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() |
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
That worked for me, doesn't seem to be causing any problems.
|
|
|
|
|
|
#5 | |
|
First Cup of Ubuntu
![]() Join Date: Apr 2007
Beans: 1
|
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
Quote:
|
|
|
|
|
|
|
#6 | |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 1
|
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
Hello all I too have installed Ubuntu Feisty on my Gateway MX3230. When I ran
Code:
sudo apt-get build-dep xserver-xorg-video-via Code:
sudo apt-get install subversion autoconf automake1.9 Change into the newly created directory Code:
cd openchrome* Run autogen.sh with the prefix option so that the driver is being installed in the correct directory Code:
./autogen.sh --prefix=/usr Compile openChrome Code:
make Code:
make: *** No targets specified and no makefile found. Stop. Install openChrome Code:
sudo make install Am I doing something wrong? I also want to get 3d to work so that I can run Beryl on my laptop. I also cannot Quote:
|
|
|
|
|
|
|
#7 | |
|
First Cup of Ubuntu
![]() |
Hi
I got these message on these commands Quote:
When i run wine applications the X crash too.. |
|
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2006
Beans: 2
|
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
hi,all, when compiling drm, I get the follow error, any suggetions? thanks
Code:
iclinux@iclinux:~/Desktop/drm/linux-core$ make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' CC [M] /home/iclinux/Desktop/drm/linux-core/drm_stub.o /home/iclinux/Desktop/drm/linux-core/drm_stub.c:51: error: size of array ‘type name’ is negative make[2]: *** [/home/iclinux/Desktop/drm/linux-core/drm_stub.o] Error 1 make[1]: *** [_module_/home/iclinux/Desktop/drm/linux-core] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic' make: *** [modules] Error 2 iclinux@iclinux:~/Desktop/drm/linux-core$ |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 1
|
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
Hello everyone. I've got the same problem as MadOrL - is there a solution to this problem?
glxinfo | grep render direct rendering: Yes 0000: f0000001 00000300 f0000006 00000001 0010: f000000b 00000000 f000000c 00180200 0020: f000000d 00180200 f000000e 80200020 0030: f0000002 00000000 f0000003 00000000 0040: f0000004 00000000 f0000000 f0002001 0050: f000000b 00000000 f210f110 00010000 0060: cccccccc cccccccc cccccccc cccccccc 0070: cccccccc cccccccc cccccccc cccccccc ****************************************** fire_buffer: DRM_VIA_PCICMD returned -22 OpenGL renderer string: Mesa DRI UniChrome 20060710 x86/MMX+/3DNow!+/SSE2 and then when I type sudo echo "drm" >>/etc/modules bash: /etc/modules: Permission denied |
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() |
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn
rzimek
I give up to try when i read this msg, I found in google http://wiki.openchrome.org/pipermail...ry/002706.html "You haven't done anything wrong at all. We have not implemented support for this chipset in Mesa yet. As soon as we get spec sheets from VIA we will tackle this." I hope they tell us when ok |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|