How to use fdtput on i.MX Yocto

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

How to use fdtput on i.MX Yocto

跳至解决方案
1,345 次查看
jun_1
Contributor IV

I have i.MX 8M Mini EVK which runs Linux 6.6.23_2.0.0.
To configure the SDIO Interface, I run the following command:

fdtput /run/media/boot-mmcblk2p1/imx8mm-evk.dtb /soc@0/bus@30800000/mmc@30b50000 no-1-8-v

However, I got “-sh: fdtput: command not found". I also run “sudo apt-get install device-tree-compile” to install fdtput command, and I got “Building dependency tree... Done E: Unable to locate package fdtput” error.

How can I use fdtput command?

标签 (2)
0 项奖励
回复
1 解答
1,249 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The rootfs provided in i.MX Linux SDK 6.6.23_2.0.0 is not Ubuntu rootfs, so the command "sudo apt-get install device-tree-compiler" doesn't work.

You could add "dtc" to rebuild rootfs in Yocto build environment.

I built attached "dtc" binaries file for you, please copy the attached tar ball to your target board directly.

# tar -xzvf image.tar.gz

# cp image/usr/lib/* /usr/lib/

# cp ./image/usr/bin/fdtput /usr/bin/

# fdtput

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,214 次查看
jun_1
Contributor IV

Thank you. I successed to execute the command using the above method.

0 项奖励
回复
1,319 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please use the following command.

$ sudo apt-get install device-tree-compiler

0 项奖励
回复
1,313 次查看
jun_1
Contributor IV
Thank you for your reply.
I tried the following command, and I got “Building dependency tree... Done E: Unable to locate package fdtput” error; it was a copy and paste mistake.

$ sudo apt-get install device-tree-compiler
0 项奖励
回复
1,250 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The rootfs provided in i.MX Linux SDK 6.6.23_2.0.0 is not Ubuntu rootfs, so the command "sudo apt-get install device-tree-compiler" doesn't work.

You could add "dtc" to rebuild rootfs in Yocto build environment.

I built attached "dtc" binaries file for you, please copy the attached tar ball to your target board directly.

# tar -xzvf image.tar.gz

# cp image/usr/lib/* /usr/lib/

# cp ./image/usr/bin/fdtput /usr/bin/

# fdtput

0 项奖励
回复