Patch the modesetting video driver for 32 bit machine and software

mouse pointer

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15589 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2015-03-01 11:23:05 +00:00
parent c60a17aac0
commit 6dd40f929d
3 changed files with 29 additions and 14 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "28"> <!-- Always 2 digits -->
<!ENTITY month "02"> <!-- Always 2 digits -->
<!ENTITY day "01"> <!-- Always 2 digits -->
<!ENTITY month "03"> <!-- Always 2 digits -->
<!ENTITY year "2015">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "February 28th, &year;">
<!ENTITY releasedate "March 1st, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development] -->

View File

@ -44,6 +44,17 @@
-->
<listitem>
<para>March 1st, 2015</para>
<itemizedlist>
<listitem>
<para>[pierre] - Apply a patch to the modesetting driver
code in Xorg-server, to allow running on 32 bit machine, and
on cards which do not support hardware cursor.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>February 28th, 2015</para>
<itemizedlist>

View File

@ -78,6 +78,12 @@
<ulink url="&patch-root;/xorg-server-&xorg-server-version;-add_prime_support-1.patch"/>
</para>
</listitem>
<listitem>
<para>
Optional patch:
<ulink url="&patch-root;/xorg-server-&xorg-server-version;-fix_modesetting-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Xorg Server Dependencies</bridgehead>
@ -120,23 +126,21 @@
<title>Installation of Xorg Server</title>
<para>
If you have downloaded the optional patch, apply it by running
If you have downloaded the first optional patch, apply it by running
the following command:
</para>
<screen><userinput>patch -Np1 -i ../xorg-server-&xorg-server-version;-add_prime_support-1.patch</userinput></screen>
<para>
The <application>modesetting</application> driver is now included in
the tarball (since version 1.17). It needs to be fixed for 32-bit
machines (first command below), and for cards which do not support
the mouse pointer in hardware (second command below):
The <application>modesetting</application> video driver is now included
in the tarball (since version 1.17). It needs to be fixed for 32-bit
machines and for cards which do not support an hardware mouse pointer.
If you plan to use the modesetting video driver, run the
following command:
</para>
<screen><userinput>sed -e '/\*\//a #define _FILE_OFFSET_BITS 64' \
-i hw/xfree86/drivers/modesetting/dumb_bo.c
sed -e 's/ == -EINVAL//' \
-i hw/xfree86/drivers/modesetting/drmmode_display.c</userinput></screen>
<screen><userinput>patch -Np1 -i ../xorg-server-&xorg-server-version;-fix_modesetting-1.patch</userinput></screen>
<para>
Install the server by running the following commands:
@ -180,8 +184,8 @@ EOF</userinput></screen>
</para>
<para>
<parameter>--enable-install-setuid</parameter>: The Xorg binary must run as
the root user. This switch ensures that the binary is installed
<parameter>--enable-install-setuid</parameter>: The Xorg binary must run
as the root user. This switch ensures that the binary is installed
setuid when <command>make</command> is run by an unprivileged user.
</para>