Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running XF86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Jan 20, 2004 11:04 pm    Post subject: Running XF86 Reply with quote

Hi,

I have recently started to install Gentoo on my iMac,
it is a PowerPC G4(7450) 800MHz with a NVidia GeForce2 MX.
My install is basically working, however I have trouble with
XFree... With the livecd 1.4rc7 Xeasyconf gives me a working
XFree configuration in 24bpp with the framebuffer device and
if I remmember correctly I could also use the nv driver at the
same resolution.
With my installation the same configuration doesn't work.
I can only use the framebuffer device and in 8bpp, which is
quite ugly.
I presume it is a kernel configuration problem. What I am missing
or what should I remove ? My actual kernel is 2.4.24 but it wasn't working with 2.4.22r3 either.

Thanks,
François
Back to top
View user's profile Send private message
LE_Shatai
n00b
n00b


Joined: 13 Jan 2004
Posts: 20

PostPosted: Wed Jan 21, 2004 12:36 am    Post subject: Reply with quote

Is the nvidia linux driver installed?
You can check this out with lsmod.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jan 21, 2004 1:01 am    Post subject: Reply with quote

LE_Shatai wrote:
Is the nvidia linux driver installed?
You can check this out with lsmod.


I will check this as soon as I return under linux.
However is it important to the running of the
FrameBuffer device driver?
Back to top
View user's profile Send private message
LE_Shatai
n00b
n00b


Joined: 13 Jan 2004
Posts: 20

PostPosted: Wed Jan 21, 2004 11:04 am    Post subject: Reply with quote

As far as i know, the framebuffer device is soomething like a generic device but i'm not sure about.

the nvidia driver is not implemented in the kernel, so you have two possibilities to get the driver.
the first is, that you get the driver from the nvidia homepage.
the second is, that you donwload the os driver and compile it, but
i would prefer using the original nvidia driver.

you can also emerge the nvidia driver.
there are two packages: nividia, and the nvidia-kernel.
you will need both.

just make an
emerge --search nvidia
and you will find them. :)

I hope this will help you out.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jan 21, 2004 9:51 pm    Post subject: Reply with quote

First of all, thanks you very much for taking some time to try
to help me.

LE_Shatai wrote:
As far as i know, the framebuffer device is soomething like a generic device but i'm not sure about.


Yes, it is pretty much a generic devic device.

Quote:
the nvidia driver is not implemented in the kernel, so you have two possibilities to get the driver.
the first is, that you get the driver from the nvidia homepage.
the second is, that you donwload the os driver and compile it, but
i would prefer using the original nvidia driver.


It would work on ia32, where I already did something like this
for my PC some time ago. However nvidia doesn't provide
driver for ppc. What's more as far as I know they haven't been
ported to ppc, so emerging the source is probably useless (it
is probably not in the ppc tree anyway). Tell me if I am wrong.

However not having the nvidia driver doesn't mean you cannot
use a nvidia card. XFree86 comes with its own driver (called
nv while the nvidia ones are called nvidia) which is open source
and could be/has been ported. It doesn't get everything out of
a nvidia card, especially 3D stuff, but it works (at least on ia32).
In fact when you first asked about the nvidia driver I assumed you
meant the "nv" driver.

I guess I could have more luck asking on irc, which is not a form
of communication that I like.

Cheers,
François
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jan 22, 2004 3:43 am    Post subject: some progress on the subject Reply with quote

OK, now I understand that in fact I use both the nv driver and
the framebuffer device(FB) as the driver seems to be for the card
and the FB for the flat TFT display.
I looked closely at what happen when I boot the livecd and my
own kernel and run fbset to see what exactly is happening.
On the livecd fbset enables me to switch from 8bpp to 16bpp to
24bpp without on my kernel it is not supported.
There are also difference between the device registered according
to fbset, the most stricking being that with my kernel the DotClock
is set to 100MHz while with the livecd it is only 65MHz.

