imx6 UART issue on 5.4.24 kernel

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 UART issue on 5.4.24 kernel

ソリューションへジャンプ
2,209件の閲覧回数
zc_tee
Contributor III

Hi all,

I am porting my I.MX6 platform kernel from 4.9.11 to 5.4.24, and face some weird issue on the UART port

after i port the code and my device tree, I manage to boot up my machine. Then I tried to read some data from another subcpu which is connected to ttymxc2. 

In console, I tried to cat /dev/ttymxc2, but it returns me with some text that seems like system related information as below:

zc_tee_0-1603083379260.png

I tried to do a stty then cat, it returns me with another type of information, which seems to be like cat /proc/filesystems plus something else as below:

zc_tee_1-1603083564920.png

I cannot understand why is this happening. It seems like the ttymxc device is mixed up with /proc/ information. Can anybody advise? 

One thing is that the system is working fine in kernel 4.9.11. Only change is changing the kernel from 4.9.11 to 5.4.24.

By the way, i am using same bootloader 2017.03 for both the 4.9.11 and 5.4.24 kernel. I suppose 5.4.24 kernel can work well with 2017.03 uboot?

Thank you.

Regards,

Tee

 

 

0 件の賞賛
返信
1 解決策
2,186件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Tee

 

usually dma is disabled for console port.

 

Best regards
igor

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,199件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Tee

 

you are right, reason may be in uboot, recommended to use

uboot version (v2020.04) as listed in Release Notes of each BSP described on

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=imx_v2020.04_5.4.24_2.1.0

 

Best regards
igor

0 件の賞賛
返信
2,196件の閲覧回数
zc_tee
Contributor III

Hi Igor,

After doing some searching online, i tried to disable the serial port dma in device tree

zc_tee_0-1603092574958.png

Then my machine's UART port works.

I think i will disable the UART dma for now and test further. Do you forsee any issue disabling the UART's dma?

Regards,

Tee

 

 

0 件の賞賛
返信
2,187件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Tee

 

usually dma is disabled for console port.

 

Best regards
igor

0 件の賞賛
返信
2,176件の閲覧回数
zc_tee
Contributor III

Hi Igor

Thank you. I will proceed with disabling UART dma.

0 件の賞賛
返信