Any way to restrict USB access of K230 Micropython

Viewed 74

重现步骤
Using micropython based SDK for K230. By connecting USB it is possible to access SD card folder which have main.py and .kmodel files.
Is it possible to restrict this access?

期待结果和实际结果

软硬件版本信息

错误日志

尝试解决过程

补充材料

2 Answers

You can disable mtp in rtsmart. then can not access files over usb.

You can follow this document, https://www.kendryte.com/k230_canmv/en/main/userguide/how_to_build.html, before build, change the board configure with make rtsmart-menuconfig, find MTP, disable it.

Can you please guide me to disable mtp?

Getting erroron make rtsmart-menuconfig

/bin/sh: 9: scons: not found
make[1]: *** [Makefile:201: menuconfig] Error 127
make: *** [Makefile:93: rtsmart-menuconfig] Error 2

Also getting message saying canmv not found on make k230_canmv_lckfb_defconfig

No change to .config

canmv does not exist, updating CONFIG_SDK_ENABLE_CANMV in .config
Apply k230_canmv_lckfb_defconfig success

Which exact option I need to disable?