* Re: help on linux-mipsel frame buffer
2001-07-19 13:41 Fuxin Zhang
@ 2001-07-18 0:01 ` James Simmons
2001-07-18 7:18 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: James Simmons @ 2001-07-18 0:01 UTC (permalink / raw)
To: Fuxin Zhang; +Cc: linux-mips@oss.sgi.com
> First I try the vga16 frame buffer driver,but i can only get
> some black/white strips on the screen.(after made some changes
> to the source,most important one is use pci to find and set the
> vbase address).
It is hardwired into the vga16fb driver the memory region (0xA000). This
is very wrong on non intel platforms. So that drivers pretty much doesn't
work on anything else.
> Then I try to use vesa driver. This one use some vgabios code
> I commented out the x86 relevant codes and made it compiled,
The VESA framebuffer is also intel specific. It uses the BIOS to setup the
video mode. This is done long before the cpu is placed into protect mode.
> Finally I back port the Riva TNT frame buffer code to 2.2,the result
> is the same as the vesa driver.
Hum. Try a cat /dev/urandom > /dev/fb0. If you don't see anything then the
virtual memory address of the framebuffer is wrong. It could be that the
physical address is wrong (smem_start). Go to the fbdev website
(http://www.linux-fbdev.org) and download a tool called fbtest and give it
a try.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help on linux-mipsel frame buffer
2001-07-18 0:01 ` James Simmons
@ 2001-07-18 7:18 ` Geert Uytterhoeven
0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2001-07-18 7:18 UTC (permalink / raw)
To: James Simmons; +Cc: Fuxin Zhang, linux-mips@oss.sgi.com
On Tue, 17 Jul 2001, James Simmons wrote:
> > First I try the vga16 frame buffer driver,but i can only get
> > some black/white strips on the screen.(after made some changes
> > to the source,most important one is use pci to find and set the
> > vbase address).
>
> It is hardwired into the vga16fb driver the memory region (0xA000). This
> is very wrong on non intel platforms. So that drivers pretty much doesn't
> work on anything else.
Does your firmware initialize the VGA card to VGA text mode? Vga16fb requires
this initialization, which is normally done by the VGA BIOS. An x86
BIOS-emulator may be your friend.
> > Then I try to use vesa driver. This one use some vgabios code
> > I commented out the x86 relevant codes and made it compiled,
>
> The VESA framebuffer is also intel specific. It uses the BIOS to setup the
> video mode. This is done long before the cpu is placed into protect mode.
Similar issue here.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: help on linux-mipsel frame buffer
[not found] <200107181154.NAA16473@mail.sonytel.be>
@ 2001-07-18 12:37 ` Geert Uytterhoeven
2001-07-20 18:18 ` Jun Sun
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2001-07-18 12:37 UTC (permalink / raw)
To: Fuxin Zhang; +Cc: linux-mips@oss.sgi.com
On Wed, 18 Jul 2001, Fuxin Zhang wrote:
> 2001-07-18 09:18:00£º
> >On Tue, 17 Jul 2001, James Simmons wrote:
> >> > First I try the vga16 frame buffer driver,but i can only get
> >> > some black/white strips on the screen.(after made some changes
> >> > to the source,most important one is use pci to find and set the
> >> > vbase address).
> >>
> >> It is hardwired into the vga16fb driver the memory region (0xA000). This
> >> is very wrong on non intel platforms. So that drivers pretty much doesn't
> >> work on anything else.
> >
> >Does your firmware initialize the VGA card to VGA text mode? Vga16fb requires
> >this initialization, which is normally done by the VGA BIOS. An x86
> >BIOS-emulator may be your friend.
> Cound you give me a link to such a emulator?My firmware doesn't initialize VGA card.That seems the real problem.
I don't know whether it exists for Linux/MIPS yet.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 8+ messages in thread
* help on linux-mipsel frame buffer
@ 2001-07-19 13:41 Fuxin Zhang
2001-07-18 0:01 ` James Simmons
0 siblings, 1 reply; 8+ messages in thread
From: Fuxin Zhang @ 2001-07-19 13:41 UTC (permalink / raw)
To: linux-mips@oss.sgi.com
hello,linux-mips gurus
Recently I am trying to make frame buffer work on my P6032 board
(from Algorithmics).I have a cirrus logic 5430,a RIVA TNT2 and a
Trident 3dImage9750 on hand.The linux kernel I am using is 2.2.14
( mipsel 1.05? modified by Algorithmics.
BTW,could someone tell me how to access the mips tree and
what the version scheme for mipsel? I read the mips-howto.
but although i can login to the cvs server of oss.sgi.com
i could not find out where is the kernel. "cvs get linux"
responded with "cannot find module 'linux'"
I am new to mips world.
)
and the distribution is Hardhat downloaded from oss.sgi.com
First I try the vga16 frame buffer driver,but i can only get
some black/white strips on the screen.(after made some changes
to the source,most important one is use pci to find and set the
vbase address). I can use tty driver,because I can switch consoles
using alt-f? on the keyboard attached to the board and even login
and reboot the machine: just no readable display.
Then I try to use vesa driver. This one use some vgabios code
I commented out the x86 relevant codes and made it compiled,(again
use pci_find_device to find video memory address,and tweak the make
file to force vgacon use vesa driver). But the result is a blank
screen.The fb driver is certainly on: I can copy to/from /dev/fb0.
but with no visual effect.
Finally I back port the Riva TNT frame buffer code to 2.2,the result
is the same as the vesa driver.
I suspect that the pci memory map is somewhat broken,but I checked
the source code and the bonito(P6032 north bridge) manual and found
no obvious flaw.
Where could i be wrong?Is there anybody has some experience with
frame buffer for mips?
Any help will be great appreciated.
Regards
Fuxin Zhang
fxzhang@ict.ac.cn
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help on linux-mipsel frame buffer
2001-07-18 12:37 ` Re: help on linux-mipsel frame buffer Geert Uytterhoeven
@ 2001-07-20 18:18 ` Jun Sun
2001-07-21 10:53 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Jun Sun @ 2001-07-20 18:18 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Fuxin Zhang, linux-mips@oss.sgi.com
Geert Uytterhoeven wrote:
>
> On Wed, 18 Jul 2001, Fuxin Zhang wrote:
> > 2001-07-18 09:18:00£º
> > >On Tue, 17 Jul 2001, James Simmons wrote:
> > >> > First I try the vga16 frame buffer driver,but i can only get
> > >> > some black/white strips on the screen.(after made some changes
> > >> > to the source,most important one is use pci to find and set the
> > >> > vbase address).
> > >>
> > >> It is hardwired into the vga16fb driver the memory region (0xA000). This
> > >> is very wrong on non intel platforms. So that drivers pretty much doesn't
> > >> work on anything else.
> > >
> > >Does your firmware initialize the VGA card to VGA text mode? Vga16fb requires
> > >this initialization, which is normally done by the VGA BIOS. An x86
> > >BIOS-emulator may be your friend.
> > Cound you give me a link to such a emulator?My firmware doesn't initialize VGA card.That seems the real problem.
>
> I don't know whether it exists for Linux/MIPS yet.
>
> Gr{oetje,eeting}s,
>
> Geert
FYI, without the emulator, I have successfully run Matrox Millinium PCI card
from SGI CVS tree.
With some patches, I have got MQ200 and Voodoo3 2000/3000 working as well. I
don't know if any other cards work on MIPS.
For voodoo3 patch, look at http://www.medex.hu/~danthe/tdfx/.
Jun
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help on linux-mipsel frame buffer
2001-07-20 18:18 ` Jun Sun
@ 2001-07-21 10:53 ` Geert Uytterhoeven
2001-07-21 15:25 ` Ralf Baechle
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2001-07-21 10:53 UTC (permalink / raw)
To: Jun Sun; +Cc: Fuxin Zhang, linux-mips@oss.sgi.com
On Fri, 20 Jul 2001, Jun Sun wrote:
> Geert Uytterhoeven wrote:
> > On Wed, 18 Jul 2001, Fuxin Zhang wrote:
> > > 2001-07-18 09:18:00£º
> > > >On Tue, 17 Jul 2001, James Simmons wrote:
> > > >> > First I try the vga16 frame buffer driver,but i can only get
> > > >> > some black/white strips on the screen.(after made some changes
> > > >> > to the source,most important one is use pci to find and set the
> > > >> > vbase address).
> > > >>
> > > >> It is hardwired into the vga16fb driver the memory region (0xA000). This
> > > >> is very wrong on non intel platforms. So that drivers pretty much doesn't
> > > >> work on anything else.
> > > >
> > > >Does your firmware initialize the VGA card to VGA text mode? Vga16fb requires
> > > >this initialization, which is normally done by the VGA BIOS. An x86
> > > >BIOS-emulator may be your friend.
> > > Cound you give me a link to such a emulator?My firmware doesn't initialize VGA card.That seems the real problem.
> >
> > I don't know whether it exists for Linux/MIPS yet.
>
> FYI, without the emulator, I have successfully run Matrox Millinium PCI card
> from SGI CVS tree.
That's because matroxfb is one of the few frame buffer devices that know how to
initialize uninitialized cards.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help on linux-mipsel frame buffer
2001-07-21 10:53 ` Geert Uytterhoeven
@ 2001-07-21 15:25 ` Ralf Baechle
2001-07-22 9:55 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2001-07-21 15:25 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Jun Sun, Fuxin Zhang, linux-mips@oss.sgi.com
On Sat, Jul 21, 2001 at 12:53:52PM +0200, Geert Uytterhoeven wrote:
> That's because matroxfb is one of the few frame buffer devices that know how
> to initialize uninitialized cards.
Is that true for all of the Matrox PCI cards or which would be your
recommendation?
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help on linux-mipsel frame buffer
2001-07-21 15:25 ` Ralf Baechle
@ 2001-07-22 9:55 ` Geert Uytterhoeven
0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2001-07-22 9:55 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Jun Sun, Fuxin Zhang, linux-mips@oss.sgi.com
On Sat, 21 Jul 2001, Ralf Baechle wrote:
> On Sat, Jul 21, 2001 at 12:53:52PM +0200, Geert Uytterhoeven wrote:
> > That's because matroxfb is one of the few frame buffer devices that know how
> > to initialize uninitialized cards.
>
> Is that true for all of the Matrox PCI cards or which would be your
> recommendation?
I think so.
I know not all features are supported for the latest Matrox cards, but these
are AGP only anyway.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-07-22 9:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200107181154.NAA16473@mail.sonytel.be>
2001-07-18 12:37 ` Re: help on linux-mipsel frame buffer Geert Uytterhoeven
2001-07-20 18:18 ` Jun Sun
2001-07-21 10:53 ` Geert Uytterhoeven
2001-07-21 15:25 ` Ralf Baechle
2001-07-22 9:55 ` Geert Uytterhoeven
2001-07-19 13:41 Fuxin Zhang
2001-07-18 0:01 ` James Simmons
2001-07-18 7:18 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox