Книга: Embedded Linux development using Eclipse

5.4.4 Target Configuration

5.4.4 Target Configuration

There are a couple of files that need to be edited on the target to support NFS file mounting. The equivalent of /etc/sysconfig/network-scripts/ifcfg-eth0 needs to be modified to specify a fixed IP address. The exact location, name, and layout of this file will vary from board to board. On the Intellimetrix board it’s /etc/network/interfaces. I usually assign 192.168.1.50 to the target board.

The other file that needs modification is the last script executed by the init process when the system boots. Again, this will vary from board to board. On the Intellimetrix board it’s /etc/init.d/rcS. Add the following line at the end of that file:

/bin/mount –o nolock 192.168.1.2:/home/<your_home_name>/workspace /home

On a PC target /etc/rc.d/rc.local is a good place to add this.

This causes the workspace/ sub-directory under your home directory to appear as /home on the target using the Network File System.

In order to debug on the target, you’ll need a program called gdbserver compiled for the target and loaded on the target’s file system, preferably someplace visible from the PATH environment variable. gdbserver runs the program under test and communicates over the network with GDB running under Eclipse on the host.

Оглавление книги


Генерация: 0.028. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз