You are not logged in.

#1 2005-03-28 02:16:57

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Driver Install for Intel 915GMGraphics

Hi.

I just installed Arch using FTP install.  I have the 2.6.11.3-ARCH kernel.  When I attempt to install the the graphics driver for my Intel 915GM via its install.sh script, I get the following output:

Compiling new agpgart module...
Compiling DRM module...

ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.  Installation will be aborted.  See the dri.log file for information on what went wrong.


My dri.log looks like this:

make -f Makefile.linux DRM_MODULES=gdg.ko modules
make[1]: Entering directory `/root/dripkg/drm'
+ ln -s Makefile.linux Makefile
make -C /lib/modules/2.6.11.3-ARCH/build  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-2.6.11.3-ARCH'
  CC [M]  /root/dripkg/drm/gdg_drv.o
In file included from /root/dripkg/drm/gdg_drv.c:17:
/root/dripkg/drm/drm_agpsupport.h:47: error: parse error before '*' token
/root/dripkg/drm/drm_agpsupport.h:47: warning: type defaults to `int' in declaration of `drm_agp'
/root/dripkg/drm/drm_agpsupport.h:47: warning: data definition has no type or storage class
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_info':
/root/dripkg/drm/drm_agpsupport.h:69: error: request for member `copy_info' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_acquire':
/root/dripkg/drm/drm_agpsupport.h:111: error: request for member `acquire' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:117: error: request for member `acquire' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_release':
/root/dripkg/drm/drm_agpsupport.h:140: error: request for member `release' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:142: error: request for member `release' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_do_release':
/root/dripkg/drm/drm_agpsupport.h:155: error: request for member `release' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:156: error: request for member `release' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_enable':
/root/dripkg/drm/drm_agpsupport.h:178: error: request for member `enable' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:185: error: request for member `enable' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_bind':
/root/dripkg/drm/drm_agpsupport.h:333: error: request for member `bind_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_init':
/root/dripkg/drm/drm_agpsupport.h:407: error: `drm_agp_t' undeclared (first use in this function)
/root/dripkg/drm/drm_agpsupport.h:407: error: (Each undeclared identifier is reported only once
/root/dripkg/drm/drm_agpsupport.h:407: error: for each function it appears in.)
/root/dripkg/drm/drm_agpsupport.h:407: error: parse error before ')' token
/root/dripkg/drm/drm_agpsupport.h:412: error: request for member `copy_info' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_uninit':
/root/dripkg/drm/drm_agpsupport.h:436: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_allocate_memory':
/root/dripkg/drm/drm_agpsupport.h:443: error: request for member `allocate_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:445: error: request for member `allocate_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_free_memory':
/root/dripkg/drm/drm_agpsupport.h:451: error: request for member `free_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:453: error: request for member `free_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_bind_memory':
/root/dripkg/drm/drm_agpsupport.h:460: error: request for member `bind_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:462: error: request for member `bind_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h: In function `gdg_agp_unbind_memory':
/root/dripkg/drm/drm_agpsupport.h:468: error: request for member `unbind_memory' in something not a structure or union
/root/dripkg/drm/drm_agpsupport.h:470: error: request for member `unbind_memory' in something not a structure or union
In file included from /root/dripkg/drm/gdg_drv.c:28:
/root/dripkg/drm/drm_memory.h: In function `drm_follow_page':
/root/dripkg/drm/drm_memory.h:139: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
In file included from /root/dripkg/drm/gdg_drv.c:30:
/root/dripkg/drm/drm_vm.h: In function `gdg_mmap':
/root/dripkg/drm/drm_vm.h:625: warning: implicit declaration of function `remap_page_range'
In file included from /root/dripkg/drm/gdg_drv.c:31:
/root/dripkg/drm/drm_stub.h: In function `gdg_stub_putminor':
/root/dripkg/drm/drm_stub.h:145: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/root/dripkg/drm/drm_stub.h:147: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:574)
/root/dripkg/drm/drm_stub.h: In function `gdg_stub_register':
/root/dripkg/drm/drm_stub.h:188: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:573)
make[3]: *** [/root/dripkg/drm/gdg_drv.o] Error 1
make[2]: *** [_module_/root/dripkg/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.11.3-ARCH'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/dripkg/drm'
make: *** [gdg.ko] Error 2

Can someone help me figure this out?

Thanks

Offline

#2 2005-03-28 05:29:35

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

Well, the reason I was having problems was apparently because I download the drivers from the intel website, and they are somewhat unclear about how to use them.

I have downloaded the latest snapshots from dri.sourceforge.net.  This time I have both the common and hardware specific files.  I untarred them and ran them, and everything seemed to go okay until the very end.  The installer went through its "Installing files" phase with no problem.  When it went to its "Updating configuration" phase, I got the following output:

Running ldconfig...  Removing old kernel module "i915"....done
Inserting new kernel module "i915"...ERROR

The dri.log file looks like this:

make DRM_MODULES=i915.o modules
make[1]: Entering directory `/root/dripkg/drm/linux-core'
make -C /lib/modules/2.6.11.3-ARCH/build  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-2.6.11.3-ARCH'
  Building modules, stage 2.
  MODPOST
make[2]: Leaving directory `/usr/src/linux-2.6.11.3-ARCH'
make[1]: Leaving directory `/root/dripkg/drm/linux-core'
/usr/X11R6/lib
FATAL: Error inserting i915 (/lib/modules/2.6.11.3-ARCH/kernel/drivers/char/drm/i915.ko): Unknown symbol in module, or unknown parameter (see dmesg)

My dmesg | grep i915 looks like this:

agpgart: Detected an Intel 915GM Chipset.
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.2
i915: disagrees about version of symbol drm_open
i915: Unknown symbol drm_open
i915: disagrees about version of symbol drm_fasync
i915: Unknown symbol drm_fasync
i915: disagrees about version of symbol drm_poll
i915: Unknown symbol drm_poll
i915: disagrees about version of symbol drm_core_get_reg_ofs
i915: Unknown symbol drm_core_get_reg_ofs
i915: disagrees about version of symbol drm_pci_alloc
i915: Unknown symbol drm_pci_alloc
i915: disagrees about version of symbol drm_irq_uninstall
i915: Unknown symbol drm_irq_uninstall
i915: Unknown symbol drm_get_dev
i915: disagrees about version of symbol drm_ioctl
i915: Unknown symbol drm_ioctl
i915: disagrees about version of symbol drm_exit
i915: Unknown symbol drm_exit
i915: disagrees about version of symbol drm_core_get_map_ofs
i915: Unknown symbol drm_core_get_map_ofs
i915: disagrees about version of symbol drm_init
i915: Unknown symbol drm_init
i915: Unknown symbol drm_cleanup_pci
i915: disagrees about version of symbol drm_pci_free
i915: Unknown symbol drm_pci_free
i915: disagrees about version of symbol drm_mmap
i915: Unknown symbol drm_mmap
i915: disagrees about version of symbol drm_core_reclaim_buffers
i915: Unknown symbol drm_core_reclaim_buffers
i915: disagrees about version of symbol drm_release
i915: Unknown symbol drm_release

Any ideas?

Offline

#3 2005-03-28 06:01:16

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Driver Install for Intel 915GMGraphics

Make sure that these modules are for the version of the kernel you are using. From the error messages, it seems that there is a version conflit.

Offline

#4 2005-03-28 06:45:25

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Driver Install for Intel 915GMGraphics

dont use the intel ones, they are already included in the klernel.


do:

modprobe i915

that will load the kernel module. put that in your /etc/rc.conf in the modules line so it loads on reboot.

Then you need to configure, X. I have a card that uses this driver too, so you can modify your config to be similar to mine if you wish.

http://aslan.no-ip.com/~iphitus/downloa … /xorg.conf

the sections of importance are the Card0 device section and the dri section at the end. Note that our cards use the i810 X driver.

Offline

#5 2005-03-28 08:11:16

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

Okay.  Now when I startx I get:

(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) No devices detected.

If I do an lsmod the i915 module is listed.

Offline

#6 2005-03-28 08:15:54

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Driver Install for Intel 915GMGraphics

comment out the pci bus address....

Offline

#7 2005-03-28 17:36:16

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

I tried with and without that line.  No luck.

Offline

#8 2005-03-29 18:19:40

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

If it helps, I can replace the "i810" with vesa and x starts up without any problem.  Are you sure that I should be using the "i810" driver?

Offline

#9 2005-03-30 09:24:19

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Driver Install for Intel 915GMGraphics

vesa is the generic driver, you wont have graphics accelleration.

I have an intel 855gm/855gme card which uses the i915 kernel driver, and the i810 X driver soo........ i dont know

Offline

#10 2005-04-02 22:18:57

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

An update:

A friend of mine noticed that the drivers from intel and dri.freedesktop compile the agpgart modules and the dri module.  The arch stock kernel has these compiled in and not compiled as modules.  I compiled a new kernel with all the agpgart stuff and dri compiled as modules and ran the installer and it worked fine as long as the source from the kernel compile isn't altered (like with make mrproper -- oops).  Now my xorg will recognize my adapter as the 915GM chipset and it starts up fine.

