From: Michael Kaufmann <kaufmann@sohard.de>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Mirrored and shiftet fonts and logos
Date: Sun, 15 Dec 2002 15:33:23 -0100 [thread overview]
Message-ID: <200212151533.23376.kaufmann@sohard.de> (raw)
In-Reply-To: <004501c2a3ab$015a5eb0$ee3c078b@nb1>
On Saturday 14 December 2002 18:53, André Stierenberg wrote:
> i´m using the framebuffer driver pxafb for my board using the pxa processor
> (Accelent IDP). I have a 4 bit monocrom display. when I run the framebuffer
> I have some problems. The text in the console it in some way shifted. The
> two parts of the font are switched. The first 4 pixels are at dest+2 and
> the last 4 pixels at dest+0. And both parts are mirrored. Now I have done
> the following in fbcon_cfb4.c in function fbcon_cfb4_putcs:
>
> for (rows = fontheight(p), dest = dest0; rows-- ; dest += bytes) {
> fb_writew((nibbletab_cfb4[rv(*cdat) >> 4] & eorx) ^ bgx, dest+2);
> fb_writew((nibbletab_cfb4[rv(*cdat++) & 0xf] & eorx) ^ bgx, dest+0);
> }
>
>
> The function rv will reverse the bit order (bit 1 is bit 8, bit 2 is bit
> 7.. etc.).
> And i have swaped the destination offset.
> Now the characters are printed correctly. And in the linux logo, the
> pinguin, something is also wrong. It seems the some pixels are mirrored too
> whereas other pixels are correct.
>
> What could this be and in what way can i fix the problem?
i had exactly the same problem, but i fixed it on the hardware side.
I changed the databus between the video controller and the LCD.
My display has a 4bit width databus, so i exchanged D0 with D3 and D1 with D2.
Now i have a clear picture (logo, font, ...).
Bye
Michael
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
prev parent reply other threads:[~2002-12-15 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-14 19:53 Mirrored and shiftet fonts and logos André Stierenberg
2002-12-14 21:12 ` James Simmons
2002-12-15 0:30 ` Antonino Daplas
2002-12-15 16:33 ` Michael Kaufmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200212151533.23376.kaufmann@sohard.de \
--to=kaufmann@sohard.de \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.