tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wsfb and console ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 24, 2010, at 3:30 PM, Manuel Bouyer wrote:

Hi,
sys/dev/wsfb/genfb.c has this in genfb_attach():
       if (!console) {
aprint_normal_dev(&sc->sc_dev, "no console, unable to continue\n
");
               return -1;
       }

why is it so ?
I'd like to attach a framebuffer as wsfb, but the console
is on a serial device (and there's no keyboard/mouse at this time).

genfb requires firmware help to set up a framebuffer and it needs machine dependent code to tell it how to use that framebuffer ( basically address, geometry and colour depth ). On most machines the firmware will only setup one console device, be it a serial line, a framebuffer or whatever. That said, the check is probably overly strict and should go away, instead we should look for device properties and bail if we don't find what we need.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBTJ0TYMpnzkX8Yg2nAQJriAf+Jbpzz22P7qCejlNHLM2T/n2o6tGqSPTs
ZaVrnwwdwGW+VgPW8D99GZA1ltxgxrEIlAQjr/AmoLB7qv7/BVdyWaC07svgLSv5
Q98ehltokg2dt5Qw5GxMGXjmesGYJze1mlSr6k+2eYOHYd0636ipHaShgNFlLgx/
O581wilxilvsAXQz/MARM2Rq9xgY15NJMteSzP5GTf7g7DecN8tOgv3BJXQiTCWu
jOzpGqh8RuG1l1K6EqHCXV3d6VIJuj00k1cezgppwuvlM83W8Kk2ilG7yZsGPWL7
2YcuWLExQZFcnZO/czLlCzjnnw9biPuV7OFYBnWVozos5aFcXC7ZOQ==
=5MuG
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index