background image

Armadillo-440 LCD Model Development

Set

Startup Guide

A4400-D00Z

Version 1.1.5

2012/02/29

Atmark Techno, Inc.

Armadillo Site

Summary of Contents for Armadillo-440

Page 1: ...Armadillo 440 LCD Model Development Set Startup Guide A4400 D00Z Version 1 1 5 2012 02 29 Atmark Techno Inc Armadillo Site ...

Page 2: ...adillo 440 LCD Model Development Set Startup Guide Atmark Techno Inc 060 0035 AFT Bldg N5E2 Chuo ku Sapporo TEL 011 207 6550 FAX 011 207 6570 Copyright 2010 2012 Atmark Techno Inc Version 1 1 5 2012 02 29 ...

Page 3: ...erial Console Software Configuration 18 4 Startup and Shutdown 19 4 1 Startup 19 4 2 Login 22 4 3 Shutdown Method 22 5 Function Tests 24 5 1 LED 24 5 2 Buttons 25 5 3 Touch Screen 25 5 4 Backlight 26 5 5 Sound 26 5 5 1 Playing Back Sound 27 5 5 2 Recording Sound 27 5 6 RTC Real Time Clock 27 5 7 Stopping the Function Test Application from Starting 28 6 Network 29 6 1 Default Network Connection Mec...

Page 4: ...ring Input Level 61 10 3 RTC 61 10 3 1 Setting System Clock with date 61 10 3 2 Setting System Clock with NTP Client 62 10 3 3 Setting Hardware Clock 62 11 Boot Modes and Bootloader Functions 63 11 1 Boot Mode Selection 63 11 2 Linux Kernel Boot Option Configuration 63 11 2 1 Console Configuration 64 11 2 2 Specifying Image File to Boot 65 11 2 3 Other Boot Options 65 11 2 4 Boot Option Configurat...

Page 5: ...Admin System Username Password Authorization 35 6 15 AT Admin System System Overview 37 6 16 AT Admin System Network 39 6 17 AT Admin System Network Update 41 6 18 AT Admin System Password 42 6 19 AT Admin System Firmware 43 6 20 AT Admin System Updating Firmware 45 6 21 AT Admin System Save Load 46 6 22 AT Admin System Reload 47 6 23 AT Admin System Reboot 48 6 24 Internet Explorer Explorer Bar C...

Page 6: ...Level 61 10 7 Configuring CON9_2 Input Level 61 11 1 Linux Kernel Boot Option Clear 63 11 2 Console Designation 64 11 3 Boot Option Configuration Example 1 65 11 4 Boot Option Configuration Example 2 65 12 1 Reading from the Config Region 66 12 2 Saving to the Config Region 66 12 3 Config Region Initialization 67 Armadillo 440 LCD Model Development Set Startup Guide Startup Guide 6 ...

Page 7: ... Username for Telnet Login 31 6 3 Username for FTP Login 32 6 4 Username for ssh Login 32 7 1 Storage Devices 52 8 1 Control Names 56 9 1 Input Device Files 57 9 2 Buttons Supported By swmgr 58 10 1 LEDs and LED Class Directories 59 10 2 trigger Configuration 60 10 3 GPIO and GPIO Class Directories 60 10 4 direction Configuration 61 11 1 Boot Mode 63 11 2 Console Configuration Effect on Output Des...

Page 8: ...s employed as the standard operating system on Armadillo 440 providing access to a rich array of software resources It is also possible to create and run original programs with C and other programming languages For informa tion on how to customize software please refer to the Armadillo 400 Series Software Manual This document contains precautions for use and explanations on how to use the software...

Page 9: ...rectory of each user is represented by Table 1 2 Relationship Between Prompt and Execution Environment Prompt Command Execution Environment PC To be executed by a privileged user on the work PC PC To be executed by a general user on the work PC armadillo To be executed by a privileged user on Armadillo armadillo To be executed by a general user on Armadillo hermit To be executed on Armadillo in ma...

Page 10: ...lo is composed from Free Software Open Source Software This Free Software Open Source Software is the result of efforts from developers from all over the world We would like to take this opportunity to express our gratitude Armadillo 440 LCD Model Development Set Startup Guide Preface 10 ...

