OLinuXino-MAXI Open-source single-board Linux computer USER’S MANUAL Revision L, March 2013 Designed by OLIMEX Ltd, 2012 All boards produced by Olimex LTD are ROHS compliant
OLIMEX© 2012 OLinuXino-MAXI user's manual DISCLAIMER © 2012 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other product names may be trademarks of others and the rights belong to their respective owners. The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.
OLIMEX© 2012 OLinuXino-MAXI user's manual Table of Contents DISCLAIMER............................................................................................................. 2 CHAPTER 1: OVERVIEW........................................................................................5 1. Introduction to the chapter.......................................................................................................5 1.1 Features........................................................................
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.3 UEXT module.........................................................................................................................36 6.4 GPIO (General Purpose Input/Output) 40pin connector ................................................. 37 6.5 USB HOSTs............................................................................................................................ 41 6.6 LAN connector..............................................................
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 1: OVERVIEW 1. Introduction to the chapter Thank you for choosing the OLinuXino single board computer from Olimex! This document provides a user’s guide for the Olimex OLinuXino board. As an overview, this chapter gives the scope of this document and lists the board’s features. The differences between the members of the OLinuXino family are mentioned. The document’s organization is then detailed.
OLIMEX© 2012 OLinuXino-MAXI user's manual 1.2 The OLinuXino family Table of comparison OLinuXino-MICRO OLinuXino-MINI OLinuXino-MAXI Processor iMX233 @ 454Mhz iMX233 @ 454Mhz iMX233 @ 454Mhz Ram [MB] 64 64 64 # USB hosts 1 3 2 100/150 Mbit Ethernet* No/WIFI option** No/WIFI option*** Yes/WIFI option** GPIO connector 60pins 40pins 40pins # Buttons 3 2 2 Reset button Yes Yes Yes DC power supply 5V 6V-16V 6V-16V Dimensions 3.40'' x 1.70'' 3.70'' x 2.65'' 3.70'' x 2.
OLIMEX© 2012 OLinuXino-MAXI user's manual The strong points of the boards are the processor speed, the mobility of the board and the low price. Customers have full access to the technical documentation of the board. The software is released under General Purpose License and the board is considered open-hardware. 1.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 2: SETTING UP THE OLINUXINO BOARD 2. Introduction to the chapter This section helps you set up the OLinuXino development board for the first time. Please consider first the electrostatic warning to avoid damaging the board, then discover the hardware and software required to operate the board. The procedure to power up the board is given, and a description of the default board behavior is detailed. 2.
OLIMEX© 2012 OLinuXino-MAXI user's manual 2.4 Powering the board The board is powered either via the PWR jack or via a battery. It should be supplied from a 6V to 16V source with maximum current of 1A from the power jack. All measures below are taken at 10V. If measuring the current consumption it should be around 0.06A before initializing all the peripherals. The consumption raises to 0.12A without LAN and USB hosts initialized and Linux running. The consumption goes up 0.
OLIMEX© 2012 OLinuXino-MAXI user's manual When you power the board by battery you have to press the PWR_BUT to start the board. If you start Linux and it is already running no matter which powering method you use (PWR_JACK or BAT) pressing the PWR_BUT will put the Linux in power-save mode. When you power the board by battery you have to press the PWR_BUT to start the board.
OLIMEX© 2012 OLinuXino-MAXI user's manual the picture below for a better view how the three wires must be connected. After soldering the three wires you can place a marker on each of them or use colored wires to be able to distinguish them. You can also use some gel to keep them tight on the USB connector. On the opposite side of the cables you might place 50mil (1.27mm) male connector following the order of the signals.
OLIMEX© 2012 OLinuXino-MAXI user's manual 2.7 Building the Linux image Note that building the Linux image from scratch is a time-consuming task. Even with powerful machine and fast internet connection it might take few hours compiling. Some Linux distributions might lack the tools required to compile/build/execute scripts/download from repository – how to get those is not discussed below. The Linux image is created and downloaded from https://github.com/Freescale/fsl-community-bspplatform.
OLIMEX© 2012 OLinuXino-MAXI user's manual user@dist$: chmod a+x ~/bin/repo 3) Created directory for the project and download the BSP source from the git repository: user@dist$: mkdir fsl-community-bsp user@dist$: cd fsl-community-bsp ~/fsl-community-bsp$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b denzil ~/fsl-community-bsp$: repo sync 4) You can change the settings for the build if you want at fsl-community-bsp/build/conf/local.conf.
OLIMEX© 2012 OLinuXino-MAXI user's manual Note: on different Linux distributions you might have different tools installed and you will probably need to install dependencies needed for the compile/build scripts. Here are some (but not all) of the mandatory ones: G++; diffstat; texi2html; chrpath; gawk; texinfo; some git client. To ensure you have the latest version supported with all the updates visit https://github.com/OLIMEX/OLINUXINO and https://github.com/Freescale/fsl-community-bspplatform. 2.
OLIMEX© 2012 OLinuXino-MAXI user's manual chmod +x gpio then we execut the script with: ./gpio The LED should start blinking with 0.5Hz. 2.9 How setup the I2C, SPI, UART There are number of examples with our extension module board to achieve those connections on the UEXT. The examples might be used as an example for I2C, SPI or UART communication. You can find them at our GitHub page: https://github.
OLIMEX© 2012 OLinuXino-MAXI user's manual & sudo fdisk /dev/sdb 5. With the help of the menu create two partitions. The steps are the following: 5.1. Type “p” to view existing partitions on the SD-card 5.2. Type “d” to delete all partitions 5.3. Type “n” to create new one 5.4. Set “1” as partition number 5.5. Type “p” to select primary partition 5.6. Press Enter to select default beginning sector 5.7. Type “+32M” to create 32MB partition 5.8. Type “t” to change partition type 5.9. Type “53” 5.10.
OLIMEX© 2012 OLinuXino-MAXI user's manual 13. Put the file in USB flash drive. Insert the flash drive into OLinuXino board. & mount /dev/sdc1 /mnt/usb & cp -fv /home/User/Downloads/ /mnt/usb & umount /mnt/usb Again this is example. You should correct this commands with your paths and corresponding devices. IMPORTANT NOTE: The following commands are entered into OLinuXino terminal. 14. Mount the flash drive & mount /dev/sdb1 /mnt/usb 15.
OLIMEX© 2012 OLinuXino-MAXI user's manual program. For example: & vi /etc/resolv.conf Press d several times to remove all lines. Press I to enter insert mode. Type: & nameserver 192.168.0.1 (Again this is example. You should add you DNS-server.) After you finish entering this press Esc. This will set the program in command mode. In command mode press: & :wq This should do the work. To check connection use ping. If it doesn't check your configuration again and router settings.
OLIMEX© 2012 OLinuXino-MAXI user's manual After execution you could see the I2C working using osciloscope connected to the corresponding GPIOs. You can see that the LED1 on the board is blinking. This is a backgrond shell process. Again in the /home you can see a third folder led_blink. In this one there is a file led_blink. Type: & cat led_blink You can see that this is shell script. To execute this script every time the linux is loaded the path should be added to the file rc.local. & vi /etc/rc.
OLIMEX© 2012 OLinuXino-MAXI user's manual Get the Realtek drivers from the Realtek web site: http://www.realtek.com.tw/downloads/downloadsView.aspx? Langid=1&PFid=48&Level=5&Conn=4&ProdID=277&DownTypeID=3&GetDown=false&Downl oads=true I downloaded RTL8188CUS (the one showing up on lsusb) If you choose RTL8192CU you get the same file The file comes as a zip file: RTL819xCU _USB_linux_v3.4.3_4369.20120622.zip Assume you downloaded it to your workstation. Unzip the file.
OLIMEX© 2012 OLinuXino-MAXI user's manual ifeq ($(CONFIG_PLATFORM_ARM_PXA2XX), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN ARCH := arm CROSS_COMPILE := arm-none-linux-gnueabiKVER := 2.6.34.1 KSRC ?= /usr/src/linux-2.6.34.1 endif --------------------------------------------------------Below it adds the block: --------------------------------------------------------ifeq ($(CONFIG_PLATFORM_ARM_iMX233), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN ARCH := arm CROSS_COMPILE := /usr/bin/ KVER := KVER := 2.6.
OLIMEX© 2012 OLinuXino-MAXI user's manual reboot Make sure you can see both usb0 (ethernet) and wlan0 on all the following: ifconfig ls -l /sys/class/net iwconfig you may need to bring the interface up manually: ip link set wlan0 up scan for access points: iwlist wlan0 scan cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.original wpa_passphrase myssid "my_secret_passkey" > /etc/wpa_supplicant/wpa_supplicant.
OLIMEX© 2012 OLinuXino-MAXI user's manual vi /etc/network.d/my_wifi_network configure all parameters vi /etc/network.d/my_eth_network configure all parameters (make sure you change eth0 to usb0) You can have multiple profiles (e.g. for roaming, etc.) To manually connect a profile: netcfg my_wifi_network To manually disconnect a profile: netcfg down my_wifi_network There are 3 daemon options for configuring networks at boot time. 1. network -- the original setting.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 3: OLINUXINO BOARD DESCRIPTION 3. Introduction to the chapter Here you get acquainted with the main parts of the board. Note the names used on the board might differ from the names used below to describe them. For the actual names check the OLinuXino board itself. 3.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 4: THE iMX233 MICROCONTROLLER 4. Introduction to the chapter In this chapter is located the information about the heart of OLinuXino – its microcontroller. The information is a modified version of the datasheet provided by its manufacturers. 4.
OLIMEX© 2012 OLinuXino-MAXI user's manual — SPDIF digital out 16-Channel Low-Resolution ADC — 6 independent channels and 10 dedicated channels — Resistive touchscreen controller — Temperature sensor controller — Absolute accuracy of 1.3% Security Features — Read-only unique ID for digital rights management algorithms — Secure boot using 128-bit AES hardware decryption — SHA-1 hashing hardware — Customer-programmed (OTP) 128 bit AES key is never visible to software.
OLIMEX© 2012 OLinuXino-MAXI user's manual — Integrated low-power 10-bit Video DAC (VDAC) for composite analog video output. Data Co-Processor (DCP) — AES 128-bit encryption/decryption — SHA-1 hashing — High-speed memory copy Three Universal Asynchronous Receiver-Transmitters (UARTs) — Two high-speed application UARTs operating up to 3.25 Mb/s with hardware flow control and dual DMA. — Debug UART operates at up to 115Kb/s using programmed I/O.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 5: CONTROL CIRCUITY 5. Introduction to the chapter Here you can find information about reset circuit and quartz crystals locations, the power supply circuit is discussed. 5.1 Reset OLinuXino's reset circuit includes R9 (47KΩ), R10 (47 Ω), T1, T2, Q1 and a RESET button. The RESET is specific for the fact that it is accomplished when the quartz is disconnected using 3.3V and the transistors T1 and T2. 5.
OLIMEX© 2012 OLinuXino-MAXI user's manual If you have a standard USB flash drive attached to a USB host, Linux and LAN running the typical consumption is around 0.20A. When powered by the typical 3.7V battery the LAN and USB-hosts are disabled. The consumption when Linux is running is around 0.75A. The board can be powered either from the power jack or from the LIPO_BAT connector.
OLIMEX© 2012 OLinuXino-MAXI user's manual The 3.3V_E (3.3V Enable) jumper when closed enables the 3.3V power line. Note the 3.3VIO_E jumper which by default is closed – if you open it (cut it) - it disables the U6 DC-DC converter and enables a built-in the iMX233 DC-DC. The problem is that the built-in DCDC has a limit of 250mA of amperage the chip heats a bit so we decided to put external DC-DC for better stability. When working with 3.3VIO_E closed pay attention to the amperage used. If 3.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 6: CONNECTORS AND PINOUT 6. Introduction to the chapter In this chapter are presented the connectors that can be found on the board all together with their pinout and notes about them. Jumpers functions are described. Notes and info on specific peripherals are presented. Notes regarding the interfaces are given. 6.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.1.1 UART debug The first one is a debug UART interface – U_DEBUG. You can use our USB-SERIAL-CABLE for debugging via the UART. In order to avoid SD card malfunction, when using the USB-SERIAL-CABLE-F with OLinuXino-MAXI it is advisable to first insert the iMX233-OLinuXino-SD card and then power the board (if using battery also press the PWR button). Wait 4-5 seconds and then connect the USB-SERIAL-CABLE-F. Please also check “2.
OLIMEX© 2012 OLinuXino-MAXI user's manual The HW_DIGCTL_CTRL_USE_SERIAL_JTAG bit in the digital control block selects whether the one-wire serial JTAG interface or the alternative six-wire parallel JTAG interface is used. There are other options in the digital control block which might interest you and our advice is to check the iMX233's datasheet released by Freescale. SJTAG Pin # Signal Name Processor Pin # 1 3.
OLIMEX© 2012 OLinuXino-MAXI user's manual signaling to use. OLD_JTAG = 0x0 Use six-wire parallel JTAG mode. SERIAL_JTAG = 0x1 Use one-wire serial JTAG mode. It is good idea to check the datasheet of the iMX233 processor for all the options in the digital control block. The processor's datasheet should be always the first piece of paper you consult when dealing with electronics.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.2 SD/MMC slot The microSD card slot is a standard 8pin connector. We have tested a number of microSD cards on the OLinuXino boards and all of them worked fine regardless manufacturer or capacity. However, keep in mind that some of the lower quality microSD cards might draw too much current from the slot which might cause power-state problems. If you suspect the microSD card is causing problems please try using another one of better quality for better results.
OLIMEX© 2012 OLinuXino-MAXI user's manual When removing the card, please make sure that you release it from the connector by pushing and NOT by pulling the card directly (this can damage both the connector and the microSD card). 6.3 UEXT module OLinuXino board has UEXT connector and can interface Olimex's UEXT modules. For more information on UEXT please visit: http://www.olimex.com/dev/OTHER/UEXT.
OLIMEX© 2012 OLinuXino-MAXI user's manual UEXT connector Pin # Signal Name Processor Pin # 1 +3.3VREG - 2 GND 30, 35, 98, 105, 112, 118 3 AUART1_TXD 127 4 AUART1_RXD 128 5 I2C_SCL 34(default) OR 11* 6 I2C_SDA 31(default) OR 15* 7 PIN9/LCD_D08/SSP2_MISO 22 8 SSP2_MOSI 21 9 SSP2_SCK 33 PIN12/LCD_D11/UEXT_CS 25 10 The UEXT pinout is also printed at the bottom of the board under the connector. 6.
OLIMEX© 2012 OLinuXino-MAXI user's manual GPIO connector hardware GPIO Signal Name Pin# Processor pin# GPIO Pin# Signal Name Processor pin# 1 BAT 103 21 PIN8/LCD_D07 9 2 GND 30, 35, 98, 105, 112, 118 22 PIN27/PWM2 91 3 PIN17/LCD_D16 19 23 PIN7/LCD_D06 8 4 PIN18/LCD_D17/LAN_RES 20 24 PIN28/SOFT_SDA 31 5 PIN16/LCD_D15 28 25 PIN6/LCD_D05 7 6 PIN19/LCD_DOTCLK 17 26 PIN29/SOFT_SCL 34 7 PIN15/LCD_D14 29 27 PIN5/LCD_D04 6 8 PIN20/LCD_VSYNC 16 28 PIN30 81 9 PIN
OLIMEX© 2012 OLinuXino-MAXI user's manual ones filled with “Not implemented” doesn't have Linux support by the time of writing and will be updated overtime. “Linux GPIO” is the one you should use in Linux (the one in the datasheet); “OLinuXino name” is the pin as written on the bottom of the board. ”OLinuXino GPIO Connector #” is the consecutive number of pins with BAT being Pin#1 and GND#40.
OLIMEX© 2012 OLinuXino-MAXI user's manual When looking at the bottom of OLinuXino-MAXI near the GPIO connector there is also an additional GND pad named GND_PIN which is a fast way to have access to a ground signal.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.5 USB HOSTs The USB hosts and the Ethernet are controller by a single chip (LAN9512) which handles both functionality. The LAN9512 contains a Hi-Speed USB 2.0 hub with two fully-integrated downstream USB 2.0 PHYs, an integrated upstream USB 2.0 PHY, a 10/100 Ethernet MAC/PHY controller, and an EEPROM controller. It offers SMSC's highest level of USB 2.0 and 10/100 Ethernet compliance and interoperability.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.6 LAN connector The Ethernet connectivity is handled by the LAN9512 controller (which also incorporates a USB module in it). The signals found on the Ethernet connector are listed in the table below: LAN connector PIN# SIGNAL NAME 1 TX+ 2 TX- 3 VDD 4 NOT CONNECTED 5 NOT CONNECTED 6 VDD 7 RX+ 8 RX- The two leds on the front side of the LAN connector show the state of the Ethernet.
OLIMEX© 2012 Pin # OLinuXino-MAXI user's manual Signal Name 1 Power Input 2 GND More info about the power supply can be found in chapter 5 of this manual 6.8 Headphones and line-in connector Standard audio jack and phone jack are mounted for the audio interfacing.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.9 Battery connector When using the battery connector keep in mind that it is an energy solution that wouldn't be able to power the board and all the peripherals. The voltage of a 3.7V LIPO battery would be enough to power the processor and the memory but won't be enough to power the LAN and the USB hosts. Pin # Signal Name 1 VBAT 2 GND The pins are also written on the top of the board in the base of the connector. 6.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.11 Boot mode positions The iMX233 can boot the operating system from different locations. The default location for the Linux files we used is the microSD card. There are 4(four) jumpers responsible for the boot location: D03, D02, D01 and D00. They are located on the top of the board between the processor and 40pin GPIO connector. Note that the jumpers are SMD type and opening a jumper would require cutting, closing a jumper would require soldering.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.12 Jumper description Please note that all the jumpers on the board are SMD type. If you feel insecure of your soldering/cutting technique it is better not to try to adjust the jumpers. 6.12.1 SCL_SW/SCL_HW and SDA_SW/SDA_HW Those two jumpers must be moved together – there are two available options – configuring software I2C interface (SCL_SW, SDA_SW) or hardware I2C interface (SCL_HW, SDA_HW positions). Jumpers are set to SCL_HW and SDA_HW by default.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.12.2 5V_E The 5V_E jumper allows control over the powering line. If you want to disable the 5V powering line open 5V_E jumper. The default position is closed. 6.12.3 3.3V_E and 3.3VIO_E jumpers Important these jumpers must be moved together! Closing both of 3.3V_E and 3.3VIO_E at the same time will damage the processor. One of them has to be open (unsoldered/cut). There are two possible positions: 1) 3.3V_E closed (soldered), 3.
OLIMEX© 2012 OLinuXino-MAXI user's manual 6.13 Additional hardware components The components below are mounted on OLinuXino but are not discussed above.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 7: BLOCK DIAGRAM AND MEMORY 7. Introduction to the chapter On the next page you can find a memory map for this family of processors. It is strongly recommended to refer to the original datasheet released by Freescale for one of higher quality. 7.1 Memory addresses Below is the table with some of the most frequently used addresses. For full list of addresses check the manual released by Freescale (Chapter Memory Map).
OLIMEX© 2012 OLinuXino-MAXI user's manual 7.
OLIMEX© 2012 OLinuXino-MAXI user's manual 7.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 8: SCHEMATICS 8. Introduction to the chapter In this chapter are located the schematics describing logically and physically OLinuXino. 8.1 Eagle schematic OLinuXino schematic is visible for reference here. You can also find them on the GitHub for OLinuXino at our site: https://www.olimex.com/Products/OLinuXino/iMX233/iMX233OLinuXino-MAXI/. The link to the GitHub is located in HARDWARE section.
OLIMEX© 2012 OLinuXino User's Manual U1 Q1 Q24.
OLIMEX© 2012 OLinuXino-MAXI user's manual 8.2 Physical dimensions Note that all dimensions are in inches. The three highest elements on the board in order from the tallest to the shortest are: inductor L2; USB host connector; Ethernet/LAN connector.
OLIMEX© 2012 OLinuXino-MAXI user's manual CHAPTER 9: REVISION HISTORY AND SUPPORT 9. Introduction to the chapter In this chapter you will find the current and the previous version of the document you are reading. Also the web-page for your device is listed. Be sure to check it after a purchase for the latest available updates and examples. 9.1 Document revision Revision Changes A, 01.06.12 Initial Creation B, 06.06.
OLIMEX© 2012 OLinuXino-MAXI user's manual Continued from previous page Revision D, 18.06.12 Changes Page 4 - Added links to chapter names Page 10 – Typos/bugs in code Page 12 – Added new sub-chapter Page 45 – Added link to the OLinuXino yahoo group Modified Page# 4, 10, 12, 45 E, 03.07.
OLIMEX© 2012 OLinuXino-MAXI user's manual Continued from previous page Revision Changes J, 29.10.12 Pages 26, 27, 28, 29 - Fixed wrong info about the LQFP128 package of iMX233 K, 04.01.12 Page 11 - Wrong wiring for the fuse burning was present at the picture Modified Page# 26, 27, 28, 29 11 Page 6 - fixed the voltages for -MINI and -MAXI in the comparison table L, 21.03.
OLIMEX© 2012 OLinuXino-MAXI user's manual 9.2 Board revision Revision Notable Changes B Initial release of the board B1 R14 removed C 1. Renamed from iMX233-OLINUXINO_Rev_C to iMX233-OLINUXINOMAXI_Rev_C 2. BOOT jumpers moved to bottom of the board and the distance between them was increased 3. Jumpers 3.3V_E and 3.3VIO_E moved to bottom and the distance between them was increased 4. Jumpers SW_SCL/HW_SCL and SW_SCK/HW_SCK were made bigger and default position moved to hardware I2C 5.
OLIMEX© 2012 OLinuXino-MAXI user's manual 9.3 Useful web links and purchase codes The web page you can visit for more info on your device is https://www.olimex.com/Products/OLinuXino/iMX233/iMX233-OLinuXino-MAXI/. A place for general questions, FAQ or friendly talk: https://www.olimex.com/forum/index.php? board=1.0 You can get the latest updates on the software at: https://github.com/OLIMEX/OLINUXINO. The OLinuXino Linux images sources: https://github.com/Freescale/fsl-community-bsp-platform.
OLIMEX© 2012 OLinuXino-MAXI user's manual 9.3 Product support For product support, hardware information and error reports mail to: support@olimex.com. Note that we are primarily a hardware company and our software support is limited. Please consider reading the paragraph below about the warranty of Olimex products. Warranty and returns: Our boards have lifetime warranty against manufacturing defects and components.