world leader in high performance signal processing
Trace:

Differences

This shows you the differences between two versions of the page.

setting_up_a_dhcp_server [2006/12/08 01:02]
127.0.0.1 external edit
setting_up_a_dhcp_server [2007/11/17 04:21] (current)
vapier split off u-boot specific information
Line 203: Line 203:
 The DHCP Turbo server should now be able to provide U-Boot with all the information it needs to boot the target system via DHCP boot.  Before reconnecting your computer to a network with an active DHCP server ensure that you stop DHCP Turbo by selecting **Control Service** under the **Tools** menu and clicking on **Stop**. The DHCP Turbo server should now be able to provide U-Boot with all the information it needs to boot the target system via DHCP boot.  Before reconnecting your computer to a network with an active DHCP server ensure that you stop DHCP Turbo by selecting **Control Service** under the **Tools** menu and clicking on **Stop**.
  
-====Using U-Boot With DHCP==== 
-To boot uClinux via DHCP open a terminal session in Minicom, HyperTerminal, or another terminal program.  See [[terminal_programs|Terminal Programs]] on page  for more information on setting up a terminal program to communicate with uClinux/U-Boot.  Reset the target system and hit any key before the autoboot countdown finishes.  You should now be at the U-Boot command prompt.  Enter the command: 
- 
-<code> 
-BOOT> print 
-</code> 
- 
-U-Boot's environment variables should now be displayed and will look something like the following: 
-<code> 
-bootcmd=run dhcp_boot 
-bootdelay=30  
-baudrate=57600 
-loads_echo=1  
-ipaddr=192.168.0.95 
-serverip=192.168.0.32 
-gatewayip=192.168.0.2  
-netmask=255.255.255.0  
-hostname=BF533 
-netdev=eth0 
-tftp_boot=tftp 0x1000000 linux;bootelf 0x1000000;echo 
-dhcp_boot=dhcp;bootelf 0x1000000;echo 
-serial_boot=loadb;bootelf 0x1000000;echo 
-stdin=serial 
-stdout=serial 
-stderr=serial  
-</code> 
- 
-Ensure the following environment variables are set: 
-<code> 
-BOOT> dhcp_boot=dhcp;bootelf 0x1000000;echo 
-BOOT> bootcmd=run dhcp_boot 
-</code> 
- 
-If these environment variables are not set use the U-Boot command **set <variable> <value>** to set them.  The U-Boot command **save** can then be used to save the environment variables to flash memory. 
- 
-<note tip> 
-When setting a U-Boot environment variable with a semi-colon in it you must place single quotes around the variable to keep the semi-colon from being interpreted as the end of the command.  i.e. To set tftp_boot use a command similar to the following:  
- 
- ''set tftp_boot 'tftp  0x1000000 linux;bootelf 0x1000000;echo''' 
-</note> 
- 
-On restart, after the autoboot countdown timer finishes, U-Boot should now obtain an IP address and a memory image filename from the DHCP server and a load the image via TFTP.  Alternately a DHCP boot can be initiated from the U-Boot command line by entering the following commands at the U-Boot prompt: 
-<code> 
-BOOT> dhcp 
-BOOT> bootelf 0x1000000 
-</code>