Page 11: ...read and fully understood the product manuals and related materials the technical information offered on our web site and related device data sheets Also please carry out full tests beforehand in order to provide and maintain reliability and safety This product is not intended for uses that require extremely high reliability and safety in terms of functionality and accuracy such as medical equipme...

Page 12: ...cessive noise or a surge from the power supply or input output or sharp voltage fluctuations can lead to the CMOS devices incorporated in the board causing a latch up Once the latch up occurs this situation continues until the power supply is disconnected and therefore can damage the devices Measures such as adding a protection circuit to noise susceptible input output lines or not sharing the pow...

Page 13: ...instead of acrylic board or connecting the fixing holes of the Armadillo 440 and the LCD Expansion Board with a wide conducting line Please be aware of the following points when newly designing an expansion board which connects to the LCD interface on Armadillo 440 or Armadillo 460 With an expansion board that includes a device that has large power use fluctuations such as with an audio amp when o...

Page 14: ...ulations This product and related technology may not be used for the purpose of development of weapons of mass destruction for the purpose of military use or other military related uses or in devices which have had their production use sale or pro curement prohibited by national or overseas law or regulations 2 8 Trademarks Armadillo is a registered trademark of Atmark Techno Inc All other company...

Page 15: ...ng Started 3 1 Layout Diagram The layout diagram of the Armadillo 440 is shown below Please make sure to confirm the position of each interface Armadillo 440 LCD Model Development Set Startup Guide Before Getting Started 15 ...

Page 16: ...Figure 3 1 Layout Diagram Armadillo 440 LCD Model Development Set Startup Guide Before Getting Started 16 ...

Page 17: ...oss Cable A PC that runs either Linux or Windows and has at least one serial port and a D Sub 9 pin female to female serial cross connection cable Please install a serial console program 1 on the work PC software for Linux is contained in the tool directory on the included DVD Network Environment Please connect the Armadillo and Work PC so that they can communicate via a network 3 3 Connections Th...

Page 18: ... It will be noted when any change to JP2 is required Set it to an open state now The position of the jumper pins can be seen in Figure 3 1 Layout Diagram 3 5 Serial Console Software Configuration Start the serial console program and configure the connection as shown in Table 3 1 Serial Communication Configu ration Also please keep the width of the serial communication software to more than 80 char...

Page 19: ...s in Zone order mobility grouping on Total pages 32512 Kernel command line console ttymxc1 115200 MXC IRQ initialized PID hash table entries 512 order 9 2048 bytes MXC GPT timer initialized rate 12000000 Console colour dummy device 80x30 Dentry cache hash table entries 16384 order 4 65536 bytes Inode cache hash table entries 8192 order 3 32768 bytes Memory 128MB 128MB total Memory 99596KB availabl...

Page 20: ...ymxc2 at MMIO 0x5000c000 irq 18 is a Freescale MXC mxcintuart 4 ttymxc4 at MMIO 0x5002c000 irq 40 is a Freescale MXC brd module loaded loop module loaded FEC Ethernet Driver PPP generic driver version 2 4 2 Driver sd needs updating please use bus_type methods armadillo nor Found 1 x16 devices at 0x0 in 16 bit bank Intel Sharp Extended Query Table at 0x010A Intel Sharp Extended Query Table at 0x010...

Page 21: ...8 WM8978 Audio Codec v0 2 asoc WM8978 HiFi imx i2s 1 mapping ok ALSA device list 0 armadillo440 WM8978 ip_tables C 2000 2006 Netfilter Core Team TCP cubic registered NET Registered protocol family 17 NET Registered protocol family 15 Static Power Management for Freescale i MX25 input imx_adc_ts as devices virtual input input1 i MX ADC input touchscreen loaded rtc s353xxa 2 0030 setting system cloc...

Page 22: ...fs home ftp pub done Running local start script etc config rc local Starting functester done atmark dist v1 25 0 AtmarkTechno Armadillo 440 Linux 2 6 26 at7 armv5tejl arch armadillo440 0 login Figure 4 1 Boot Log 4 2 Login The login prompt will be displayed once the boot has completed The usernames shown in Table 4 1 Serial Console Login Username and Password can be used to login Table 4 1 Serial ...

