RE: jumbled characters on serial port

From: Jean-Denis Boyer <hidden>
Date: 2003-06-27 15:47:55

I would suggest you write yourself a kind of "safe_printk" (over printk) that filters characters that can not be displayed, and then use that function in your code. It is, IMHO, easier to fix the problem there than losing the tty and/or the terminal emulator. You can even hack directly the printk function (kernel/printk.c:412) and add a filter just after the call to vsnprintf.

Regards,
--------------------------------------------
 Jean-Denis Boyer, Software Designer
 M5T Centre d'Excellence en Télécom Inc.
 4283 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-3972 x241
--------------------------------------------

-----Original Message-----
From: Omanakuttan [mailto:<redacted>]
Sent: 27 juin, 2003 11:31
To: <redacted>
Subject: jumbled characters on serial port



Hi,
We have developed MCC drivers for mpc8260. For debugging the driver we
have put several printk in the code. Since the data is not
ascii all the
time, sometimes the screen gets fully jumbled characters. I understand
that printing some binary data causes this.
We are using minicom and busybox .60.5. If anybody knows how
to get the
characters back, please advise.
We tried closing down the minicom window and restarting minicom. This
does not help. More over we are getting jumbled chars, not secondary
font. (if I were running bash, i would have run `reset`. But I never
faced this in i386)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help