User`s manual

Getting Started With Linux on the LPC3250 OEM Board Page 35
Copyright 2009 © Embedded Artists AB Rev A
5.3.3 Usage
These instructions show how to use the touch screen through the tslib library. Tslib is an abstraction
layer for touch screen panel events, as well as a filter stack for the manipulation of those events, for
more information visit the tslib website: http://tslib.berlios.de/.
1. The
/dev/input/event0
device node must be available. If it isn’t it can be created by
using the
mknod
utility.
# mknod /dev/input/event0 c 13 64
2. In the default configuration of the root file system tslib is included as well as calibration and
test applications. Run the calibration application.
# ts_calibrate
3. When you have calibrated the screen you can test the touch screen with the
ts_test
application.
# ts_test
5.4 Network
5.4.1 Hardware
The LPC3250 has an Ethernet interface with a full featured 10 Mbps or 100 Mbps Ethernet MAC
(Media Access Controller). On the Embedded Artists LPC3250 OEM Board the Ethernet block in the
LPC3250 is connected to the off-chip National Semiconductor DP83848 Ethernet PHY via the RMII
interface.
5.4.2 Device Driver and Configuration
The driver for the LPC3250 MII/RMII Ethernet interface is located here in the source tree:
/drivers/net/lpc32xx_mii.c
.
The following configuration options are related to the network functionality.
Configuration
CONFIG_NET Enable networking support in the kernel
CONFIG_LPC32XX_MII
Enable support for the LPC3250 MII/RMII interface
5.4.3 Usage
The Ethernet driver isn’t used directly from user space applications. Instead the driver is used by the
networking subsystem in the kernel and applications use a high-level interface such as a socket API.
In the Embedded Artists configuration the networking interface is initialized at start-up and given its IP
address from the u-boot bootloader as a boot argument (the
ip
argument). You can check the IP
address by using the
ifconfig
command. In the example you can see that the IP address assigned
to the board is 192.168.5.234.
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1A:F1:00:00:00
inet addr:192.168.5.234 Bcast:192.168.5.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2405 errors:0 dropped:0 overruns:0 frame:0