Monday, September 13, 2010

Set up Development Environment

I'd like to set up a comfortable environment for editing, building, and debugging the apps running on the BeagleBoard, from my MacBook running OS X. I found this excellent post on the subject, describing remote debugging using NetBeans, a great IDE (I prefer it to Eclipse):
http://mechomaniac.com/BeagleboardDevelopmentWithNetbeans

The idea is to run the IDE on your host machine, and mount the BeagleBoard root filesystem via Samba, so you can build, run, and debug the code on the device. This is great, especially if your host machine is OS X, because you don't have to worry about cross compilation, Linux header files, etc.

It skipped a couple of steps, which are described here:


Set up Samba on BeagleBoard
  • Install samba on BeagleBoard with: sudo apt-get install samba
  • create a samba password for any user account with: sudo smbpasswd <username>
  • edit samba config (etc/samba/smb.conf) to map the root filesystem to a samba share:

[Root]
comment = Root
path = /
guest ok = no
browseable = yes
public = yes
writable = yes

Finally, restart samba: "sudo /etc/init.d/smbd restart"


Now you can connect to the samba share via the Finder, or with the NetBeans IDE. To connect via the Finder, launch the Finder; then select "Go -> Connect to Server ..."and enter "smb://<BeagleBoard IP address>" for the Server address.

No comments:

Post a Comment