i810-HOWTO.pdf

(21 KB) Pobierz
i810 with XFree86 4.x HOWTO
i810 with XFree86 4.x HOWTO
Toby Russell
May 2001
Revision History
Revision 1.1
2001−05−09
Revised by: tr
Revision 1.0
2001−05−01
Revised by: tr
Initial release.
This HOWTO describes getting XFree86 4.x running on Intel's i810 graphics chipset by using special
features of the 2.2.18 and 2.4.x kernels.
i810 with XFree86 4.x HOWTO
Table of Contents
1. Introduction. ....................................................................................................................................................1
2. Down to business. ............................................................................................................................................2
2.1. Getting and installing X4.x. ..............................................................................................................2
2.3. Nimbly tweak XF86Config ..............................................................................................................5
3. Thank you. .......................................................................................................................................................8
i
193218629.001.png
1. Introduction
This document has a very specific purpose; to help people who are failing to get X working on Intel's i810
graphics chipset (hereafter "the i810"). It is written by a beginner (me), and it is imagined that it will be of
use primarily to other beginners. The author would be flattered to hear that he has helped anyone more skilled
than he. Furthermore, I know that the i810 works with XFree86 3.3.6, but I personally have not trod that path.
My experience comes purely from XFree86 4.0 (hereafter "X4.x") and the i810/agpgart support available in
the 2.2.18 and 2.4.x kernels, and consequently this HOWTO tackles that solution, or procedure, alone. The
instructions that follow were written to the 2.4.x compile tune, but the procedure is similar enough to be
translatable to the 2.2.18. Use your head, as Tony Buzan would say, and read the READMEs to be sure of
any required alterations of method.
Even though I know this procedure works I feel obliged to point out that what I have recorded here is mostly
that which I have worked out in my own bumbling way. It may well be that others know a quicker and more
efficient method than that which follows. If so I will be happy to hear from them. As I mentioned previously,
the i810 will work with XFree86 3.3.6, if one also uses some drivers designed by Intel for the task (namely
XFCom_i810−1.2−3 and I810Gtt−0.2−4) but, in the interests of Linux purity, and of course knowing one
does not have to use Intel's software, I recommend the method detailed here. It does not need Intel drivers.
Finally, no introduction would be complete without the following words of caution; this HOWTO should be
regarded as a 'bare bones' set of instructions and should therefore be followed with all relevant README
literature to hand. What follows is not exhaustive by any stretch of the imagination, and needs, at least for
beginners, said README stuff.
1. Introduction
1
2. Down to business
Note: Do everything that follows logged on as root.
There are three distinct stages that need not be followed in the order listed here (please feel free to use your
imagination). Said stages are;
· get and compile kernel 2.2.18 or 2.4.x (including mknod agpgart stuff)
get and install X4.x
· nimbly tweak XF86Config
·
2.1. Getting and installing X4.x
The first stage is of course listed only as a guide for those who have perhaps tried getting XFree86 3.3.6
working with the i810 and failed, or perhaps those who have not even heard that X4.x supports the i810 and
have been struggling vainly with their XF86Config file. I suppose the majority of people who find these
instructions useful will have already loaded X4.x. You lot can skip this bit. Anyway, if you do need to know,
But before you rush ahead and download away you must first be sure which version of X4.x suits your
system. So download Xinstall.sh on its own and run (from within the folder containing
Xinstall.sh ):
sh Xinstall.sh −check
The results will direct you to the correct folder within the above mentioned URL from where the appropriate
files for your system can be downloaded.
For a basic installation and to save time downloading one needs only the following absolute necessities,
without exception (the others are optional and when included in the install process, I feel, increase the
chances of things going wrong for the unwary and inexperienced):
extract[.exe] Xdoc.tgz Xvar.tgz
Xbin.tgz Xfenc.tgz Xxserv.tgz
Xlib.tgz Xfnts.tgz Xmod.tgz
Xman.tgz Xetc.tgz
Now knowing which set of files are suited to your system you can go ahead and download whichever suits.
Then install with the following command (from within the folder containing freshly downloaded files):
sh Xinstall.sh
If you have been good everything will proceed smoothly. You will be asked some questions which the
README file can explain/answer better than I. If something doesn't work as expected I refer you to the far
more detailed, aforementioned README file, which you should definitely peruse. As a newbie I always read
the readme files before downloading, installing, compiling and even getting up from my seat to go to the
toilette. You can never be too sure.
2. Down to business
2
193218629.002.png
i810 with XFree86 4.x HOWTO
That is the end of this stage.
2.2. Get and compile kernel 2.2.18 or 2.4.x (including
mknod agpgart stuff)
You can get either kernel from ftp://ftp.kernel.com . Of course, read everything called README while you
are at it. (In the README literature that comes with the 2.4.x kernel, there is an important note about where
to unpack the source. Make sure you read it.) Put the kernel source file in /usr/src/kernels , and then
run the following compile sequence, which I learned from a linuxnewbie article (to which you should refer if
my directions are not clear enough for you, however it is specific to 2.2.x kernels). It can be found at the
location of the still−packed kernel is not really relevant, it only matters that it is unpacked to an acceptable
location. OK, now for the commands:
tar −xzvf /usr/src/kernels/linux−2.4.x.tar.gz
or if you downloaded the better compressed bz2 version
bzcat /usr/src/kernels/linux−2.4.x.tar.bz2 | tar xv
and watch the screen spew out pages of information about what's happening. When it is finished it will have
created a new linux folder.
OK, so, change to the new directory:
cd linux
and begin the compile process proper...
make config
Or preferably
make menuconfig
There's also make xconfig , but you haven't got X running, or you wouldn't be reading this. So that won't
work. And I'm embarrassed to mention it in such an imperfect fashion but there is also something like make
oldconfig but I can't find any reference to it in my books. In any case I am not addressing it here, though I am
sure the procedure for it is very similar to that which follows for make menuconfig , should you be awkward
and want to use it.
Now, I have gone through three text based kernel compiles ( make config ) and know how long winded they
are. I reommend make menuconfig instead, which requires only that ncurses be loaded (you don't need X)
and you will be taken through the pretty face of kernel recompilation. I loaded ncurses during a custom install
of Red Hat 6.1, but I forget exactly at which stage that option is available. Otherwise ncurses is, I'm sure, on
your distro's CD in rpm format, so if issuing make menuconfig just produces errors, install ncurses and try
again.
2.2. Get and compile kernel 2.2.18 or 2.4.x (including mknod agpgart stuff)
3
193218629.003.png
Zgłoś jeśli naruszono regulamin