Page 23: ...ress Reset or turn off power Figure 4 2 Shutdown Method When not using removable storage it is possible to perform a shutdown by just disconnecting the power supply Disconnecting the power supply while data is being written to removable storage may result in the filesystem or the data being damaged Be sure to unmount remov able storage first before disconnecting the power supply Armadillo 440 LCD ...

Page 24: ... through all tests in this chapter after obtaining the Armadillo 440 LCD Model in order confirm that the hardware is operating correctly The tests can be selected by pressing the buttons on the left side of the screen Figure 5 1 Function Tests Menu 5 1 LED This tests whether or not the LEDs can be turned on and off Press the Red and Green buttons and check that the actual LEDs on the Armadillo 440...

Page 25: ...s displayed in the correct position on the screen Figure 5 3 Function Tests Buttons 5 3 Touch Screen This tests whether or not the touch screen coordinates can be obtained The touch screen coordinates are displayed as X Y Check that the X value increases with touches further to the right and the Y value increases with touches further to the bottom Armadillo 440 LCD Model Development Set Startup Gu...

Page 26: ...that moving the slider to the left darkens the backlight and moving it to the right brightens the blacklight Figure 5 5 Function Tests Backlight 5 5 Sound This tests whether or not sound can be recorded and played back Be sure to refer to Figure 3 2 Connection Diagram to connect a speaker and microphone before carrying out the test Armadillo 440 LCD Model Development Set Startup Guide Function Tes...

Page 27: ...cording Test and check that the recorded sound can be heard 5 6 RTC Real Time Clock This tests whether or not time configuration can be written to and read from the RTC Enter a date and time on the calendar and then press the Set button to set the system clock and RTC hardware clock Press the Get button to read the date and time from the RTC hardware clock and display it on the calendar Please not...

Page 28: ...8 Stopping Automatic Startup armadillo chmod x etc config rc local armadillo flatfsd s Figure 5 8 Stopping Automatic Startup To have the function test application start automatically again execute the commands shown in Figure 5 9 Starting Automatic Startup armadillo chmod x etc config rc local armadillo flatfsd s Figure 5 9 Starting Automatic Startup Armadillo 440 LCD Model Development Set Startup...

Page 29: ...without problem Note Zeroconf is called Automatic Private IP Addressing APIPA in Windows Zeroconf uses an address from a specific range 169 254 0 1 169 254 255 254 with a subnet mask of 255 255 0 0 This IP address block is reserved by IANA Internet Assigned Numbers Authority It is also possible to connect to a Zeroconf network by configuring a static IP address The PC can connect to the same netwo...

Page 30: ...s configuration file for ifup 8 ifdown 8 auto lo eth0 iface lo inet loopback iface eth0 inet static address 192 168 10 10 netmask 255 255 255 0 network 192 168 10 0 broadcast 192 168 10 255 gateway 192 168 10 1 Figure 6 1 Static IP Address Configuration 6 2 2 2 Using DHCP In order to use DHCP use the vi editor to change the content of the etc config interfaces file in the same way as shown in Figu...

Page 31: ...ables list Figure 6 6 iptables 6 4 Network Applications The following explains how to operate the network related applications included in the factory default userland 6 4 1 Telnet 6 4 1 1 Telnet Server It is possible to login from another PC via the network and perform remote operations The username shown in Table 6 2 Username for Telnet Login can be used to login Table 6 2 Username for Telnet Lo...

Page 32: ...ver is set to not start automatically at boot time To start the ssh server execute the command as shown in Figure 6 9 Starting sshd armadillo sh etc init d sshd Figure 6 9 Starting sshd A public key is required in order to use sshd This key will be generated automati cally if it does not exist a process which takes a number of minutes to perform For the username that can be used for login refer to...

Page 33: ... 6 4 6 SMTP Client The SMTP Simple Mail Transfer Protocol client can be used to send email Execute the command shown in Figure 6 12 mail armadillo echo BODY mail subject TITLE from FROM smtp host SMTP SERVER TO Figure 6 12 mail It will not be possible to send email if the current hostname is not specified in the etc hosts file Execute the following command to check the current configuration armadi...

