Trying to build a driver for Imagine-128

Tom May xtom at tommay.net
Mon May 15 22:27:39 PDT 2006


Hello all.  I'm stuck trying to build the driver for an Imagine-128.
Any help I could get getting unstuck would be great.  Or any help
getting the I-128 up.  Maybe I'm just an idiot.

My story: I tried firing up the X server for an Imagine-128 card using
the i128 driver on Ubuntu 5.10.  No luck.  I have not used this card
with Linux before so I can't say "it used to work".  Everything looks
ok in Xorg.0.log except at the end it says:

  Fatal server error:
  AddScreen/ScreenInit failed for driver 0

Not the most useful error message!  I'm just trying to run 1024x768x16
which is well within the card's capacity.  FWIW it's got a 3025 DAC
and 4MB VRAM (wow).

So I thought I'd build the server and driver myself and see what was
going on, since I used to do X servers as part of my job about 15
years ago, back before X386/xfree86/xorg, when all we had was
Godzilla's Guide to Porting the X Server.

Also five or six years ago I built a xfree86 driver for my laptop from
cvs while helping out the fine folks working on the Trident support
and it was really easy.

But building the latest driver/server code from cvs is not easy.

I got the latest code from cvs, installed all the latest auto tools
and everything else I seemed to need, ran:

CFLAGS="-O0 -g3 -pipe" util/modular/build.sh -n -d ~/xorg

and after a few rounds of installing more packages, and starting over
from a clean slate several times, I ended up stuck at the following
errors:

sed '/^#/ s|y\.tab\.c|gram.c|' y.tab.c >gram.ct && mv gram.ct gram.c
rm -f y.tab.c
:   lex.l
sed '/^#/ s|\.c|lex.c|' .c >lex.c
sed: can't read .c: No such file or directory
make[2]: *** [lex.c] Error 2
make[2]: Leaving directory `/x/src/app/twm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/x/src/app/twm'
make: *** [all] Error 2
***** make failed on app/twm

Ok, I can live without twm, but I get a few more errors here and
there, and here are the ones I'm actually concerned about, first
building the main server(?):

gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/home/tom/xorg/include -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O0 -g3 -pipe -MT lnx_agp.lo -MD -MP -MF .deps/lnx_agp.Tpo -c lnx_agp.c  -fPIC -DPIC -o .libs/lnx_agp.o
In file included from lnx_agp.c:24:
/usr/include/linux/agpgart.h:55: error: syntax error before '__u16'
/usr/include/linux/agpgart.h:60: error: field 'version' has incomplete type
/usr/include/linux/agpgart.h:61: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:68: error: syntax error before '}' token
/usr/include/linux/agpgart.h:71: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:92: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:106: error: syntax error before '__u32'
...
make[5]: *** [lnx_agp.lo] Error 1
make[5]: Leaving directory `/x/src/xserver/xorg/hw/xfree86/os-support/linux'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/x/src/xserver/xorg/hw/xfree86/os-support'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/x/src/xserver/xorg/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/x/src/xserver/xorg/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/x/src/xserver/xorg/hw'
make: *** [all-recursive] Error 1
***** make failed on xserver/xorg


And the i128 driver:

./configure: line 19951: syntax error near unexpected token `RANDR,'
./configure: line 19951: `XORG_DRIVER_CHECK_EXT(RANDR, randrproto)'
***** autogen failed on driver/xf86-video-i128
make: *** No targets specified and no makefile found.  Stop.
***** make failed on driver/xf86-video-i128
make: *** No rule to make target `distcheck'.  Stop.
***** distcheck failed on driver/xf86-video-i128
make: *** No rule to make target `install'.  Stop.
***** install failed on driver/xf86-video-i128

My xorg.conf:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorg.conf
Type: application/octet-stream
Size: 2602 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20060515/b96c125c/attachment.obj>
-------------- next part --------------

My Xorg.0.log:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log
Type: application/octet-stream
Size: 31231 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20060515/b96c125c/attachment-0001.obj>
-------------- next part --------------

Thanks!

Tom.


More information about the xorg mailing list