Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2007 12:42:28 +0200
From:      "Rene Ladan" <r.c.ladan@gmail.com>
To:        Sebastien <seba.group@sinux.net>
Cc:        x11@freebsd.org, cokane@freebsd.org
Subject:   Re: RadeonHD driver on FreeBSD/amd64?
Message-ID:  <e890cae60710130342o1b6d1041n3e66d207d928d553@mail.gmail.com>
In-Reply-To: <1191659373.1056.31.camel@dell.sinux.seb>
References:  <47066CA0.1090507@FreeBSD.org> <1191659373.1056.31.camel@dell.sinux.seb>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
2007/10/6, Sebastien <seba.group@sinux.net>:
> Le Vendredi 05 octobre 2007 à 12:56 -0400, Coleman Kane a écrit :
> > Hi,
> >
> > I am curious if anybody has had success w/ a RadeonHD card on FreeBSD/amd64.
> >
>
> I'm trying to...but no success by now.
>
> Athlon64 with ati radeon x1200 (r690)
>

[..]

> I don't have a good enough skill to debug. So I'm interested in any
> help, feed back, tips,... I'll post any success.
>
>
> X.Org X Server 1.4.0
> Release Date: 5 September 2007
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 6.2-RELEASE amd64
> Current Operating System: FreeBSD fred.home.bsd 6.2-RELEASE FreeBSD
> 6.2-RELEASE #0: Fri Jan 12 08:32:24 UTC 2007
> root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
> Build Date: 05 October 2007  10:25:22PM
>
>         Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> Module Loader present
> Markers: (--) probed, (**) from config file, (==) default setting,
>         (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct  6 10:11:36 2007
> (++) Using config file: "/root/xorg.conf.new"
> (==) ServerLayout "X.org Configured"
> (**) |-->Screen "Screen0" (0)
> (**) |   |-->Monitor "Monitor0"

You have a Monitor section defined in your xorg.conf.  The driver
doesn't like that.  See
http://home.tiscali.nl/rladan/radeonhd/xorg.conf.radeonhd for a
working example (at least for me :) )

> (WW) RADEONHD(0): Unknown card detected: 0x791F:0x1734:0x110A.
>         Your card might not work or might not work optimally.
>         To rectify this, please contact radeonhd@opensuse.org.
>         Include your X log, the full name of the device
>         and the conntest (found in utils/conntest) output.
> (--) RADEONHD(0): Detected an RS690 on an unidentified card

Did you have any success in running this utility?  You'll need the
attached patch to get it compiled.

Regards,
Rene
-- 
GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)

"It won't fit on the line."
		-- me, 2001

[-- Attachment #2 --]
--- src/AtomBios/includes/CD_Common_Types.h.orig	2007-09-26 21:34:02.000000000 +0200
+++ src/AtomBios/includes/CD_Common_Types.h	2007-09-26 21:34:22.000000000 +0200
@@ -47,7 +47,7 @@
 	//    typedef __int64             int64_t;
 		typedef unsigned __int32    uint32_t;
 		typedef __int32             int32_t;
-#elif defined (linux) || defined (__NetBSD__) || defined(__sun) || defined(__OpenBSD__)
+#elif defined (linux) || defined (__NetBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__FreeBSD__)
 		typedef unsigned int uint32_t;
 		typedef int int32_t;
 	#else
--- utils/conntest/rhd_conntest.c.orig	2007-09-27 00:05:08.000000000 +0200
+++ utils/conntest/rhd_conntest.c	2007-09-26 21:36:17.000000000 +0200
@@ -29,7 +29,9 @@
  */
 
 #include <stdio.h>
+#if !defined (__FreeBSD__)
 #include <sys/io.h>
+#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -49,6 +51,11 @@
 #define VBIOS_MAXSIZE 0x10000
 #define DEV_MEM "/dev/mem"
 
+#if defined (__FreeBSD__)
+#define PCI_SUBSYSTEM_VENDOR_ID 0x2C
+#define PCI_SUBSYSTEM_ID 0x2E
+#endif
+
 /* Some register names */
 enum {
     /* DAC A */
--- utils/conntest/Makefile.orig	2007-09-28 11:12:54.000000000 +0200
+++ utils/conntest/Makefile	2007-09-28 11:13:22.000000000 +0200
@@ -1,5 +1,5 @@
 rhd_conntest: rhd_conntest.c
-	gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz -I../../src/AtomBios/includes
+	gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz -I../../src/AtomBios/includes -I/usr/local/include -L/usr/local/lib
 
 all: rhd_conntest
 

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e890cae60710130342o1b6d1041n3e66d207d928d553>