Getting started with the TS-2800 for Linux Connecting serial communications and power ========================================== An ANSI terminal or PC running a terminal emulator is required to communicate with your Embedded PC. The serial parameters are 9600 baud, 8 data, and no parity. If you are running Linux, the minicom program works well, Windows users can run the Hyperterm application. Connect the DB9 ribbon cable to the COM2 header on the EPC. The 10 pin female connector should be oriented so that the red lead on the ribbon cable is toward pin 1 (pin 1 is closest to the "COM2" label and has a square pad) . Then connect the DB9 male connector to a null modem cable. Connect the other end of the null modem cable to a serial port on the host. Technologic Systems offers a null modem cable with both 25 pin and 9 pin connectors at each end as part number CB7-06. Connect a regulated 5VDC, (750mA minimum) power source using the included 2 screw terminal strip/connector. Please note the polarity printed on the board. Startup sequence ================ Apply 5VDC power. The board mounted LED will blink twice, followed immediately by the display of the standard PC POST messages, memory test, and configuration data on your terminal. (Assumes JP2 is installed). After the power on self test the system boots DOS from ROM and executes the 'autoexec.bat' file. You must type "linux" to run the batch file that boots the Linux kernel The DOS based Linux kernel loader called 'loadlin' is started with the required command line parameters. The kernel boots, networking, message logging, Apache web server, etc. are started automatically. The login prompt is displayed, type "root" to login, the password is "redhat", the bash prompt appears. Message logging =============== The klogd and syslogd message logging daemons are automatically started. The log file is (/var/log/messages). This file will increase in size with every system or kernel message. You may need to disable this feature to conserve the limited space on the DiskOnChip file system. To disable message logging, move the file '/etc/rcS.d/05syslog' to a different directory. The Apache web server with PHP extensions is automatically started. The log files for Apache are located in '/www/logs'. To disable the Apache web server completely, move the file '/etc/rcS.d/60apache' to a different directory. TCP/IP configuration ==================== The TCP/IP settings for the 2800 are configured in the file '/etc/config/ifcfg-eth0', here is a listing : DEVICE=eth0 # Name of ethernet interface IPADDR=192.168.0.50 # Internet Protocol address of this ethernet interface. NETMASK=255.255.255.0 # Used with NETWORK to determine which IP's are local. NETWORK=192.168.0.0 # Used with NETMASK to determine which IP's are local. BROADCAST=192.168.0.255 # Broadcast IP for system wide messages. The TCP/IP network settings are configured in the file '/etc/config/network', here is a listing: NETWORKING=yes FORWARD_IPV4=yes DEFRAG_IPV4=no GATEWAY="192.168.0.1" # Gateway for internet access. HOSTNAME=epc # Host name of this computer. The TCP/IP name resolution server is configured in the file '/etc/resolv.conf', here is a listing: Nameserver 192.168.0.1 # Name server for domain name lookups. To access the web server, open a web browser and enter "192.168.0.50/php/" as the address. This should display the file list for the directory '/www/htdocs/php'. Select the file 'epcwebmain.php' you should see a web page with some demo functions displayed. DOS utilities ============ loadlin.exe DOS based Linux kernel loader, http://elserv.ffm.fgan.de/~lermen command.com Run this from the prompt for a more DOS like environment. ed.exe Line based text editor, see A:\util\docs\ed.man for details. ping.exe Standard ping utility to debug ethernet, uses 'wattcp.cfg' file for configuration. Linux utilities =============== /sbin/ifconfig Display information about ethernet settings. /usr/bin/df Display disk space usage. /usr/bin/free Display memory usage. Most of the Linux utilities you would expect are present in the TS-2800. In total there are over 120 utilities installed in the DiskOnChip file system. Many of the basic utilities are implemented using Busybox, check the busybox web site for more information. (http://busybox.lineo.com/) Notes ===== After the kernel is done booting the 'init' process reads the file '/etc/inittab'. The inittab file will call /rc.init' as part of the system initialization. The '/rc.init' file calls '/etc/rc.sysinit' to complete system initialization. The runlevel then defaults to 3, which will run the '/etc/rcS' script and call all the scripts in the '/etc/rcS.d/' directory in numerical order. A halt or reboot command will execute the '/etc/rc.shutdown' script. www.embeddedx86.com (480)-837-5200 info@embeddedx86.com