background image

OLIMEX© 2012

OLinuXino-MICRO user's manual

2.7 Building the Debian 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-bsp-

platform

. For the test here we used Debian 6.0 with GNOME visual libraries. The steps we did:

1) From the terminal created folder “bin” in home folder:

user@dist$: 

mkdir bin

user@dist$: 

cd bin

Add bin directory to PATH in order to do the next steps easier. Else navigate to the right folders.

2) Installed `repo` utility needed for the bitbake file fetching from the repository:

user@dist$: 

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

user@dist$: 

chmod a+x ~/bin/repo

3) Created directory for the project and download the BSP source from the git repository:

Page 11 of 47

Содержание OLinuXino-MICRO

Страница 1: ...OLinuXino MICRO Open source single board Linux computer USER S MANUAL Revision K March 2013 Designed by OLIMEX Ltd 2012 All boards produced by Olimex LTD are ROHS compliant ...

Страница 2: ...d faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any inco...

Страница 3: ...ebian Linux image 11 2 8 How to blink the LED 13 2 9 How to setup Arch Linux distribution 13 2 10 How setup the I2C SPI UART 14 CHAPTER 3 OLINUXINO BOARD DESCRIPTION 15 3 Introduction to the chapter 15 3 1 Layout top view 16 3 2 Layout bottom view 17 CHAPTER 4 THE iMX233 MICROCONTROLLER 18 4 Introduction to the chapter 18 4 1 The microcontroller 18 CHAPTER 5 CONTROL CIRCUITY 21 5 Introduction to t...

Страница 4: ...electing jumpers 35 6 11 Additional hardware components 35 6 12 Accessories 36 6 12 1 USB SERIAL CABLE F 36 CHAPTER 7 BLOCK DIAGRAM AND MEMORY 37 7 Introduction to the chapter 37 7 1 Memory addresses 37 7 2 Processor block diagram 38 7 3 Physical memory map 39 CHAPTER 8 SCHEMATICS 40 8 Introduction to the chapter 40 8 1 Eagle schematic 40 8 2 Physical dimensions 42 CHAPTER 9 REVISION HISTORY AND S...

Страница 5: ...document s organization is then detailed The OLinuXino development board enables code development of applications running on the microcontroller i MX233 manufactured by FreeScale Semiconductor OLinuXino is an open source open hardware project and all documentation is available to the customer 1 1 Features iMX233 ARM926J processor at 454Mhz 64 MB RAM SD card connector for booting the Linux image TV...

Страница 6: ...FI_RTL8188 which is USB WIFI modem with RTL8188CU chip and can be purchased separately MOD WIFI_RTL8188 can be connected to any of the OLinuXino boards via the USB OLinuXino MINI has additional option of having RTL8188CU hardware mounted If you wish RTL8188CU embedded in the device you should purchase OLinuXino MINI WIFI Choosing the embedded WIFI option will leave your USB HOSTs available for use...

Страница 7: ...ides a guide for quickly setting up the board and software notes Chapter 3 contains the general board diagram and layout Chapter 4 describes the component that is the heart of the board the iMX233 microcontroller Chapter 5 is an explanation of the control circuitry associated with the microcontroller to reset Also shows the clocks on the board Chapter 6 covers the connector pinout peripherals and ...

Страница 8: ...hen handling the board Avoid touching the component pins or any other metallic element 2 3 Requirements In order to set up the OLinuXino MICRO optimally the following items are required 5V source of power with 1A maximum amperage SJTAG interface programmer USB hub USB splitter USB keyboard Monitor with composite interface or Personal Computer USB SERIAL CABLE SD card with Linux image Note that the...

Страница 9: ...n you power the board there is a chance of malfunction of the SD card There are two possible workarounds to protect the SD card The first one is simpler and the second one requires some soldering experience Workaround 1 First insert the iMX233 OLinuXino SD card and then power the board and if powering the board from a battery also press the PWR button Wait 4 5 seconds and then connect the USB SERI...

Страница 10: ...ub address of OLinuXino 2 6 Using BitBurner IMPORTANT MODIFYING THE FUSES IS IRREVERSIBLE PROCESS BURNING THE WRONG FUSES MIGHT DAMAGE OLINUXINO IRREVERSIBLY BURNING WRONG FUSES MIGHT CAUSE BOOT PROBLEMS BURN FUSES AT OWN RISK The bit burning is done via the USB of the computer connected to the OLINUXINO board and the BitBurner software To be able to burn the fuses you will need to connect a USB A...

Страница 11: ...wnloaded from https github com Freescale fsl community bsp platform For the test here we used Debian 6 0 with GNOME visual libraries The steps we did 1 From the terminal created folder bin in home folder user dist mkdir bin user dist cd bin Add bin directory to PATH in order to do the next steps easier Else navigate to the right folders 2 Installed repo utility needed for the bitbake file fetching...

Страница 12: ...munity bsp setup environment build fsl community bsp build bitbake linux imx c menuconfig Check the image below 5 Now to start building the image fsl community bsp setup environment build fsl community bsp build bitbake core image minimal Note on different Linux distributions you might have different tools installed and you will probably need to install dependencies needed for the compile build sc...

Страница 13: ... you want to set the blink off you should change the value on the second line to echo 0 sys class gpio gpio65 value To show the info for all GPIOs ls sys class gpio To make it turn on turn off automatically e g blink we use the text redactor VI to write the Linux script echo out sys class gpio gpio65 direction while true do echo 1 sys class gpio gpio65 value sleep 1 echo 0 sys class gpio gpio65 va...

Страница 14: ...re 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 com OLIMEX OLINUXINO tree master SOFTWARE iMX233 Page 14 of 47 ...

Страница 15: ...in 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 The top and the bottom view can be viewed on the next two pages of the manual There is explanation of the different peripherals in the following chapters of the manual Page 15 of 47 ...

Страница 16: ...OLIMEX 2012 OLinuXino MICRO user s manual 3 1 Layout top view Page 16 of 47 ...

Страница 17: ...OLIMEX 2012 OLinuXino MICRO user s manual 3 2 Layout bottom view Page 17 of 47 ...

Страница 18: ...ll speed high speed Physical Layer Protocol PHY Mass storage host capable uncertified by USB IF Power Management Unit Single inductor DC DC switched converter with multi channel output supporting Li Ion batteries Features multi channel outputs for VDDIO 3 3 V VDDD 1 2 V VDDA 1 8 V VDDM 2 5V and regulated 4 2V source Direct power from 5 V source USB wall power or other source with programmable curr...

Страница 19: ...hitecture saves power and off loads the CPU Highly Flexible Display Controller 8 bit data ITU R BT 656 D1 digital video stream output mode PAL NTSC with onthe fly RGB to YCbCr color space conversion Flexible input formats Pixel Processing Pipeline PXP Provides full path from color space conversion scaling alpha blending to rotation without intermediate memory access Bi linear scaling algorithm wit...

Страница 20: ...TP ROM via Integrated eFuse Block Resistor less boot mode selection 128 bit boot mode crypto key Boot mode specification of NAND characteristics for device that the customer is soldering to the board This means no more costly delays waiting for new device support in t he boot ROM Fully software programmable and accessible Flexible I O Pins All digital pins have drive strength controls Most non EMI...

Страница 21: ...ished when the quartz is disconnected using 3 3V and the transistors T1 and T2 5 2 Clock 24 MHz quartz crystal Q1 is connected to pins 121 and 122 of the iMX233 processor 5 3 Power supply circuit The board is powered by 5V supply and all measures listed below are taken at 5V external supply If measuring the current consumption it should be around 0 06A before initializing all the peripherals If yo...

Страница 22: ...OLIMEX 2012 OLinuXino MICRO user s manual Page 22 of 47 ...

Страница 23: ...resented Notes regarding the interfaces are given 6 1 Debugging interfaces If you don t have a separate monitor or display around and you don t wish to swap cables constantly with your personal computer using the debug interfaces provide better option for you OLinuXino experience There are three debugging options available on the OLinuXino It is preferable to use one of the first two UART or SJTAG...

Страница 24: ...3 GND GREEN wire to pin 2 TX RED wire to pin 1 RX U_DEBUG Pin Signal Name Processor Pin 1 PWM0 DUART_RXD 125 2 PWM1 DUART_TXD 126 3 GND 30 35 98 105 112 118 4 DEBUG 84 You can also check the pin names at the bottom of the board under the U_DEBUG header 6 1 2 SJTAG debug The second interface is the Serial JTAG SJTAG one wire interface It works with various external JTAG debugger dongles through a F...

Страница 25: ...switch from SJTAG to 6 pin JTAG and vice verse referring to the iMX233 manual For instance The HW_DIGCTL_CTRL_USE_SERIAL_JTAG bit in the digital control block selects whether the serial JTAG interface or the alternative six wire parallel JTAG interface is used HW_DIGCTL_CTRL_USE_SERIAL_JTAG 0x0 Selects whether the one wire serial JTAG interface or the alternative six wire parallel JTAG interface i...

Страница 26: ...1_DATA1 85 2 SSP1_DATA0 84 3 GND 30 35 98 105 112 118 4 SSP1_SCK 90 5 SD_VCC 6 SSP1_CMD 83 7 SSP1_DATA3 87 8 SSP1_DATA2 86 Notice that the pad numeration is written at the bottom of OLinuXino MICROunder the microSD card connector Please check the manual part for microSD card for a schematic of the pins Page 26 of 47 ...

Страница 27: ...uspect the microSD card is causing problems please try using another one of better quality for better results microSD card connector Pin Signal Name Processor Pin 1 SSP1_DATA2 86 2 SSP1_DATA3 87 3 SSP1_CMD 83 4 SD_VCC 5 SSP1_SCK 90 6 GND 30 35 98 105 112 118 7 SSP1_DATA0 84 8 SSP1_DATA1 85 Notice that the pad numeration is written at the bottom of OlinuXino MICRO under the microSD card connector W...

Страница 28: ...ttp www olimex com dev OTHER UEXT pdf Note the two jumpers PIN29 SOFT_CL PIN22 LCD_EN I2C_SCL and PIN28 SOFT_SDA3 PIN21 LCD_HSYNC I2C_SDA which by default are set to a software I2C They can be used to set the whole UEXT to a hardware I2C Note that the correct way of connecting modules to the UEXT is 1 Plug module to host board via UEXT 2 Power host board If you first power the board and then estab...

Страница 29: ...ctor number and does NOT represent the naming on the bottom of the board The table is divided into two big columns and explains the pin of both the connectors CON1 and CON2 There are three color sections in the table below Each color represents signals needed to establish a specific connection and functionality like in the MAXI and the MINI versions of the board The GREEN section CON2 Pin 3 to Pin...

Страница 30: ...O 22 10 PIN8 LCD_D07 9 10 SSP2_MOSI 21 11 PIN9 LCD_D08 22 11 SSP2_SCK 33 Pin Signal Name Processor pin Pin Signal Name Processor pin 12 PIN10 LCD_D09 23 12 CS_UEXT_GPIO 25 or 32 13 PIN11 LCD_D10 24 13 PWM0_DUART_RXD 125 14 PIN12 LCD_D11 25 14 PWM1_DUART_TXD 126 15 PIN13 LCD_D12 27 15 SJTAG_PSW 16 PIN14 LCD_D13 26 16 HPL 113 17 PIN15 LCD_D14 29 17 HPR 109 18 PIN16 LCD_D15 28 18 HPVGND 111 19 PIN17 ...

Страница 31: ...rd OLinuXino GPIO Connector is the consecutive number of pins with BAT being Pin 1 and GND 40 Note that if OLinuXino Name starts with P and then is followed by a number X the PX is the name written on the bottom of the board under the connector with white ink If OLinuXino Name is other text it is a signal used for the hardware of the board but still can be controller by the Linux it can t be found...

Страница 32: ...nted 31 UEXT_RX1 Not implemented Below is the schematic of GPIO_CON You can see the signals needed to form UEXT connector SJTAG debug interface and audio interface marked with purple Thanks to David Whittaker some of the above information can be found in compact variant at a table he compiled https docs google com spreadsheet ccc key 0AspkrcYcY5bWdFB6WC1xRlp5bFRjc1hwVnlQZDVmeUE Page 32 of 47 ...

Страница 33: ...tween your device and OLinuXino Micro using such a hub has the additional benefit of providing additional USB slot which can be used for example to mount flash memories etc The signals follow the familiar and standard USB host pattern USB 2 level host PIN SIGNAL NAME 1 5V_HOST_PWR 2 USB_DM 3 USB_DP 4 GND 6 6 PWR Jack The power jack used is the typical 2 5mm one used by Olimex in most of our produc...

Страница 34: ...an 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 s...

Страница 35: ...W closed or hardware I2C interface both SCL_HW SDA_HW closed The default position is SCL_HW SDA_HW closed soldered 6 10 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 10 3 3 3V_E jumper 3 3V_E jumper is open by default If closed soldered provides 3 3V at the pin 30 of CON1 The default positi...

Страница 36: ...Xylinx HY5DUxxxyyy LED1 6 12 Accessories Here you will find additional information for Olimex products you can use with OlinuXino MICRO 6 12 1 USB SERIAL CABLE F The cable for the U_DEBUG interface that can be purchased for additional cost has three cables It is important to specify in your purchase order whether you want the USB SERIAL CABLE F variant with male of female connectors The wires foll...

Страница 37: ...escale 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 Decode block Device Mnemonic Start address End address Size AHB On chip RAM OCRAM 0x00000000 0x00007FFF 32KB On chip RAM alias OCRAM 0x00008000 0x3FFFFFFF External memory 0x40000000 0x5FFFFFFF 5...

Страница 38: ...OLIMEX 2012 OLinuXino MICRO user s manual 7 2 Processor block diagram Page 38 of 47 ...

Страница 39: ...OLIMEX 2012 OLinuXino MICRO user s manual 7 3 Physical memory map Page 39 of 47 ...

Страница 40: ...physically OLinuXino 8 1 Eagle schematic OLinuXino schematic is visible for reference here You can also find them on GitHub page for OLinuXino at our site https www olimex com Products OLinuXino iMX233 iMX233 OLinuXino MICRO The link to the GitHub is located in HARDWARE section The EAGLE schematic is situated on the next page for quicker reference Page 40 of 47 ...

Страница 41: ...15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C 30 C3 1 C32 C33 C 34 C3 5 C3 6 C37 C38 C39 C40 C41 C42 C43 C44 C45 C46 C47 C48 C49 C50 C5 1 COMPOSITE_VIDEO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 CON1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 CON2 1 2 3 CS_SW C S_HW 1 2 D00_H 1 2 D01_H D1 1 2 D02_H D2 1 2 ...

Страница 42: ...nsions Note that all dimensions are in mills Additionally the three highest elements on the board in order from the tallest to the shortest are dimensions without the PCB thickness 1 Composite video connector 490 mil 2 C50 C51 480 mil 3 C48 470mil Page 42 of 47 ...

Страница 43: ...on Changes Modified Page A 05 07 12 Initial Creation All B 17 07 12 Added notes on USB compatibility 8 33 C 18 07 12 Added info about fuse programming 10 11 D 20 07 12 4 Added links to all indexes 40 Added info about USB SERIAL CABLE 48 Fixed typo about the power supplies 4 40 48 E 24 07 12 9 wrong powering information fixed 22 23 wrong power supply information fixed 37 REC Reset fixed 9 22 23 37 ...

Страница 44: ...nnection important info added 32 Fixed error in pinout table PIN 29 from CON1 is GND 14 28 32 I 29 10 12 18 19 20 Fixed wrong info about the LQFP128 package of iMX233 18 19 20 J 04 01 12 10 Wrong picture and description of the fuse burning algorithm 10 K 21 03 12 6 fixed the voltages for MINI and MAXI in the comparison table 34 removed left over battery connector explanation 35 jumpers positions a...

Страница 45: ... same line 2 SW_SCL HW_SCL i SW_SDA HW_SDA jumpers got changed to default hardware 3 SD card is changed from TFR MEM COM to TFC WXCII00 08 LF and the connector is moved towards the middle of the board Important note about owners of revision B of the board if you are one of the first owners of iMX233 OLinuXino Micro and you experience random hang ups Kernel oops Kernel panic it is recommended to un...

Страница 46: ...3 OLinuXino MAXI the best version of OLinuXino featuring Ethernet controllert iMX233 OLinuXino MINI WIFI the MINI version of OLinuXino embedded RTL8128CU WIFI module iMX233 OLinuXino SD SD card with the Linux image which can be used with every board from the OLinuXino family MOD WIFI_RTL8188 external USB WIFI modem with RTL8188 chip USB SERIAL CABLE USB serial console cable for U_DEBUG SY0612E pow...

Страница 47: ...pill coffee on them during your work when they are powered Please note that warrany do not cover problems caused by unproper use shorts over voltages ESD shock etc If the board has warranty label it should be not broken Broken labels void the warranty same applies for boards modified by the customer for instance soldering additional components or removing components such boards will be not be a su...

Страница 48: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Olimex Ltd iMX233 OLINUXINO MICRO ...

Отзывы: