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? 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? Thanks. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) A shapely CATHOLIC SCHOOLGIRL is FIDGETING inside my costume.. -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
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). Maciej -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
On Wednesday 25 February 2009, Maciej Cencora 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.
rpm says they are: [root@coyote ~]# rpm -q libpciaccess libpciaccess-0.9.1-1.fc8 [root@coyote ~]# rpm -q libpciaccess-devel libpciaccess-devel-0.9.1-1.fc8
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).
I have no idea how to add that macro once I do find it.
Maciej
Thanks Maciej. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Sorry about off-topic. I thought I was posting to Usenet. - William Park on linux-kernel -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
On Wednesday 25 February 2009, Gene Heskett wrote:
On Wednesday 25 February 2009, Maciej Cencora wrote:
On środa, 25 lutego 2009 03:16:42 Gene Heskett wrote: [...] You must export init_mm symbol (find the file in kernel source where this function is defined and add export symbol macro).
I have no idea how to add that macro once I do find it.
Continuing my own thread here, and the magic of a grep -R, I find this in the recent kernels. In 2.6.28.7/arch/x86/kernel/init_task.c: struct mm_struct init_mm = INIT_MM(init_mm); EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */ Should I convert that to EXPORT_SYMBOL(init_mm); ?? Answered my own question I guess, changed it, rebuilt the kernel, rebooted (and got a huge Oops forcing a hardware reset on the shutdown), then logged in and without starting x, re-ran my script, and again got lots of warnings about it not being available in this kernel. Do I have some option turned off in a make xconfig? But it seems to me that it has to be building that or it couldn't even boot... I'll send this and reboot to a fedora issue kernel & repeat this just for grins. Ideas anyone?
Maciej
Thanks Maciej.
-- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Sorry about off-topic. I thought I was posting to Usenet.
- William Park on linux-kernel
-- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Have the courage to take your own thoughts seriously, for they will shape you. -- Albert Einstein -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
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
participants (3)
-
Gene Heskett
-
Karel Podvolecky
-
Maciej Cencora