How can we create custom commands in u-boot using yocto project ?
Ex .-> in uboot if I enter=>verify_pmic -> it should read all the important registers related to that pmic and log into one txt file .
I am using below u-boot version and built by yocto project .
U-Boot 2018.03-4.14.98-2.3.0+g0e20792 (Mar 29 2020 - 18:26:39 +0000)
arm-poky-linux-gnueabi-gcc (GCC) 7.3.0
GNU ld (GNU Binutils) 2.30.0.20180208
Hi Vasim Akram,
You can add your custom command in u-boot using U_BOOT_CMD() macro in U-Boot source. You can take the reference of i2c command to implement your command in u-boot source.
Regards,
Radhika