Inhaltszusammenfassung zur Seite Nr. 1
ThinkCore W311/321/341 Linux User’s Manual
Second Edition, March 2007
www.moxa.com/product
MOXA Systems Co., Ltd.
Tel: +886-2-2910-1230
Fax: +886-2-2910-1231
Web: www.moxa.com
MOXA Technical Support
Worldwide: support@moxa.com
Inhaltszusammenfassung zur Seite Nr. 2
ThinkCore W311/321/341 Linux User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright © 2007 Moxa Systems Co., Ltd. All rights reserved. Reproduction without permission is prohibited. Trademarks MOXA is a registered trademark of The Moxa Group. All other trademarks or registered marks in this manual belong to their respective manufacturers. D
Inhaltszusammenfassung zur Seite Nr. 3
Table of Contents Chapter 1 Introduction ..................................................................................................1-1 Overview.................................................................................................................................. 1-2 Software Architecture .............................................................................................................. 1-2 Journaling Flash File System (JFFS2)...................................
Inhaltszusammenfassung zur Seite Nr. 4
Chapter 4 Managing Communications ........................................................................4-1 Telnet / FTP ............................................................................................................................. 4-2 DNS ......................................................................................................................................... 4-2 Web Service—Apache .............................................................................
Inhaltszusammenfassung zur Seite Nr. 5
Appendix A System Commands..................................................................................... A-1 busybox (V0.60.4): Linux normal command utility collection............................................... A-1 File manager.............................................................................................................. A-1 Editor......................................................................................................................... A-1 Network..
Inhaltszusammenfassung zur Seite Nr. 6
1 1 Chapter 1 Introduction The MOXA ThinkCore W311/321/341 are RISC-based ready-to-run wireless embedded computers with 802.11a/b/g WLAN, one 10/100 Mbps Ethernet port, an internal SD socket, 1/2/4 RS-232/422/485 serial ports, two USB 2.0 hosts, one relay output channel, and pre-installed Linux operating system. The W311/321/341 offer high performance communication and unlimited storage in a super compact, palm-size ARM9 box. The ThinkCore W300 Series is the right solution for embedded
Inhaltszusammenfassung zur Seite Nr. 7
ThinkCore W311/321/341 Linux User’s Manual Introduction Overview The ThinkCore W311/321/341 wireless embedded computers support 802.11a/b/g wireless LANs with data encryption functions, including the common WEP and powerful WPA and WPA2, to establish a secure transmission tunnel over a WLAN. ThinkCore W300 Series Embedded Computers use a MOXA ART 192 Mhz RISC CPU. Unlike the X86 CPU, which uses a CISC design, the RISC architecture and modern semiconductor technology provide these embedded
Inhaltszusammenfassung zur Seite Nr. 8
ThinkCore W311/321/341 Linux User’s Manual Introduction Factory Default Image file. The user directory saves the user’s settings and application. To improve system reliability, the W311/321/341 have a built-in mechanism that prevents the system from crashing. When the Linux kernel boots up, the kernel will mount the root file system for read only, and then enable services and daemons. At the same time, the kernel will start searching for system configuration parameters via rc or inittab. N
Inhaltszusammenfassung zur Seite Nr. 9
ThinkCore W311/321/341 Linux User’s Manual Introduction Software Package Boot Loader Moxa Boot Loader (v1.2) Kernel Linux 2.6.9 Protocol Stack ARP, PPP, CHAP, PAP, IPv4, ICMP, TCP, UDP, DHCP, FTP, SNMP V1/V3, HTTP, NTP, NFS, SMTP, SSH 1.0/2.0, SSL, Telnet, PPPoE, OpenVPN File System JFFS2, NFS, Ext2, Ext3, VFAT/FAT OS shell command Bash Busybox Linux normal command utility collection Utilities tinylogin login and user manager utility telnet telnet client program ftp FTP client progr
Inhaltszusammenfassung zur Seite Nr. 10
2 2 Chapter 2 Getting Started In this chapter, we explain how to connect the W311/321/341, how to turn on the power, how to get started programming, and how to use the W311/321/341’s other functions. The following topics are covered in this chapter: Powering on the W311/321/341 Connecting the W311/321/341 to a PC Serial Console Telnet Console SSH Console Configuring the Ethernet Interface Modifying Network Settings with the Serial Console Modifying Network Settings over th
Inhaltszusammenfassung zur Seite Nr. 11
ThinkCore W311/321/341 Linux User’s Manual Getting Started Powering on the W311/321/341 Connect the SG wire to the shielded contact located in the upper left corner of the W311/321/341, and then power on the computer by connecting it to the power adaptor. It takes about 30 to 60 seconds for the system to boot up. Once the system is ready, the Ready LED will light up. NOTE After connecting the W311/321/341 to the power supply, it will take about 30 to 60 seconds for the operating system to
Inhaltszusammenfassung zur Seite Nr. 12
ThinkCore W311/321/341 Linux User’s Manual Getting Started The following window will open when a connection has been established. To log in, type the Login name and password as requested. The default values are both root: Login: root Password: root Telnet Console If you know at least one of the two IP addresses and netmasks, then you can use Telnet to connect to the W311/321/341’s console utility. The default IP address and Netmask for each of the two ports are given below: Defau
Inhaltszusammenfassung zur Seite Nr. 13
ThinkCore W311/321/341 Linux User’s Manual Getting Started You can proceed with configuring the network settings of the target computer when you reach the bash command shell. Configuration instructions are given in the next section. ATTENTION Serial Console Reminder Remember to choose VT100 as the terminal type. Use the cable CBL-4PINDB9F-100, which comes with the W311/321/341, to connect to the serial console port. Telnet Reminder When connecting to the W311/321/341 over a LAN, you m
Inhaltszusammenfassung zur Seite Nr. 14
ThinkCore W311/321/341 Linux User’s Manual Getting Started Linux Users From a Linux machine, use the “ssh” command to access the W311/321/341’s console utility via SSH. #ssh 192.168.3.127 Select yes to complete the connection. [root@bee_notebook root]# ssh 192.168.3.127 The authenticity of host ‘192.168.3.127 (192.168.3.127)’ can’t be established. RSA key fingerprint is 8b:ee:ff:84:41:25:fc:cd:2a:f2:92:8f:cb:1f:6b:2f. Are you sure you want to continue connection (yes/no)? yes_ NO
Inhaltszusammenfassung zur Seite Nr. 15
ThinkCore W311/321/341 Linux User’s Manual Getting Started 2. Type #vi interfaces to edit the network configuration file with vi editor. You can configure the Ethernet ports of the W341 for static or dynamic (DHCP) IP addresses. Static IP addresses As shown in the table below, 4 network addresses must be modified: address, network, netmask, and broadcast. The default IP address for LAN1 is 192.168.3.127, with default netmask of 255.255.255.0. Dynamic IP addresses By default, the W311/321
Inhaltszusammenfassung zur Seite Nr. 16
ThinkCore W311/321/341 Linux User’s Manual Getting Started /etc/wireless.conf Format: DEVICE=eth1 MODE=managed ESSID=any KEY=any /etc/wireless.conf Item list: DEVICE indicates your wireless interface MODE indicates your wireless mode, such as ad-hoc, managed, master ESSID indicates your wireless ESSID NAME KEY indicates your wireless WEP key CHANNEL indicates your wireless channel setting MACMODE indicates your wireless macmode setting, such as 1 (mixed mode), 2 (pure_g_
Inhaltszusammenfassung zur Seite Nr. 17
ThinkCore W311/321/341 Linux User’s Manual Getting Started Default Setting for WIRLESS LAN Dynamic Setting using DHCP iface eth1 inet static iface eth1 inet dhcp address 192.168.4.127 network: 192.168.4.0 netmask 255.255.255.0 broadcast 192.168.4.255 After the boot settings of the LAN interface have been modified, issue the following command to activate the LAN settings immediately: #/etc/init.d/networking restart 3. Using iwconfig / iwpriv Utility to set up the wireless configur
Inhaltszusammenfassung zur Seite Nr. 18
ThinkCore W311/321/341 Linux User’s Manual Getting Started Channel—Sets the channel Using iwconfig eth1 channel Setting Note: Infrastruct couldn’t set channel Freq—Sets the channel frequence Using iwconfig eth1 freq Setting(G,M,K) Note: Infrastruct couldn’t set freq 802.11b,g Channel and Frequency Table Channel Freqence 1 2412(K) 2 2417(K) 3 2422(K) 4 2427(K) 5 2432(K) 6 2437(K) 7 2442(K) 8 2447(K) 9 2452(K) 10 2457(K) 11 2462(K) 12 2467(K) 13 2472(K) 14 2484(K) 802.
Inhaltszusammenfassung zur Seite Nr. 19
ThinkCore W311/321/341 Linux User’s Manual Getting Started 140 5700 (K) 184 4920 (K) 188 4940 (K) 192 4960(K) 196 4980 (K) 8 5040 (K) 12 5060 (K) 16 5080 (K) 34 5170 (K) 38 5190 (K) 42 5210 (K) 46 5230 (K) 149 5745 (K) 153 5765 (K) 157 5785 (K) 161 5805 (K) 165 5825 (K) AuthMode—Sets the authentication mode Using iwpriv eth1 set_auth Setting Setting Explanation 0 OPEN 1 SHARED 2 AUTO(default) KeyStr—Sets Key Support string key and hex key EncrypType—Just Support NONE
Inhaltszusammenfassung zur Seite Nr. 20
ThinkCore W311/321/341 Linux User’s Manual Getting Started Using WPA_SUPPLICANT to Support WPA and WPA2 This embedded computer supports the WPA and WPA2 functions using the /bin/wpa_supplicant program. We wrote a shell script to help you use this function: Step 1: Edit the ssid and psk variables in the file etc/wpa_supplicant.conf. network= { ssid=”12345678901” key_mgmt=WPA-PSK proto=WPA RSN pairwise=TKIP CCMP group=TKIP CCMP psk=”0987654321234” } Step 2: Type /e