We need I2C tools and USB tools.

To have these tools in your final RootFS, execute petalinux-config -c rootfs.
Find these options, enable them.

Also, enable or disable options, do what you like.