linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Framebuffers and VC setup (via fbcon.c)
@ 2004-03-09 14:39 Jan-Benedict Glaw
  2004-03-10 18:15 ` James Simmons
  0 siblings, 1 reply; 4+ messages in thread
From: Jan-Benedict Glaw @ 2004-03-09 14:39 UTC (permalink / raw)
  To: linux-fbdev-devel

[-- Attachment #1: Type: text/plain, Size: 2124 bytes --]

Hi!

I've got some trouble getting a local FB console to work, maybe you've
got some suggestions...

This all happens on a VAX 4000 Model 46. I've already done the FB driver
(http://cvs.sourceforge.net/viewcvs.py/linux-vax/kernel-2.5/drivers/video/vaxlcgfb.c)
which basically works - cat'ting a properly prepared image to it
produces a proper display output.

Now I tried to bring CONFIG_VT and CONFIG_FRAMEBUFFER_CONSOLE into the
game. However, I end up with no working FB console. No penguin image, no
login prompt. This is because vc->vc_bottom ends up being 0, while it
should be at around 60.

Adding some printk()s and initcall_debug, here is what happens:

  tty_class_init()
  chr_dev_init()
    vaxlcgfb_init()
  tty_init()
    vty_init()
      fb_console_init()
			"fbcon_startup: mode: VAX LCGfb"
			"fbcon_startup: visual: 3"
			"fbcon_startup: res: 1280x1024-8"
			"Console: switching to frame buffer device"
  pty_init()
  fb_console_init()
  			"Console: switching to frame buffer device"
  ...
  vc_init():
  			currcons=0, rows=64, cols=160, clear=1
			then colors 0..15 are set

Two things look odd to me:

	- fb_console_init is called twice. Once from
	  tty_init() -> vty_init() -> fb_console_init(), second time
	  directly as a "normal" __init / module_init() call.
	- Despite the fact that (quite late in the boot process)
	  vc_init() is called (with correct looking arguments), I think
	  it should have been called quite some time earlier. With other
	  (PC based) graphic cards, the machine just switches to FB mode
	  after the FB driver is initialized. All further output is put
	  there. But not here...

I haven't yet really understood how FB and console code work together,
so it would be nice to have some hints there :)

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-11  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 14:39 Framebuffers and VC setup (via fbcon.c) Jan-Benedict Glaw
2004-03-10 18:15 ` James Simmons
2004-03-10 22:02   ` Jan-Benedict Glaw
2004-03-11  8:46     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).