* Mirrored and shiftet fonts and logos
@ 2002-12-14 19:53 André Stierenberg
2002-12-14 21:12 ` James Simmons
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: André Stierenberg @ 2002-12-14 19:53 UTC (permalink / raw)
To: linux-fbdev-devel
Hello,
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?
Andre
-------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Mirrored and shiftet fonts and logos
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
2 siblings, 0 replies; 4+ messages in thread
From: James Simmons @ 2002-12-14 21:12 UTC (permalink / raw)
To: André Stierenberg; +Cc: linux-fbdev-devel
Sounds like a endian issue. =Maybe the frmaebuffer and the processor are
different endianess.
On Sat, 14 Dec 2002, André Stierenberg wrote:
> Hello,
>
> 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?
>
> Andre
>
>
>
>
> -------------------------------------------------------
> 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/
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
>
-------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Mirrored and shiftet fonts and logos
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
2 siblings, 0 replies; 4+ messages in thread
From: Antonino Daplas @ 2002-12-15 0:30 UTC (permalink / raw)
To: André Stierenberg; +Cc: Linux Fbdev development list
On Sun, 2002-12-15 at 00:53, André Stierenberg wrote:
> 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?
>
The logo is drawn directly to the framebuffer by fbcon_show_logo() in
linux/drivers/video/fbcon.c.
In your case, (is this cfb4?), the code segment is enclosed by this
conditional:
#if defined(CONFIG_FBCON_CFB4)
...
#endif
You can apply the same reversal techniques to correct your problem.
Tony
-------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mirrored and shiftet fonts and logos
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
2 siblings, 0 replies; 4+ messages in thread
From: Michael Kaufmann @ 2002-12-15 16:33 UTC (permalink / raw)
To: linux-fbdev-devel
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-15 14:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).