Thursday, December 22, 2011

Eclipse for embedded development:- A re-visit


Eclipse for embedded development:- A re-visit



Today we shall see some finer points of using eclipse as a cross-compiler tool. Eclipse has almost everything in it to be the perfect compiler for all your needs but more manuals need to posted for meeting your specific requirement.




When i was going through my compilation i observed  the following problems:-
  1. <math.h> library is not compiled properly along with the program. This can be solved by using the flags -lm. Also -lpthread flag can be used when compiling multi-threaded application. 
      Eclipse screenshot-1

  2. Using gdb-debugger to test the program running on the target platform.
    This is one task where i faced a lot of challenges and i am quite happy i overcame it.This can be seen in the post here.
  3. Updating Eclipse plugins and software:-
    If you try to update eclipse behind a proxy server, you may face problems as it will show network failure. We cannot even connect to our remote target. This can be sorted out by manualling setting the network in preferences window. MAKE SURE YOU ONLY PROVIDE THE PROXY FOR HTTP ONLY AND NOT FOR SOCKS AND HTTP. Also add the device ip to the exception list.



Sunday, December 4, 2011

Alternnative for Xmanager in Ubuntu: Remmina

How to configure Remmina for remote login into using XDMCP protocol

  1. Install Remmina Client from software centre.
  2. Install install remmina-plugin-xdmcp plugin.
  3. Restart the machine
  4. Start Remmina
  5. Now from New select the XDMCP from dropbox.

For XDMCP connection to Ubuntu
1. XDM Configuration
1. Change runlevel to 5
Open/etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:
2. Enable XDMCP

 For GDM:

Open /etc/X11/gdm/gdm.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[xdmcp]
Enable=1

Open /etc/X11/gdm/gdm.conf and set the DisallowTCP entry to false in the [security] section as following.
[security]
DisallowTCP=false
2. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
3. Reboot the remote host and start Xmanager
# init 3; init 5