| Electronic Components Datasheet Search |
|
UM1535 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1535 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 39 page ![]() Working with pre-flashed software UM1535 16/39 Doc ID 023036 Rev 2 As an example, let's assume an IPv4 local area network with the following characteristics: Network IPs: 192.168.1.X Host PC IP: 192.168.1.1 Evaluation board IP: 192.168.1.10 On a Linux PC, configure the host address as follows: # ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 In this example we are assuming that evaluation board is connected to Ethernet port 0 (eth0) of the host machine. You can 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 3. Set the root path as path of your NFS file system. If you are using STLinux2.4 as NFS file system then your root path will be: – For Armv5 SoCs: > setenv rootpath /opt/STM/STLinux-2.4/devkit/armv5/target – For Armv7 SoCs: > setenv rootpath /opt/STM/STLinux-2.4/devkit/armv7/target Default bootargs contain an environment variable named nfsboot. This variable uses the environment variables above. If extra information is required, the environment variable othbootargs can be used. 4. As final step, modify bootargs with nfsboot. Execute the following command for this > run nfsboot 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 the 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: # |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |