Before you can initiate a remote debugging session, you need to be sure you have set up the cross-development environment, toolchain, and sysroot. The Yocto Project Software Development Kit (SDK) Developer's Guide describes this process.