root@colibri-imx7:~# depmod
depmod: ERROR: could not open
directory
/lib/modules/4.1.39+gba2f75f: No such
file or directory
depmod: FATAL: could not search
modules: No such file or directory
or
root@colibri-imx7:~# modprobe imx_rpmsg_tty
modprobe: FATAL: Module imx_rpmsg_tty
not found in directory
/lib/modules/4.1.39+gba2f75f
The cause is directory path : /lib/modules/4.1.39+gba2f75f is wrong.
The correct directory path is : /lib/modules/4.1.39-2.7.2+gba2f75f. -2.7.2 is missing
When deploying custom kernel you also need to compile and deploy modules e.g. as explained in the following section of this article on our developer website.
Yes, you forgot the part about deploying the Linux kernel modules as well just like my two previous speakers @max.tx and @dominik.tx already pointed out.