Chapter 1 Introduction.................................................................................................. 1-1
Overview..................................................................................................................................1-2
Software Architecture.............................................................................................................. 1-2
Journaling Flash File System (JFFS2)........................................................................1-3
Software Package....................................................................................................... 1-4
Chapter 2 Getting Started............................................................................................. 2-1
Powering on the W311/321/341...............................................................................................2-2
Connecting the W311/321/341 to a PC....................................................................................2-2
Serial Console............................................................................................................ 2-2
Telnet Console............................................................................................................2-3
SSH Console.............................................................................................................. 2-4
Configuring the Ethernet Interface.......................................................................................... 2-5
Modifying Network Settings with the Serial Console................................................ 2-5
Modifying Network Settings over the Network......................................................... 2-6
Configuring the WLAN........................................................................................................... 2-6
IEEE802.11a/b/g........................................................................................................ 2-6
Using WPA_SUPPLICANT to Support WPA and WPA2.......................................................2-11
SD Slot and USB for Storage Expansion................................................................................2-11
Test Program—Developing Hello.c.......................................................................................2-13
Installing the Tool Chain (Linux)............................................................................. 2-13
Checking the Flash Memory Space.......................................................................... 2-13
Compiling Hello.c.................................................................................................... 2-14
Uploading and Running the “Hello” Program..........................................................2-15
Developing Your First Application........................................................................................ 2-15
Testing Environment................................................................................................ 2-16
Compiling tcps2.c.....................................................................................................2-17
Uploading and Running the “tcps2-release” Program.............................................. 2-18
Testing Procedure Summary.................................................................................... 2-20
Chapter 3 Managing Embedded Linux ........................................................................3-1
System Version Information.....................................................................................................3-2
System Image Backup..............................................................................................................3-2
Upgrading the Firmware.............................................................................................3-2
Loading Factory Defaults........................................................................................... 3-5
Backing Up the User Directory.................................................................................. 3-5
Deploying the User Directory to Additional W311/321/341 Units............................ 3-6
Enabling and Disabling Daemons............................................................................................3-6
Setting the Run-Level.............................................................................................................. 3-8
Adjusting the System Time......................................................................................................3-9
Setting the Time Manually......................................................................................... 3-9
NTP Client................................................................................................................3-10
Updating the Time Automatically.............................................................................3-10
Cron—Daemon to Execute Scheduled Commands................................................................3-11