Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfree-drm on Dell Inspiron 5100 w/Radeon M 7500
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
job2600
n00b
n00b


Joined: 04 Jan 2004
Posts: 35

PostPosted: Sun Jan 04, 2004 5:54 am    Post subject: xfree-drm on Dell Inspiron 5100 w/Radeon M 7500 Reply with quote

I am getting this error when trying to emerge xfree-drm:
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o

I followed the steps as outlined on:
http://www.gentoo.org/doc/en/dri-howto.xml
I tried compiling the kernel both with:
<*> /dev/agpgart (AGP Support)
[*] Intel 440LX/BX/GX and I815/I820/I830M/I830MP/I840/I845/I850/I860 support


and

<M> /dev/agpgart (AGP Support)
[*] Intel 440LX/BX/GX and I815/I820/I830M/I830MP/I840/I845/I850/I860 support

From lspci here is my graphics chip information:
00:01.0 PCI bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset AGP Bridge (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]



Any ideas?

Here is the entire log of the xfree-drm emerge attempt:

# ACCEPT_KEYWORDS="~x86" emerge xfree-drm
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-base/xfree-drm-4.3.0-r7 to /
>>> md5 src_uri ;-) xfree-drm-4.3.0-r7-gentoo-0.3.tar.bz2
>>> md5 src_uri ;-) linux-drm-4.3.0-kernelsource-20031202.tar.bz2
>>> Unpacking source...
>>> Unpacking linux-drm-4.3.0-kernelsource-20031202.tar.bz2 to /var/tmp/portage/
xfree-drm-4.3.0-r7/work
>>> Unpacking xfree-drm-4.3.0-r7-gentoo-0.3.tar.bz2 to /var/tmp/portage/xfree-dr
m-4.3.0-r7/work
* Updating for standard build...
mv: cannot stat `/var/tmp/portage/xfree-drm-4.3.0-r7/work/patch/3*': No such fil
e or directory
* Applying various patches (bugfixes/updates)...
* 002_all_dristat-compile-fix.patch... [ ok ]
* 003_all_gentoo-makefile-fixup.patch... [ ok ]
* 004_all_radeon-rage128-pci-id-updates-v2.patch... [ ok ]
* Done with patching
>>> Source unpacked.
* Building DRM...
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-
strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -DEXPORT_SYMTAB -I/usr/src/l
inux/include -c radeon_drv.c -o radeon_drv.o
In file included from radeon_drv.c:47:
drm_drv.h:538: warning: initialization discards qualifiers from pointer target type
drm_drv.h:538: warning: initialization discards qualifiers from pointer target type
.....(above line repeated several times)
In file included from radeon_drv.c:52:
drm_lock.h: In function `radeon_lock_take':
drm_lock.h:64: warning: implicit declaration of function `cmpxchg'
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-
strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c
radeon_cp.c -o radeon_cp.o
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-
strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c
radeon_state.c -o radeon_state.o
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-
strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c
radeon_mem.c -o radeon_mem.o
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-
strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c
radeon_irq.c -o radeon_irq.o
ld -r radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o radeon_irq.o -o radeo
n.o
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -
Wnested-externs -Wpointer-arith -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_P
OSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I../../../../../../inc
lude -I../../../../../../../../include -I../../../../../../../../programs/Xserve
r/hw/xfree86/common -I. -I../../.. -I../../../../../../../../lib/X11 dristat.c -
o dristat
In file included from dristat.c:36:
xf86drm.c: In function `drmMatchBusID':
xf86drm.c:238: warning: unsigned int format, int arg (arg 3)
xf86drm.c:238: warning: unsigned int format, int arg (arg 4)
xf86drm.c:238: warning: unsigned int format, int arg (arg 5)
xf86drm.c:246: warning: unsigned int format, int arg (arg 3)
xf86drm.c:246: warning: unsigned int format, int arg (arg 4)
xf86drm.c:246: warning: unsigned int format, int arg (arg 5)

>>> Install xfree-drm-4.3.0-r7 into /var/tmp/portage/xfree-drm-4.3.0-r7/image/ c
ategory x11-base
* installing DRM...
install -d -m 0755 /var/tmp/portage/xfree-drm-4.3.0-r7/image//lib/modules/2.4.22
-gentoo-r2/kernel/drivers/char/drm
* Stripping binaries...
/usr/X11R6/bin/dristat
man:
>>> Completed installing into /var/tmp/portage/xfree-drm-4.3.0-r7/image/

>>> Merging x11-base/xfree-drm-4.3.0-r7 to /
--- /lib/
--- /lib/modules/
--- /lib/modules/2.4.22-gentoo-r2/
--- /lib/modules/2.4.22-gentoo-r2/kernel/
--- /lib/modules/2.4.22-gentoo-r2/kernel/drivers/
--- /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/
>>> /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/
>>> /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o
--- /usr/
--- /usr/X11R6/
--- /usr/X11R6/bin/
>>> /usr/X11R6/bin/dristat
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/xfree-drm-4.3.0-r7/
>>> /usr/share/doc/xfree-drm-4.3.0-r7/README.drm.gz
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/xfree-drm-4.3.0-r7/README.drm.gz
--- !mtime obj /usr/X11R6/bin/dristat
--- !mtime obj /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o
--- !empty dir /usr/share/doc/xfree-drm-4.3.0-r7
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/X11R6/bin
--- !empty dir /usr/X11R6
--- !empty dir /usr
--- !empty dir /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm
--- !empty dir /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char
--- !empty dir /lib/modules/2.4.22-gentoo-r2/kernel/drivers
--- !empty dir /lib/modules/2.4.22-gentoo-r2/kernel
--- !empty dir /lib/modules/2.4.22-gentoo-r2
--- !empty dir /lib/modules
--- !empty dir /lib
>>> original instance of package unmerged safely.
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/c
har/drm/radeon.o
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies... [ ok ]
>>> x11-base/xfree-drm-4.3.0-r7 merged.

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies... [ ok ]
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


* GNU info directory index is up-to-date.
Back to top
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Sun Jan 04, 2004 6:46 am    Post subject: Reply with quote

add radeon to /etc/modules.autoload.d/kernel-2.4 file.
most likely you havent done a modprobe to get the module into the running kernel. before you add radeon to the /etc/modules.autoload.d/kernel-2.4 file do a modprobe radeon and then start X Windows
Back to top
View user's profile Send private message
job2600
n00b
n00b


Joined: 04 Jan 2004
Posts: 35

PostPosted: Sun Jan 04, 2004 5:02 pm    Post subject: modprobe Reply with quote

modprobe dies as well. My guess is since it died while compiling xfree-drm it's not going to work until I can get xfree-drm to compile without errors.

# modprobe radeon
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o: unresolved symbol cmpxchg
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o: insmod /lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o failed
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/char/drm/radeon.o: insmod radeon failed
Back to top
View user's profile Send private message
job2600
n00b
n00b


Joined: 04 Jan 2004
Posts: 35

PostPosted: Sun Jan 04, 2004 8:39 pm    Post subject: 386 or P4 in kernel? Reply with quote

After browsing around I came across a posting in the archive:

http://www.mail-archive.com/gentoo-user@gentoo.org/msg13475.html

It mentioned that CONFIG_X86_CMPXCHG needed to be set to =y in the .config for it to function properly. This made sense to me since I was getting the unresolved symbol cmpxchg when trying to modprobe radeon.o. So I recompiled my kernel with the processor set to a P4 which set CONFIG_X86_CMPXCHG=y. Still no loving though. When I emerge xfree-drm it comes up with a few more problems now:

depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/c
har/drm/radeon.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/m
d/lvm-mod.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/n
et/ppp_generic.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/drivers/u
sb/usbcore.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/fs/jfs/jf
s.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/fs/ntfs/n
tfs.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r2/kernel/net/bluet
ooth/bnep/bnep.o
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum