Greetings!!
We are working with the BeagleBoard revision C3, running the Angstrom Linux distribution
root@beagleboard:~# uname -a
Linux beagleboard 2.6.32 #3 PREEMPT Tue Jul 26 10:56:56 CEST 2011 armv7l unknown
We want to do:
A embedded coder from a Matlab model, to generate code on a Windows XP host, and then build it remotely on a BeagleBoard running Linux.
We have istalled:
Following the Matlab help, we have installed Java, Eclipse and the GNU Tool Chain on a windows host. In the same way we installed Plink (a command-line interface to the PuTTY back ends) and PSCP (an SCP client, i.e. command-line secure file copy) just a PuTTY utilities to do a comunication.
We have verifyed the GNU Tool Chain on Angstrom in the BeagleBoard.
And following the instruction from Matlab we have installed this software:
root@beagleboard:~# opkg install binutils
root@beagleboard:~# opkg install gcc
root@beagleboard:~# opkg install gcc-symlinks
root@beagleboard:~# opkg install cpp-symlinks
root@beagleboard:~# opkg install libstdc+±dev
root@beagleboard:~# opkg install make-dev
We did it:
Continuing with the project, I have made a simple model in Simulink, which I have attached (call_stats_block2.mdl), with the Target Preferences Block, and following the Matlab example I configured it to generate the code. The following lines are from the help of Matlab 2010a
“Help: Embedded code/User’s Guide/Embedded IDEs and Embedded Targets/Working with Linux Target/Example: Build Generated Code on a BeagleBoard Running Linux”
- Enter xmakefilesetup at the MATLAB command line. In the XMakefile Configuration dialog, set template to gmake and configuration to gcc_target.
- For the Target Preferences block in your model, set IDE/Toolchain to Eclipse, and set the Board to BeagleBoard ARM.
- In your model, open Simulation > Configuration Settings. Under Code Generation, select the IDE Link pane. Set Build format to Makefile, and set Build Action to Create_makefile.
4.Generate the code by pressing Ctrl B.
5.Use the load method to load the buildInfo.mat file from the project directory to the BeagleBoard. For example, at the MATLAB command prompt enter:
s =load(‘sumdiff_codegen_eclipseide\buildInfo.mat’)
- Use remoteBuild function to build the code on the BeagleBoard. For example, enter:
remoteBuild(s.buildInfo, ‘/home/root’, ‘144.212.110.193’, ‘root’, ‘password’, ‘C:\utils\putty’)
The GNU compiler toolchain automatically builds and runs the software on the BeagleBoard.
The problem:
The problem which I have is in the 6 step: “Error executing SSH command:The system can not find the path specified.”
Thanks in advance for any tips!!