How to use fdtput on i.MX Yocto

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

How to use fdtput on i.MX Yocto

Jump to solution
653 Views
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?

Labels (2)
0 Kudos
Reply
1 Solution
557 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
522 Views
jun_1
Contributor IV

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

0 Kudos
Reply
627 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use the following command.

$ sudo apt-get install device-tree-compiler

0 Kudos
Reply
621 Views
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 Kudos
Reply
558 Views
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 Kudos
Reply