Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

trouble installing intel gma 500 driver

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

trouble installing intel gma 500 driver

#1 Post by jaapkroe »

Hi,

I hope this is the right place to ask.
I have an Eeepc 1101HA (GMA 500 video card) and am trying to get the proprietary driver (v1.6) to work following
http://wiki.debian.org/IntelEmbeddedMediaGraphicsDriver
I am starting from a fresh install of debian squeeze (6.0.1a).
On this forum I found a [solved] topic for the same driver
http://forums.debian.net/viewtopic.php?f=7&t=45942

But I am somehow incapable of making it work.
First I have set the variables in the install script (see first link) and installed the necessary packages like make and gcc.
But when I run the install script I get

Code: Select all

 root@host# ./install.sh -v
....
....
....
CC [M]  /root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.o
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\357’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\273’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\277’ in program
make[4]: *** [/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.o] Error 1
make[3]: *** [_module_/root/IEMGD_HEAD_Linux/common/drm] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make: *** [modules] Error 2
The build process of the EMGD DRM module has failed. 
The EMGD DRM build reported errors. 
The EMGD Linux Installer is exiting.
It seems there is some strange character in the file so I deleted the comment-block and the white line after it.
That was a bit of work because the file is in an archive so it is overwritten each time.
So I had to untar the file, change it, tar again and move over the old version.

But.. no luck same error

Code: Select all

  CC [M]  /root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.o
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\357’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\273’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\277’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘#’ in program
/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MODULE_NAME’
make[4]: *** [/root/IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.o] Error 1
make[3]: *** [_module_/root/IEMGD_HEAD_Linux/common/drm] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make: *** [modules] Error 2
The file 'pi.c' now looks this:

Code: Select all

#define MODULE_NAME hal.dpd

#include <config.h>
#include <igd.h>
#include <igd_errno.h>
#include <igd_init.h>
#include <igd_pwr.h>

#include <io.h>
#include <pci.h>
#include <sched.h>
#include <memory.h>
Does anyone know what I am doing wrong or even better, how to fix it??

Best

paivakil
Posts: 434
Joined: 2009-02-15 11:57

Re: trouble installing intel gma 500 driver

#2 Post by paivakil »

Haven't looked at the other thread, but AFAICT, you need to extract an archive before doing anything on it.
It's not the software that's free; it's you.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: trouble installing intel gma 500 driver

#3 Post by bw123 »

Sometimes, errors like "stray \357" are referring to copyright notices or other symbols used for informational purposes, it's high ascii like (c) expressed as a symbol, sometimes invisible to an editor. You can maybe strip them all and still use the code, but not sure how to do this on linux. The place at which the compiler finds the error might not be the place to look, it could be in a certain header and inserted as a macro. Maybe the compiler flags the error as on line 1 because of the way it stores macros?

might be a compiler flag to ignore these characters?

It's the kind of thing that happens when big companies use expensive proprietary build tools to try and make fancy little graphic messages pop up to impress the girls in the front office, or make the lawyers happy.
resigned by AI ChatGPT

jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

Re: trouble installing intel gma 500 driver

#4 Post by jaapkroe »

Ok I was able to catch their fancy chars with 'cat -v'
For anyone who needs it:

Code: Select all

cd IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn
cat -v pi.c | awk '{if(NR>1) print $0}' > tmp       # make strange characters on first visible and remove
mv tmp pi.c
This made compilation sucessful for me.
Now let's see if I can get some nice graphics.

Cheers

jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

Re: trouble installing intel gma 500 driver

#5 Post by jaapkroe »

Still a fail.
The module installs correctly

# find /lib/ -name emgd*
/lib/modules/2.6.32-5-686/kernel/drivers/gpu/drm/emgd
/lib/modules/2.6.32-5-686/kernel/drivers/gpu/drm/emgd/emgd.ko

And to be sure I load it
# modprobe emgd

And it is loaded
# lsmod | head -4
Module Size Used by
emgd 348997 0
drm_kms_helper 18533 1 emgd
drm 111844 2 emgd,drm_kms_helper

But it doesn't start
# startx

Code: Select all

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.29-dsa-ia32 i686 Debian
Current Operating System: Linux cheburashka 2.6.32-5-686 #1 SMP Wed May 18 07:08:50 UTC 2011 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686 root=UUID=56dee04f-359e-41ce-a2f6-e690a9dd9ee0 ro single
Build Date: 19 February 2011  02:37:36PM
xorg-server 2:1.7.7-13 (Cyril Brulebois <kibi@debian.org>) 
Current version of pixman: 0.16.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jun 25 20:11:19 2011
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) Failed to load module "emgd" (module does not exist, 0)
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

The main message is (I think) :
(EE) Failed to load module "emgd" (module does not exist, 0)

Could it be a problem with version?? (X is v.1.7.7)

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: trouble installing intel gma 500 driver

#6 Post by bw123 »

I am not sure, but I think the drm/kms stuff requires a reboot, does modinfo like the module? especially the license line... does it need a firmware?
resigned by AI ChatGPT

jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

Re: trouble installing intel gma 500 driver

#7 Post by jaapkroe »

I'm not sure if the module was loading but I added it to /etc/modules to be sure.

I think I did not read http://wiki.debian.org/IntelEmbeddedMediaGraphicsDriver careful enough
The key is to have other software (in particular the kernel and xserver-xorg) that are sufficiently recent.
Xorg.0.log also gives some more info on the error:

Code: Select all

(II) Loading extension X-Resource
(II) LoadModule: "emgd"
(WW) Warning, couldn't open module emgd
(II) UnloadModule: "emgd"
(EE) Failed to load module "emgd" (module does not exist, 0)
(EE) No drivers available.

Fatal server error:
no screens found
So I wanted to get xserver-xorg version 1.9 from the experimental sources.
But it does not seem to find it

First I added this line to /etc/apt/sources.list
deb http://ftp.ch.debian.org/debian/ experimental main

then:
apt-get update
apt-get install -t experimental xserver-xorg

but it doesn't to find it:

Code: Select all

 root@host:~# apt-get install -t experimental xserver-xorg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xserver-xorg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 229 not upgraded.

Same for
apt-get install xserver-xorg-core/experimental

Code: Select all

root@host:~# apt-get install xserver-xorg-core/experimental
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Release 'experimental' for 'xserver-xorg-core' was not found
What is the right command?

jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

Re: trouble installing intel gma 500 driver

#8 Post by jaapkroe »

Could the link be broken?
When I go to
http://packages.debian.org/experimental ... n/download

All links give something like
Not Found
The requested URL /debian/pool/main/x/xorg-server/xserver-common_1.10.1.901-1_all.deb was not found on this server.
update:
found it from the server
http://ftp.ch.debian.org/debian/pool/ma ... rg-server/

jaapkroe
Posts: 20
Joined: 2009-05-09 17:38

Re: trouble installing intel gma 500 driver

#9 Post by jaapkroe »

.. I am becoming hopeless...
It should be possible, if I update the kernel and the xserver and probably a lot of other stuff to experimental..
But then the idea of debian 'the stable distro' is a bit lost.
So I think I give up since the 'fbdev' driver works anyway, albeit not very smooth.
If someone has a more or less failsafe way to get "emgd" to work I would of course be happy to hear about it.

Thanks for the suggestions.

ask
Posts: 9
Joined: 2011-02-17 09:46

Re: trouble installing intel gma 500 driver

#10 Post by ask »

Did you add the option:

Code: Select all

Option          "PcfVersion"            "1792"
to the driver section for the emgd driver in the Device section of the /etc/X11/xorg.conf file as per the instructions for version 1.5.2?

Post Reply