1.1 DHCP server on Ubuntu 9.04
1.1.1 setup Interface
- Figure out which Ethernet port you'll use to connect your PC
To the target board and configure it to use a static IP of 10.0.0.1. be
Sure you don't get mixed up and configure the wrong port! Connect
Correct port directly to the target board withCrossover
Ethernet connector.
- On the PC, properly configure the Ethernet port that's
Connected to the target board. You have two choices: configure
Ubuntu GUI interface, "Network Manager" to do it, or disable "Network
Manager "and configure the system directly using configuration files.
Note that the target board can bring up and drop the Ethernet
Connection repeatedly, so it's important to make sure the proper
Ethernet configuration is automatically restored
-
- Using Network Manager:
- Open it with system-> preferences-> Network Connections
- If Ethernet port connected to the target board isn't listed, add it with the Add button, otherwise select it and edit it.
- Choose the 'ipv4 settings' Tab
- Select 'manual' from the 'method' pull down menu
- In the 'address' box, select the top row.
- Fill in the 'IP address' and 'netmask' fields with 10.0.0.1, and 255.255.255.0 respectively
- Click the 'application' button
-
- Alternatively, disable the network manager and use the config files in/etc/networks
- Turn Off NetworkManager
- Change the file permissions of/etc/init. d/NetworkManager so it doesn' t restart on a reboot
- Edit the file/etc/Network/interfaces to use DHCP for the PC
Connection to the company network, and manually for the Ethernet port
Connected to the target board.
- Restart networking with/etc/init. d/networking restart
-
-
-
Sudo/etc/init. d/NetworkManager stop
-
Sudo chmod 644/etc/init. d/NetworkManager
-
Sudo Emacs/etc/networks/interfaces
(Note that the CHMOD command isn't a good way
To disable the service; if an update to nm comes in, it'll just get
Re-enabled again. You need to use the update-rc.d script (I think)
Disable the service. -- PLG)
-
-
-
An example file which configures 'loopback, 'eth0' for the company network, and 'eth1' for the target board wocould be:
-
-
-
Auto Lo
-
Iface lo Inet loopback
-
Auto eth0
-
Iface eth0 Inet DHCP
-
Auto eth1
-
Iface eth1 Inet static
-
Address 10.0.0.1
-
Netmask 255.255.255.0
1.1.2 install DHCP server
sudo apt-get install dhcp3-server
1.1.3 set up the DHCP server
Specify the interface on which the server shoshould listen by editing the/etc/default/dhcp3-server file:
INTERFACES=”eth1"
Replace this line with the suitable Interface
Backup your original/Etc/dhcp3/DHCPD. conf
File and replace it to contain the following:
ddns-update-style none;
allow bootp;
subnet 10.0.0.0 netmask 255.255.255.0 {
default-lease-time 1209600;
max-lease-time 31557600;
range 10.0.0.2 10.0.0.100;
option routers 10.0.0.1;
option root-path "10.0.0.1:/home/vinod/sw/tools/embedded/vendor/ubuntu/9.04/images/target";
}
Replace the root-path suitably to specify your target.
Restart the DHCP server:
sudo /etc/init.d/dhcp3-server restart
2.1 NFS server on Ubuntu 8.10/9.04
- Install NFS server on your host
sudo apt-get install nfs-kernel-server nfs-common portmap
Add the target filesystem to NFS mounts by editing/Etc/exports
And
Adding the following line (edit the path to the location of the target
On your PC). Example for minimal setup:
/home/vinod/sw/tools/embedded/vendor/nvidia/esoc3-4.3.2-nv/arm-none-linux-gnueabi/target
*(async,rw,no_root_squash,no_all_squash)
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a
http://www.ubuntugeek.com/nfs-server-and-client-configuration-in-ubuntu.html