
TS-7300 MANUAL
GETTING STARTED & SOFTWARE
Initialization Scripts
The initialization process reads the file “/etc/inittab”. The inittab file will call
“/etc/rc.d/rcS.sysinit” as part of the system initialization. The run level then defaults to 3,
which will run the “/etc/rcS” script and call all the scripts linked in the “/etc/rc3.d/” directory
in numerical order. For example, the following are the initialization scripts for run level 3
found at TS-Linux:
/etc/rc.d/rc3.d# ls
S10Network S11portmap S20inetd S30telnetd S40apache
Changing the run level or re-invoking the initialization scripts is possible through the “init”
command. A “halt” or “reboot” command will change the run level to 0 or 6 and execute
the “/etc/rc0.d” scripts or “etc/rc6.d” scripts respectively.
Network Setup
The main utilities for network configuration under Linux are:
✔
ifconfig: prints network settings and configures ethernet interfaces
✔
ifup: turns given network interface up
✔
ifdown: turns given network interface down
Entering “ifconfig” shows the current ethernet settings. These utilities require a network
device as parameter. On Linux, the ethernet devices are generally named eth0, eth1, etc.
Therefore, the command “ifup eth0” or “ifconfig eth0 up” brings up the on-board ethernet
interface on TS-7300 SBCs.
Setting Up the networking with Debian
To configure the network interfaces when booting into Debian Linux, edit the file
“/etc/network/interfaces”. A typical interfaces file would contain the following:
auto lo eth0
# The loopback interface
iface lo inet loopback
# The first network card
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1
Those lines starting with a
#
symbol are comments. The line “auto lo eth0” means both the
loopback interface and the first ethernet interface will be started automatically by the
Debian networking scripts. The above example shows that eth0 would be assigned the
static address of 192.168.0.50, using 192.168.0.1 as the default gateway. If one was to
comment out those lines, and then uncomment the line iface eth0 inet dhcp, then eth0
would use a dhcp client to obtain it's IP and other relevant network information.
Note
For further information regarding the software solutions available for the
TS-7300
and instructions about Debian Linux, please refer to the
Linux for TS-ARM User's
Guide
. This can be found for download at Technologic Systems website.
© Apr, 2010 www.embeddedARM.com 20