Missing ttymxc1 on iMX6ULL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Missing ttymxc1 on iMX6ULL

跳至解决方案
702 次查看
zmagday
Contributor I

I built image file for imx6ull using yocto project.

Settings are:

MACHINE = imx6ull14x14evk
DISTRO = fsl-imx-wayland

Image name is "core-image-base".

After downloading the image core-image-base-imx6ull14x14evk-20231019085452.rootfs.wic.zst on the board, I cannot find the /dev/ttymxc1. I need this to use UART2 pins.

Is there any step I should do in building the image to make sure UART2 (ttymxc1) is enabled?

0 项奖励
1 解答
687 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @zmagday,

I hope you are doing well.

In i.mx6ul EVK uart2 is used by the bluetooth driver, hence ttymxc1 is not generated.

Please try removing below node from uart2 in /arch/arm/boot/dts/imx6ul-14x14-evk.dtsi.

bluetooth {
       compatible = "nxp,88w8987-bt";
};

Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

0 项奖励
7 回复数
688 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @zmagday,

I hope you are doing well.

In i.mx6ul EVK uart2 is used by the bluetooth driver, hence ttymxc1 is not generated.

Please try removing below node from uart2 in /arch/arm/boot/dts/imx6ul-14x14-evk.dtsi.

bluetooth {
       compatible = "nxp,88w8987-bt";
};

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
667 次查看
zmagday
Contributor I

Hi @Dhruvit ,

I used the i.MX Yocto Project User's guide to build image.

Can I edit the dts file prior to building image using bitbake?

I cannot find this file on the build directory.

Do I need to use devtool to edit the device tree?

0 项奖励
662 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @zmagday,

I hope you are doing well.

dts file can be found at /build/tmp/work/<platfrom>-poky-linux/linux-imx/<git version>/git/arch/arm/boot/dts/

One can use devtool or devshell to edit this file.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
659 次查看
zmagday
Contributor I

I edited the file and commented out the bluetooth for uart2.

zmagday_0-1698040856775.png

 

But /dev/ttymxc1 is still not available.

 

I also tried using the devtool, I used the following procedure.

1. devtool modify linux-imx 

2. modify the device tree (<build dir>/workspace/workspace/sources/linux-imx/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi)

3. devtool build-image core-image-base

After doing the steps mentioned, I got this prompt:

Skipping recipe linux-imx as it doesn't produce a package with the same name

 

I always do bitbake -c clean core-image-base before doing another build.

0 项奖励
642 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @zmagday,

I hope you are doing well.

It seems that your changes are not reflected in your final build.

Please refer to 2.4 Using devtool to Patch the Kernel to make changes in linux-imx.

I was able to generate ttymxc1 on i.MX6ULL EVK by removing bluetooth node.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
636 次查看
zmagday
Contributor I

Hi @Dhruvit 

I am able to reflect the changes on my image by doing the following.

Without using devtool, I modified this dts file:
<build dir>/tmp/work-shared/imx6ull14x14evk/kernel-source/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi

The I recompiled and deployed using bitbake:
>> bitbake -c compile -f linux-imx
>> bitbake -c deploy linux-imx

After the compile and deploy, I built the image using bitbake.

Thank you very much for your help.

0 项奖励
633 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @zmagday,

If this issue is resolved, Please mark this case as solved.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励