Page 34: ...er upon accessing http Armadillo s IP address index cgi The top page of at cgi is AT Admin s Overview Overview and System are available in AT Admin Menu Function Overview System Overview System System Configuration These two functions are always displayed in the menu at the top of the page Each one can be selected by clicking on the title Figure 6 13 AT Admin Overview Armadillo 440 LCD Model Devel...

Page 35: ...horization will be displayed at this time The default username and password are as shown below Username Password admin admin Enter the username and password and press the OK button If authorization is successful the selected screen will be displayed Figure 6 14 AT Admin System Username Password Authorization Armadillo 440 LCD Model Development Set Startup Guide Network 35 ...

Page 36: ...matically configured with either DHCP or Zeroconf When static is displayed this indicates that a static IP address has been set MAC Address The assigned unique MAC address is shown here Host name The configured hostname is shown here This is armadillo440 0 by default 6 4 7 3 2 Uptime The time that has past since the Armadillo was booted is shown here It is displayed as days hours min sec 6 4 7 3 3...

Page 37: ...ation information related to the Armadillo can be checked on the System Overview Three main groups of information are displayed here Network Info System State Firmware Figure 6 15 AT Admin System System Overview Armadillo 440 LCD Model Development Set Startup Guide Network 37 ...

Page 38: ... to obtain more detailed network information from show ifconfig The Show ifconfig page displays the output of the ifconfig command as is For details on the display content refer to the ifconfig manual 6 4 7 4 1 2 System State It is possible to check the following three items related to the current system state Load The system load state Load Average is shown here Memory Memory usage state is shown...

Page 39: ...rk Changes to various network related configuration options can be carried out on the Network screen There are two main areas of configuration on the Network screen IP Address Hostname Figure 6 16 AT Admin System Network Armadillo 440 LCD Model Development Set Startup Guide Network 39 ...

Page 40: ...way Enter the IP address of the gateway server Leave it blank if a gateway is not being used DNS Server Enter the IP address of a DNS Domain Name System server Leave it blank if DNS is not being used 6 4 7 4 2 2 Hostname Changes to the hostname are made here To change the hostname enter the new name into the textbox By default this is set to armadillo440 0 With Bonjour this name is combined with t...

Page 41: ...r confirming that the LED has deactivated access the top page on the Armadillo Just updating the network configuration does not save the changes In order to save the changes so that they remain in effect after the next boot the configuration must be saved to flash memory Refer to Section 6 4 7 4 5 AT Ad min System Save Load for information on saving 6 4 7 4 3 AT Admin System Password Changes to th...

Page 42: ...r username This is set to admin by default Current password Enter the current password for confirmation This is set to admin by default New password Enter the new password Confirm new password Enter the new password once more for confirmation Armadillo 440 LCD Model Development Set Startup Guide Network 42 ...

Page 43: ...4 5 AT Admin System Save Load for information on saving 6 4 7 4 4 AT Admin System Firmware The userland applications and Linux kernel firmware can be updated on the Firmware screen Figure 6 19 AT Admin System Firmware To update to the image files available from the official web site 2 first press the Get firmware options button The available image files will be displayed in the Applications Userla...

Page 44: ...o update to a userland image model different to that of the current image enable the Allow all image types checkbox before pressing the Update userland button 6 4 7 4 4 2 Kernel Linux kernel updates are performed here Image Selection Box Kernel images available on the server are shown here Select the preferred image URL Input Box The URL of the Linux kernel image file to be downloaded is displayed...

Page 45: ...shown in Figure 6 19 AT Admin System Firmware will be displayed To update another image make the necessary selections and press the relevant update button again After updating to a different type of firmware the configuration files must be initialized For information on the initiali zation of configuration files refer to Section 6 4 7 4 5 AT Admin System Save Load After all updates have been compl...

Page 46: ...e Load System configuration can be saved to flash memory reloaded or initialized and the system rebooted on the Save Load screen Figure 6 21 AT Admin System Save Load Armadillo 440 LCD Model Development Set Startup Guide Network 46 ...

Page 47: ... After a screen similar to that shown below is displayed the Armadillo will begin to operate with the new that read from flash memory network configuration Figure 6 22 AT Admin System Reload If the network connection is changed as a result of restoring the previous configuration the red LED on the Armadillo will activate After confirming that the LED has deactivated access the top page on the Arma...

