Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge xorg-x11 -- ATI driver error!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sat Aug 26, 2006 4:06 pm    Post subject: emerge xorg-x11 -- ATI driver error! Reply with quote

Hi all!

I'm working through the installation to get a GUI, I'm wondering if I missed a step during the initial configuration, because I'm getting a strange error.

when i go to type emerge xorg-x11 it goes through the steps but halts when it says:

* Determining the location of the kernel source code
* found kernel source directory
* /usr/src/linux
* Could not find usable .config in the kernel source directory. Please ensure that /usr/src/linux points to a configured set of linux sources.

I was getting this message before when I tried to do an
emerge ati-drivers

so I manually downloaded the ATI drivers from their website and used
sh ati-driver-installer-8.28.8.run to install them.

Looks like I could not get around it ;)

What step did I miss / what do I need to do, to get the package to see the .config it wants?

I'm thinking does this mean I have to re-setup the kernel again ?? menuconfig doesn't seem to work anymore, so if thats the case, whats the quickest way of doing it?


Last edited by codecx on Sat Aug 26, 2006 9:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2399
Location: UK

PostPosted: Sat Aug 26, 2006 4:57 pm    Post subject: Reply with quote

Check that you have a symbolic link from /usr/src/linux to /usr/src/linux-<running version>
Code:
ls -l /usr/src/linux
should show something like
Code:
lrwxrwxrwx 1 root root 22 2006-08-25 09:51 /usr/src/linux -> linux-2.6.17-gentoo-r6
though the version of the kernel you are running may not be 2.6.17-gentoo-r6
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sat Aug 26, 2006 8:02 pm    Post subject: Reply with quote

i ran that command, the output is:

lrwxrwxrwx 1 root root 22 Aug 26 11:34 /usr/src/linux -> Linux 2.6.17-gentoo-r4

so it looks right.

whats next?
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2399
Location: UK

PostPosted: Sat Aug 26, 2006 8:14 pm    Post subject: Reply with quote

Just nitpicking: that is
Code:
lrwxrwxrwx 1 root root 22 Aug 26 11:34 /usr/src/linux -> linux-2.6.17-gentoo-r4
isn't it? lowercase "l" for linux and a hyphen not a space after it (I expect you were copying it by hand as you can't cut'n'paste)

Have you got a file
Code:
/usr/src/linux-2.6.17-gentoo-r4/.config
If you have, does it contain the configuration for the running kernel (I assume the running kernel is 2.6.17-gentoo-r4)?

If it does, does it look like a configuration file — starts
Code:
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.17-gentoo-r4
# Wed Aug 26 11:34:23 2006
#
CONFIG_X86_32=y
CONFIG_SEMAPHORE_SLEEPERS=y
and ends
Code:
#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
CONFIG_CRC32=y
CONFIG_LIBCRC32C=y
CONFIG_ZLIB_INFLATE=m
CONFIG_ZLIB_DEFLATE=m
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_KTIME_SCALAR=y


Just trying to cover a bit of ground before your next post :)
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sat Aug 26, 2006 8:20 pm    Post subject: Reply with quote

wynn wrote:
Just nitpicking: that is
Code:
lrwxrwxrwx 1 root root 22 Aug 26 11:34 /usr/src/linux -> linux-2.6.17-gentoo-r4
isn't it? lowercase "l" for linux and a hyphen not a space after it (I expect you were copying it by hand as you can't cutn'paste)

Yea, sorry. it was direct typing. the syntax is correct, I promise.

wynn wrote:

Have you got a file
Code:
/usr/src/linux-2.6.17-gentoo-r4/.config
If you have, does it contain the configuration for the running kernel (I assume the running kernel is 2.6.17-gentoo-r4)?


Nay.. I ran an ls, it does not have a .config listed. I am running 2.6.17-gentoo-r4 --correct. Installing off of a stage3 of a canadian mirror. Its the latest one, yes?

if I type
Code:
nano -w /usr/src/linux-2.6.17-gentoo-r4/.config


it treats it like a new file.
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2399
Location: UK

PostPosted: Sat Aug 26, 2006 8:36 pm    Post subject: Reply with quote

Quote:
I am running 2.6.17-gentoo-r4 --correct. Installing off of a stage3 of a canadian mirror. Its the latest one, yes?
Not quite, the latest is -r6.

Somehow or other, you are going to have to get a .config for the running kernel.

You can see if you've got a /proc/config.gz, if you have, you're laughing
Code:
gzcat /proc/config.gz >/usr/src/linux-2.6.17-gentoo-r4/.config
and you should be OK.

If not then you are going to have to compile 2.6.17-gentoo-r4 for yourself: NeddySeagoon's Rough Guide to DIY Kernels should help you. Configuring a kernel is the biggest step, I think you'd be better off using menuconfig (his third choice) but see how you go.

Eventually you will have to compile your own kernel but it is perhaps better not to be rushed into it.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sat Aug 26, 2006 8:50 pm    Post subject: Reply with quote

Ok, trying this.. Not laughing yet tho ;)

I did the command you said, its given me a file thats full of stuff you mentioned before.
i copied it in the correct location, and I tried to run

emerge xorg-x11 once more. Now it says
[code]these source have not yet been prepared.
we cannot build against an unprepared tree etc....

cd /usr/src/linux
make oldconfig
make modules_prepare

I'll try to skip all that junk and try running

make modules_prepare

Otherwise, I'll just find that r6 and start again with the resource you gave me along with the handbook steps.

Thanks a lot!
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sat Aug 26, 2006 9:07 pm    Post subject: Reply with quote

OK!
make modules_prepare

worked!!

Now onto Error #2
emerge xorg-x11
does its thing.. about 25% the way through

Install: cannot stat 'fglrx.ko' : no such file or directory
!!! error: x11-drivers/ati/drivers-8.21.7-r1 failed.
ebuild.sh, line 1539: called dyn_install
ebuild.sh, line 1013: called src_install
drivers-8.21.7-r1.ebuild, line 182: called linux-mod_src_install
linux-mod.eclass, line 497: called die

!!! doins fglrx.ko failed
!!! if you need support, post the topmost build error, and call stack if relevant
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sun Aug 27, 2006 12:39 am    Post subject: Reply with quote

found a similar thread:

http://forums.gentoo.org/viewtopic-t-483536-highlight-ati+agp.html

but I cannot make heads or tails of it :(
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2399
Location: UK

PostPosted: Sun Aug 27, 2006 10:52 am    Post subject: Reply with quote

Quote:
emerge xorg-x11 once more. Now it says
Code:
these source have not yet been prepared.
we cannot build against an unprepared tree etc....
Sorry, my fault. It occurred to me on the way downstairs that a bit more than just copying it was needed.

As you are installing the ati-drivers, you will need to add "fglrx" to VIDEO_CARDS in /etc/make.conf, for example
Code:
VIDEO_CARDS="fbdev radeon fglrx vesa"
radeon gives you a fallback using the ati driver in xorg-x11 which supports ATI cards but doesn't give 3D acceleration to chips later than rv300.

I'm a bit surprised that (it appears) emergeing ati-drivers is part of emergeing xorg-x11, however. Your next problem comes from trying to emerge an old version of ati-drivers. I know, if the latest version is needed why is it masked: I don't know.

You can unmask (make available for emerge to use) the latest version of ati-drivers (which many people are using successfully) by adding
Code:
x11-drivers/ati-drivers
to /etc/portage/package.keywords.

Check to see if this file exists
Code:
ls /etc/portage/package.keywords
If it does you can use nano to add the line at the end.

If you do not have this file then you can
Code:
echo x11-drivers/ati-drivers >>/etc/portage/package.keywords
which will both create the file and put the required line in it.

Now restart the emerge of ati-drivers and, if not laughing, perhaps you might manage a smile :)
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
codecx
n00b
n00b


Joined: 24 Aug 2006
Posts: 14
Location: Toronto, ON

PostPosted: Sun Aug 27, 2006 5:09 pm    Post subject: Reply with quote

wynn! :o :D :D :D YES!
Back to top
View user's profile Send private message
btt
n00b
n00b


Joined: 16 Sep 2004
Posts: 6
Location: UK

PostPosted: Wed Aug 30, 2006 1:22 pm    Post subject: Reply with quote

I had a similar error compiling ati-drivers on a fresh install. Adding
Code:
x11-drivers/ati-drivers ~x86
to package.keywords fixed it for me.

Thanks for the help :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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