Re: vga framebuffer for new architecture
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2004-06-14 13:17:57
On Mon, 14 Jun 2004, [iso-8859-1] Suresh Chandra Mannava wrote:
We have struck with the following problem. We will make a summary of it. Please help us in this regard. We are working with a 2.6 MHZ(mega hz) FPGA processor. We have successfully ported linux onto the system.Now we are porting generic frame buffer (vga16fb) onto the processor. We have ATIRAGE XL graphics card on the pci slot. Please help us for the following queries. 1) Is it possible to make the generic VGA16 FrameBuffer work on a such a slow 2.6MHZ(Mega HZ) processor?
Sure, why not?
2) Are there any Hardware dependencies specific to new platform for VGA16 Generic Frame buffer?
You have to execute (or emulate) the BIOS code of your graphics card to initialize it to VGA text mode before you can use vga16fb.
3)What is the function of visual_init in char/console.c?
To initialize the hardware-dependent part of the console driver (through sw->con_init()).
4)whether the loop inside take_over_console which executes 64 times is really needed?
Yes, the hardware-dependent part of the console driver is aware of the virtual consoles, so it needs to initialize all of them.
(register_framebuffer passes a value of 63 to last_console variable). In intel platform we found that it is ok to execute the loop only once.
Really? What if you switch to a different virtual console?
We found that in our case the loop is executing only once even though the loop count is 64.It seems to be hanging somewhere near fbcon_init in video/fbcon.c called from visual_init.
I see no way (in 2.4.26) to escape from the loop, though.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504