imx6 UART issue on 5.4.24 kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 UART issue on 5.4.24 kernel

Jump to solution
2,208 Views
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 Kudos
Reply
1 Solution
2,185 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tee

 

usually dma is disabled for console port.

 

Best regards
igor

View solution in original post

0 Kudos
Reply
4 Replies
2,198 Views
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 Kudos
Reply
2,195 Views
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 Kudos
Reply
2,186 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tee

 

usually dma is disabled for console port.

 

Best regards
igor

0 Kudos
Reply
2,175 Views
zc_tee
Contributor III

Hi Igor

Thank you. I will proceed with disabling UART dma.

0 Kudos
Reply