Digital Signal Processing Reference
In-Depth Information
graphical clock application), ntetris (a nano-X version of the Tetris game),
or nxview (a JPEG image preview application). Be sure to monitor the
available memory as additional processes are started.
18.11 USB Devices in µClinux (DE2 Board Only)
The µClinux kernel image provided on the DVD includes support for USB host
functionality using the ISP1362 USB controller IC on the DE2 board. USB
devices such as keyboards and mice can be supported through the Human
Interface Devices (HID) drivers in µClinux. Plug a USB mouse or keyboard
into the USB port on the DE2 board and notice the debug messages that display
in the console terminal window. A USB mouse will control the cursor in the
nano-X window manager, and a USB keyboard will allow you to enter text into
the nano-X terminal window program or control the ntetris game.
Support for USB storage devices (i.e., USB memory sticks or flash drives) is
also included in this µClinux kernel image. Insert a USB flash drive into the
USB slot. Several debug messages will print out on the console terminal
window indicating that the USB storage device is recognized and accessible as
device /dev/sda1 . To access files on the USB storage device, the filesystem
must first be mounted and mapped to a directory in the root filesystem. If the
USB storage device is using a FAT filesystem (most USB flash drives that are
used with Windows PCs use a FAT filesystem), type the following commands:
mkdir /mydrive
mount -t vfat /dev/sda1 /mydrive
Once these commands have been executed, the contents of the USB flash drive
will be available in the /mydrive directory. When you are finished with the
USB flash drive, be sure to unmount the drive before removing it from the USB
port. To unmount the drive, run the following command:
umount /mydrive
18.12 Network Communication in µClinux (DE2 Board Only)
The µClinux kernel image provided on the DVD includes a number of network
utilities and applications. The ifconfig command is the primary utility used
to configure the network settings such as MAC address and IP address. All
network devices must have a unique hardware address known as a MAC
address. The DE2 board has a software configurable MAC address, thus it is up
to you to ensure that a unique address is used. To assign a MAC address, use
the following command, where XX:XX:XX:XX:XX:XX is the unique number
you are assigning:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
Search WWH ::




Custom Search