the target system

advertisement
The Target Hw
1.
2.
3.
4.
5.
6.
7.
8.
The TS5500 SBC
TS5500 hardware details and
Memory map
TS5500 operating system
Booting up the SBC
Loading application software to the board
Interfacing LCD (command line)
Interfacing Keypad (command line)
UniMAP
1
The TS 5500 SBC
PC compatible Single Board Computer with 133 MHz AMD Elan
586 processor.
•
•
•
•
•
•
•
32-64 MB SDRAM
10/100 Ethernet
2 USB ports
PCMCIA socket
Disk On Chip
Compact Flash socket
3 COM ports
– Com 2- used for communicating with the dev host and target
•
•
•
•
38 DIO
PC/104 expansion bus –extra needed pheripherals goes here
2 MB Flash drive – we use compact flash
A/D converter
UniMAP
2
TS5500 Figure
UniMAP
3
Power
•
The TS-5500 requires regulated 5VDC at 900 mA (typical).
•
When power is first supplied to the TS-5500, the board mounted LED is
immediately turned on under hardware control.
•
•
Once the processor begins execution, the LED is turned off.
The LED then turns on then off to provide a characteristic blink during
execution of power on self test (POST).
•
If the LED does not turn on at all, the most likely problem is the power
supply. Check that the +5V and GND connections are not reversed. A diode
protects the board against damage in such a situation, but of course it will
not run.
•
Supply voltages over 6 VDC may damage the TS-5500.
•
Be sure to use a regulated 5 VDC power supply.
UniMAP
4
Memory- RAM
• The TS-5500 has a total of 32 Megabytes
(MB) of high-speed SDRAM providing
– 640 Kilobytes (KB) of base memory,
– 15 MB of extended memory, and
– 128 KB of shadow RAM for the BIOS.
• This is identical to a standard PC memory
map.
UniMAP
5
Memory -Flash
• There is a total of 2 MB of Flash memory on the TS-5500
with 128KB reserved for the BIOS.
• During power-on–self-test (POST), this 128 KB area is
copied from Flash into SDRAM at addresses E0000h
through FFFFFh for improved performance (a standard
technique known as BIOS Shadowing).
• The remainder of the Flash memory (1920 KB) is
configured as two solid-state disk (SSD) drives
appearing as drive A and drive B.
– Drive A uses 896 KB of Flash memory while
– drive B uses the remaining 1024 KB of Flash memory.
UniMAP
6
Flash cont…
• Power failure during flash writes can cause corruption of
flash drive FAT tables (A: or B:).
• Therefore applications writing frequently should use
DiskOnChip or Compact Flash card drives which are
more tolerant of power failure during write cycles.
• Flash drive A is read-only when JP3 is not installed.
Removing JP3 also makes the 128 kbyte BIOS area of
the Flash write protected as well.
• Write protecting the A: drive can be useful if there are
critical files in the final product that must be very secure.
UniMAP
7
Compact Flash cards
• A SanDisk USB Compact Flash reader/writer is recommended for
the host PC for file transfers.
• This results in the ability to quickly move files from a host PC to the
TS-5500 using a Compact Flash card as the removable media.
• Since the Compact Flash card appears as a standard IDE drive on
the TS-5500, it uses no additional RAM for drivers.
• While a USB Compact Flash reader allows for hot swapping of the
Compact Flash card on the host PC, the Compact Flash interface on
the TS-5500 is not hot swappable, the TS-5500 must be rebooted
after removing or installing a Compact Flash card.
UniMAP
8
TS 5500 OS
Features of TS-Linux 3.0
• Glibc version 2.2.5
• Kernel version 2.4.23
• Apache web server with PHP.
• Telnet server and client.
• FTP server and client.
• BASH, ASH, minicom, vi, busybox, tinylogin, and other basic utilities
included
• Boot from Compact Flash using Syslinux multiboot
• Supports NFS mount of root file system across network.
• Drivers for digital I/O and Analog available.
• Total footprint less than 18 MB (requires 32 MB or larger
DiskOnChip)
• Red-Hat Like systemV Operating System.
UniMAP
9
Linux File System structure
UniMAP
10
….Descripition
• This is a layout from a RedHat system. Depending on the system
admin, the operating system and the mission of the UNIX machine,
the structure may vary, and directories may be left out or added at
will. The names are not even required; they are only a convention.
• The tree of the file system starts at the trunk or slash, indicated by a
forward slash (/). This directory, containing all underlying directories
and files, is also called the root directory or "the root" of the file
system.
• Directories that are only one level below the root directory are often
preceded by a slash, to indicate their position and prevent confusion
with other directories that could have the same name. When starting
with a new system, it is always a good idea to take a look in the root
directory.
UniMAP
11
Directory
Content
/bin
Common programs, shared by the system, the system administrator and the users.
/boot
The startup files and the kernel, vmlinuz. In some recent distributions also grub data. Grub is the GRand Unified Boot
loader and is an attempt to get rid of the many different boot-loaders we know today.
/dev
Contains references to all the CPU peripheral hardware, which are represented as files with special properties.
/etc
Most important system configuration files are in /etc, this directory contains data similar to those in the Control Panel in
Windows
/home
Home directories of the common users.
/initrd
(on some distributions) Information for booting. Do not remove!
/lib
Library files, includes files for all kinds of programs needed by the system and the users.
/lost+found
Every partition has a lost+found in its upper directory. Files that were saved during failures are here.
/misc
For miscellaneous purposes.
/mnt
Standard mount point for external file systems, e.g. a CD-ROM or a digital camera.
/net
Standard mount point for entire remote file systems
/opt
Typically contains extra and third party software.
/proc
A virtual file system containing information about system resources. More information about the meaning of the files in proc
is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in
detail.
/root
The administrative user's home directory. Mind the difference between /, the root directory and /root, the home directory of
the root user.
/sbin
Programs for use by the system and the system administrator.
/tmp
Temporary space for use by the system, cleaned upon reboot, so don't use this for saving any work!
/usr
Programs, libraries, documentation etc. for allUniMAP
user-related programs.
/var
Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler
12area,
space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it.
Booting up the SBC
UniMAP
13
Communicate between
Development Host and SBC
• Set the serial parameters of the Desktop serial
port, so that it match the SBC serial param.
• Need a serial communication program. We use
minicom….need root privilege.
• Baud rate must be changed to 115200.
• Save and exit from minicom
UniMAP
14
…Now we are ready to boot up
the SBC
• Re run minicom and SBC boot up
message shall appear :
Miniepc.embeddedx86.com login: (type root)
Login[206]:cannot open secure tty file.
Password: (type redhat)
UniMAP
15
gettin on the network
• To setup the SBC for accessing a particular LAN, we have
to edit a file which set the Wired LAN network setting
located at
/etc/sysconfig/ifcfg-eth0.
• wireless network setting stored at
/etc/pcmcia/network.opts
• What we need to do is to disable the static IP coded and
allow DHCP.
•
Note:DHCP (dynamic host configuration protocol) is an extensively used TCP/IP
(transmission control protocol/Internet protocol) protocol for dynamically assigning IP
addresses to devices on a network.
UniMAP
16
… Configuring the board as an
FTP server
• An ftp package named ProFTPd has been
installed ion the system.
• The content of configuration file located at
/etc/ named proftpd.conf need to be
changed
– Changes to be made …AllowAll
– Root login permission must be turn on
UniMAP
17
..telnet
• /etc/inetd.conf
• Edit the above file to allow telnet, then
user can users can telnet to the SBC, BUT
the SBC cannot telnet to other hosts.
UniMAP
18
Activating SSH on the SBC
• Secure shell protocol (ssh) is enabled on
the board through on openSSH function
called dropbear.
• Upon activation of dropbear, the Secure
copy (scp) command may be used to
transfer files between host and sbc vice
versa.
UniMAP
19
Done for now
UniMAP
20
Download