It turns out also that when I boot the livecd I have a few message
like:
rivafb: nVidia....
rivafb: detected DFD....
rivafb: detected CRTC....
Console: switching to colour frame buffer...
rivafb: PCI nVidia NV10...
but with m own kernel I have only one message (from memory)
Openfirmware detect: nVidia....
or something like that.
So I look at the kernel configuration options and sure enougth
it looks like there is two places where you can enable the FB
one of them is using Openfirmware. So I disable that option
and recompile my kernel and reboot.....
Well no reboot it hangs somewhere during the hardware detection!!
I am giving up for today. I would welcome comments from people
who have this kind of configuration (I would think it is common
enougth) and how they had XFree working with a proper number
of colors, and also post their experiences if they don't.
Back to top
View user's profile Send private message
Forty-Two
n00b
n00b


Joined: 14 Jul 2003
Posts: 54

PostPosted: Thu Jan 22, 2004 4:05 am    Post subject: Reply with quote

I'm realy interested on how to get this working too. I have tinkered with the Xfree config files alot, I even have used the YDL ones. :P I never could get it to work, so I'm stuck with Yellow Dog for now. I would love gentoo though... some one- offer some advice! :?
_________________
"We appologize for the inconvenince"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jan 22, 2004 4:11 am    Post subject: Reply with quote

Forty-Two wrote:
I'm realy interested on how to get this working too. I have tinkered with the Xfree config files alot, I even have used the YDL ones. :P I never could get it to work, so I'm stuck with Yellow Dog for now. I would love gentoo though... some one- offer some advice! :?


Well I am just reading some past thread in which you have posted.
I will certainly post my solution if I find one. I think I may be on track,
but it is time for me to go home and I am a bit tired of fighting my
machine all day.
Well I think I just told a lie I must love to tinker with the bloody
thing even if it doesn't like me :lol:
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jan 22, 2004 9:38 pm    Post subject: Solved !!!! Reply with quote

In the end I stayed a bit later and actually solved the problem!

A recap of my config: iMac G4 (800MHz 7450) with a 15' monitor
a nVidia CeForce2 video card.
A lot of the stuff that I have posted before is incorect or the result
of bug.

I have the kernel 2.4.24 with the behn patch, I don't know
if it applies for other kernel, I didn't check.
In the kernel configuration I have the following checked:
in:
Console driver ->
Frame-Buffer support ->
support for FB device
nVidia Riva support (in the kernel not as a module)
apple "control" !
apple "platinum" ! not sure those
apple "valkyrie" ! are useful but
Chips 65550 display support ! they don't hurt.
IMS Twin Turbo-display support !
!! DON'T check, I repeat DON'T check "Open Firmware buffer device
support"
in:
Character devices->
/dev/agpgart
Apple Uninorth
I don't have any DRI, I am not sure of the status of DRI on the mac.

Don't forget to make clean before recompiling the kernel, I am sure
I got in some trouble because I forgot that.
In yaboot.conf make sure you don't have a line :
append="video=ofonly"
where "of" is for OpenFirmware, so you would be in heaps of trouble.
To configure X I then used Xeasyconf.
When presented with a choice for the video driver select nv (by default
it select fbdev, more on this later), then you move on to choice of
monitor, in my case TFT display, for the number of color I selected
24 bpp and after you have some other choices that are irrelevant for
us.
At one point I thought †hat I needed both fbdev and nv because the
generated config file included them both. It turns out that it is most
likely a bug! I will probably have to fill a bug with Xeasyconf.

[edit: after checking with bugzilla, this is a know issue, but doesn't
come from Xeasyconf itself as it is the data from an other program
passed to it that cause the problem. It should nevertheless be
mentionned somewhere in the documentation in my opinion.]

You should edit your XFree86Config-4 and coment the line:
driver: fbdev (or something like that).
I have to say that both nv and fbdev seems to work in 24 bpp, but
I think the nv driver complains less (it doesn't produce some error
messages that fbdev seems to).

The problem was coming from the fact that with both the OpenFirmware
FB and the RivaFB in the kernel it is likely that the OpenFirmware one
will be selected for some reason (may be it was because initially I had
rivaFB as a module which is probably not a good idea :oops:). The
capacities of the two FB are very different as a quick look with the comand "fbset -i" will reveal.

That's it! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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