Mailinglist Archive: radeonhd (223 mails)

< Previous Next >
Re: [radeonhd] stable and safe testing platforms Was: 0x791E:0x1043:0x8287: ATI Radeon 1250
  • From: Mike Mestnik <mmestnik@xxxxxxxx>
  • Date: Thu, 5 Jun 2008 10:50:10 -0500
  • Message-id: <20080605155010.GN20381@xxxxxxxx>
On Thu, Jun 05, 2008 at 01:59:49AM +0100, R.M. Thomas wrote:
Some progress but no success yet.

Maybe you should try building + installing everything with a different
--prefix (/usr/local or /opt/xorg_git or something like that). The wiki
page describes what you need to do, though not really in detail.

I currently am doing something a little more insane, but it happens to
work. The advantage is header and shared objects are not shared with
any other part of the system, this cuts down on problems caused by
these.

Using rbind and bind mounts I'm able to run a gnome session cross
chroots... gnome-panel plugins loaded from different chroots and the XC
server running in even another chroot.

To make things easy/ I'm using schroot, so my xserverrc and
xsessionrc files can enter the chroots.

Here is my fstab (using Debian syntax for it's mount command. Knowen
not to work in rhel4.)
/proc /ppc32/proc none rbind 0 0
/dev /ppc32/dev none rbind 0 0
/sys /ppc32/sys none rbind 0 0
/tmp /ppc32/tmp none rbind 0 0
/home /ppc32/home none rbind 0 0
/media /ppc32/media none rbind 0 0
/lib/modules /ppc32/lib/modules none rbind 0 0
/var/run/dbus /ppc32/var/run/dbus none rbind 0 0
/var/run/cups /ppc32/var/run/cups none rbind 0 0
/var/db/nscd /ppc32/var/db/nscd none rbind 0 0
/var/run/nscd /ppc32/var/run/nscd none rbind 0 0

# With this I'm able to load 32bit panel plugins into a 64bit
# gnome-panel. My X server runs out of /lenny/.

/proc /lenny/proc none rbind 0 0
/dev /lenny/dev none rbind 0 0
/sys /lenny/sys none rbind 0 0
/tmp /lenny/tmp none rbind 0 0
/home /lenny/home none rbind 0 0
/media /lenny/media none rbind 0 0
/lib/modules /lenny/lib/modules none rbind 0 0
/var/run/dbus /lenny/var/run/dbus none rbind 0 0
/var/run/cups /lenny/var/run/cups none rbind 0 0
/var/db/nscd /lenny/var/db/nscd none rbind 0 0
/var/run/nscd /lenny/var/run/nscd none rbind 0 0


It would be awsome to have a server chroot and client chroot, for
testing. Also bootable CDs, like knoppix would be nice.

I'm not sure what would go-into the chroots... would it make sence to
have the build environment and a script that grabs git, or just have
the binarys?

I think using chroots like this will make distributing and testing
software esier... for non-development systems there is an advantage to
using shared objects, but not for testing IMHO. Perhasps the answer
is to build a static Xserver instead? Still with that approch you
will want a controled chroot for your build process... So there may be
little extra bennifit.

I have done a completely fresh build after removing the stale headers
related to X in /usr/include. I used the prefix /opt/xorg_git and
downloaded the minimum needed to meet dependencies. The build completed
without error messages.

From the character-based console in Ubuntu's "recovery mode" I set
"LD_LIBRARY_PATH=/opt/xorg_git/lib" and then ran "startx --
/opt/xorg_git/bin/Xorg". I got a sensible display (xterm under fvwm as
specified in .xinitrc) but this display would not accept any input from
keyboard or mouse. I could, however, drop back to the character-based
console with Ctrl-F1 as usual.

The file /opt/xorg_git/var/log/Xorg.0.log showed no errors. In
particular, my weekend problem with opening /dev/dri/card0 seems to have
gone away.

I attach for your information:

(1) The shell script I used to carry out the latest build.
(2) Xorg.0.log
(3) xorg.conf

I'm a novice at this X business and appreciate all comments and advice.

Mike
ASUS P2-M2A690G, AMD Athlon64 X2 4800+,
Ubuntu Hardy 32-bit, ATI Radeon 1250

**************
SCRIPT FOLLOWS
**************

#!/bin/sh
#------------------------------------------------------------------
#
# gitradeonhd.sh
#
# Made by Mike Thomas
# on the basis of a limited understanding of
# http://www.x.org/wiki/radeonhd:DRI
# http://www.x.org/wiki/Development/git
#
#------------------------------------------------------------------
STR1="/home/rmthomas/h1"
STR2="/home/rmthomas/h2"
SRC="/var/tmp/radeonhd-dri"
PREFIX="/opt/xorg_git"
LIB="lib"
export PKG_CONFIG_PATH=$PREFIX/$LIB/pkgconfig
export LD_LIBRARY=$PREFIX/$LIB
export PATH=$PREFIX/bin:$PATH
if [ ! -d $SRC ]; then mkdir $SRC; fi
cd $SRC
#------------------------------------------------------------------
# Mentioned in http://www.x.org/wiki/radeonhd:DRI
#------------------------------------------------------------------
git clone git://anongit.freedesktop.org/git/xorg/util/macros
git clone git://anongit.freedesktop.org/git/mesa/drm
git clone git://anongit.freedesktop.org/git/mesa/mesa
git clone git://anongit.freedesktop.org/git/xorg/xserver
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
wget
ftp://ftp.freedesktop.org/pub/individual/proto/dri2proto-1.1.tar.bz2 -a
wget.log
wget
ftp://ftp.freedesktop.org/pub/individual/proto/xextproto-7.0.3.tar.bz2
-a wget.log
wget
ftp://ftp.freedesktop.org/pub/individual/proto/xproto-7.0.13.tar.bz2 -a
wget.log
wget ftp://ftp.freedesktop.org/pub/individual/lib/pixman-0.10.0.tar.bz2
-a wget.log
git clone git://anongit.freedesktop.org/git/xorg/proto/inputproto
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-input-mouse
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-input-keyboard
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-input-evdev

#------------------------------------------------------------------
# Extras apparently needed to resolve dependencies (on my machine)
#------------------------------------------------------------------
git clone git://anongit.freedesktop.org/git/xorg/proto/glproto
git clone git://anongit.freedesktop.org/git/xorg/lib/libpciaccess

#------------------------------------------------------------------
# For no good reason, just an experiment
#------------------------------------------------------------------
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-vesa
#------------------------------------------------------------------

bunzip2 dri2proto-1.1.tar.bz2 && tar xvf dri2proto-1.1.tar
bunzip2 xextproto-7.0.3.tar.bz2 && tar xvf xextproto-7.0.3.tar
bunzip2 xproto-7.0.13.tar.bz2 && tar xvf xproto-7.0.13.tar
bunzip2 pixman-0.10.0.tar.bz2 && tar xvf pixman-0.10.0.tar

#------------------------------------------------------------------
# Build starts here
#------------------------------------------------------------------

$STR1
$STR2

cd $SRC/macros
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
export ACLOCAL="aclocal -I $PREFIX/share/aclocal"

cd $SRC/drm
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
cd linux-core
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
depmod -a

cd $SRC/glproto
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/libpciaccess
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/dri2proto-1.1
./configure --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/mesa
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
mkdir -p /opt/xorg_git/bin
install -m755 progs/xdemos/glxinfo /opt/xorg_git/bin/ 1>>$STR1 2>>$STR2
install -m755 progs/xdemos/glxgears /opt/xorg_git/bin/ 1>>$STR1 2>>$STR2

cd $SRC/xextproto-7.0.3
./configure --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/xproto-7.0.13
./configure --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/inputproto
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/pixman-0.10.0
./configure --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/xserver
./autogen.sh --prefix=$PREFIX --enable-builtin-fonts \
--with-xkb-path=/usr/share/X11/xkb 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/xf86-input-mouse
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/xf86-input-keyboard
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
cd $PREFIX/bin
ln -s /usr/bin/xkbcomp xkbcomp

cd $SRC/xf86-input-evdev
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

cd $SRC/xf86-video-radeonhd
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2
depmod -a

cd $SRC/xf86-video-vesa
./autogen.sh --prefix=$PREFIX 1>>$STR1 2>>$STR2
make 1>>$STR1 2>>$STR2
make install 1>>$STR1 2>>$STR2

#------------------------------------------------------------------
# Run new setup following http://www.x.org/wiki/Development/git
#------------------------------------------------------------------
rmmod radeon
rmmod drm
insmod $SRC/drm/linux-core/drm.ko
insmod $SRC/drm/linux-core/radeon.ko
export LD_LIBRARY_PATH=$PREFIX/lib

startx -- $PREFIX/bin/Xorg -verbose
#------------------------------------------------------------------
exit 0
#ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx


--
/****************************************************************
* Mike Mestnik: Junior Admin 612-395-8932 *
* mmestnik@xxxxxxxx VISI *
****************************************************************/
Alt address: collections@xxxxxxxxxxxxx
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >