How to use fdtput on i.MX Yocto

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

How to use fdtput on i.MX Yocto

ソリューションへジャンプ
1,323件の閲覧回数
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,227件の閲覧回数
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,192件の閲覧回数
jun_1
Contributor IV

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

0 件の賞賛
返信
1,297件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please use the following command.

$ sudo apt-get install device-tree-compiler

0 件の賞賛
返信
1,291件の閲覧回数
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,228件の閲覧回数
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 件の賞賛
返信