Check out these documentation pages for building and running an executable on BeageBone hardware:
- Build and Run Executable on BeagleBone Black Hardware: https://www.mathworks.com/help/ecoder/beaglebone/ug/create-and-run-an-application-on-beaglebone_black-hardware.html
- Build and Run an Executable on BeagleBone Blue Hardware: https://www.mathworks.com/help/rtw/beagleboneblue/ug/build-and-run-executable-on-beaglebone-blue-hardware.html
- Simulink Coder Support Package and BeagleBone Blue: https://www.beagleboard.org/projects/simulink-coder-support-package-and-beaglebone-blue