Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

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.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old April 22nd, 2007   #1
MayOne.Net
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.
MayOne.Net is offline   Reply With Quote
Old April 25th, 2007   #2
hawk684
First Cup of Ubuntu
 
Join Date: Jun 2006
Location: Port Saint Lucie, FL
Beans: 7
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to hawk684 Send a message via AIM to hawk684
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.
hawk684 is offline   Reply With Quote
Old April 27th, 2007   #3
sdavies9574
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
Find this (line 188 on mine):

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;
}
Change it to this (you are just commenting it out):

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;
}
*/
then continue with the instructions as per normal:
Code:
make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via

sudo cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/
etc...
sdavies9574 is offline   Reply With Quote
Old April 29th, 2007   #4
hawk684
First Cup of Ubuntu
 
Join Date: Jun 2006
Location: Port Saint Lucie, FL
Beans: 7
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to hawk684 Send a message via AIM to hawk684
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.
hawk684 is offline   Reply With Quote
Old April 29th, 2007   #5
jimboriach
First Cup of Ubuntu
 
Join Date: Apr 2007
Beans: 1
Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn

Quote:
Originally Posted by MayOne.Net View Post
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.
I did much the same , I deleted the definition"static" which make complained about then everything went ok
jimboriach is offline   Reply With Quote
Old May 3rd, 2007   #6
kenshin159
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
then
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
When I run make I get
Code:
make: *** No targets specified and no makefile found.  Stop.
#

Install openChrome

Code:
sudo make install
and I get the same message for this line of command.


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:
Find drm_compat.c in tmp/openchrome/drm/linux-core
there is no openchrome folder in /tmp. Thanks in advance!
kenshin159 is offline   Reply With Quote
Old May 5th, 2007   #7
MadOrL
First Cup of Ubuntu
 
Join Date: Apr 2007
Location: Sao Paulo/Brasil
Beans: 3
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to MadOrL Send a message via MSN to MadOrL
Cool Re: Via OpenChrome Install - drm fails to compile - Ubuntu 7.04 Fiesty Fawn

Hi

I got these message on these commands

Quote:
madorl@madorl-desktop:~$ glxgears
0000: f0000001 00000300 f0000006 00000000
0010: f000000b 00000000 f000000c 00181f60
0020: f000000d 00181f60 f000000e 809c009c
0030: f0000002 00000005 f0000003 00000005
0040: f0000004 012b012b f0000000 f0002001
0050: f000000b 00000000 f0000001 00000300
0060: f0000006 ffffff00 f000000b 10000000
0070: f000000c 0018d630 f000000d 0018d630
0080: f000000e 809c009c f0000002 00000005
0090: f0000003 00000005 f0000004 012b012b
00a0: f0000000 f0002001 f000000b 00000000
00b0: f210f110 00010000 cccccccc cccccccc
******************************************
fire_buffer: DRM_VIA_PCICMD returned -22
Cancelado (core dumped)
madorl@madorl-desktop:~$ glxinfo | grep render
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
direct rendering: Yes
OpenGL renderer string: Mesa DRI UniChrome 20060710
How can i fix this?
When i run wine applications the X crash too..
MadOrL is offline   Reply With Quote
Old May 8th, 2007   #8
iclinux
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$
iclinux is offline   Reply With Quote
Old May 9th, 2007   #9
rzimek
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

rzimek is offline   Reply With Quote
Old May 10th, 2007   #10
MadOrL
First Cup of Ubuntu
 
Join Date: Apr 2007
Location: Sao Paulo/Brasil
Beans: 3
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to MadOrL Send a message via MSN to MadOrL
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
MadOrL is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:45 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry