ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Re: Radeon drivers - fglrx
  @ 2003-06-27  9:36   ` Vitaly Ostanin
  2003-07-15  8:44     ` Алексей Мамонов
  0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Ostanin @ 2003-06-27  9:36 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Thu, 26 Jun 2003 23:50:20 +0400
Konstantin Lepikhov <lakostis@yahoo.com> wrote:

<skipped/>

> уже неделя, полет нормальный :) Замеченные глюки:
> - нет dga, поэтому нужно extmod грузить по-своему.

Каким образом?

> - не работает twilight, пока разбираюсь почему.
> - TODO vt switiching, radeonfb
> Замеченные плюсы:
> - работает s3tc (поверено в ut)
> - работает agp 4x/SBA/FW (со свободным DRI это не работало)

А это как включается? Где можно про это прочитать?

> - darkplaces просто летают =))
> - tuxracer/q3 просто зашкаливает =))
> - vo gl/gl2 вполне пригоден для использования, даже
> antialiasing работает. 
> 
> пока эти драйвера можно взять с www.schneider-digital.de, в
> скором времени я попробую сделать сборку для сизифных ядер.

Спасибо большое, попробую собрать для себя.

<skipped/>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] Re: Radeon drivers - fglrx
  2003-06-27  9:36   ` [devel] Re: Radeon drivers - fglrx Vitaly Ostanin
@ 2003-07-15  8:44     ` Алексей Мамонов
  2003-07-15 16:48       ` Konstantin Lepikhov
  0 siblings, 1 reply; 3+ messages in thread
From: Алексей Мамонов @ 2003-07-15  8:44 UTC (permalink / raw)
  To: ALT Devel discussion list

On Fri, 27 Jun 2003 13:36:00 +0400
Vitaly Ostanin <vyt@vzljot.ru> wrote:

> > пока эти драйвера можно взять с www.schneider-digital.de, в
> > скором времени я попробую сделать сборку для сизифных ядер.

Только еще подскажите, пожалуйста, для особо тупых, какие ссылки 
ему надо создать, он чтобы хидеры как надо увидел для сборки модулей?
Что-то я запутался. Ядро 2.4.20-alt7.

Мамонов.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [devel] Re: Radeon drivers - fglrx
  2003-07-15  8:44     ` Алексей Мамонов
@ 2003-07-15 16:48       ` Konstantin Lepikhov
  0 siblings, 0 replies; 3+ messages in thread
From: Konstantin Lepikhov @ 2003-07-15 16:48 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-15 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-27  9:36   ` [devel] Re: Radeon drivers - fglrx Vitaly Ostanin
2003-07-15  8:44     ` Алексей Мамонов
2003-07-15 16:48       ` Konstantin Lepikhov

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