Zynq design from scratch. Part 26.
Running a DHCP server
As we have seen earlier, PetaLinux expects to get its IP address from a DHCP server running in the network. We have setup a private network in this experiment and have no connection with the router that normally runs a DCHP server and generates IP address to all our computers. For that reason we need to setup and run a DHCP server on our host computer. I don't know about Windows PC, but MAC OS X has included a DHCP server that can easily be setup and started. Here is a good description.
Windows DHCP server
Open DHCP Server is an alternative for all Windows users.
Mac OS X DHCP server
The server is called bootpd and does both DHCP and BOOTP. These instructions just describe using it for DHCP, however. To start, you need to create a configuration file for the server. The file should be stored in /etc/bootpd.plist.
Here's a sample configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
This file sets up the DHCP server to run on the interface named
en0, which is typically the (non-wireless) Ethernet port. It assumes that that port has been configured with the IP address
192.168.33.1, and dishes out addresses from
To start the server, run the following command:
sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist
Stopping the server is very similar:
sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist
Next time we boot PetaLinux we will see the IP address 192.168.33.2 leased.
Here is the result from the ifconfig command:
Communicate with the ZedBoard
We can ping and telnet to the ZedBoard.Top Previous Next