@Y2Kot You can migrate the i2c-tool code from VIM3 to the SDK, and then disable the original i2c tool compilation. The details are modified as follows:
cp -rf vim3/external/i2c-tools code to vim4/external/
vim4_new/device/khadas$ git diff
--- a/common/core_amlogic.mk
+++ b/common/core_amlogic.mk
@@ -735,6 +735,12 @@ PRODUCT_PACKAGES += \
endif
+PRODUCT_PACKAGES += \
+ i2cget \
+ i2cset \
+ i2cdump \
+ i2cdetect
+
PRODUCT_PACKAGES += \
MtpService
vim4_new/external/toybox$ git diff
--- a/Android.bp
+++ b/Android.bp
@@ -351,10 +351,6 @@ cc_defaults {
"hwclock",
- "i2cdetect",
- "i2cdump",
- "i2cget",
- "i2cset",
"iconv",