ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Konstantin Lepikhov <lakostis@yahoo.com>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: Radeon drivers - fglrx
Date: Tue, 15 Jul 2003 20:48:39 +0400
Message-ID: <20030715164839.GB2085@lks.home> (raw)
In-Reply-To: <20030715174455.4fcf9e02.alex@ltsp.ru>

[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]

Hi Алексей!

Tuesday 15, at 05:44:55 PM you wrote:

> On Fri, 27 Jun 2003 13:36:00 +0400
> Vitaly Ostanin <vyt@vzljot.ru> wrote:
> 
> > > пока эти драйвера можно взять с www.schneider-digital.de, в
> > > скором времени я попробую сделать сборку для сизифных ядер.
> 
> Только еще подскажите, пожалуйста, для особо тупых, какие ссылки 
> ему надо создать, он чтобы хидеры как надо увидел для сборки модулей?
> Что-то я запутался. Ядро 2.4.20-alt7.
Там все довольно тривиально:
- нужны kernel-headers
- нужны kernel-drm-source
Затем делаем след.:
- прикладываем патч к /lib/modules/fglrx/build_mod/make.sh
- cd /lib/modules/fglrx/build_mod && ./make.sh
- копируем полученный fglrx.o в /lib/modules/`uname
  -r`/kernel/drivers/char/drm
- делаем depmod -a
- потом копируем все, что в X11R6/lib/modules в /usr/X11R6/lib/modules
- копируем libGL.so.1.2 из пакета в /usr/X11R6/lib/FGL.libGL.so.1.2
- ln -s /usr/X11R6/lib/FGL.libGL.so.1.2 /usr/X11R6/lib/libGL.so.1.2
- копируем libfglrx_gamma* в /usr/X11R6/lib
- ldconfig
- затем изменяем XF86Config-4 согласно приложенному
- startx; glxinfo | egrep "OpenGL\ vendor\ string", должно быть ATI
  Technologies Inc.

PS Еще проверьте, чтобы версия gcc соответствовала версии gcc, которой
собирали XFree86 для сизифа (кажется, это 2.96)

-- 
WBR, Konstantin	      chat with ==>ICQ: 109916175
     Lepikhov,	      speak  to ==>JID: lakostis@jabber.org
aka L.A. Kostis       write  to ==>mailto:lakostis@pisem.net.nospam

...The information is like the bank... 			  (c) EC8OR