There are still a few problems.  I have a widescreen lcd on my laptop and X won't start in 1280x800, even when it does recognize the adapter.  Also, a glxinfo reveals that there isn't direct rendering.  glxgears runs at about 300 frames.

I am occupied with some other stuff at the moment, so I haven't really gotten a chance to dive into it.  I'll put some snippets from my Xorg.0.log in later.

Offline

#11 2005-04-02 22:47:48

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Driver Install for Intel 915GMGraphics

comment out dri
default depth 16

I had a earlier version of this chip, performance not great......

Offline

#12 2005-04-06 21:56:08

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

agpgart itself is just an option to include specific modules.. everything that is indented under agpgart should be compiled as a module and dri itself should be as well.  then you want to use i810 as your driver in your xorg.conf.  that will get you to the point i am at now.  thats as much as i can help  : /

-CB

Offline

#13 2005-05-06 02:39:07

cbarnes913
Member
Registered: 2005-03-26
Posts: 28

Re: Driver Install for Intel 915GMGraphics

Let's start from scratch (no outside drivers).  My kernel has dri and agpgart as modules with any intel drivers compiled as modules as well.  From here I should be able to use the i810 driver, but I can't.

xorg comes back with this error:
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found

lspci comes back with these lines:
00:02.0 VGA compatible controller: Intel Corp.: Unknown device 2592 (rev 03)
00:02.1 Display controller: Intel Corp.: Unknown device 2792 (rev 03)

lshwd:
00:02.0 VGA compatible controller: Intel Corp.|Mobile Graphics Controller (vesa)
00:02.1 Display controller: Intel Corp.|Mobile Graphics Controller (vesa)

I have the i915 module loaded.  What's the damn deal?  The graphics device should be detected as the 915GM, but evidently it isn't.

My ultimate goal here is to get xorg running with the right driver (i810) in the right resolution (1280x800) with acceleration.  HELLLLLP!!!

Offline

#14 2005-07-07 01:55:03

potentials
Member
Registered: 2004-01-04
Posts: 130

Re: Driver Install for Intel 915GMGraphics

I have the same chipset (915GM) and I'm yet to get it working. From what I understood from searching around, it needs both i915 kernel module and i810 xserver driver, each has it's own problems.

cbarnes913: I guess you already got the i915 module compiled and loaded, what you need is a newer i810 driver than that in xorg-6.8.2. The one in 6.8.2 supports 915G along with other chipsets but not 915GM.

Either install xfree86-4.5 (there's no availabe package as far as I know) or grab xorg from cvs.

Offline

#15 2005-07-07 18:04:43

potentials
Member
Registered: 2004-01-04
Posts: 130

Re: Driver Install for Intel 915GMGraphics

OK, I've built xorg from cvs and was able to start X with the new i810 driver but I'm still using the stock arch kernel with it's i915 driver.

Here's the relevant part in Xorg.0.log that shows that i810 works

(II) I810: Driver for Intel Integrated Graphics Chipsets: i810, i810-dc100,
    i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221 (i915),
    915GM, 945G
(II) Primary Device is: PCI 00:02:0
(--) Assigning device section with no busID to primary device
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(--) Chipset 915GM found

There's problems with DRI

drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed

Is that because I'm using the stock kernel, do I need to compile a kernel with no DRI built-in support and then compile the i915 driver from http://dri.freedesktop.org/snapshots/ ?

Offline

#16 2005-07-14 00:12:58

potentials
Member
Registered: 2004-01-04
Posts: 130

Re: Driver Install for Intel 915GMGraphics

Finally I managed to get 3D hardware acceleration, here's what to do

1) Install xorg cvs, follow this HowTo. I didn't understand the part were /usr/X11R6  was linked to the build directory so alternatively I edited xorg.conf and replaced every /usr/X11R6 with /opt/xorg-cvs (my build directory).
Beware, it's more than a 200 MB download

2) Install  kernel26-2.6.12.2-1.pkg.tar.gz from current
3) Download and compile the latest i915 driver from http://dri.freedesktop.org/snapshots/
4) Edit xorg.conf to put i915 as the driver in the device section
5) startx and enjoy!

Offline

#17 2005-07-14 06:21:24

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: Driver Install for Intel 915GMGraphics

Maybe you can write new PKGBUILDs for xorg-cvs and the new i915 driver.
Would be very cool

Offline

#18 2005-07-14 12:27:58

potentials
Member
Registered: 2004-01-04
Posts: 130

Re: Driver Install for Intel 915GMGraphics

Legout: can't do it, don't know how
check the xorg pkgbuild

Offline

Board footer

Powered by FluxBB