View previous topic :: View next topic |
Author |
Message |
Tickeldi n00b
Joined: 17 Mar 2009 Posts: 43 Location: Norddeutschland
|
Posted: Wed Mar 30, 2011 8:56 pm Post subject: Radeon KMS doesn't work on G4 |
|
|
Hello guys.
After I exhausted every possibility I could think of and google and forum search won't reveal anything new I need your help here.
I have a G4 PowerBook with the following graphic adapter:
ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
Configured as a framebuffer device X11 works absolutely fine but, of course, I won't get dri with that:
Quote: | OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on softpipe |
So I set the following options in the Kernel to have the radeon drm takeover and not radeonfb:
Quote: |
Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
<*> Apple UniNorth & U3 AGP support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
<*> ATI Radeon
[*] Enable modesetting on radeon by default - NEW DRIVER
-*- Support for frame buffer devices --->
[*] Open Firmware frame buffer device support
[*] Apple "control" display support
[*] Apple "platinum" display support
[*] Apple "valkyrie" display support
< > ATI Radeon display support
Console display driver support --->
-*- Framebuffer Console support
|
But if I try to boot with such a setup the screen turns blank (meaning black) after showing me the initial startup sequence. So something about the KMS doesn't work. I am not able to access anything and I can not determine if the system freezes or not and I can not access log files. I am not sure if I would be when using a live cd to boot.
So what am I doing wrong? Here are some infos that may or not be useful.
emerge --info
Code: |
Portage 2.2.0_alpha28_p36 (default/linux/powerpc/ppc32/10.0/desktop/gnome, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo-r1 ppc)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-ppc-7447A,_altivec_supported-with-gentoo-1.12.14
Timestamp of tree: Wed, 30 Mar 2011 02:45:01 +0000
app-shells/bash: 4.1_p9
dev-lang/python: 2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo enlightenment
Installed sets:
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync15.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 r300 readline samba sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
lspci
Code: |
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
0001:10:13.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
0002:24:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
0002:24:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81)
0002:24:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)
|
_________________ "Linux basiert doch auf DOS oder nicht?" *schüttel* |
|
Back to top |
|
|
dobbs Tux's lil' helper
Joined: 20 Aug 2005 Posts: 105 Location: Wenatchee, WA
|
Posted: Thu Mar 31, 2011 3:25 am Post subject: |
|
|
Well, as far as determining if the system freezes or not, I'd suggesting using network tools. Ping it, try to SSH into it...
At what point in the boot process do you lose your video -- while the kernel is probing hardware or after init scripts begin loading? Do you have the xdm initscript set to load at boot? Does your backlight remain lit?
If it's just X going out to lunch, you might try hitting fn-ctl-alt-F1 to switch to a text console. I've had that not work even when the system wasn't frozen, though. |
|
Back to top |
|
|
Tickeldi n00b
Joined: 17 Mar 2009 Posts: 43 Location: Norddeutschland
|
Posted: Thu Mar 31, 2011 2:32 pm Post subject: |
|
|
Right now I am managing my network with networkmanager and nm-applet and that doesn't grab an ip until X fired up. I will have to change that and give it a try this evening.
I think it went black right after the probing (or during even, I can see kernel messages however). This would be consistent with the fact that I built the radeon driver in the kernel. The backlight remains lit.
fn-ctrl-alt-F1 didn't do anything as expected.
Should I rather build radeon kms as a module? In combination with radeonfb everything works but then it renders on software. Do I need to build in radeonfb and deactivate it otherwise? I think I'll try blacklisting. _________________ "Linux basiert doch auf DOS oder nicht?" *schüttel* |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Thu Mar 31, 2011 2:36 pm Post subject: |
|
|
radeon KMS implements vesafb/offb handover but the reports on how well that works are mixed. It is best to leave all fb drivers disabled. |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
Tickeldi n00b
Joined: 17 Mar 2009 Posts: 43 Location: Norddeutschland
|
Posted: Fri Apr 01, 2011 7:31 pm Post subject: |
|
|
Quote: | As far as I know, PowerPC still requires a framebuffer device, otherwise there is no boot console. |
That is what I was reading. Somehow I hoped that the radeon KMS driver would provide such a framebuffer but now I get it.
What made me think that I could make it work was this:
http://us.generation-nt.com/answer/how-activate-kms-radeon-video-card-powerpc-help-196523701.html
Somebody there could get direct rendering via radeon working. With a debian kernel. However I may have missed something.
I am satisfied with how things are. I just thought I am doing something wrong. I hope to be able to have drm in the future though.
Thanks for the info. _________________ "Linux basiert doch auf DOS oder nicht?" *schüttel* |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Fri Apr 01, 2011 8:16 pm Post subject: |
|
|
For what it's worth, with the above configuration, I was able to get DRM working, but the result was slower than the old UMS driver on my Powerbook and with the other drawbacks, having really slow 3D support wasn't worth all the extra trouble. Your priorities might differ though. :) _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
Tickeldi n00b
Joined: 17 Mar 2009 Posts: 43 Location: Norddeutschland
|
Posted: Sat Apr 02, 2011 12:59 am Post subject: |
|
|
Nah. Not really. Most games I play (like battle of wesnoth) are 2d based and work fine without. It is more about having a "perfectly" running system and maybe an opengl drawn video playback. Also I may like to use compiz in the long run and thats not really good on software rendering.
However thanks again for the expertise and fast answers. I couldn't get those infos in such a clarity from the web and I am satisfied by knowing that there is no better way to do it right now. _________________ "Linux basiert doch auf DOS oder nicht?" *schüttel* |
|
Back to top |
|
|
|