i need to ensure that even if my executable C/C++ codes are copied to another raspberry Pi (dumping the SDcard), they will not run there.
what are the possible ways to do this.
Update:
adding "PI serial number" as a licence to run my code is a solution to prevent dumping and using my software on another PI, but i have also lots of installed/configured Linux services which run when Pi boots. is there any idea how to prevent them to run without licence?
/proc
is mounted, and it is unlikely you need to do anything before that (ie., you could use this as a dependency). Obviously you also need to check that this cannot be (easily) spoofed. This is a set of pi specific questions, whereas a generic "how to implement DRM" isn't (and tacking "on a Raspberry Pi" doesn't really change that).