reposting, thx Maciej... On Wed, Feb 25, 2009 at 12:50 PM, Maciej Cencora <m.cencora@gmail.com> wrote:
On środa, 25 lutego 2009 03:16:42 Gene Heskett wrote:
Greetings;
TBE, I have yet to make it build, but I keep hoping.
So this morning I do a "git pull;make clean;./autogen.sh;make", and get this far:
gcc -DHAVE_CONFIG_H -I. -I.. -I./AtomBios/includes -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -Wextra -Wno-unused-parameter -Werror-implicit-function-declaration -Wstrict-aliasing -Wpointer-arith -Wvolatile-register-var -Winit-self -Wbad-function-cast -Wstrict-prototypes -Wold-style-definition -Wnested-externs -Wdisabled-optimization -pedantic -Wno-long-long -Wno-variadic-macros -g -O2 -finline-functions -MT radeonhd_drv_la-rhd_driver.lo -MD -MP -MF .deps/radeonhd_drv_la-rhd_driver.Tpo -c rhd_driver.c -fPIC -DPIC -o .libs/radeonhd_drv_la-rhd_driver.o In file included from rhd_driver.c:121: r6xx_accel.h:61:5: warning: C++ style comments are not allowed in ISO C90 r6xx_accel.h:61:5: warning: (this will be reported only once per input file) rhd_driver.c: In function 'rhdMapMMIO': rhd_driver.c:1682: error: implicit declaration of function 'pci_device_map_range' rhd_driver.c:1682: warning: nested extern declaration of 'pci_device_map_range' rhd_driver.c:1684: error: 'PCI_DEV_MAP_FLAG_WRITABLE' undeclared (first use in this function) rhd_driver.c:1684: error: (Each undeclared identifier is reported only once rhd_driver.c:1684: error: for each function it appears in.) rhd_driver.c: In function 'rhdUnmapMMIO': rhd_driver.c:1714: error: implicit declaration of function 'pci_device_unmap_range' rhd_driver.c:1714: warning: nested extern declaration of 'pci_device_unmap_range' rhd_driver.c: In function 'rhdMapFB': rhd_driver.c:1820: error: 'PCI_DEV_MAP_FLAG_WRITABLE' undeclared (first use in this function) rhd_driver.c:1821: error: 'PCI_DEV_MAP_FLAG_WRITE_COMBINE' undeclared (first use in this function) rhd_driver.c: In function 'rhdGetCardType': rhd_driver.c:3035: warning: passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type rhd_driver.c:3043: warning: passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type rhd_driver.c:3051: warning: passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type make[3]: *** [radeonhd_drv_la-rhd_driver.lo] Error 1 make[3]: Leaving directory `/usr/src/xf86-video-radeonhd/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/xf86-video-radeonhd/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/xf86-video-radeonhd' make: *** [all] Error 2
Obviously I am doing something wrong, or you folks would have long since fixed it. The 64$ question is what am I doing wrong?
I think you don't have libpciaccess headers installed.
This is the script that drives this: =============== #!/bin/bash cd /usr/src echo && \ echo `pwd` && \ # In case they don't exist touch drm xf86-video-radeonhd rm -fR drm xf86-video-radeonhd git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd&& \ git clone git://anongit.freedesktop.org/mesa/drm && \ cd drm && \ echo && \ echo `pwd` && \ git checkout -b r6xx-r7xx-support origin/r6xx-r7xx-support && \ cd ../xf86-video-radeonhd && \ echo && \ echo `pwd` && \ git checkout -b r6xx-r7xx-support origin/r6xx-r7xx-support && \ cd ../drm/linux-core && \ echo && \ echo `pwd` && \ make drm.o radeon.o && \ # since fedora has their own notion of where this stuff goes && \ # it takes 2 separate copy operations && \ rm -f /lib/modules/`uname -r`/kernel/drivers/gpu/drm/drm.ko && \ cp drm.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/ && \ rm -f /lib/modules/`uname -r`/kernel/drivers/gpu/drm/radeon/radeon.ko && \ cp radeon.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/radeon/ && \ cd ../../xf86-video-radeonhd && \ echo && \ echo `pwd` && \ ./autogen.sh --prefix=/usr && \ make && \ make install && \ depmod -a `uname -r` ==================
please critique. FWIW, I get warnings while building in the drm tree that 'init_mm' is not available in this kernel, but it builds and runs, I'm running those two modules now. Is this related?
You must export init_mm symbol (find the file in kernel source where this function is defined and add export symbol macro).
Or check "Kernel Hacking" -> "Enable unused/obsolete exported symbols" in menuconfig of your kernel. k.
Maciej
-- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
-- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org