[-- Attachment #2: make.sh.diff --]
[-- Type: text/plain, Size: 2947 bytes --]

--- make.sh.orig	2003-05-09 15:35:16 +0400
+++ make.sh	2003-07-15 20:33:32 +0400
@@ -114,7 +114,8 @@
 # assing default location of linux kernel headers
 # *** adapt to your individual setup if needed ***
 #linuxincludes=/usr/include    # no config info present!
-linuxincludes=/usr/src/linux/include
+#linuxincludes=/usr/src/linux/include
+linuxincludes=/usr/lib/kernel/include
 #linuxincludes=/usr/src/linux-2.2.14.new.iii/include
 #linuxincludes=/usr/src/linux-2.4.0-test7/include
 
@@ -128,8 +129,9 @@
 
 # assign default location of drm header files
 # *** adapt to your individual setup if needed ***
-drmincludes=${linuxincludes}/../drivers/char/drm
+#drmincludes=${linuxincludes}/../drivers/char/drm
 #drmincludes=/usr/local/src/dripkg/drm
+drmincludes=/usr/src/drm-source-4.3.0
 
 # since kernel 2.4.8 the X4.1.0 drm kernel module headers are part
 # of the kernel build environment - check dir and expected files.
@@ -173,7 +175,8 @@
 
 # verify match with respective line in linux/version.h
 # sample: #define UTS_RELEASE "2.4.0-test7"
-src_file=$linuxincludes/linux/version.h
+#src_file=$linuxincludes/linux/version.h
+src_file=/usr/lib//kernel/${uname_r}/version.h
 if [ ! -e $src_file ];
 then
   echo "kernel includes at $linuxincludes not found or incomplete" | tee -a $logfile
@@ -189,9 +192,9 @@
   if [ $UTS_REL_COUNT -gt 0 ];
   then
     kernel_release=`cat $src_file | grep UTS_RELEASE | cut -d'"' -f2`
-  else
+#  else
     # UTS-define is in external version-*.h files, i.e. linux-2.2.14-5.0-RedHat does this flaw
-    kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+#    kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
   fi
 fi
 
@@ -380,7 +383,7 @@
 
 # 4.
 # linux/autoconf.h may contain this: #define CONFIG_SMP 1
-src_file=$linuxincludes/linux/autoconf.h
+src_file=/usr/lib/kernel/${uname_r}/autoconf.h
 if [ ! -e $src_file ];
 then
   echo "Warning:"                                                  >> $logfile
@@ -418,7 +421,7 @@
 
 # 1.
 # config/modversions.h may contain this: #define CONFIG_MODVERSIONS 1 | #undef  CONFIG_MODVERSIONS
-src_file=$linuxincludes/config/modversions.h
+src_file=/usr/lib/kernel/${uname_r}/modversions.h
 if [ ! -e $src_file ];
 then
   echo "Warning:"                                                  >> $logfile
@@ -454,7 +457,7 @@
 
 # 2.
 # linux/autoconf.h may contain this: #define CONFIG_MODVERSIONS 1
-src_file=$linuxincludes/linux/autoconf.h
+src_file=/usr/lib/kernel/${uname_r}/autoconf.h
 if [ ! -e $src_file ];
 then
   echo "Warning:"                                                  >> $logfile
@@ -477,7 +480,7 @@
 # act on final result
 if [ ! $MODVERSIONS = 0 ]
 then
-  def_modversions="-DMODVERSIONS -include $linuxincludes/linux/modversions.h"
+  def_modversions="-DMODVERSIONS -include /usr/lib/kernel/${uname_r}/modversions.h"
 fi
 
 

[-- Attachment #3: XF86Config-4 --]
[-- Type: text/plain, Size: 6112 bytes --]

Section "Files"

    RgbPath	"/usr/X11R6/lib/X11/rgb"
    FontPath   "unix/:-1"

EndSection

Section "ServerFlags"
    #NoTrapSignals
    #DontZap
    #DontZoom
    AllowMouseOpenFail

EndSection

Section "InputDevice"

    Identifier "Keyboard1"
    Driver      "Keyboard"
    Option "AutoRepeat"  "250 30"

    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us,ru"
    Option "XkbOptions"  ",grp:caps_toggle,grp_led:scroll"

EndSection

# **********************************************************************
# Pointer section
# **********************************************************************

Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/usbmouse"
    Option "ZAxisMapping" "4 5"

EndSection

Section "Module"

# This loads the DBE extension module.

    Load	"dbe"
#    Load	"extmod"

    SubSection	"extmod"
	Option	"omit xfree86-dga"
    EndSubSection

    Load	"type1"
    Load	"freetype"

    Load	"glx"
    Load	"dri"

    Load	"GLcore"
#    Load	"v4l"

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.


# This loads the Type1 and FreeType font modules

EndSection

Section "dri"
    Mode 0666
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Unknown"
    ModelName  "Unknown"
    HorizSync        30-92
    VertRefresh      50-160
    DisplaySize      320   240 

    Gamma 1.4

# This is a set of extended mode timings typically used for laptop,
# TV fullscreen mode or DVD fullscreen output.
# These are available along with standard mode timings.

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync

# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616

Modeline "1152x864@90Hz" 120.528 1152 1168 1280 1488 864 865 868 900
ModeLine "1152x900@85Hz" 110.000  1152 1180 1468 1484   900  902  905  941
ModeLine "1280x1024@76Hz" 135.000  1280 1328 1472 1648  1024 1031 1034 1076
Modeline "1792x1120@75Hz" 204.983 1792 1808 1952 2344 1120 1121 1124 1166

EndSection



# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
    Identifier "Generic VGA"
    Driver     "vga"
EndSection

Section "Device"
    Identifier "Generic VESA"
    Driver     "vesa"
EndSection

Section "Device"
    Identifier  "ATI Radeon"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "radeon"
    BusID	"01:00:0"
    Option	"Enablepageflip"   "true"
    Option	"AGPFastWrite" "1"
    Option	"AGPMode" "1"
    Option      "DPMS"  "on"
EndSection

Section "Device"
    Identifier  "ATI Radeon GATOS"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "radeon_gatos"
    BusID	"01:00:0"
    Option	"Enablepageflip"   "false"
    Option	"AGPFastWrite" "1"
    Option	"AGPMode" "1"
    Option      "DPMS"  "on"
EndSection

# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === FireGL DDX driver module specific settings ===
# === Screen Management ===
    Option "DesktopSetup"               "0x00000000" 
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified" 
    Option "VRefresh2"                  "unspecified" 
    Option "ScreenOverlap"              "0" 
    Option "GammaCorrectionI"           "0x06419064"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    Option "DepthMoves" 		"true"
    BusID "PCI:1:0:0"    # vendor=1002, device=514c
    Screen 0
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************


Section "Screen"
    Identifier "screen1"
#    Device	"ATI Radeon"
#    Device 	"ATI Radeon GATOS"
    Device      "ATI Graphics Adapter"
#    Device	"Generic VESA"
    Monitor     "monitor1"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x400"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       15
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1152x900@85Hz" "1024x768" "800x600" "640x480"
#	Modes 	    "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


Section "ServerLayout"
    Identifier "layout1"
    Screen     "screen1"

    InputDevice "Mouse1" "CorePointer"

    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

      reply	other threads:[~2003-07-15 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-27  9:36   ` Vitaly Ostanin
2003-07-15  8:44     ` Алексей Мамонов
2003-07-15 16:48       ` Konstantin Lepikhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030715164839.GB2085@lks.home \
    --to=lakostis@yahoo.com \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git