Connection Between Pc And The Board - Philips LPC3180 Application Note

Getting started linux with
Table of Contents

Advertisement

Philips Semiconductors
With
~ # ifconfig
eth0
lo

4.4.1 Connection between PC and the board

Connect PC and the board using a network cable.
Set up the PC IP address as 192.168.0.1.
(The board IP address has been set as 192.168.0.2 by default.)
We can test the connection by using Linux 'ping' command.
~ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=128 time=2.5 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=128 time=0.8 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=128 time=1.0 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=128 time=1.1 ms
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.8/1.3/2.5 ms
~ #
If the
be displayed through Windows IE explorer.
~ # httpd &
Type "httpd://192.168.0.2/" in the address bar, the file system contents will display in the
IE window.
<12NC>
Application note
in Linux you can check if the Ethernet interface start working.
'ifconfig'
Link encap:Ethernet
inet addr:192.168.0.2
UP BROADCAST MULTICAST
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b)
Link encap:Local Loopback
inet addr:127.0.0.1
UP LOOPBACK RUNNING
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b)
is included in the rootfs package, run it and then the board file system can
'httpd'
Rev.03 — 21 Dec 2006
Getting started Linux with LPC3180
HWaddr 00:E0:4C:00:18:8C
Bcast:192.168.0.255
MTU:1540
Metric:1
TX bytes:0 (0.0 b)
Mask:255.0.0.0
MTU:16436
Metric:1
TX bytes:0 (0.0 b)
AN10476
Mask:255.255.255.0
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
13 of 28

Advertisement

Table of Contents
loading

Table of Contents