blob: cf686cd7ecc42c07d9c27427d97ec9b8111e0ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
= Introduction
This is graphics driver for the Spreadtrum SC6820 & SC6821 processors.
= Building
== Dependencies
You will need the following X development dependencies installed on your
development system before building this package:
xorg-server > 1.4, xproto, fontsproto, renderproto
== Configuration
Type ./autogen.sh at the command line to automatically generate the
confguration system.
If you need to change some parameters to the configure script (such as
prefix paths), you can re-run configure again after the autogen.sh
script has completed. Make sure that you specify the correct host and
build targets for your cross compiler. Here is an example:
./configure --build=x86_64-linux --host=arm-linux-gnueabi --target=arm-linux-gnueabi --prefix=/usr/local/gcc/arm/arm-linux-gnueabi/
This will configure the system to use the 'arm-linux-gnueabi-gcc' compiler.
== Building
After the driver has been configured, it can be built by typing 'make' at
the command line.
= Using the driver
After building, the driver is located at
src/.libs/sprd_drv.so
This can be copied diretly to your target. All X video drivers are located
in 'usr/lib/xorg/modules/drivers' on target. Copy the .so there.
To use the driver, you need to configure it in /etc/X11/xorg.conf.
Add the following section to your xorg.conf file:
Section "Device"
Identifier "SPRD"
Driver "sprd"
Option "fb" "/dev/fb0"
EndSection
To change which framebuffer device you want to use, modify the "fb"
option to point at the device file you want to run on.
Next, you need to add the "SPRD" device to the screen:
Section "Screen"
...
Device "SPRD"
EndSection
You do not need to configure a monitor or a mode size -the mode size is
determined automatically and cannot be changed.
Finally, restart X. In the log you should see the following:
(II) sprd: Driver for Spreadtrum : SC6821
That indicates that the sprd driver has been loaded.
|