Home
User's manual
Contents
1. Session Basic options for your PuTTY session Mi Logging Specify the destination you want to connect to Terminal Lu Keyboard Host Name or IF address Port po i Bell 192 168 0 254 Zi i Features gti Maul nam ene Rlogin 55H Serial o i Appearance Behaviour Translation Saved Sessions Load save or delete a stored session Selection ii Colours Default Settings Connection 10 1 40 15 10 1 40 17 10 1 40 170 rbox610 Close window on exit Always Never Only on clean exit 2 8 Getting Started rBOX610 Linux 3 To login rBOX610 please enter root with no password ge 192 168 0 254 PuTTY Welcome to Fi cal Semiconductor Embedded Linux Environment freescale login or a list of built in commands For Linux users 1 Open terminal and keyin telnet command E FSIE 1221 elime TBI kevin kevin desktop telnet 192 168 0 254 2 After the connection is established successfully please enter root to login amp E kevin kevin desktop fEzxx F 2E UNES UN UY kevinGkevin desktop telnet 192 168 0 254 Trying 192 168 0 254 Connected to 197 168 0 254 Escape character is Welcome to Freescale Semiconductor Embedded Linux Environment freescale login root BusyBox v1 15 0 built in shell ash Enter help for a list of built in commands root freescale Getting
2. Disclaimers This manual has been carefully checked and believed to contain accurate information Axiomtek Co Lid assumes no responsibility for any infringements of patents or any third party s rights and any liability arising from such use Axiomtek does not warrant or assume any legal liability or responsibility for the accuracy completeness or usefulness of any information in this document Axiomtek does not make any commitment to update the information in this manual Axiomtek reserves the right to change or revise this document and or product at any time without notice No part of this document may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without the prior written permission of Axiomtek Co Lid Trademarks Acknowledgments Axiomtek is a trademark of Axiomtek Co Ltd Windows is a trademark of Microsoft Corporation Other brand names and trademarks are the properties and registered brands of their respective owners Copyright 2014 Axiomtek Co Ltd All Rights Reserved April 2014 Version A2 Printed in Taiwan Table of Contents Bio plu lE RM AM EA MER MERE Rm li Chapter 1 Hlntroduction sss uuuuuuuuuunnnnnn 1 1 SDECICAUONS EE EE ali 2 Chapter 2 Getting Started 5 2 1 2 2 2 3 Connecting the rBOXO 1 O pe
3. usr local sbin cp tdspusbcardinit etc rc d init d chmod x etc rc d init d tdspusbcardinit 8 modify module dep in rBOX610 vi lib modules 2 6 35 3 Q7M100 017 modules dep Add following item Alib modules 2 6 35 3 Q7M 100 01 7 kernel drivers wifi BDSP 3dspusbwlan ko Aib modules 2 6 35 3 Q7M 100 01 7 kernel drivers wifi 3DSP 3dspusbbus ko lib modules 2 6 35 3 Q7M 100 01 7 kernel drivers wifi SDSP 3dspusbbus ko 9 Excute tdspusbcardinit and tool uwbtool to initial wifi module etc rc d init d tdspusbcardinit start uwbtool a wlan n m m LL EP COMS PuTTY c3 DM e GMAT TAT 2072720 W AGA pN Je VI e JVe HHHAHS HEH HAHAH aaa or LAJ o PU lea A L V Coj V CLUS CU L Li AI EMNOIT 24 The Embedded Linux rBOX610 Linux Chapter 4 Programming Guide We release a set of application programming interface API functions for users to access control hardware With these API functions users can more easily design their own software This chapter includes detailed description of each API function and step by step code samples showing how it works 4 1 librb212 API Functions The rBOX610 BSP includes librb212 so shared library for users to access I O and read back system information This shared library is kept in BSP you can find it in rBOX610 rb lib 1 2 0 tar bz2 of AxTools Extract the compressed file then besides the shared library you can also see a demo folder containing API hea
4. COMS PuTTY 5 5 C2 W CO CO UUUUUUUUUUUDU SHH HR H ARH HB HHA AAR tRemoved LJ UI L2 GLO WWW LO LOJ UJ HATAMOID CX X T PAL X 3 1 e KEEKKKKKKKEKE B uL Je LM d i db Sub type 50 of 5000 result download dsp e ok Line 608 tc is n C c g currentserialno and g currentserialno The Embedded Linux 17 rBOX610 Linux iwconfig If the driver loads successfully you will see interface twifiuO r COMS PuTTY main c main c i l 136 fd main i success ee wlan te ioctl wirel 1 INFRA pt Invalid mis 3 Scan AP iwlist twifiuO scan currentserialno r Ep COMS PuTTY 2 Mb s 5 2 Mb s 18 The Embedded Linux rBOX610 Linux 4 Connect AP with wpa supplicant Configure wpa supplicant vi example conf ctrl interface var run wpa supplicant Configure encryption as disable and no authentication type network 1 ssid AP SSID a ka mii Configure encryption as WEP Open type network ssid AP SSID key_mgmt NONE auth_alg OPEN wep_key0 0123456789 EPA Configure encryption as WEP and shared key as authentication type network ssid AP_SSID key_mgmt NONE auth alg SHARED wep key0 0123456789 E A C Configure encryption as TKIP and WPA PSK as authentication type network ssid AP_SSID pairwise TKIP group TKIP proto WPA key mgmt WPA PSK pU
5. LTIB ftp 192 168 0 254 Connected to 192 168 0 254 228 Operation successful Name 192 168 8 238 Operation Remote system type is UNIX Using binary mode to transfer files 2 ftp bin 3 ftp put hello ftp bin 2800 Operation successful ftp put hello local hello remote hello 200 Operation successful 156 Ok to send data 226 Operation successful 7800 bytes sent in 0 00 If the operation is successful you can see hello program at rBOX610 s root directory m mM D i Ni Ni Nu l 4 chmod x hello 5 Runthe hello program hello Getting Started ti rBOX610 Linux 2 3 2 Via USB Flash Drive Another method of putting hello program into rBOX610 is via USB flash drive Please follow the instructions below 1 2 EE From the PC copy hello program to USB flash drive Attach USB flash drive to rBOX610 mkdir mnt usb p mount dev sda1 mnt usb m pu Fi er Bri im tj pu i Mm mM fi fh Lo Lu ig ig Ld l Li Ft H Mi La pu I i Fh pu I i m cp mnt usb hello root cd root chmod x hello hello m im qT i 2 3 3 Via TFTP Originally the Host Development System Installation already has TFTP server installed You can put the hello program into rBOX610 via TFTP Please follow the instructions below 1 pup 9 12 cp hello tftpboot LTIB gt LTIB gt cp hello tftp
6. callbacks h main o uwbhotkey wbusb conf BuffPrint h Makefile callbacks o myhead h uwbtool CVS callbacks c main c readme uwbtool 1 gz LTIB gt LTIB gt vi wbusb conf Change ALLOWEDMODES 3 to ALLOWEDMODES 2 DEFAULTMODE 3 ALLOWEDMODES 2N SHOWWARNING O COEXISTWARNING The Coexist mode is only for testing Me max 50 chars 6 edita script file to mount driver vi tdspusbcardinit bin sh chkconfig 2345 98 89 description 3DSP usb card initialization BEGIN INIT INFO Provides tdspusbcardinit Required Start bluetooth Required Stop Default Start 2345 Default Stop 016 4 Short Description 3DSP usb card initialization END INIT INFO set e case 1 in start modprobe 3dspusbbus echo install wlan driver modprobe 3dspusbwlan sleep 1 mknod dev tdspusbbus c awk 2 3dspusbbus print 1 proc devices stop rm f dev tdspusbbus rmmod 3dspusbwlan rmmod 3dspusbbus restart force reload 0 stop 0 start 3 exit 1 esac exit 0 The Embedded Linux 23 rBOX610 Linux 7 copy 3dspcode bin uwbtool 3dspusbbus ko 3dspusbwlan ko wbusb conf tdspusbcardinit to rBOX610 via usb flash drive or ftp mkdir p lib modules 2 6 35 3 Q7M 100 01 7 kernel drivers wifi 3DSP cp ko lib modules 2 6 35 3 07M100 017 kernel drivers wifi 3DSP mkdir p usr local 3DSP usb cp wbusb conf usr local 3DSP usb cp 3dspcode bin u sr local 3DSP usb cp uwbtool
7. kernel source folder cd Project Q7M100 kernel In s linux 2 6 35 3 linux 7 Reconfigure LTIB main setting to build kernel to local Linux directory cd Project Q7M100 ltib Itib m config Select kernel setting 200 jrtiger ubuntu vm Project Q7M100 Itib 2 CAIL view termine Hebron ARAZI nop PORU Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt selectes a feature while lt N gt will exclude a feature Press lt Esc gt lt Esc gt to exit lt gt for Help Legend feature is selected feature is excluded 02 march armv5te nter any CFLAGS for gcc g NEW Choose your bootloader for U Boot ootloader u boot gt Choose your board for u boot Choose your Kernel kernel Linux 2 6 35 imx lways rebuild the kernel roduce cscope index nclude kernel headers onfigure the kernel vi lt Exit gt lt Help gt Board Support Package BSP 45 rBOX610 Linux 46 Select Local Linux directory build FIELDS arel ire phe Arrow keys navigate the menu Enter selects submenus WETHER Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the SPACE BAR Press for additional information about this option inux 2 6 35 imx inux 2 6 31 imx inux 2 6 28 imx inux 2 6 imx git Xx Local Linux directory
8. or low and detect signal state from each digital channel unsigned char xch Get DI amp xch printf Current Digital Input Data is X2XXn xch Set DO 0x3 Get DO amp xch printf Current Digital Output Data is X2XXMN xch 4 2 5 LEDs Setting Three different LEDs are supported by rBOX610 system LED 3G signal strength LED and 3G linked LED Use the LED API functions to set LED on off state and color printf Turn on sys LED n Set LEDStatus 1 sleep 2 printf Turn off sys LED n Set LEDStatus 0 printf Turn on 3G Linked LED and 3G Strength LED Green n Set 3GLLED 1 Set 3GSLEDGreen sleep 2 printf Turn on 3G Strength LED Red n Set 3GSLEDRed sleep 2 printf Turn off 3G Linked LED and 3G Strength LED n Set 3GLLED 0 Set 3GSLEDOff 4 2 6 Read and Write EEPROM The rBOX610 supports capability to store data that must be saved when power is removed in EEPROM memory With the EEPROM API functions data in byte can conveniently be read and written to EEPROM If you are going to use the rBOXAP you are recommended not to change any data on EEPROM Note char str Hello world printf write N Hello world V to EEPROM Nn for 120 1 sizeof str i write EEPROM Byte i str i printf Show EEPROM n for i 0 1 lt Oxff i printfC 02x Read EEPROM Byte 1 1f 171 516 0 printf Nn Programming Guide 35 rBOX610
9. over Ethernet To support TFTP this embedded Linux image has built in TFTP client so does its accompanying bootloader U boot In Chapter 5 there are descriptions of TFTP server installation and kernel boot up process via TFTP Section 2 3 3 shows you how to transfer file between server and client 3 2 3 NFS Network File System NFS enables you to export a directory on an NFS server and mount that directory on remote client machine as if it were a local file system Using NFS on target machine we can have access to a huge number of files libraries and utilities during development and debugging as well as booting up kernel This embedded Linux kernel is compiled with support for NFS including server side client side functionality and Root file system on NFS Section 5 1 and 5 2 1 show how to boot up embedded Linux with an NFS support The Embedded Linux rBOX610 Linux 3 2 4 WiFi Optional 3 2 4 1 WiFi configuration This section contains detailed informations about WiFi configurations Boot the rBOX610 into OS with username root with no password 2 Execute command below to load WiFi module driver and generate WiFi interface etc rc d init d tdspusbcardinit start lp COMS PuTTY s Tu e m MAT AZ le o EEE EEE EEE EE EEE EEE EEE EE 3DSP BUS Dri r EEE SELE SEE EEE EE rr vir ir ir e ir trit vir we e ir e oe ocardinit found intf 0 out uwbtool a wlan p
10. saved when system power is removed Read internal RTC time with the following command rdiMXRTC rootafreescale rdiMXRTC Getting the iMX28 RTC current date and time 1MX28 Current DateTime is 2013 12 26 5 48 24 3 1 5 External RTC Time The external RTC time is read from RS5C372 external RTC When system power is removed this time value is kept as RS5C372 is powered by battery Read external RTC time with the following command rootQfreescale rd372RTC RS5C372 Current DateTime is 2013 12 26 5 48 37 3 1 6 Adjusting System Time Adjust system time through NTP server ntpclient h time stdtime gov tw s Write sync time to internal RTC hwclock w Write internal RTC time to external RTC wr372RTC rootefreescale ntpclient h time stdtime gov tw s 41632 21752 118 40874 0 4 9 14726 4 34194 9 root freescale hwclock w root freescale wr372RTC current iMX28 RTC time RS5C372 Current DateTime is 2013 12 26 6 3 0 rootdireescale The Embedded Linux 15 rBOX610 Linux 3 2 16 Networking 3 2 1 FTP File Transfer Protocol FTP is a standard network protocol used to transfer files from one host to another host over TCP based network The rBOX610 comes with a built in FTP server Section 2 1 shows the steps to put hello program to rBOX610 via FTP 3 2 2 TFTP Trivial File Transfer Protocol TFTP is a lightweight protocol of transfer files between a TFTP server and TFTP client
11. 10 Close window on exit Aways Never Only on clean exit Options controlling local serial lines Select a serial line Serial line to connect to Configure the serial line Speed baud Data bits Stop bits Parity How control Getting Started rBOX610 Linux 3 f connection is established successfully you should see the following image Assumin Assuming 0 0 the Mounting EXT3 fs barriers XT3 f3 mmcblkOp4 1 ied running e2fsck is recommended kjournald starting EXT3 fs mmcblkOp4 using internal AXTI3 fs3 mmchlkOn4 mounted Starting inetd ciomtek SBC Bor 214 1 n none linux gnueabi gcc 4 Ot filesystem built on Tue Semiconductor Inc 4 To login please enter root with no password EXT3 fs mmcblk p4 EXT3 fs mmcblk p4 1 i 1 r arm none linux gnueabi gcc 4 root filesystem built on Tue Semiconductor Inc built in shell built in commands Getting Started 7 rBOX610 Linux 2 1 2 Telnet over Ethernet Now we are going to connect the rBOX610 to PC over Ethernet The following illustrations show how to do it under Windows and Linux environment Note that rBOX610 LAN1 default IP address is 192 168 0 254 For Windows users 1 Here we also use PuTTY to setup and link Open PuTTY and choose Telnet as the connection type Then set the IP address to 192 168 0 254 and click Open E PuTTY Configuration Category
12. 2 192 168 0 254 192 168 0 3 Setup TFTP server IP MX28 U Boot setenv serverip 192 168 0 3 oetup board IP address MX28 U Boot setenv ipaddr 192 168 0 254 Setup rootfs path MX28 U Boot setenv nfsroot tools rootfs Setup boot delay MX28 U Boot setenv bootdelay 2 Save configurations MX28 U Boot saveenv Heset the board and kernel will be launched 5 2 2 Booting the System from eMMC First you need to download kernel root filesystem through TFTP server and install it into eMMC Setup TFTP server IP MX28 U Boot setenv serverip 192 168 0 3 oetup board IP address MX28 U Boot setenv ipaddr 192 168 0 254 Download kernel image through TFTP server MX28 U Boot tftpboot ulmage Using FECO device TFTP from server 192 168 0 3 our IP address is 192 168 0 254 Filename ulmage Load address 0x42000000 Loading FEC Link is down 7809 Board Support Package BSP rBOX610 Linux THHHHHI done Bytes transferred 2454628 257464 hex Install kernel image into eMMC MX28 U Boot gt mxs mmc install 0 0x42000000 0x257464 ulmage Done 4795 12bb hex sectors written at 256 100 hex Download root filesystem through TFTP server the file size limitation of this method is 96MB MX28 U Boot gt tftpboot rootfs ext2 Using FECO device TFTP from server 192 168 0 3 our IP address is 192 168 0 254 Filename rootfs ext2 Load address 0x42000000 Loading FEC Link is down 7809 THHHHHI done
13. AI ME be Meo ME domu e E eda voda Penis 17 Chapter 4 Programming Guide 29 4 1 4 2 IIBID212 ARI FUNCTIONS oca nen ceu ioo bam maa ayla salak ce tage saco Nanna lo Kan konio 25 librb212 API EXAMPIOCS sss uon e be emmi ee Enea conu ecu eus 33 4 2 1 Get Board ID and Power Status 33 4 2 2 COM Port Configuration eee ssssseeeensnnneeeennnnnneeennnnnnaneettos 33 4 2 3 Watchdog Timer sscsessssssscesssssssscssssesnssssssqennsstsennnnssssttss 34 4 2 4 Digital Input and OUI uo laj e a o a nko 35 4 2 5 AB As io NM RE T UU M T E 35 4 2 6 Read and WMS EEPROM iicet iei e acetic oe e edes 35 A3 7 Seno eoi asco ac oU e o e d 36 4 4 Compile Demo Program ieri KO ox Coa ave cete ecco KAE 38 4 4 1 kc m TB Ke cerl pum b ohoO iou TETTE TTT 38 4 4 2 GIN CERIO DOG AIM EE o E cede a T 38 Chapter 5 Board Support Package BSP 39 5 1 Host Development System Installation 39 5 1 1 Install HOSTS VELET zaar elek alm eli ae lella ue etu cele cate 39 5 1 2 HVS CAN SHI MIT 41 5 1 3 Compile Demo POAN kum ren ako e een ra e a slo 51 5 2 U BOOF OFOZMIOO iioii eia aleae Dc eub ida acini kakao eL 52 5 2 1 Booting the System with an NFS Filesystem ssssssssse 52 5 2 2 Booting the System from eMMC sssssssseeeennneee
14. Bytes transferred 74526720 4713000 hex Install root filesystem into eMMC MX28 U Boot gt mxs mmc install 0 0x42000000 0x4713000 rootfs Done 145560 23898 hex sectors written at 32768 8000 hex Run system from eMMC MX28 U Boot run bootemd mmc We configure 1GB EXT partition for root filesystem If you want to use full size to deploy your system try booting from NFS filesystem and then Note format EXT partition Extract filesystem and install it to EXT partition as follows Booting with NFS filesystem MX28 U Boot run bootcmd net Format EXT partition as EXT3 mkfs ext3 dev mmcbik0p3 Mount this partition mount dev mmcbik0p3 mnt src Extract filesystem and install it to EXT partition tar jxf rootfs tar bz2 C mnt src Then reboot and boot it from eMMC Command syntax of installing image to eMMC mxs mmc install dev num addr size ulmage rootfs 5 2 3 Reference Document e uboot mx28 pdf e ltib build host setup pdf Board Support Package BSP 53 rBOX610 Linux 5 3 Additional Information 5 3 1 4GB eMMC Partition Layout 0 512B IKB U Boot environment configuration 128KB Kernel ulmage SMB SB Partition u boot sb Warning Don t edit this partition 16MB EXT3 Partition Root filesystem 1040MB EXT3 Partition Storage 4GB 54 Board Support Package BSP rBOX610 Linux 5 3 2 Compile and Build Your Program 1 Compile and build your program for rBOX610 Change to tib direct
15. DEINEN Configure encryption as CCMP and WPA PSK as authentication type network ssid AP_SSID pail rwi se CCMP group CCMP proto WPA key mgmt WPA PSK poe e e Configure encryption as CCMP and WPA2 PSK as authentication type network ssid AP_SSID pairw se CCMP group CCMP proto RSN key mgmt wPA PSK The Embedded Linux 19 rBOX610 Linux Execute wpa supplicant to connect to AP wpa supplicant BDwext i twifiuO c example conf If connection is successful type iwconfig command and you will see image below iwconfig n ap COMS PuTTY ia A T TRANS 02025 tx transmi dat rm acket current E 3 W LJ pj u 2 gt S a DE Ee OF OO m SULU e 11 Mb s 5 Get IP from AP udhcpc i twifiuO ji ai LOCalL DL usr local sbin usr local sbin udhcpc i twifi1u0 CA rala ku kata STIIULI 1g Sending 20 The Embedded Linux rBOX610 Linux 6 Test WiFi connection with ping ping I twifiuO 168 95 1 1 n Ep COMS PuTTY le 7 Disconnect WiFi connection wpa cli i twifiuO terminate The Embeaded Linux 21 rBOX610 Linux 3 2 4 2 WiFi driver compilation and installation By default rBox610 image will include WiFi driver If you have to compile and install WiFi driver in newly built image follow the steps below 1 download BlueW 2310U Ubuntu12 04 3 0 10 130306 tar gz N
16. Elapsed 2156 seconds Build Succeeded jrtiger ubuntu vm Project Q7M100 1Ltib After you have completed a build using LTIB you will have a target root filesystem in the rootfs directory inside the LTIB install directory Inside the Project Q7M100 Itib rootfs boot directory you can find kernel image ulmage 50 Board Support Package BSP rBOX610 Linux 5 1 3 Compile Demo Program 1 Compile and build demo program for rBOX610 CPLD function Change to tib directory cd Project Q7M100 Itib Enter Itib shell mode this is a developer function that provides an environment for compiling and building package Itib m shell Extract driver source to tib rom BUILD directory LTIB gt tar jxf rBOX610 rb lib 1 1 1 tar bz2 C rom BUILD Change to rb_lib demo directory LTIB gt cd rpm BUILD rb lib demo Build the demo program LTIB gt make Then copy all binary file to target root filesystem you build The root filesystem is a directory tree found under rootfs 2 Install and run demo program into rBOX610 Refer to section 2 3 for more detailed information Board Support Package BSP 51 rBOX610 Linux 5 2 52 U Boot for Q7M100 5 2 1 Booting the System with an NFS Filesystem By default U Boot is configured to boot from NFS To boot from NFS first you must set some configurations Press any key to break from the boot progress and set configurations Ethernet Hub Development PC rBOX610 RS 23
17. Linux 4 3 CAN Bus The Controller Area Network CAN bus is a serial bus protocol that usually used in connecting intelligent industrial device networks and building smart automatic control systems Use the SocketCAN API to read and write to CAN bus on rBOX610 An example program showing how it works is provided below rBOX610 CAN Bus CAN CAN CAN DEVICE DEVICE DEVICE include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt string h gt include netAf h include lt sys types h gt include lt sys socket h gt include lt sys octl h gt include lt linux can h gt include lt linux can raw h gt int main void int s s int nbytes struct sockaddr can addr addr1 struct can frame rame ramel struct 1freq 1fr 1fr1 int xBitRate 500000 char ifname can0 char 1fnamel canl 36 Programming Guide rBOX610 Linux if s socket PF CAN SOCK RAW CAN RAW lt 0 perror Error while opening socket retum 1 j if sl socket PF CAN SOCK RAW CAN RAW lt 0 perror Error while opening socket return 1 j strcpy fr ifr name ifname strcpy ifrl 1fr_name ifname1 loctl s SIOCGIFINDEX dur ioctl sl SIOCGIFINDEX amp ifrl addr can family AF CAN addr can ifindex 1fr 1fr_ifindex ifr ifr_ifru ifru_ivalue xBitRate loctl s SIOCSCANBAUDRATE amp ifr addrl can family AF CAN addr1 can ifindex trl 1fr_ifindex ifr i
18. OX610 Linux 5 1 2 Install LTIB 1 Build your own project folder mkdir p Project Q7M100 2 Extract the source tar ball with the following command tar zxf L2 6 35 10 12 01 SDK source tar gz Note that you can get this file from Axiomtek official website hitp www axiomtek com products ViewDownload asp View PID rBOX610 Download LTIB IMX28 zip Unzip it to get 2 6 35 10 12 01 SDK docs tar gz L2 6 35 10 12 01 SDK source tar gz and IMX MMCODECS 10 12 tar gz 3 Now change directory to the extracted folder and execute the install script Then you can install it into your own project folder cd L2 6 35 10 12 01 ER source install 20 jrtiger ubuntu vm L2 6 35 10 12 01 ER source File Edit View Terminal Help If the Licensed Software includes software and hardware developed by Global Locate Inc Global Locate and acquired by Broadcom Corporation you must separately obtain rights beyond evaluation and demonstration for the Global Locate software from Broadcom Corporation CSR If the Licensed Software includes software and hardware developed by Cambridge Silicon Radio Inc CSR you must separately obtain rights beyond evaluation and demonstration for the CSR software from CSR LAOPT27 Nov 12 2010 I have read and accept the EULA yes no yes The LTIB files are extracted from a tar file which includes the prefix ltib After installation you will find LTIB in home jrtiger L2 6 35 10 12 01 ER source l
19. Started 9 rBOX610 Linux 2 2 How to Develop a Sample Program In this section learn how to develop a sample program for rBOX610 with the following step by step instructions The sample program is named hello c 10 2 2 1 Install LTIB Toolchain Before you develop and compile sample program you should install Linux toolchain into development PC To do so refer to Chapter 5 Board Support Package 2 2 2 Write and Compile Sample Program cd Project Q7M100 Itib Itib m shell Q7M180 ltib ltib m shell exit to quit LTIB gt cd rpm BUILD LTIB gt mkdir example p LTIB cd example Use vi to edit hello c LTIB gt vi hello c finclude stdio h int main printf hello world n return 0 To compile the program please do LTIB gt gcc hello c o hello gcc hello c o hello After compiling enter the following command and you can see the hello execution file LTIB gt Is l hello c o hello E ilmin root root 7800 Nov 26 10 17 hello r 1 root root 71 Nov 21 17 41 hello c Getting Started rBOX610 Linux 2 3 How to Put and Run a Sample Program In this section we provide 3 methods showing how to put the hello program into rBOX610 and execute it 2 3 1 Via FTP By default the rBOX610 comes with a built in FTP server Users can put hello program to rBOX610 via FTP by following the steps below 1 ftp 192 168 0 254 without username and password
20. Type 2 3 printf RS485 n n else printf RSVD n n Programming Guide 33 rBOX610 Linux 4 2 3 Watchdog Timer Software stability is major issue in most application Some embedded systems are not watched by human for 24 hours It is usually too slow to wait for someone to reboot when system hangs The systems need to be able to reset automatically when things go wrong The watchdog timer gives us solution The watchdog timer is a counter that triggers a system reset when it counts down to zero from a preset value The software starts counter with an initial value and must reset it periodically If the counter ever reaches zero which means the software has crashed the system will reboot With these API functions you can enable disable set watchdog timer value to 0 from 255 where 1 unit 250ms and etc Enable and Initialize Enable and Initialize Watchdog Timer Watchdog Timer Program A Program A Disable Watchdog Reset Watchdog Timer Timer printf Enable CPLD WDT 30 sec n CPLD WDT Enable 120 printf CPLD WDT Counter 2f sec n n float CPLD Get WDTCounter 4 printf Delay 5 sec n sleep 5 printf CPLD WDT Counter 2f sec n n float CPLD Get WDTCounter 4 printf Disable CPLD WDT n CPLD WDT Disable 34 Programming Guide rBOX610 Linux 4 2 4 Digital Input and Output The digital related API functions allow users to set digital output signals to high
21. W Enable 0 No error 1 Function fails None Programming Guide 27 rBOX610 Linux Function Set COMTermination Function int Set COMTermination int number int onoff oet termination of specified COM port number COM port number 1 COMI 2 COMO 3 COMS 4 COM4 onoff Enable or disable termination 1 Enable termination 0 Disable termination 0 No error 1 Function fails 28 Programming Guide rBOX610 Linux Function CPLD Get WDTCounter Function __u8 CPLD Get WDTCounter void Get watchdog timer counter value Return 0 255 where 1 unit 250ms Others None Function CPLD _ WDT Enable Function int CPLD WDT Enable u8 timeout Description Enable watchdog timer Also use it to reset WDT counter Arguments timeout Timeout value The range is from 0 to 255 where 1 unit 250ms 0 No error 1 Function fails None Function CPLD WDT Disable Function int CPLD WDT Disable void Disable watchdog timer None 0 No error 1 Function fails None Function CPLD WDTStatus Function u8CPLD WDTStatus void Detect watchdog timer status 1 If watchdog timer has been triggered return value 1 NE 0 If watchdog timer has not been triggered return value O Programming Guide 29 rBOX610 Linux Function Get DI Function int Get DI u8 data Read high or low state on digital input channels Argum
22. arted 2 1 Connecting the rBOX610 You can connect the rBOX610 to personal computer PC in two ways e Serial RS 232 console e Telnet over Ethernet Ethernet Hub rBOX610 D gt RS 232 192 168 0 254 4 192 168 0 3 Getting Started 5 rBOX610 Linux 2 1 1 Serial Console The serial console is a convenient interface for connecting rBOXG10 to PC First of all it is very important to make sure that the serial port settings are as follows Baudrate 115200 bps Parity None Data bits 8 Stop bit 1 Flow Control None Here we use PuTTY to setup and link to the rBOX610 Learn how to do it with these step by step instructions 1 Open PuTTY and choose Serial as the connection type E Session Features E Window poj Appearance Behaviour Translation i Colours H Connection i Rlogin E 55H i Serial 2 Configure the serial port correctly see image below Click Open and power on the rBOX610 EE PuTTY Configuration B Session Logging Terminal Po i Features Ek Window ke Appearance Behaviour Translation j Selection Colours Connection Telnet Rlogin E 55H Basic options for your PuTTY session Specify the destination you want to connect to Serial line Speed COM Connection type O Raw Telnet Rlogin 0 SSI Load save or delete a stored session Saved Sessions Default Settings 10 1 40 15 10 1 40 17 10 1 40 170 rbox amp
23. boot LTIB l tftp g r hello 192 168 0 3 tftp server IP chmod x hello Run the hello program hello Getting Started 3 1 rBOX610 Linux Chapter 3 The Embedded Linux Embedded Linux Image Managing 3 1 1 System Version This section describes how to determine system version information including kernel and root filesystem version Check kernel version with the following command uname r rootQfreescale uname r 2 6 35 3 07M100 017 root freescale Check root filesystem with the following command grep RootFS etc Itib release rootQfreescale grep RootFS etc ltib release RootFS version 1 7 1 rootaQfreescale 3 1 2 System Upgrade Procedures This section describes how to upgrade kernel and root filesystem Upgrade kernel by following steps below 1 Copy ulmage to mnt storage firmware folder First check whether partition is mounted on mnt storage df h rootafreescale df h Filesystem Size Used Available Use Mounted on dev root 1007 9M 108 8M 847 9M 11 60 6M 64 0K 60 6M 0 dev 60 6M 60 6M 0 dev shm 512 0K 512 0K 0 mnt rwfs dev mmcbik6p4 2 66 2 46 3 mnt storage Then attach the usb flash drive that contains ulmage file and mount it to mnt usb mount v dev sda1 mnt usb rootafreescale mount v dev sdal mnt usb Copy ulmage cp mnt usb ulmage mnt storage firmware rootefreescale cp mnt usb uImage mnt storag
24. build ont build the Linux kernel Help gt lt Exit gt lt Help gt Then enter new linux source directory 200 jrtiger ubuntu vm Project Q7M100 Itib ri TT P gm X rie COIL View Iermina rICIE HOEren MIZ CASE GERTE Arrow keys navigate the menu Enter selects submenus Highlighted letters are hotkeys Pressing Y selectes a feature while lt N gt will exclude a feature Press lt Esc gt lt Esc gt to exit for Help Legend feature is selected feature is excluded 02 march armv5te nter any CFLAGS for gcc g NEW Choose your bootloader for U Boot ootloader u boot Choose your board for u boot Choose your Kernel ernel Local Linux directory build fusr src linux Enter your Linux source directory NEW uild the kernel out of tree NEW lways rebuild the kernel roduce cscope index v Exit Help Board Support Package BSP rBOX610 Linux Enter your own linux kernel source folder gt QB jrtiger ubuntu vm Project Q7M100 Itib File Edit View Terminal Help Ole uen ant BONU Arrow keys navigate the menu Enter selects submenus Highlighted letters are hotkeys Pressing Y selectes a feature while N will exclude a feature Press Esc Esc to exit for Help Legend feature is selected feature is excluded ner eu BL Bol nes bes CIV Please enter a strin
25. cie oe ans a Eo e npe eee coe arce apu dcus 5 2 1 1 ww Rene M 6 2 1 2 Telnerover EIhellielu elo a ho dates ba ba da ba la aue 8 How to Develop a Sample Program 10 2 2 1 Install ETIB TOOIG MAIN eae endo vo deed er deus Me ea ko ve i tnus 10 2 2 2 Write and Compile Sample Program 10 How to Put and Run a Sample Program 11 2 3 1 Izur TTT TTT 11 2 3 2 Via ob Elash Dive e edle sei hoc a aude A Een kada od ua 12 2 3 3 licae 12 Chapter 3 The Embedded Linux 13 3 1 3 2 Embedded Linux Image Managing 13 3 1 1 oysteim VEKSION sx sa uv ooa uk VA lU dus thet kk VA dani lu 13 3 1 2 systemUpgradeProcedures 13 3 1 3 System TIN Goa a e 14 3 1 4 Internal RTC Time ssssscesesssccnsessscenennsseneensscssqasssenqantetennns 15 355 External BT G S es puse a e a velato vc ka ia a Kakao ura 15 3 1 6 Adjusting System Time ceessesessccessessesssensennssssenqennassstts 15 NEIWOFKINO t 16 3 2 1 FiP rFilelransterProtocol 16 3 2 2 TFTP Trivial File Transfer Protocol eese 16 3 2 3 NFS Network File SVSIGITI qiia ihv t oci es e Rb Evi 16 3 2 4 WIFELODION
26. der file and example programs Summary table of available API functions No Function Bessipon 1 1 6 SetCOMTeminaion Set termination of specified COM por CPLD WDT Enable Enable watchdog timer Also use it to reset WDT counter 3 GPLO WDT Dssb Disabie watchdog imer Programming Guide 25 rBOX610 Linux Function Get BoardlD Function u16 Get BoardlD void Description Get board ID None Board ID in 2 bytes pattern None Function Get PowerStatus Function int Get_PowerStatus int number Description Get power status number Power number 0 Power1 1 Power2 0 Power fails 1 Power is OK None Function Set LEDStatus Function int Set LEDStatus int onoff Set system LED status onoff System LED status 1 On 2 Off 0 No error 1 Function fails None 26 Programming Guide rBOX610 Linux Function Get COMTYpe Function int Get COMType int number Get COM port communication mode type number COM port number 1 COM1 2 COM2 3 COMB 4 COM4 0 Reserved 1 RS232 Enable 2 RS422 RS485 4W Enable 3 RS485 2W Enable Function Set COMType Function int Set COMType int number int type Set COM port communication mode type number COM port number 1 COMI 2 COM2 3 COMB 4 COM4 type COM port mode type 0 Reserved 1 RS232 Enable 2 RS422 RS485 AW Enable 3 RS485 2
27. e firmware The Embedded Linux 13 rBOX610 Linux 2 Run firmware update etc update fw rootafreescale etc update fw Detected kernel image Update kernel 528441 records in 5285 0 records out Update finished rootafreescale Upgrade root filesystem by following steps below 1 Copy rootfs 1 x x tar gz to mnt storage firmware folder and rename it to rootfs tgz cp mnt usb rootfs 1 7 1 tar gz mnt storage firmware rootfs tgz rootefreescale cp mnt usb rootfs 1 7 1 tar gz mnt storage firmware rootfs t gz 2 Run firmware update again After the root filesystem upgrade is complete the system will reboot automatically etc update_fw root freescale etc update fw Detected Root filesystem packages Prepare to update system chroot to tmp filesystem remove old data Extract new data Remove tmp filesystem Update finished After 5 seconds will reboot You can upgrade both kernel and root filesystem at the same time by copying ulmage and rootfs tgz to mnt storage firmware then run Note etc update_fw 3 1 3 System Time System time is the time value loaded from internal RTC each time the system boots up Read system time with the following command date root freescale date Thu Dec 26 05 47 46 UTC 2013 14 The Embedded Linux rBOX610 Linux 3 1 4 Internal RTC Time The internal RTC time is read from IMX processor internal RTC Note that this time value is not
28. e pkgs Then reconfigure LTIB main setting cd Project Q7M100 ltib Itib m config Select Package list 20 6 jrtiger ubuntu vm Project Q7M100 Itib termina pimi eb AMRI burdo bekl Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt selectes a feature while lt N gt will exclude a feature Press lt Esc gt lt Esc gt to exit lt gt for Legend feature is selected feature is excluded uild the kernel out of tree lways rebuild the kernel roduce cscope index nclude kernel headers onfigure the kernel eave the sources after building uild mfg firmware Package selection a Target System Configuration 4 48 Board Support Package BSP rBOX610 Linux Select Freescale Multimedia Plugins Codecs 20 0 jrtiger ubuntu vm Project Q7M100 Itib P lee Arrow keys navigate the menu Enter selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt selectes a feature while lt N gt will exclude a feature Press lt Esc gt lt Esc gt to exit lt gt for Help Legend feature is selected feature is excluded E IJF noinitrd console ttyAMO 115200 root dev mmcblkop3 rw rootwait ip no noinitrd console ttyAMo 115200 ubi mtd 1 root ubi0 rootfsO rootfstyp noinitrd console ttyAMO 115200 fec mac 00 08 02 6B A3 1A root dev n noinitrd console ttyAMO 115200 roo
29. e tar ball with the following command tar zxf rBOX610AP 2 2 2 tar gz 3 Now you can see the following 3 files e rBOX610AP Application package installation program e uninstall sh A script file for uninstalling application package e readme Areadme file 4 Copy rBOX610AP and uninstall sh to USB flash drive 5 Boot up the rBOX610 and mount USB flash drive mkdir p mnt usb mount dev sda1 mnt usb cp mnt usb rBOX610AP root cp mnt usb uninstall sh root Install the application cd root rBOX610AP If you see the message Install success then please reboot rBOX610 reboot Application Software 57 rBOX610 Linux 6 2 After successful installation the App LAN1 default IP address is 192 168 0 254 and LAN2 default IP address is 192 168 10 1 Open a web browser and key in the IP address into web browser s address bar Then you can see the following web config page displayed 2 C DB Axiomtek rBOX610 Mozilla Firefox File Edit View History Bookmarks Tools Help 1 Axiomtek rBOX610 lt a 10 1 40 10 https 10 1 40 10 v 33v Goog a A Axiomtek rBOX610 Password For more detailed information about the Web and App configuration please refer to the rBOX610 FL Web and App User s Manual Note Uninstall the Application Follow steps below to uninstall the application package from rBOX610 1 Execute uninstall sh to uninstall the application cd r
30. emo program LTIB gt make Then you should have example programs such as open comport wat cpld diotest eeprom and commode LTIB LTIB ls Makefile commode c cpld c diotest c eeprom c open comport serial h wdt c commode cpld diotest eeprom librb212 h open comport c wdt 4 4 2 Run demo program Hefer to section 2 3 for detailed information 38 Programming Guide rBOX610 Linux 9 1 Chapter 5 Board Support Package BSP Host Development System Installation 5 1 1 Install Host System Download Ubuntu 10 04 LTS iso image Install Ubuntu 10 04 Sudoers To edit the sudoer s file please run sudo visudo At the end of the sudoers file add the following line which is needed for using LTIB This assumes that all your developers have administrator privileges on this host If that is not the case add a similar line for each user 29 jrtiger jrtiger laptop Projects i MX28 Itib File Edit View Terminal Help GNU nano 2 2 2 File etc sudoers tmp Note that Later entries override this so you might need to move it further down sudo ALL ALL ALL includedir etc sudoers d Members of the admin group may gain root privileges admin ALL ALL ALL irtiner All NOPASSWN ALI sadmin ALL NOPASSWD usr bin rpm opt freescale ltib usr bin rpm we Get Help pii WriteOut i Read File o Prev Page amp X Cut Text ge Cur Pos X su ea Justify Where Is MI Next Page MI UnCut Texte To S
31. ennnnnnneennnnas 52 5 2 3 Reference Document sssss ssssssscesssssssssessscssqunscesnansetnenns 53 5 9 o Additional INTOFMATION eroe treo exeo Ku EEEa 54 5 3 1 4GBeMMCParttionlayout M 54 5 3 2 Compile and Build Your Program sees 55 Chapter 6 Application Software Of 6 1 Install Ihe Applicalloln erii eoe oe aa umudum Kaa noce kla 57 6 2 Uninstall the Application ss sssssssssssnsunsnus 58 rBOX610 Linux Chapter 1 Introduction The extreme compact rBOX610 supports the low power RISC based module iMX287 processor with extended temperature range of 40 C to 0 C for using in wide range operating environments Multiple built in serial ports high speed LANs and USB 2 0 poris enable fast and efficient data computation communication and acquisition Its digital I O feature provides users with the convenience of digital devices connection Besides the industrial grade IP40 rated rBOX610 meets Safety Agency requirements and has passed heavy industrial CE and FCC testing This user s manual is for the embedded Linux preinstalled in rBOX610 The embedded Linux is derived from Freescale BSP L2 6 35 10 12 01 SDK source tar gz which is based on Linux Kernel 2 6 35 3 and our hardware patches to suit rBOX610 Software structure The preinstalled embedded Linux image is located i
32. ents data This function will store digital input data in this argument 0 No error 1 Function fails None Function Get DO Function int Get DO us data Description Read high or low state on digital output channels data This function will store digital output data in this argument 0 No error 1 Function fails None Function Set DO Function int Set DO u8 data Set digital output channels to high or low state Arguments data Data to be written to digital output channels 0 No error 1 Function fails None 30 Programming Guide rBOX610 Linux Function Set 3GSLEDGreen Function int Set 3GSLEDGreen void Set 3G signal strength LED to green None 0 No error 1 Function fails None Function Set SGSLEDRed Function int Set 3GSLEDRed void Description Set 3G signal strength LED to red None 0 No error 1 Function fails None Function Set 3GSLEDOff Function int Set 3GSLEDOff void oet 3G signal strength LED off None 0 No error 1 Function fails None Function Set 3GLLED Function int Set 3GLLED int onoff Set 3G linked LED on or off onoff 3G linked LED state 1 On 0 Off 0 No error 1 Function fails Programming Guide 31 rBOX610 Linux Function Read EEPROM Byte Function u8 Read EEPROM Byte int address Read byte data from EEPROM Arguments address Addr
33. ers are hotkeys Pressing Y selectes a feature while N will exclude a feature Press Esc Esc to exit for Help Legend feature is selected feature is excluded imx28 Platfor LTIB settings Sys em features gt Choose the target C library type arget C library type glibc library package from toolchain only gt oolchain component options gt Toolchain selection oolchain ARM gcc 4 4 4 multilib neon optimized 02 march armv5te nter any CFLAGS for gcc g NEW vit Select Help Just exit without saving main LTIB configuration Do you wish to save your new configuration Yes lt No Create and patch kernel for rBOX610 Create the local kernel folder mkdir p Project Q7M100 kernel Extract kernel source to this folder tar jxf opt freescale pkgs linux 2 6 35 3 tar bz2 C Project Q7M100 kernel Extract i MX platform patches to kernel source folder tar jxf opt freescale pkgs linux 2 6 35 3 imx 10 12 01 bz2 C Project Q7M100 kernel linux 2 6 35 3 Enter the kernel source folder and patch the patches cd Project Q7M100 kernel linux 2 6 35 3 patches patch kernel sh Patch the rBOX610 patches which you can copy from our BSP package patch p1 patch 2 6 35 3 Q7M100 016 patch 44 Board Support Package BSP rBOX610 Linux Return to Projeci 97M100 kernel folder and make a symbolic link to
34. ess of data Return Data read back from EEPROM Others None Function Write EEPROM Byte Function int Write EEPROM Byte int address u8 value Description Write byte data to EEPROM address Address of data value data value to be written into EEPROM 0 No error 1 Function fails None 32 Programming Guide rBOX610 Linux 4 2 librb212 API Examples E Before using the API functions remember to include header file librb212 h Note 4 2 1 Get Board ID and Power Status Use these system API functions to read boardID check power status and etc printf This Board Device ID x n n Get BoardID printf Check Power 1 status 1f Get PowerStatus 1 1 printf Good n n else printfC FaillNnNn printf Check Power 2 status 1f Get PowerStatus 2 1 printf Good INnNn else printf Fail NnNn js 4 2 2 COM Port Configuration The COM port related API functions enable users to configure specified COM port communication mode to RS 232 4 wired RS 422 485 and 2 wired RS 485 printf Read COM1 type TO 1f Get_COMType 1 1 printfC RS232 n n else if Get coMType 1 2 printf RS422 n n else if Get COMType 1 3 printf RS485 n n else printf RSVD n n printf Set COM2 to RS485 n Set COMType 2 3 printf Read COM2 type 3 1f Get COMType 2 1 printfC RS232 n n else if Get cOMType 2 2 printf RS422 n n else if Get COM
35. fr_ifru ifru_ivalue xBitRate ioctl s SIOCSCANBAUDRATE amp ifr1 printf 26s at index d n 1fname ifr ifr 1findex printt Yos at index d n 1fnamel irl ifr ifindex if bind s struct sockaddr amp addr sizeof addr lt 0 perror Error n socket bind return 2 if bind s1 struct sockaddr amp addrl sizeof addr1 lt 0 1 perror Error in socket bind return 2 j frame can id 0x123 Irame can dlc 2 frame data 0 0x11 Irame data 1 2 0x22 write s amp frame sizeof struct can frame printfC Wrote data 0 962x data 1 o2xin frame data 0 frame data 1 read sl amp framel sizeof struct can frame printfC Read data 0 9o2x data 1 o2xin framel data 0 framel data 1 return Programming Guide 37 rBOX610 Linux 4 4 Compile Demo Program 4 4 1 Install LTIB Toolchain Before you develop and compile sample program you should install Linux toolchain into development PC To do so refer to Chapter 5 Board Support Package To compile and build demo program for rBOX610 please do Change to tib directory cd Project Q7M100 Itib Enter Itib shell mode this is a developer function that provides an environment for compiling and building package Itib m shell Extract driver source to tib rom BUILD directory LTIB gt tar jxf rBOX610 rb lib 1 1 1 tar bz2 C rpm BUILD Change to rb lib demo directory LTIB cd rpm BUILD rb lib demo Build the d
36. g value Use the TAB key to move from the input field to the buttons below it home j rtiger Project Q7M100 kernel linux gt lt Help gt DJONAKAG ANKIE TRE DONI CE Arrow keys navigate the menu Enter selects submenus Highlighted letters are hotkeys Pressing Y selectes a feature while N will exclude a feature Press Esc Esc to exit for Help Legend feature is selected feature is excluded f Choose your bootloader for U Boot ootloader u boot Choose your board for u boot Choose your Kernel ernel Local Linux directory build home jrtiger Project Q7M100 kernel linux Enter your Linux source d uild the kernel out of tree NEW lways rebuild the kernel roduce cscope index nclude kernel headers Board Support Package BSP 47 rBOX610 Linux Finally save the configuration Do you wish to save your new configuration MENE lt ko gt 8 Options Adding iMX28 Multimedia codecs support Note that you can get this file from Axiomtek official website hitp www axiomtek com products ViewDownload asp View PID rBOX610 Download LTIB IMX28 zip Unzip it to get 2 6 35 10 12 01 SDK docs tar gz L2 6 35 10 12 01 SDK source tar gz and IMX MMCODECS 10 12 tar gz Extract codec file tar zxf IMX MMCODECS 10 12 tar gz Copy all tar gz file to opt freescale pkgs folder cp IMX MMCODECS 10 12 tar gz opt freescal
37. including the states of running processes amount of memory Timezone Managing time zone data wireless tools A package of Linux commands simple text based utilities tools intended to support and facilitate the configuration of wireless devices using the Linux Wireless Extension e Development Environment Host OS development OS Ubuntu 10 04 LTS Toolchain cross compiler ARM gcc 4 4 4 multilib neon optimized Freescale LTIB e Support Software Types Optional developed by Axiomtek Serial Server Support TCP Server TCP Client UDP Pair VC Support IP filter Support 32 TCP connections Support QoS Modbus Gateway Support Modbus TCP Modbus RTU Modbus ASCII Support IP filter Support 32 connections Support TCP for multiple comport Support QoS Introduction 3 rBOX610 Linux HW s Lib Hardware s Library m WiFi Optional Detect signal strength Set AP connection Set web wpa wpa2 Support search AP m Digital l O Read digital input Write digital output m CAN Support open write read close functions m 3G Set number connection Support user name password Detect signal strength m GPS Detect signal strength Support satellite positioning m Watch Dog Timer Enable Clean Set timer m COM RS 232 422 485 mode setting E All specifications and images are subject to change without notice Note Introduction rBOX610 Linux Chapter 2 Getting St
38. kage BSP rBOX610 Linux Select the imx28 sub platform 96 jrtiger ubuntu vm Project Q7M100 Itib 2 Ti OLAJ Tarmin Li esir T ermina pimi EEES yh EVEL Pay Arrow keys navigate the menu Enter selects submenus keen Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the SPACE BAR Press for additional information about this option mx25 3stack mx233 stmp3780 mx27ads mx3lads omx31 3stack hee bate ds REVEL ST PAS vk Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt selectes a feature while lt N gt will exclude a feature Press lt Esc gt lt Esc gt to exit lt gt for Help Legend feature is selected feature is excluded Choose the platform type Selection imx28 Choose the packages profile S lection use packages in preconfig Min profile gt oad an Alternate Configuration File S ve Configuration to an Alternate File lt Exit gt lt Help gt Board Support Package BSP 43 rBOX610 Linux Exit the sub platform selection screen and save the configuration This will bring you to the main LTIB configuration screen 20600 jrtiger ubuntu vm Project Q7M100 Itib File Edit View Terminal Help eti hl IMi LS rere k pek Arrow keys navigate the menu Enter selects submenus Highlighted lett
39. n eMMC Flash memory which is partitioned and formatted to accommodate boot loader kernel root filesystem and data storage It follows standard Linux architecture to allow user to easily develop and deploy application software that follows Portable Operating System Interface POSIX To facilitate user program in monitoring and controlling I O device such as DIO CAN Watchdog Timer the rBOX610 includes librb212 so shared library In addition to ext2 and ext3 file system this embedded Linux kernel is compiled with support for NFS including server side client side functionality and Root file system on NFS Using an NFS root mount we have several advantages such as e The root file system is not size restricted by the device s storage like Flash memory e Change made to application files during development is immediately available to the target device For connectivity this image includes most popular internet protocols some servers and utilities not only making it easy for downloading uploading files Linux kernel application program or for debugging but also communicating to outside world via Ethernet WiFi and 3G For the convenience of manipulating embedded Linux this image includes lots of popular packages such as busybox udev etc Besides we also provide Axiomtek s application software like Web App and serial server for specific use Introduction 1 rBOX610 Linux User App Daemon Utility Application Programmi
40. ng Interface POSIX Socket p 5 s i D fh G ux on o 3 3 3 a O gt Hardware CPU Memory Ethernet USB 1 0 1 1 Specifications e OS Linux m Kernel 2 6 35 3 with Freescale and Axiomtek hardware modified patch e Support Protocol Types m ICMP m TCP IP m UDP DHCP Telnet HTTP HTTPS SSL SMTP ARP NTP DNS PPP PPPoE FTP TFTP NFS e Shell m Busybox s ash e File system m NFS ext2 ext3 e Daemons m Jelnetd Telnet server daemon m FIPD FTP server daemon 2 Introduction rBOX610 Linux e Utilities m Telnet Telnet client program m FTP FIP client program m TFTP Trivial File Transfer Protocol client e Packages bridge utils The bridge utils package contains a utility needed to create and manage bridge devices busybox Small collection of standard Linux command line utilities udev A device manager for Linux kernel dosfstools Utilities for making and checking MS DOS FAT file system e2fsprogs A set of utilities for maintaining the ext2 ext3 and ext4 file systems Ethtool A Linux command for displaying or modifying the Network Interface Controller NIC parameters i2c tools A heterogeneous set of I2C tools for Linux Libtool A computer programming tool from the GNU build system used for creating portable compiled libraries minicom A text based modem control and terminal emulation program procps Utilities to report on the state of the system
41. oot sh uninstall sh Reboot rBOX610 reboot 58 Application Software
42. ory cd Project Q7M100 Itib Enter Itib shell mode this is a developer function that provides an environment for compiling and building package Itib m shell And compile your program source code LTIB gt make Then copy all binary file to target root filesystem you build The root filesystem is a directory tree found under rootfs 2 Install your program into rBOX610 Through Ethernet You can use tftp or ftpget command to download it to EXT3 partition such as root mnt storage or other folders Through USB storage Mount your USB device and copy it to the folder Refer to section 2 3 for more detailed information Board Support Package BSP 55 rBOX610 Linux This page is intentionally left blank 56 Board Support Package BSP rBOX610 Linux Chapter 6 Application Software The rBOX610 comes with an application software package containing various components such as Serial Server Modbus Gateway 3G Configuration GPS Configuration DIO Configuration SNMP Alarm and etc Users also can download this package from website given below and install it on rBOX610 http www axiomtek com Download Download rBOX610 rBOX610AP 2 2 2 tar az 6 1 Install the Application Follow steps below to install the application package on rBOX610 1 Download rBOX610AP 2 2 2 tar gz 2 To extraci the compressed file For Windows users you may use the WinRAR compression software utility For Linux users extract the sourc
43. ote that you can get this file from Axiomtek official website hitp www axiomtek com products ViewDownload asp View PID rBOX610 enter Itib shell mode and decompress the tar gz file cd Project Q7M100 Itib Itib m shell LTIB cd rpm BUILD LTIB gt tar zxf BlueW 2310U Ubuntu12 04 3 0 10 130306 tar gz LTIB gt cd BlueW 2310U 3 0 10 130306 ED README applications drivers ReLeaseNotes doc logfile Uninstall 3DSPusb2in1 driver src wbtool compile usb bus driver LTIB cd driver src bus LTIB gt vi Makefile Modify KDIR your kernel source director home kevin ProjectyQ7M100 kernel Linux LTIB gt make ARCH arm If compile success you will see 3dspusbbus ko in the directory LTIB ls 3dspusbbus ko 3dspusbbus mod c CVs 3dspusbbus mod o ChangeLog txt LTIB gt compile wlan driver LTIB cd driver src wlan LTIB vi Makefile Modify KDIR your kernel source director home kevin Project Q7M100 kerneL Linux LI LTIB5 make ARCH arm If compile success you will see 3dspusbwlan ko in the directory LTIB ls 3dspusbwlan ko tdsp bus 3dspusbwlan mod c tdsp bus 3dspusbwlan mod o o 3dspusbwlan o tdsp debug MV tdsp debug l 22 The Embedded Linux rBOX610 Linux 5 compile uwbtool and modify wbusb conf LTIB gt cd applications uwbtool LTIB5 make If compile you will see the binary file uwbtool in the director LTIB gt ls 3dspusbWBtool desktop ChangeLog txt
44. pell Install host packages needed by LTIB as follows sudo aptitude y install gettext libgtk2 0 dev rpm bison m4 libfreetype6 dev sudo aptitude y install libdbus glib 1 dev liborbit2 dev intltool sudo aptitude y install ccache ncurses dev zlib1g zlib1g dev gcc g libtool sudo aptitude y install uuid dev liblzo2 dev sudo aptitude y install tcl Board Support Package BSP 39 rBOX610 Linux 5 Install and configure TFTP server After tftpd is installed configure it by editing etc xinetd d tftp Change the default export path it is either usr var tftoboot or var lib tftpboot to Or change the default export path to whatever directory you want to download from Then reboot the hardware sudo aptitude y install tftp tftod xinetd sudo vi etc xinetd d tftp 32091 jrtigerGjrtiger laptop script File Edit View Terminal Help etc xinetd d tftp readonly 19L 253C Then restart the TFTP server sudo etc init d xinetd restart 6 Install and configure NFS server sudo aptitude y install nfs common nfs kernel server portmap To configure nfs server add lines to etc exports as follows tools rootfs rw sync no root squash sudo vi etc exports Create a symbolic link to root filesystem which your Itib build sudo mkdir tools sudo In s Project Q7M100 Itib rootfs tools rootfs Then restart the NFS server sudo etc init d nfs kernel server restart 40 Board Support Package BSP rB
45. t dev ram rdinit sbin init fec tp imx o uc theros wifi Freescale Multimedia Plugins Codecs Common package selection list sterisk 20 0 jrtiger ubuntu vm Project Q7M100 Itib a i pe Ed Ves Term ma Linie LAL VI 1 CIT T a CIl CSA LE fig propi En Pare POR erar Arrow keys navigate the menu Enter selects submenus Highlighted letters are hotkeys Pressing Y selectes a feature while N will exclude a feature Press Esce Esc to exit for Help Legend feature is selected feature is excluded sl mm codec libs sl mm ms codec libs osl mm aacpdec codec libs o sl mm mp3enc codec libs Ssl mm ac3dec codec libs si mm flv codec libs Ssl mm excluded codec libs Board Support Package BSP 49 rBOX610 Linux 9 Build the target kernel image and root filesystem cd Project Q7M100 Itib Itib 3294 jrtiger ubuntu vm Project Q7M100 Itib File Edit View Terminal Help making filesystem image file staging directory is home jrtiger Project Q7M100 Ltib rootfs tmp removing the boot directory and files removing man files and directories removing info files removing usr share locale directory removing usr man directory removing static libraries removing target rpm database stripping binaries and libraries Filesystem stats including padding Total size 72772k Total number of files 2814 Started Wed Apr 10 21 08 41 2013 Ended Wed Apr 10 21 44 37 2013
46. tib Where do you want to install LTIB home jrtiger L2 6 35 10 12 01 ER source Project 07M100l Board Support Package BSP 41 rBOX610 Linux 4 42 Configure and build This command invokes LTIB with its default behavior of performing a build Since the installation has not yet been configured LTIB will present the configuration screen before building Then when you exit the configuration screen LTIB will build the target image Also at the very first time you run LTIB on a system it will build and install a number of host tools that it will place under opt freescale To ask LTIB to show the configuration screen without building afterwards run this command Itib m config First time configuration please select the iMX platform 209 0 jrtigerQubuntu vm Project Q7M100 Itib Ma n Termin e ze li VICI CITI p ZU Traci MONDE MMIAMIET H PAAR on BELED Arrow keys navigate the menu Enter selects submenus Highlighted letters are hotkeys Pressing Y selectes a feature while N will exclude a feature Press Esc Esc to exit for Help Legend feature is selected feature is excluded Platform choice Freescale iMX reference boards oad an Alternate Configuration File S ve Configuration to an Alternate File Exit Help Then save the configuration Do you wish to save your new configuration EEE lt Wo gt Board Support Pac
Download Pdf Manuals
Related Search
Related Contents
Cytospin 4 Manual de Operación English - Hearbuilder Telefonare Wiley Office 2010 For Dummies Canon i450 Instruction Guide MーTSUBーSHー三蔓電機フリ一プランシステム室内ユ二ツ ト User manual Les 23 et 24 juin, tous à la mer ! Copyright © All rights reserved.
Failed to retrieve file