Page 48: ...ports Bonjour it is possible to easily find an Armadillo from a PC which also supports Bonjour and is on the same network 3 Quoted from Apple Inc s web site About Bonjour Bonjour also called zero configuration networking is a service to automatically discover computers devices and services on IP networks As the world standard IP protocol is used in Bonjour devices can automatically detect each oth...

Page 49: ...web site Apple Support Downloads Bonjour for Windows Execute the downloaded BonjourSetup exe file and follow the instructions on the screen to install the software 6 5 1 2 Mac OS X Bonjour is a standard feature of Max OS X 6 5 1 3 Linux Bonjour can be used on Linux by utilizing Avahi and the nss mdns library Please refer to your distribution s documen tation for more information Armadillo 440 LCD ...

Page 50: ...ck the contents of the Bonjour Explorer Bar on the left side of IE Figure 6 25 Bonjour Explorer Bar The first line is a link to a description of Bonjour on Apple Inc s web site Below that AT Admin on armadillo440 0 00 11 0C XX XX XX and http on armadillo440 0 00 11 0C XX XX XX will be displayed These are links to the Armadillo Selecting AT Admin on armadillo440 0 00 11 0C XX XX XX will display the...

Page 51: ...local However if two or more hosts with the same hostnames exist on the same network like when multiple Armadillo are connected in their default state the number at the end of the hostname will change from the second host onwards For example with Armadillo in their default state the second hostname would be http armadillo440 1 local and the third http armadillo440 2 local Please note that in this ...

Page 52: ... name of the storage device is specified for device For partition 1 on a microSD card this will be dev mmcblk0p1 and for partition 2 it will be dev mmcblk0p2 The directory where the filesystem on the storage device is to be mounted is specified for dir When the command shown in Figure 7 2 Mounting Storage is executed while a microSD is in the microSD slot the filesystem on the microSD card is moun...

Page 53: ... fdisk dev mmcblk0 The number of cylinders for this disk is set to 62528 There is nothing wrong with that but this is larger than 1024 and could in certain setups cause problems with 1 software that runs at boot time e g old versions of LILO 2 booting and partitioning software from other OSs e g DOS FDISK OS 2 FDISK Command m for help d Selected partition 1 Command m for help n Command action e ex...

Page 54: ...T32 filesystem while the mke2fs command is used for EXT2 and EXT3 filesystems A command example where partition 1 on a microSD card is formated with an EXT3 filesystem is shown in Figure 7 5 EXT3 Filesystem Creation armadillo mke2fs j dev mmcblk0p1 Figure 7 5 EXT3 Filesystem Creation Armadillo 440 LCD Model Development Set Startup Guide Storage 54 ...

Page 55: ...sound with ALSA See below for details on the options For information on all available options refer to the aplay help M Use memory mapped I O for the audio stream t Specify the file type Refer to the help for what file types can be specified f Specify the sample format Refer to the help for what sample formats can be specified d End after the specified number of seconds l List all sound cards and ...

Page 56: ...ack volume with ALSA The control name to be changed should be specified for control Refer to Table 8 1 Control Names for the supported control names Table 8 1 Control Names Control Description Headphone Headphone volume Mic Microphone volume Enter the command below to check all of the controls and their values armadillo amixer Figure 8 3 Checking Volumes The volume is specified in place of value w...

Page 57: ...event device file numbers are determined by the order the input devices are detected Therefore if another input device such as a USB keyboard is detected at boot time the event device numbers may change In the default Armadillo 440 LCD Model userland the input device file name specified when starting xfbdev is fixed Therefore if another input device such as a USB keyboard has been connected it is ...

Page 58: ...The following displays time information when SW1 is pressed armadillo swmgr sw0 1 date Figure 9 3 swmgr Example 1 The following turns LED3 on when LCD_SW1 is pressed and turns it off when LCD_SW2 is pressed armadillo swmgr sw1 0 echo 1 sys class leds red brightness armadillo swmgr sw2 0 echo 0 sys class leds red brightness Note Execute the following command to stop the operations armadillo killall...

Page 59: ...he brightness file turns the LED on As the Armadillo 400 Series LEDs do not have brightness control functionality the value has no effective meaning armadillo echo 1 sys class leds yellow brightness Figure 10 1 Turning LED5 On Writing 0 to the brightness file turns the LED off armadillo echo 0 sys class leds yellow brightness Figure 10 2 Turning LED5 Off The current state of the LED can be obtaine...

Page 60: ...low trigger none mmc0 timer heartbeat default on Figure 10 5 Displaying LED3 Timer 10 2 GPIO The Armadillo 400 Series GPIO are supported as GPIO class devices The GPIO can be controlled with the files under the GPIO class directories For the GPIO class directories and corresponding GPIO refer to Table 10 3 GPIO and GPIO Class Directories Table 10 3 GPIO and GPIO Class Directories GPIO Class Direct...

Page 61: ...ned by reading the value file under the GPIO class directory 0 represents a LOW level and 1 a HIGH level The input level can be obtained both when the I O direction is set to INPUT and OUTPUT armadillo cat sys devices virtual gpio CON9_1 value 0 Figure 10 6 Obtaining CON9_1 Input Level 10 2 3 Configuring Input Level The input level can be set by writing an appropriate value to the value file under...

Page 62: ...Client The system clock can be set using the NTP client For more information refer to Section 6 4 5 NTP Client 10 3 3 Setting Hardware Clock armadillo hwclock Displays the hardware clock armadillo hwclock utc systohc Sets hardware clock in UTC armadillo hwclock Check that the hardware clock was set correctly Armadillo 440 LCD Model Development Set Startup Guide Other Devices 62 ...

Page 63: ...that can be used for changing configuration is started 11 2 Linux Kernel Boot Option Configuration Various settings including console and root filesystem settings can be changed by specifying the appropriate Linux kernel boot options The following details some options typically used with Armadillo The setenv function of Hermit At is used for this configuration Parameters set with setenv are saved ...

Page 64: ...ation Table 11 2 Console Configuration Effect on Output Destination Console Option Boot Log Output Destination Maintenance Mode Prompt Destination a ttymxc1 CON3 Serial Interface 1 CON3 Serial Interface 1 ttymxc2 CON9 Serial Interface 2 CON9 Serial Interface 2 ttymxc4 CON9 Serial Interface 3 CON9 Serial Interface 3 null None CON3 Serial Interface 1 Other tty1 etc The specified console b CON3 Seria...

Page 65: ... to the LCD panel hermit setenv console tty1 Figure 11 4 Boot Option Configuration Example 2 11 3 Note on Bootloader Versions When a bootloader image based on hermit at v2 0 0 source loader armadillo4x0 v2 0 0 bin etc and a kernel image based on linux 2 6 26 at7 source linux a400 1 00 bin gz etc are used on Armadillo 440 board revision Rev C1 or later boards S N 100201 2195 or greater a problem ex...

Page 66: ...data has been damaged it is replaced with the contents of the etc default directory 12 2 Saving to the Config Region The command shown below is used to save to the config region The files saved to the config region are those present under the etc config directory armadillo flatfsd s Figure 12 2 Saving to the Config Region If the save to the config region is not carried out then changes to the file...

Page 67: ... armadillo flatfsd w Figure 12 3 Config Region Initialization Armadillo 440 LCD Model Development Set Startup Guide Config Region Configuration File Storage 67 ...

Page 68: ...mple when changing from AUTO IP to a STATIC IP configuration means that the correct current IP address corresponding to the hostname also changes However depending on the WEB browser the cached old IP address may continue to be used and pages accessed via the hostname will not be displayed for a certain period of time If this occurs please close and restart the WEB browser and then access the top ...

Page 69: ...ion 3 1 Layout Diagram 1 1 2 12 22 2010 Moved precautions to Chapter 2 Precautions Corrected inconsistent use of product names 1 1 3 03 25 2011 Added explanation of Hermit AT modes to Section 11 2 Linux Kernel Boot Option Configuration Changed Touch Panel to Touch Screen in Chapter 5 Function Tests Updated company address Corrected various errors and inconsistencies Updated title and content of Se...

Page 70: ...Armadillo 440 LCD Model Development Set Startup Guide Version 1 1 5 2012 02 29 Atmark Techno Inc 060 0035 AFT Bldg N5E2 Chuo ku Sapporo TEL 011 207 6550 FAX 011 207 6570 ...

Reviews: