jumbled characters on serial port

Jean-Denis Boyer jdboyer at m5t.com
Sat Jun 28 01:47:55 EST 2003

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.

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

> -----Original Message-----
> From: Omanakuttan [mailto:omanakuttan at tataelxsi.co.in]
> Sent: 27 juin, 2003 11:31
> To: linuxppc-embedded at lists.linuxppc.org
> 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/

More information about the Linuxppc-embedded mailing list