Connecting Usb; Connecting To The Ethernet - Philips LPC3180 Application Note

Getting started linux with
Table of Contents

Advertisement

Philips Semiconductors
~ # mount –t auto /dev/mmcblk0p1 /mnt/mmc
or
~ # mount –t auto /dev/mmcblk0 /mnt/mmc
[Remark] A GPIO or GPO is used to control external SD card power. In Phytec board, it's
GPIO_06/GPO_06. If user has different designs that use other GPIO pin, just change the
corresponding GPIO pin number in below files:
./linux-2.6.10/arch/arm/mach-lpc3180/mmc.c
./linux-2.6.10/drivers/mmc/mmci.c

4.3 Connecting USB

The USB drivers have been updated to support USB-OTG functionality. This means that
after updating to the new release your USB hub and other devices may not be detected
automatically. The board will have gone into gadget mode after booting.
By this time, connecting the board with PC through a normal A-B cable (plugging to
board device connector) or normal A-mini B cable (plugging to board OTG connector),
PC can recognize the board as new USB devices immediately.
For the system to work automatically you will require a mini-A cable to be plugged into
your board. However, as these are still quite hard to come by an option has been
supplied for forcing USB into host mode.
To force your USB into host mode do the following:
~ # echo host > /sys/bus/usb_container/usb_container-dev-1/forced_mode
Then the connected USB devices, e.g. a USB mass storage disk, can be recognized by
the board Linux system. E.g.
~ # mount -t auto /dev/sda1 /mnt/usbdisk
If user wants to make the USB boot with host mode, just add the above forcing command
to the startup script file in rootfs. The command can be executed before system start up.
The way the USB gadget system works has also been modified to allow you to change
the functionality of the gadget without having to remove and reinstall drivers. To set the
personality of the gadget, do one of the following:
For a networking gadget,
~ # echo ether > /sys/bus/usb_container/usb_container-dev-1/udc/function
For a serial gadget,
~ # echo g_serial > /sys/bus/usb_container/usb_container-dev-1/udc/function

4.4 Connecting to the Ethernet

As the LPC3180 does not have an Ethernet controller onboard, the Ethernet connection
is established over USB. To be able to do so the following items are required:
- A USB hub (as the LPC3180 is unable to provide enough power to a connected USB
- A USB to Ethernet adapter
Connect the main input connection of the USB hub to the board USB host connector and
the USB to Ethernet adapter to one of the client sides.
Make sure that the USB has been forced into host mode and the gadget system has
been set for Ethernet personality as stated in section 4.3.
<12NC>
Application note
device)
Rev.03 — 21 Dec 2006
AN10476
Getting started Linux with LPC3180
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
12 of 28

Advertisement

Table of Contents
loading

Table of Contents