Re: framebuffer/console question

Geert Uytterhoeven <[email protected]>
Newsgroups gmane.linux.uclinux.devel
Message-ID <CAMuHMdV5nmDJGYsdc36snkQOE_h6Zcs169PYmNBT-v328Hwhtg@mail.gmail.com>
Hi Angelo,

On Mon, Sep 17, 2012 at 2:29 PM, angelo <[email protected]> wrote:
> i have a working coldfire board, running uClinux. I connected a 128x64
> monochrome lcd on gpio, and written a framebuffer driver.

On gpio, so it's not memory mapped?

> From userspace i can now write on "/dev/fb0" and see some images properly.

Good.

> My question now is about console. Just for playing, i am trying to see the
> console output on the LCD. Even if very small, this should be possible, as i
> enabled the "console framebuffer" driver and some fonts.

OK.

> Once i booted linux, i try an echo "test" > /dev/console, something seems to
> happen on the screen, some pixels are cleared, but i don't see nothing
> similar to font chars.

Strange.

> I read fb and fbcon docs, but i couldn't find any document that explain if
> console fb driver (fbcon) can be used with some fb drivers only (like
> vesfb), or with any fb driver. So my question is: is it possible or i should
> add/create some additional driver ?

The console should work, assumed you provided the proper drawing operations
in your struct fb_ops. E.g. for simple packed monochrome:

        .fb_fillrect            = cfb_fillrect,
        .fb_copyarea            = cfb_copyarea,
        .fb_imageblit           = cfb_imageblit,

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.