Re: [iKGT] A problem about serial debugging iKGT
by Wang, Kai Z
Hi Tony,
The root cause of this behavior is the initialization of serial port during linux kernel boot. In xmon init, we configured the serial port to:
・ Baudrate: 115200
・ Data: 8bit
・ Stop bit:1
During Linux boot, it will re-configure serial port to its default value.
There’s 2 ways to resolve this:
1. After login, open the terminal with minicom and set the “BPS/Par/Bits” to “115200 8N1”.
2. If you want the log from boot (before login), you should configure the serial port correctly in grub for the kernel command, like:
kernel /boot/ vmlinuz-2.6.18-92.el5 ro root=LABEL=/ console=tty0 console=ttyS0,115200n8
Solution 1 is simple. Solution 2 can got log before login.
Hope it can help you.
Best Regard
Kai
From: Intel-KGT [mailto:mailman-bounces@lists.01.org] On Behalf Of ???
Sent: Thursday, March 17, 2016 12:01 AM
To: intel-kgt-owner(a)lists.01.org<mailto:intel-kgt-owner@lists.01.org>
Subject: A problem about serial debugging iKGT
Dear iKGT Designer:
I connected my devlopment computer(with iKGT installed) and my laptop through a USB-Serial cable.
The debug info can be print on my laptop during the boot process like this:
[cid:image001.png@01D180FD.43733540]
But after login the linux on my development computer, the info on the serial port turn to this:
[cid:image002.png@01D180FD.43733540]
I checked the source code. Informations from MON_LOG() is well,but which from ikgt_printf() is unreadable codes.
But both of them use mon_vprintf() to print into serial buffer.
Why it shows like that?
How can I get the info from ikgt_printf()?
I am looking forward to your kindly reply!thx~
Tony Liu
Renmin University of China
6 years, 5 months
iKGT debug with USB-Serial
by 刘旭晨
Hi~
I connected my devlopment computer(with iKGT installed) and my laptop through a USB-Serial cable.
The debug info can be print on my laptop during the boot process like this:
But after login the linux on my development computer, the info on the serial port turn to this:
I checked the source code. Informations from MON_LOG() is well,but which from ikgt_printf() is unreadable codes.
But both of them use mon_vprintf() to print into serial buffer.
Why it shows like that?
How can I get the info from ikgt_printf()?
Tony Liu
Renmin University of China
6 years, 5 months
iKGT debug with USB-Serial
by 刘旭晨
Hi
I connected my devlopment computer(with iKGT installed) and my laptop through a USB-Serial cable.
The debug info can be print on my laptop during the boot process like this:
But after login the linux on my development computer, the info on the serial port turn to this:
I checked the source code. Informations from MON_LOG() is well,but which from ikgt_printf() is unreadable codes.
But both of them use mon_vprintf() to print into serial buffer.
Why it shows like that?
How can I get the info from ikgt_printf()?
Tony Liu
Renmin University of China
6 years, 5 months