| 전자부품 데이터시트 검색엔진 |
|
UM0844 데이터시트(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0844 데이터시트(HTML) 17 Page - STMicroelectronics |
|
17 / 43 page ![]() UM0844 The pre-flashed software Doc ID 16544 Rev 3 17/43 # ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 You have the option to configure the IP on the evaluation board side in a static or dynamic way. For a static configuration, the procedure is as follows: 1. Reset the board and enter U-Boot mode 2. Use the following commands to configure environment variables: > setenv ipaddr 192.168.1.10 > setenv serverip 192.168.1.1 > setenv gatewayip 192.168.1.1 > setenv netmask 255.255.255.0 > setenv hostname SPEAR > setenv ip_settings \$(ipaddr):\$(serverip):\$(gatewayip):\$(netmask):\$(hostname): \$(netdev):off 3. Modify the existing "bootargs" variable by adding the "ip" argument, as in the following example, then save the environment: > setenv bootargs console=ttyS0 ... ip=$(ip_settings) > saveenv In this way, network settings work inside U-Boot and are also automatically passed to Linux. The dynamic configuration requires a DHCP server running on the LAN (for example, on a Linux host PC) so that the evaluation board automatically gets an IP address at each bootstrap. To check if DHCP server (daemon) support is available on the PC-side, use the following command: $ rpm -q dhcp If the DHCP package is not available, install it on the PC from your distribution media (for example, Fedora Linux CDROM or website). The next step is to create or change the DHCP configuration file /etc/dhcp/dhcpd.conf that matches a specific network setup, as shown in the following example: # # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # see 'man 5 dhcpd.conf' # default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; allow bootp; #allows kernel download using tftp |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |