Skip to contentSkip to conversation

XFree86-FBDev and /dev/fb0

DISCUSSION Jiri Kastner jr. 7 participants 10 messages Jan 4, 2000 – Jan 27, 2000 MIPS

lore
Share & tools
lore
#0 lore raw

I have installed XFree86-FBDev, but everytime, when I want to start X, I get message, that is missing /dev/fb0, and I dont know, how to make it (MAKEDEV dont know anything about fb* devices).

Jiri Kastner.

#1 lore raw
Quoted 6 lines · Jiri Kastner jr.

I have installed XFree86-FBDev, but everytime, when I want to start X, I get message, that is missing /dev/fb0, and I dont know, how to make it (MAKEDEV dont know anything about fb* devices).

Jiri Kastner.

You have to enable it in your kernel.

Signature · 6 lines
.--------1---------2---------3---------4---------5---------6---------7.
  Eric Kimminau           [email protected]       SGI Extranet Services
      Vox:650-933-6441  Fax:248-618-9178  VNET:6-933-6441  
              "I speak my mind and no one else's."
 "I am a bomb technician. If you see me running, try to keep up..."
                    http://support.sgi.com
#2 lore raw

Dne Ut, 04 jan 2000 jste napsal(a):

Quoted 1 line

You have to enable it in your kernel.

I have kernel with framebuffer (when I boot, I see linux-sgi.logo - 2.2.1)

I have no /dev/fb0.

Jiri Kastner

#3 lore raw
Quoted 7 lines · Jiri Kastner jr.

Dne Ut, 04 jan 2000 jste napsal(a):

Quoted 1 line

You have to enable it in your kernel.

I have kernel with framebuffer (when I boot, I see linux-sgi.logo - 2.2.1)

I have no /dev/fb0.

You probably need to create the device node, then. Look at the man page for mknod, and Documentation/devices.txt in your kernel source tree, for further info.

-andy

Signature · 2 lines
Andy Isaacson  http://web.mr-happy.com/~adisaacs/   Fight Spam, join CAUCE:
[email protected] [email protected] [email protected]   www.cauce.org
#4 lore raw
Quoted 7 lines · Andy Isaacson
Quoted 3 lines

I have kernel with framebuffer (when I boot, I see linux-sgi.logo - 2.2.1)

I have no /dev/fb0.

You probably need to create the device node, then. Look at the man page for mknod, and Documentation/devices.txt in your kernel source tree, for further info.

That alone won't help.

A system with the XL graphics will never have a real working framebuffer.

Ralf

#5 lore raw
Quoted 6 lines · Ralf Baechle
Quoted 4 lines · Andy Isaacson
Quoted 3 lines

I have kernel with framebuffer (when I boot, I see linux-sgi.logo - 2.2.1)

I have no /dev/fb0.

Quoted 7 lines
Quoted 3 lines

You probably need to create the device node, then. Look at the man page for mknod, and Documentation/devices.txt in your kernel source tree, for further info.

That alone won't help.

A system with the XL graphics will never have a real working framebuffer.

Since the real graphics framebuffer is in memory which is not addressable
by the processor, the only way to fake a CPU-addressable framebuffer is to reserve a chunk of main memory, and then DMA the contents into the real framebuffer when the CPU-addressable framebuffer is changed (or every vertical refresh interval, if there is no way to tell when the buffer changes). You could probably play with the PTE valid and mod bits to detect when pages are changed. It would in any case be relatively inefficient compared to using the graphics pipeline as intended, since uncached writes to the graphics pipeline are pretty cheap (better than cached or uncached writes to large areas of main memory).

#6 lore raw
Quoted 13 lines · William J. Earl
Quoted 1 line · Ralf Baechle

A system with the XL graphics will never have a real working framebuffer.

Since the real graphics framebuffer is in memory which is not addressable
by the processor, the only way to fake a CPU-addressable framebuffer is to reserve a chunk of main memory, and then DMA the contents into the real framebuffer when the CPU-addressable framebuffer is changed (or every vertical refresh interval, if there is no way to tell when the buffer changes). You could probably play with the PTE valid and mod bits to detect when pages are changed. It would in any case be relatively inefficient compared to using the graphics pipeline as intended, since uncached writes to the graphics pipeline are pretty cheap (better than cached or uncached writes to large areas of main memory).

XFree86 has builtin support for this mode of operation in the latest development snapshot (3.9.17). They call it ShadowFB. Of course that would only work in X, not on console. Apparently it's fairly easy to write a driver that supports ShadowFB; all you have to be able to do is update a rectangular area of the screen on demand.

-andy

Signature · 2 lines
Andy Isaacson  http://web.mr-happy.com/~adisaacs/   Fight Spam, join CAUCE:
[email protected] [email protected] [email protected]   www.cauce.org
#7 lore raw
Quoted 15 lines · William J. Earl
Quoted 13 lines
Quoted 1 line · Ralf Baechle

A system with the XL graphics will never have a real working framebuffer.

Since the real graphics framebuffer is in memory which is not addressable
by the processor, the only way to fake a CPU-addressable framebuffer is to reserve a chunk of main memory, and then DMA the contents into the real framebuffer when the CPU-addressable framebuffer is changed (or every vertical refresh interval, if there is no way to tell when the buffer changes). You could probably play with the PTE valid and mod bits to detect when pages are changed. It would in any case be relatively inefficient compared to using the graphics pipeline as intended, since uncached writes to the graphics pipeline are pretty cheap (better than cached or uncached writes to large areas of main memory).

Quoted 5 lines

XFree86 has builtin support for this mode of operation in the latest development snapshot (3.9.17). They call it ShadowFB. Of course that would only work in X, not on console. Apparently it's fairly easy to write a driver that supports ShadowFB; all you have to be able to do is update a rectangular area of the screen on demand.

Yeah, and that's what I tried to get working but I ran into other problems with the dynamic loading of X modules and stuff so I never got the chance to concentrate on the driver. I have the early stages of a driver around though.

Ulf

#8 lore raw
Quoted 9 lines · Ulf Carlsson
Quoted 5 lines

XFree86 has builtin support for this mode of operation in the latest development snapshot (3.9.17). They call it ShadowFB. Of course that would only work in X, not on console. Apparently it's fairly easy to write a driver that supports ShadowFB; all you have to be able to do is update a rectangular area of the screen on demand.

Yeah, and that's what I tried to get working but I ran into other problems with the dynamic loading of X modules and stuff so I never got the chance to concentrate on the driver. I have the early stages of a driver around though.

You're probably the first person to try the XFree86 loader code on MIPS so it's not suprising you had trouble. Try putting "#define DoLoadableServer NO" in xc/config/cf/host.def; that way it'll not try to use the loader at all.

-andy

Signature · 2 lines
Andy Isaacson  http://web.mr-happy.com/~adisaacs/   Fight Spam, join CAUCE:
[email protected] [email protected] [email protected]   www.cauce.org
#9 lore raw
In reply to Ulf Carlsson
Quoted 5 lines · On 06-Jan-2000 Ulf Carlsson wrote:

Yeah, and that's what I tried to get working but I ran into other problems with
the dynamic loading of X modules and stuff so I never got the chance to concentrate on the driver. I have the early stages of a driver around though.

And is this code available anywhere? I noticed that the FTP and web servers are terribly out of date. Is everyone keeping their own separate copies of code for the MIPS/Indy platform, or am I just not looking in the right places?

Signature · 4 lines
M. Adam Kendall         |  
[email protected]           |  "There's never enough time to do
http://kha0s.org        |  all the nothing you want."
                        |   --Bill Watterson (Calvin and Hobbes)