Philips Semiconductors
AN10476
Getting started Linux with LPC3180
With
‘ifconfig’
in Linux you can check if the Ethernet interface start working.
~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:00:18:8C
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1540 Metric:1
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) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
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) TX bytes:0 (0.0 b)
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
‘httpd’
is included in the rootfs package, run it and then the board file system can
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>
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Application note
Rev.03 — 21 Dec 2006
13 of 28