Home

UDOO Starting manual (beta)

image

Contents

1. 16 324799 EXT3 fs mmcblk0p1 recovery complete 17 549531 EXT3 fs mmcbik0p1 mounted filesystem with writeback data mode 17 556626 VFS Mounted root ext3 filesystem on device 179 1 17 562704 Freeing init memory 192K AAA Loading cpufreq kernel modules done 33m 39 49m PulseAudio configured for per user sessions Ubuntu 11 10 imx6 qsdl ttymxc1 imx6 qsdi login The picture above shows an example of output M LIII http www udoo org 45 UDOO Starting manual beta Version 0 4 7 2 6 Final steps By turning on UDOO a lot of output lines coming out from UDOOs Serial Debug port will be shown on the serial port terminal About 30 seconds after it should be possible to access Linux or Android shell Android root android Linux Ubuntu Ubuntu 11 10 imx6 qsdl ttymxcl imx6 qsdl login Whe LIIIJ http www udoo org 46
2. EH LogMeTT com Home Products Download Support Quick Tips About Download Tera Term ull Download Tera Term 4 79 uo Tera Term version 4 79 was released on September 1 2013 The list of changes follows To download Tera Term installation package from this web site you have to accept Freeware Software License Agreement and then click on Download icon I have read and accept the terms and conditions of Tera Term License Y Accept the license term and press the download button Installation Follow the instructions of the installer Setup Tera Term z Welcome to the Tera Term Setup Wizard This will install Tera Term 4 79 on your computer It is recommended that you dose all other applications before Click Next to continue or Cancel to exit Setup M LIIIJ http www udoo org 39 UDOO Starting manual beta Version 0 4 a Setup Tera Term gt 2 License Agreement Please read the following important information before continuing Please read the following License Agreement You must accept the terms of this agreement before continuing with the installation License of Tera Term Copyright c T Teranishi Copyright c TeraTerm Project All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 1 Redistributions of source code must retain the above copyright notice this li
3. EI E OOOO O spi5 0 0 0 0 00 i2c1 O spdif timer capture O timer compare LO watchdog reset watchdog out clock out O pwml O pwnd 0 0 pwm3 O pwm4 O A 000 000 Looking at the previous diagram on the vertical axis there is the functionality provided by iMx6 On the horizontal axis are shown the pins used to implements each functionality Be careful that some pins are used for different functionalities and only one at a time can be active for each of them 6 5 Example As an example consider the possibility of enabling another serial port UART3 connected to imx6 through external Pins For this it is necessary to edit the file board mx6qd_seco_UDOO h Looking at the previous graph it is possible to see that needed pins areElM_D24 and ElM_D25 Now it is possible to select the correct macros to enable this functionality It is also necessary to remove the related GPIOs macro from the mx6q set in inputmode array which contains the list of the pins configured as input GPIOs static iomux v3 cfg t mx6qd_seco_UDOO_pads static iomux v3 cfg t mx6qd seco UDOO pads MX6Q PAD EIM CSI GPIO 2 24 MX6Q PAD EIM CSI GPIO 2 24 MX6Q PAD EIM CSI ECSPI2 MOSI MX6Q PAD EIM CSI ECSPI2 MOSI MX6Q PAD EIM CSO JGPIO 2 23 MX6Q PAD EIM CSO JGPIO 2 23 M LIIIJ http www udoo org 33 UDOO Starting manual beta MX6Q_PAD_EIM_CSO
4. www udoo org 9 UDOO Starting manual beta T UDOO http www udoo org Version 0 4 10 UDOO Starting manual beta Version 0 4 2 4 Creating a bootable microSD card The Hard Way Note The following instructions are referred to a Linux system A bootable SD card has 3 different elements e Kernel e U Boot Universal Bootloader e File System e g Ubuntu Linaro Yocto A possible way to create a bootable SD card consists in installing these elements separately from the binaries available on UDOO s website Alternatively it is possible to compile the source code in order to get the binaries This is especially useful for people that want to customize and improve the UDOO environment and getting the newest kernel u boot updates This way is not usually suitable for beginners The following steps are required when using an unformatted microSD card 2 4 1 Download Binaries Download all the necessary binaries that must be installed Create a development folder on Home cd mkdir udoo dev then move to the folder cd udoo dev Download inside the udoo dev folder the file system the compiled Kernel ulmage and the U Boot file u boot bin for UDOO Dual or Quad from the binaries section of the website http www udoo org downloads Once completed these steps in udoo dev folder there will be 3 binary files File System U Boot and Kernel 2 4 2 Compile the Kernel and the mo
5. 41 UDOO Starting manual beta Version 0 4 a Setup Tera Term D Select Start Menu Folder Where should Setup place the program s shortcuts Y fal Setup will create the program s shortcuts in the following Start Menu folder To continue dick Next If you would like to select a different folder click Browse Tera Term Browse Don t create a Start Menu folder lt back Net cancel Press next until appears Install button and press it jl Setup Tera Term Ready to Install Setup is now ready to begin installing Tera Term on your computer Click Install to continue with the installation or dick Back if you want to review or change any settings Destination location A C Program Files x86 teraterm Setup type Standard installation Selected components Tera Term amp Macro TTSSH CygTerm TIProxy Additional Plugins TTXResizeMenu VT Window size can be changed from preset M cue ma Coma When installation has ended open Tera Term M LIIIJ http www udoo org 42 UDOO Starting manual beta Version 0 4 u Tera Term disconnected VT File Edit Setup Control Windo Help Configuration Now it is necessary to configure properly the serial port in order to match i Mx6 debug serial port Open Setup menu and select Setup port In the following picture are shown the correct parameters needed to talk with i MX6 Debug Serial Port Tera Term
6. configure and access he i Mx6 Serial Debug Port Obviously it is possible to use all kind of tool to to access serial This is just a basic guide for beginners The access to debug serial port is very important on UDOO since it is a very compact board but with a very high level of complexity inside It can be useful for many operations during setup control configuration debug troubleshooting The serial debug port is used for two different reasons e The bootloader and kernel send debug messages via serial port so that the User can monitor the low level system states e Aroot console is automatically opened on the serial port allowing bootloader configuration and system control The number of messages sent via serial port can be very high For this reason it is quite useful to increase scrolling capabilities of the terminal possibly setting them to a very high or even unlimited number of lines Three programs to access serial ports are suggested depending on the OS used on th e host PC e Teraterm Windows e Minicom Linux e Serial Tools Mac 7 2 2 Drivers Windows and Mac users may need to install drivers to access UDOO usb serial They can be found at http www silabs com products mcu pages usbtovartbridgevcpdrivers aspx 7 2 3 Windows Download Download the installer from http logmett com freeware TeraTerm php Whe UDO http www udoo org 38 UDOO Starting manual beta Version 0 4
7. In this chapter it will be described how UDOO manages the signals available on external pin header and the way to control all the GPIOs On UDOO Freescale MX and Atmel SAM3X8E share most of the GPIOs available on external pin headers Each pin of both processors can be set in INPUT or OUTPUT mode In INPUT mode each processor read the electrical level of the signal In OUTPUT mode they can drive low or high the voltage level on each pin So both processors can control all digital external pins Usually with Arduino Due applications that manage external pins are developed to run on the SAM3x8E microcontroller On UDOO it is possible to control external pins also using i MX6 processor 5 2 SAM3x8E GPI Os management SAM3x8E microcontroller can manage GPIOs using classic Arduino programming language More information on this topic can be found at http arduino cc en Reference HomePagelo manage a GPIO it is necessary to set its direction input or output by calling the pinMode pin mode function e g pinMode 2 INPUT pinMode 2 OUTPUT If pin is set in input mode its value can be read by using the function digitalRead pin providing pin number as parameter e g int val digitalRead 2 If pin is set in output mode its value can be written by using the function digitalWrite pin value providing the pin number and the value that must be written as parameters e g digitalWrite 2 HIGH digitalWrite 2 LOW
8. M LIIIJ http www udoo org 27 UDOO Starting manual beta Version 0 4 5 5 i MX6 GPI O Management i MX6 can handle external pins in many different ways In default configuration they can be accessed from user level through the standard Kernel Linux interface Some of them can be configured for specific functionalities provided by i MX6 architecture like spi i2c i25 audiomux pwms output UARTs and so on In next sections it will be described the way to use such functionalities When a pin is set as a GPIO it is possible to read its value change its direction or change output value directly from console All available GPIOs are managed by the kernel and it is possible to access thern simply by reading or writing value in specific files placed in a specific folder In the sys class gpio folder there are other sub folders one for each manageable GPIO Each sub folder contains files that indicate e direction in out e value O 1 To read a GPIO direction cat sys class gpio gpioXX direction In or Out output is now expected To change the pin direction echo out gt sys class gpio gpioXX direction or echo in gt sys class gpio gpioXX direction It is possible to do the same for values read or written on the pin To read a pin the value read will be correct only if pin s direction is set as input cat sys class gpio gpioXX value O or 1 output is expected To write a value on a pin echo O
9. line up consists of three models sharing most of the featuresand different only for connectivity and i MX6 processor used All three models feature an embedded Arduino compatible section based on Arduino Due schematic UDOO s size are 4 33 inch x 3 35 inch 11 cm x 8 5 cm Warning The UDOO I O pins are 3 3V compliant Higher voltages like 5V would damage the board 1 3 1 GPIO features Current version UDOO rev D has these additional features e S PDIF digital audio in amp out through pin headers e 25 AC97 SSI digital audio multiplexer through pin headers e FlexCAN Flexible Controller Area Network through pin headers it is possible to switch this function s management between i MX6 processor and SAM3X8E processor e External SD card support through pins header plug an external controller for an additional SD card slot or for an eMMC module 1 5 2 UDOO Quad e Freescale i MX6Quad 4 x ARM Cortex A9 core 1GHz with ARMv7A instruction set T LIIIJ http www udoo org 4 UDOO Starting manual beta Version 0 4 1 5 5 1 54 ill GPU Vivante GC 2000 for 3D Vivante GC 355 for 2D vector graphics Vivante GC 320 for 2D composition Atmel SAM3X8E ARM Cortex M3 CPU same as Arduino Due RAM DDR3 1GB 76 fully available GPIO with Arduino compatible R3 1 0 pinout HDMI and LVDS Touch 2 Micro USB 1 OTG 2 USB 2 0 type A and 1 USB 2 0 internal pin header requires adapter cable Analog Aud
10. the Arduino Due compatible pin headers External pins are set in input mode in order to prevent problems with SAM3x8E signals To set directions and output value for the pins defined previously as GPIOs it is necessary to place the GPIOs macors defined in header file s beginning eg MX6DL_PAD_SD2_DATO__GPIO_MODE into the arrays named e mx6dl_set_in_outputmode_low e mx6dl_set_in_outputmode_high e mx6dl_set_in_inputmode respectively 6 2 Extra functions available on UDOO pin headers UDOO can provide for extra features on external pin headers To enable them it is necessary to declare the correct alternative pin function in the platform file These functions are UARTs vartl vart3 vart4 vart5 sal SPls spil spi2 spi5 i2cl spdif timer capture timer compare WATCHDOG FUNCTIONALITIES watchdog reset watchdog out clock out PWMs pwml pwm2 pwm3 pwm4 digital audio T LIIIJ http www udoo org 32 UDOO Starting manual beta Version 0 4 4 9 5 6 7 8 D25 ANDF_D ANDF_D2 ANDE_D3 DISPO_DAT22 DISPO DAT21 DISPO DAT20O DISPO DAT23 EIM_OE EIM_D24 DAT1 SD4 DAT2 DISPO DAT DISPO DAT DISPO DAT DISPO DAT DISPO DAT CSIO_DATIO CSIO_DAT13 CSIO_DAT12 CSIO DAT16 CSIO DAT15 CSIO_DATI4 KEY_ROW KEY_COL1 SD1_CLK SD1_CMD SD1_DATO SD1_DAT1 ANDF_DO ElM_CS1 EIM_CSO DISPO DATI5 O 19 0 9 O1 4 EIM D21 CSIO DATI EIM D24 DISPO DAT
11. to SAM3X8E through the shared serial port using microUSB port CNO it is necessary to 1 Download and install a serial monitor e g Teraterm for Windows minicom for Linux serial tools for OS X Please check the appendix for the configuration and the parameters of these software tools 2 Connect the external host PC through the microUSB port CN6 taking care that jumper J18 is plugged Then insert the power plug and start the system On the serial monitor now it will appear something like the following usdhc3 clock 198000000Hz usdhc4 clock 198000000Hz nfc clock 24000000Hz Board i MX6Q UDOO unknown board Board 0x63012 WDOG Boot Device NOR 12C ready T LIII http www udoo org 17 UDOO Starting manval beta Version 0 4 DRAM 1GB MC FSL_USDHC 0 FSL_USDHC 1 FSL_USDHC 2 FSL_USDHC 3 serial ut serial rr serial et got MAC address from IIM 00 00 00 00 00 00 FECO PRIME it any key to stop autoboot 3 O5 it any key to stop autoboot 2 it any key to stop autoboot 1 Before the counter reaches O press any key on the external PC s serial console The booting procedure will now stop and it is possible to use the u boot console Mx06Q_UDOO_BOOT gt _ Close the serial monitor and unplug J18 jumper This will allow the communication with the programming port of SAM3X8E processor without problem This procedure is needed since the Linux kernel enables the i Mx
12. 000Hz emi_slow clock 132000000Hz ddr clock 528000000Hz usdhcl clock 198000000Hz usdhc2 clock 198000000Hz usdhc3 clock 198000000Hz usdhc4 clock 198000000Hz nfc clock 24000000Hz Board i MX6Q UDOO unknown board Board 0x63012 WDOG Boot Device NOR 2C ready DRAM 1GB MC FSL_USDHC 0 FSL_USDHC 1 FSL_USDHC 2 FSL_USDHC 3 n serial Out serial Err serial et got MAC address from IIM 00 00 00 00 00 00 FECO PRIME Hit any key to stop autoboot 3 Hit any key to stop autoboot 2 Mi DOO http www udoo org 25 UDOO Starting manual beta Version 0 4 Hit any key to stop autobo 3 Before the count Mx60_UDOO_BOOT gt ot 1 er reaches O press any key on the external PC s serial console 4 Close the serial monitor and unplug J18 jumper This will allow the communication with the programming port of SAM3X8E 5 Plug the jumper J22 f or 1 second then remove it to erase the old sketch programmed in SAM3X8E 6 Plug the jumper J16 for 1 second thend remove it to reset the SAM3X8E 7 Select from the IDE the correct serial C 8 Send the sketch ools gt Board gt Arduino DUE programming port and select OM from the IDE using the IDE upload button 9 Press the reset b T UDOO utton to restart i MX6 and use Ubuntu or Android again http www udoo org 26 UDOO Starting manual beta Version 0 4 5 Shared GPIOs Management 5 1 Introduction
13. 3 WINKOWS Cm EE 38 ERE no 44 A ANS A E M 44 PZB PUGS COD AAA IN E NA 46 Whe LIIIJ http www udoo org 3 UDOO Starting manual beta Version 0 4 1 Introduction 1 1 What s UDOO UDOO is a mini PC that can be used both with Android and Linux OS with an embedded Arduino compatible board It is a powerful prototyping board for software development and design it s easy to use and allows developing projects with minimum knowledge of hardware UDOO merges different computing worlds together each one has its proper strenght and weak points but all of them are useful in today s life for educational purposes as well as Do It Yourself DIY and quick prototyping UDOO is an open hardware low cost platform equipped with an ARM i MX6 Freescale processor and an Arduino Due compatible section based on ATMEL SAM3X ARM processor all this available on the same board 1 2 UDOO goals Develop an innovative product for a growing market Give a new vision to the educational framework with the idea of training up a new generation of engineers designers and software developers skilled in digital technology physical computing multi media arts interactive arts loT Give a boost to the DIY world Offer a low cost embedded platform for interactive arts with powerful tools Processing OpenCV PureData openFramework e Provide companies with a great tool for fast prototyping 1 3 Specifications UDOO retail
14. 6 serial port so it is necessary to stop its configuration before the kernel starts USB OTG DN USBP2 OTG DN USB OTG DP USBP2 OTG DP KEYROWO KEYCOLO so N a ul Tx Rx Dsb Pin setted like ERES GPIOs in INPUT MODE OO M LIII http www udoo org 18 UDOO Starting manual beta Version 0 4 3 2 3 Shared USB OTG bus When using Android communication between MX6 and SAM3x8E processors is not made through the shared serial port lt comes through the processors native USB OTG ports instead i MX6 x native USB OTG port can be switched between SAM3X8E microcontroller and external microUSB port CN3 The switching is managed by two i Mx6 pins It is necessary to power OTG USB bus by plugging the jumper J2 which enables the voltage supply line of the bus 3 2 4 Android Accessory Mode After Android boot i MX6 processor is configured to switch the OTG BUS to the SAM3X8E processor so the connection is between the two processors Plugging an USB cable to CN3 will have no effect since CN3 is disconnected In this configuration i MX6 processor communicates with SAM3X8e using AOA protocol To do this you must program SAM3X8E with a sketch including some specific libraries and then install on Android an app configured to use AOA protocol Please check the dedicated guide t
15. D_LABEL gt This operation could take up to 30 minutes Kernel Image Copy the binary inside the microSD card boot folder by using the following command sudo cp ulmage media lt UDOO_MICROSD_LABEL gt boot Installing kernel modules Remove the previous modules sudo rm ry media lt UDOO_MICROSD_LABEL gt lib modules Copy the new modules sudo cp av lib media lt XUDOO_MICROSD_LABEL gt 2 4 5 Installing U Boot Unmount all the Micro SD partitions sudo umount dev lt MICROSD_DEVICE_NAME gt NOTE Be sure you re using the correct device filename use of the wrong device identifier could result in the loss of all data on the Hard Drive of the host PC used Double check the filename of your device with command Isblk Copy the u boot binary file inside the MicroSD For UDOO Quad sudo dd if u boot q imx of dev sdX bs 512 seek 2 For UDOO Dual sudo dd ifzu boot d imx of dev sdX bs 512 seek 2 sync The microSD card is nowready Simply insert it in UDOO s microSD Card slot and boot the system Mh LIIIJ http www udoo org 13 UDOO Starting manual beta Version 0 4 5 Internal Connections 351 Introduction UDOO include on the same board an ARM v7 Cortex A9 microprocessor with an Atmel SAM3X8E microcontroller same as Arduino Due They re both stand alone with different clocks and no shared memory They both process their tasks asynchronously without any kind of emulation These pr
16. Instead select Exit from minicom to close it completely Launch minicom again without setup options HOST sudo minicom w 7 2 5 Mac OSX Download Serial Tools from https itunes apple com it app serialtools id61102196 3 or directly from Apple Store Open Serial Tools then change the following two parameters the Serial Port name to SLAB_USBtoUART or similar the baudrate to 115200 M LIIIJ http www udoo org 44 UDOO Starting manual beta Version 0 4 Wir c Terminal Protocol Analyzer Monitor Serial Port SLAB_USBtoUART cal Baud Rate 115200 M crit C Raw Bits 8 Parity none Stop Bits 115200 8 N 1 V Local Echo Connect ORTS DTR Ej CTS Ej DSR es Auto Reconnect Click on Connect ABA s t Terminal Protocol Analyzer Monitor Serial Port SLAB_USBtoUART 2d Baud Rate 115200 M crit Raw Bits 8 Parity none StopBits 1 115200 8 N 1 M Local Echo Di ct ORTS DTR gcs EDSR Na _ Auto Reconnect 2 465078 mxc dv s core probe 2 468421 DVFS driver module loaded 2 473629 snvs rtc snvs rtc 0 setting system clock to 1970 01 01 00 04 19 UTC 259 16 302509 kjournald starting Commit interval 5 seconds 16 314086 EXT3 fs mmcbik0p1 using internal journal 16 319468 EXT3 fs mmcbik0p1 2 orphan inodes deleted
17. Serial port setup OK Baud rate 115200 v Data 8 bit v Cancel Parity none v Stop 1 bit v Help Flow control none v Transmit delay 0 msecjchar 0 msec line Press OK Usage Plug the USB cable to CN6 on UDOO and to an USB port of the host PC The chip is powered by the USB cable so it will be shown a serial port connected to the PC Please be aware that if UDOO main power plug is not connected then USB power supply is insufficient to let UDOO run Open File menu select New connection Alt N and choose the correct serial port Wh UDOO http www udoo org 43 UDOO Starting manual beta Version 0 4 Tera Term New connection O TCPAP ssh fuserfdmyhost example com vi History Telnet ex SSH SSH2 Other UNSPEC 8 Serial Port COM51 Silicon Labs CP210x USB to v OK Cancel Help Press OK then turn on UDOO board 7 2 4 L NUX First of all it is necessary to install minicom HOST sudo apt get install minicom Launch minicom in setup mode and with Linewrap ON this is not necessary but it is useful HOST sudo minicom sw Select Serial port setup and check the following parameters Serial Device option A usually dev ttySO or dev ttyUSBO in case an USB adapter is used Communications parameters option E must be 115200 8N1 No flow control neither hardware nor software options F and G Save the settings as default Exit will close setup and open minicom
18. X6 and Atmel SAM3X8E can communicate via a shared Serial port embedded on the board exactly like Arduino systems connected to a PC through an USB cable SAM3X8E and i MX6 processor running Linux communicate on a two way M uDOO http www udoo org 15 UDOO Starting manual beta Version 0 4 channel exchanging messages with a tested baudrate of 115200 2 1 0 14 15 16 17 18 19 20 21 T 0000 x o x D x x D x CSIO DATII CSIO DATI6 E CSIO_DAT10 CSIO_DAT14 CSIO_DAT15 CSIO_DAT12 CSIO_DAT13 USB_OTG_SEL EIM_WAIT USB_OTG_DN 3 USBP2 OTG DN USB OTG DP USBP2 OTG DP KEYROWO KEYCOLO T dev ttymxc3 ElM_D26 ElM_D27 z x Debug J18 Legend RED controll signal BLUE unix device id MAGENTA Rx GREEN Tx This shared serial port which can be used for SAM3X8E programming is accessible exactly like on Arduino Due via embedded USB to serial converter accessible through microUSB connector CN6 simply by removing jumper J18 or directly on external pins 0 and 1 of Arduino pinout compatible pin headers The shared serial port is connected to iMX6 pins KEYROWO and KEYCOLO while on SAM3X8E is connected to pins URXD and UTXD For a communication example over this serial port please check paragraph 3 5 WARNING Please be aware that due to the peculi
19. __ECSPI2_SCLK MX6Q_PAD_GPIO_7__GPIO_1_7 MX6Q_PAD_GPIO_7__CAN1_TXCAN GPIO 1 8 MX6Q PAD GPIO 8 MX6Q PAD GPIO 8 CANI RXCAN MX6Q PAD EIM WAIT GPIO 5 O0 CORRECT static unsigned int mx6q set in inputmode MX6Q PAD EIM CSI GPIO MODE MX6Q PAD EIM CSO GPIO MODE MX6Q PAD GPIO 8 GPIO MODE MX6Q PAD GPIO 7 GPIO MODE Version 0 4 MX6Q PAD EIM CSO ECSPI2 SCLK TTE SEABDSSISSDPZESPIGNSE22 MX6Q PAD EIM D24 ECSPI2_SS2 MX6Q PAD EIM D24 UART3_TXD MX6Q PAD EIM D24 ECSPII SS2 BENE STTMPESENSIPIGNS NS MX6Q PAD EIM D25 UARTS3 RXD MX6Q PAD GPIO 7 GPIO 1 7 MX6Q_PAD_GPIO_7__CAN1_TXCAN MX6Q PAD GPIO 8 GPIO 1 8 MX6Q PAD GPIO 8 CANI RXCAN MX6Q PAD EIM WAIT GPIO 5 0 CORRECT static unsigned int mx6q set in inputmode MX6Q PAD EIM CS1 GPIO MODE MX6Q PAD EIM CSO GPIO MODE INNNCOMRADHE NULA Pto JMIKOYNDIE 72 XOOSPRADEE MED2ZommGRIOBM DE MX6Q PAD GPIO 8 GPIO MODE MX6Q PAD GPIO 7 GPIO MODE Once all needed changes to configuration files have been made it is necessary to compile again the kernel source WARNING the pins EIM D24 and EIM D25 are shared with SAM3x8E ElM_D24 gt digital pin 53 EIM_D25 gt digital pn 47 void setup Serial begin 115200 pinMode 47 INPUT pinMode 53 INPUT void loop C X some stuff 7 Appendi
20. al beta Version 0 4 SAM3x8E can be programmed with the new sketch UDOO also needs the driver to disable the internal shared serial port used to Upload the sketch When the serial port is enabled on i MX6then there will be three devices i MX6 SAM3x8E external PC on the same line To avoid this conflict the driver needs to set the i MX6 serial port in INPUT MODE before the bossac uploader sends the command to the SAM3x8E 4 4 Alternative procedure A different way for programming the Arduino side without applying patches consists in stopping the board at U boot stage before the Kernel is loaded To do so you Il have to 1 Download and install a serial monitor program Teraterm for Windows Minicom for Linux serial tools for OS X Please check the appendix for the configuration and the parameters of these software tools 2 Connect the external Host PC through the microUSB port CN6 taking care that jumper J18 is plugged Then insert the power plug and start the system On the serial monitor it will appear something similar U Boot 2009 08 Sep 27 2013 12 30 44 CPU Freescale i MX6 family TO1 2 at 792 MHz Thermal sensor with ratio 181 Temperature 50 C calibration data Ox5774fa69 mx6q pill 792MHz mx6q pll2 528MHz mx6q pll3 480MHz mx6q pll8 50MHz ipg clock 66000000Hz ipg per clock 66000000Hz uart clock 80000000Hz cspi clock 60000000Hz ahb clock 132000000Hz axi clock 264000
21. ar kind of connection of the shared serial port it could be possible that more than two devices are on the same serial line It s up to the custorner to avoid this occurrence since serial port connection is a push pull point to point protocol In case a third device connected on the same line tried to talk to other devices it would be impossible to use the line The shared serial port is always connected on SAM3X side it is only possible to configure the i MX6 pin functionality This can be done using Kernel source files In default configuration the i MX6 pins connected to the shared serial port are set as UART Rx and UART Tx LIIIJ http www udoo org 16 UDOO Starting manual beta Version 0 4 USB_OTG_DN USBP2_OTG_DN USB OTG DP 1 USBP2 OTG DP AS KEYROWO 5 KEYCOLO zz ul Tx Rx Pin setted like HON UART After the OS boot the connection between the two processors is established and working For this reason it is impossible to connect an external Host PC through microUSB connector CN6 without J18 jumper inserted since it would result in the unusability of the shared serial port The same situation occurs when trying to communicating with UDOO board through pins O and 1 of the Arduino Due pinout compatible pin headers since SAM3X8E UART Serial Rx and Tx line are wired also on these pins n case it is necessary to talk
22. dules t s possible to download the Kernel sources from the GitHub repository https github com UDOOboard Kernel Unico ote For compiling the sources from an x86 64 PC it is also necessary to download the cross compiler from the sources section of the webpage http www udoo org downloads Download and extract the cross compiler curl http download udoo org files crosscompiler arm fsl linux gnueabi tar gz tar xzv t could be prompted to install some packages in order to successfully compile the kernel on Linux E g in Ubuntu 10 04 it is necessary to install the following packages sudo apt get install build essential ncurses dev uboot mkimage git T LIIIJ http www udoo org 11 UDOO Starting manual beta Version 0 4 Download the latest revision from GitHub git clone http github com UDOOboard Kernel_Unico kernel Move inside the folder kernel cd kernel Set the default kernel configuration for UDOO by running thecommand make ARCH arm UDOO defconfig At this point it is possible to edit the config make ARCH arm menuconfig Start compiling make j4 CROSS COMPILE arm fsl linux gnueabi bin arm fsl linux gnueabi ARCH arm ulmage modules This operation could take up to 20 minutes depending on the PC used The compiled Binary ulmage will now be available in the arch arm boot folder Copy it in the previous folder cp arch arm boot ulmage Now install the modules make mod
23. e card into any SD card reader and then connect it to the PC Note the microSD card must be formatted using FAT32 File System Run again df h The device that had not been listed before is the micro SD card just inserted The left column will show the device name assigned to the micro SD card It will have a name similar to dev mmcblkOp1 or dev sdd1 The last part of the name p1 or 1 respectively is the partition number but it is necessary to write on the whole micro SD card not only on one partition Therefore it is necessary to remove that part from the name for example dev mrncblkO or dev sdd in order to work with the whole micro SD card If the micro SD card contains more than one partition it is necessary to unmount all of these partitions using the correct name found previously followed by the letters and numbers identifying the partitions using the command e g sudo umount dev sddl Now write the image on the micro SD card with the command sudo dd bs 1M ifz img file path of dev lt sd_name gt T UDOO http www udoo org 7 UDOO Starting manual beta Version 0 4 Please be sure that you replaced the argument of input file if lt img_ file path with the pathof the img file and that the device name specified in output file s argument of dev lt sd_name gt is correct This is very important since you could lose all data on the hard drive of the Host PC i
24. ent it is possible that it is necessary to reset the SAM3X8E Simply plug and unplug the jumper J16 If it has been loaded a sketch implementing AOA protocol an alert will appear It notifies that Android Accessory is now connected In case of presence of an app matching the id on the Arduino sketch it will ask for a confirmation for opening such an app On the top left menu a message will constantly remind about the presence of the Accessory Connection 5 5 Communication example over shared Serial Port The two processors can communicate using the shared serial port as deescribed in paragraph 3 2 2 On i MX6 processor such a serial port can be managed using the device file dev ttymxc3 For example on a UDOO Linux terminal it is possible to initialize the serial port baud rate by using the stty command M LIIIJ http www udoo org 21 UDOO Starting manual beta Version 0 4 e g stty F dev ttymxc3 cs8 115200 baud rate set to 115200 note the baud rate have to be the same declared in SAM3x8E firmware note default baud rate is 9600 to write a message on the serial port use the echo command e g echo message gt dev ttymxc3 to read messages from the serial port use the cat command e g cat dev ttymxc3 This serial interface is directly connected to the serial programming port of SAM3X8E therefore in Arduino sketches it is possible to communicate with Mx6 using the Serial object To initia
25. f it is usedthe wrong device name Please also be sure that the device name is that of the whole micro SD card as described above not just a partition e g sdd not sddsl or sddpl or mmcblkO not mmcblIkOp1 e g sudo dd bs 1M ifz home amp user name Download 2013 5 28 udoo ubuntu img of dev sdd Once dd completes run the sync command as root or run sudo sync as a normal user this will ensure that the write cache is flushed and that it is safe to Unmount the micro SD card Then run sudo umount media lt sd_label gt The micro SD card is now ready to be used Simply insert it in UDOO s microSD Card slot and boot the system 2 2 Write the image on micro SD card using Mac OSX From the terminal run df h If the Mac has a slot for SD cards SD to micro SD adapter needed insert the card If not insert the card into any SD card reader and then connect it to the Mac Note the microSD card must be formatted usingFAT 32 File System Run again df h The device that had not been listed before is the microSD card just inserted The name shown will be that of the filesystem s partition for example dev disk3sl Now consider the raw device name for using the entire disk by omitting the final s1 and replacing disk with rdisk considering previous example use rdisk3 not disk3 nor rdisk35s1 This is very important since it could result in the loss of all data of the disk of the Mac used w
26. gt sys class gpio gpioXX value or echo 1 gt sys class gpio gpioXX value Wh LIIIJ http www udoo org 28 UDOO Starting manual beta Version 0 4 UDOO Rev D GND aa AA T4 T A A A CC A a A a a E oI NNR 5 4 GPIOs Warnings When changing i MX6 GPIOs directions it is necessary to pay special attention New direction must be compatible with SAM3x8E pinout configuration and or with the load of the physical pin M LIII http www udoo org 29 UDOO Starting manual beta Version 0 4 A Comunication mode Zi u E 7 B External use cofiguration y 4 4 E i m H T TH 4 7 nni C Prohibited configuration Jt A GPIOs can be used to build a communication channel between the two processors By setting one processor in INPUT mode and the other in OUTPUT mode a one way channel will be created Via software it is possible to switch the direction on both processors in order to create a half duplex communication channel B Two processors simultaneously can read data from external devices They can also write data to external devices or the other processor but only one at a time can be set in output mode C The situations here illustrated must be avoided In the first case both processors set the shared pin in output mode If they try to drive the shared line with different signal values the resulting signal level will be unpredictable and it could result in damaging the processor driving the s
27. hen referring to the wrong device name Since there could be other SD with different drive names numbers like rdisk2 or rdisk4 etc check again the correct name of the microSD card by using the df h command both before amp after the insertion of the microSD card into the Mac used e g dev disk3s1 gt dev rdisk3 If the microSD card contains more partitions unmount all of these partitions use the correct name found previously followed by letters and numbers that identify the partitions with the command sudo diskutil unmount dev disk3s1 Now write the image on the microSD card using the command T LIIIJ http www udoo org 8 UDOO Starting manual beta Version 0 4 sudo dd bs 1m if path_del_file_img of dev lt sd_name gt Please be sure that you replaced the argument of input file if lt img_file_path gt with the path to the img file and that the device name specified in output file s argument of dev lt sd_name gt is correct This is very important since it could result in the loss of all data of the disk of the Mac used when referring to the wrong device name Please also be sure that the device name is that of the whole micro SD card as described above not just a partition for example rdisk3 not disk3s1 e g sudo dd bs 1m if home user_name Download 2013 5 28 udoo ubuntu img of dev rdisk3 Once dd completes run the sync command as root or run sudo sync as a normal u
28. ignal LOW The same situation occurs when one external device tries to drive the shared line WARNING There isn t any automatic tool that can avoid dangerous situations The programmer must develop Hardware and Software able to avoid the occurrence of dangerous situation M uDOO http www udoo org 30 UDOO Starting manual beta Version 0 4 6 i MX6 Pinmuxing 6 1 Introduction i MX6 processor provides a dedicated controller for pin muxing options named OMUX Controller IOMUXC The IOMUX Controller allows to the IC to share one pad between several functional blocks The sharing is done by multiplexing the pad input output signals Every module requires a specific pad setting such as pull up keeper and so on and for each signal there are up to 8 muxing options called ALT modes The pad settings parameters are controlled by the IOMUXC n the Linux kernel it is necessary to define a specific file for each platform For UDOO it can be found in KERNEL ROOT arch arm mach mx6 board mx6 seco UDOO c This file contains specific drivers initializations like ethernet hdmi sd and so on At the beginningof the function init mx6 seco UDOO board init void there is the following code if cpu_is_mx6q lt mxc iomux v3 setup multiple pads mx6qd seco UDOO pads ARRAY SIZE mx6qad seco UDOO pads printk n2UDOO quad else if cpu is mx6dl 0 mxc iomux v3 setup multiple pads mx
29. io and Mic jacks CSI Camera Connection on board Micro SD card reader boot device Power Supply 6 15V and External Battery connector Ethernet RJ45 10 100 1000 MBit WiFi Module SATA connector with power header UDOO Dual Freescale MX6DualLite 2x ARM Cortex A9 core 1GHz with ARMv7A instruction set GPU Vivante GC 880 for 3D and 2D vector graphics Vivante GC 320 for 2D composition Atmel SAM3X8E ARM Cortex M3 CPU same as Arduino Due RAM DDR3 1GB 76 fully available GPIO with Arduino compatible R3 1 0 pinout HDMI and LVDS Touch 2 Micro USB 1 OTG 2 USB 2 0 type A and 1 USB 2 0 internal pin header requires adapter cable Analog Audio and Mic jacks CSI Camera Connection on board Micro SD card reader boot device Power Supply 6 15V and External Battery connector Ethernet RJ45 10 100 1000 MBit WiFi Module SATA connector with power header UDOO Dual Basic Freescale i MX6DualLite 2x ARM Cortex A9 core 1GHz with ARMv7A instruction set GPU Vivante GC 880 for 3D and 2D vector graphics Vivante GC 320 for 2D composition Atmel SAM3X8E ARM Cortex M3 CPU same as Arduino Due RAM DDR3 1GB 76 fully available GPIO with Arduino compatible R3 1 0 pinout HDMI and LVDS Touch uDOO http www udoo org 5 UDOO Starting manual beta Version 0 4 2 Micro USB 1 OTG 2 USB 2 0 type A and 1 USB 2 0 internal pin header requires adapter cable Analog Audio and Mic jacks CSI Camera Con
30. key fingerprint is 51 CF 2E 2C 9A A1 13 1D E7 A9 3F 55 CA 65 D2 C5 Always allow from this computer Cancel Android is asking to accept the fingerprint of the PC used It is also possible to select the option of remembering the choice press OK button By launching a console on the host PC with the Android SDK installed it is now possible to access to UDOO using adb tool Wh Ubpee http www udoo org 20 UDOO Starting manual beta Version 0 4 It is possible to download Android SDK and access the full documentation at http developer android com sdk index html Full guide for ADB tool available at http developer android com tools help adb html 3 2 6 Switching between modes From Android options menu it is possible to switch between Debug Mode and Accessory Development Kit ADK Mode For this it is necessary to access the android shell Connect a microUSB cable to CN6 and plug J18 jumper Now access to the shared serial port using a terminal application like Teraterm Minicom Serial Tools please check the paragraph related to the configuration of shared serial port Accessing the Android console it is possible to switch between the two modes sudo s sudo s echo O gt sys class gpio gpio20 3 value echo 1 gt sys class gpio gpio128 value echo O gt sys class gpio gpio128 value echo 1 gt sys class gpio gpio20 3 value When switching from Debug to ADK mode after the two commands have been s
31. lize the serial baud rate to the desired value it is possible to use the method begin speed e g Serial begin 115200 note the baud rate have to be the same declared for i MX6 processor to write a message on the serial port use the methods print val printin val write val e g Serial print 45 e g Serial printin Hello World e g Serial write udooooo to read messages from the serial port use the methods read readButes e g Serial read e g Serial readBytes buffer length For acomplete example on communication between the two processors follow this link www udoo org features processors communication file containing an arduino sketch UDOO_test_communication_sketch ino and a linux bash script UDOO_test_communication_script sh M LIIIJ http www udoo org 22 UDOO Starting manual beta Version 0 4 SAMSX8E microcontroller programmin To program the Atmel SAM3x8E from an external Host PC it is possible to use the standard Arduino IDE 4 1 Download Arduino IDE Download the Arduino IDE for free at the official website http arduino cc en Main Software Download the version for the O S used must be 1 5 2 or newer release Main Site Blog Playground Forum Labs Store Sign in or Register Download Arduino 1 5 BETA with support for Arduino Y n and Arduino Due Board If you have the new Y n or Due Board you must download the 1 5 4 version Once you get the
32. memory swapping during build operations Attention The memory size must be chosen according to the amount of free memory on the host computer When large amount of memory are assigned to VM then the host OS could repeatedly swap or page leading to a drastic decrease of computer s performances CPUs All the available CPU cores of the host PC should be assigned to VM execution especially for the first compiling which requires a lot of time After the first phase it is possible to reduce the number of CPU cores if desired Then click on Finish button and Ubuntu installation will start When the installation has ended it is possible that it is necessary to login from console and launch the GUI by running the commana startx Setting up VM environment Update the system sudo apt get update Install required libraries for Android compiling process sudo apt get install git core gnupg flex bison gperf build essential zip curl zliblg dev libc dev lib32ncurses5 dev ia32 libs xMproto core dev libx1l dev lib32readline5 dev lib32z dev A M LIIIJ http www udoo org 36 UDOO Starting manual beta libgll mesa dev g multilib mingw32 tofrodos python markdown lioxml2 utils xsltproc uuid dev liblzo2 dev T UDOO http www udoo org Version 0 4 37 UDOO Starting manual beta Version 0 4 7 2 Establish serial debug connection with UDOO 7 2 1 Introduction This chapter will describe the way to install
33. n example over UART se cr 21 4 How to program SAM3X microcontroller esee e eee e eene nennen eene no nnne nnn 23 4 1 Download Arduino IDE sipini annaia ttn ttt atta tts tatto tento ttt nt tte ttai to tto tts sto iais iioi ae 23 4 2 Install Arduino IDE nose aie rdc rat e at 23 421 WindoWSs ii a ea at Atl deal hae Alien edo 23 ARIAS ai riii a a aaa aaia iaia aa i a 24 FDS OSX RA 24 4 3 Apply UDOO patch to Arduino IDE aa 24 4 3 1 Why we need this patch miii 24 4 4 Alternative procedure cc anne 25 5 Shared GPIOs Management i2 2 2 MEER dia orcos 27 SEN 0 OG HDL o E RIED E 27 5 2 SAM3x GPI Os management isses eee as 27 5 3 1 MX6 GPI O Mamageme esiesenn sentent tnnt ttt tttt tates tt sto ttt ttes tates tt attt noa sss so bss stesso SS 28 5 4 GPIOS Warning Siingi agais tnb aaa 29 LM ri De ETT E A PEE T T 31 M LIII http www udoo org 2 UDOO Starting manual beta Version 0 4 6 1 Introduction na 31 6 2 Extra available functions on UDOO pinout esee cas 32 6 3 Example uite cotetscixasa A A A ia 33 Te ADDED uHUtes a HOHER RERO TUTTO T 34 7 1 How to create a Virtual Machine Environment eise tentent tnn tttnt tetto tenet tttnti 34 Zod Ze LisiusrE 34 7 1 3 Setting up work ENVIO MN e 35 7 2 Establish serial debug connection with UDOO cas 38 FZ VINO AA RC DE 38 IERE DN a EDO Un e O aa 38 72
34. nection on board Micro SD card reader boot device Power Supply 6 15V and External Battery connector T UDOO http www udoo org UDOO Starting manual beta Version 0 4 2 Creating a bootable Micro SD card from precompiled image The following paragraphs will guide to in the creation of a bootable micro SD card for UDOO board starting from a precompiled image file containing the UDOO Operating system which runs using the i MX6 processor Without the O S it si possible only to use UDOO like a normal Arduino Due only SAM3X8E processor The procedure is quite easy simply unzip the image and write it on the SD card using the dd tool for UNIX MAC users or Win32Disklmager for Windows users It is not possible to create a bootable SD card with drag and drop Please consider that the micro SD card size must be at least 8GB higher capacity SD memory cards may be used but only 8GB will be available at the end of the procedure 1 Download any SD images Ubuntu or Yocto from the image section of the website http www udoo org downloads 2 Extract the img file from the zip file you downloaded into any folder this path will be referred to as lt img_file_path gt in the guide 3 Follow the instructions below for the OS you use 2 1 Write the image on micro SD card using Linux From the terminal run df h If the PC used has a slot for SD cards SD to micro SD adapter needed insert the card If not insert th
35. o Android Arduino ADK programming USB_OTG_SEL VBUS_EN USB_OTG_DN USBP2_OTG_DN USB_OTG_DP USBP2_OTG_DP Row a a KEYROWO nx o 2 zx KEYCOLO 4 xx uou 23 2 A A Val Rx Rx Tr Debug O Ol J2 f c Enable OTB Bus Power supply 3 2 5 USB Debug mode M LIII http www udoo org 19 UDOO Starting manual beta Version 0 4 t s possible to use adb tool on UDOO for installing debugging and testing applications like on common Android devices To do this it is necessary to switch the OTG bus to the microUSB port CN3 then connect there the external Host PC and use the standard adb tools on UDOO USB_OTG_SEL VBUS_EN USB_OTG_DN USBP2_OTG_DN USB_OTG_DP USBP2_OTG_DP rm 0 aa KEYROWO lag a a zx KEYCOLO 4 26 X uou Ls 2 5 A Tal ax en Tx Debug E Ld L HI O 5 O Enable OTB Bus Power supply CN6 CN3 Default configuration directs OTG bus from MX6 prcoessor to SAM3X8E therefore it is not possible to use the adb tool To switch the OTG bus channel to external connector CN3 please follow the steps listed in the dedicated chapter After the OTG bus has been switched it is possible to connect UDOO to an external computer plugged on CN3 The first time Android will show an alert like that shown in the following picture The computer s RSA
36. oad the VM player Download the player from VMware Player website You can find the latest st version at http www vmware com products player Choose the version dedicated to the OS used Install the VM on your system Open the installer and follow the instructions For more information check the VMware documentation http www vmware com pdf VMwarePlayerManuallO podf M LIII http www udoo org 35 UDOO Starting manual beta Version 0 4 Download Ubuntu disk image A 64 bit 10 04 Ubuntu distro to run this procedure is recommended lt can be downloaded from http old releases ubuntu com releases lucid Create a new VM running Ubuntu 10 04 Click on VMware Player icon Choose Create a New Virtual Machine from menu on the right Choose Installer disk image file iso and select the downloaded ubuntu iso image Press Next button Then choose your name the username and the password Fill these fields and click on next button Choose the VM name UDOO dev 10 04 and click next Set harddisk size at least 40 GB Unfortunately compiling Android OS requires a big amount of disk space Select split virtual disk into multiple files option Now it is necessary to set VM performances by clicking on customize hardware button Memory Options e GB minimum low performance lot of swapping during the compiling e 2GBrecomended memory swapping especially during java compiling e 3 GB perfect no
37. ocessors only share some communication channels e an UART Serial used on Linux e anUSBOTG Bus used on Android e all the digital pins of the external Arduino pinout UDOO embeds a micro computer with the most common communication ports Ethernet WiFi USB HDMI SATA digital and analog input output anda microcontroller with a standard pinout for fast prototyping applications They both work connected to the same ports that usually connect an Arduino board with a standard PC 5 2 Processors Connections This chapter will describe all the communication channels between the two processors on UDOO board 5 24 i MX6 Debug Serial Freescale i MX6 has a dedicated serial port for debugging which is accessible through an USB to RS 232 bridge on micro USB connector CN6 The Jl8jumper switches USB connection coming from CN6 to the iMX6 debug serial port instead of SAM3X8E programming port lt gives accessto Linux console while T UDOO http www udoo org 14 UDOO Starting manual beta Version 0 4 Linux OS is running and allows to the users to see u boot and kernel outputs USB OTG DN USBP2 OTG DN USB OTG DP f USBP2 OTG DP KEYROWO KEYCOLO EIM D26 ElM_D27 xT Rx Pin setted like bepug UART J18 With Ubuntu OS it is possible to use a shell after the login 3 2 2 Shared serial port Freescale i M
38. older via terminal and write the command tar zvf arduino 1 5 4 linux32 tgz or tar zvf arduino 1 5 4 linux64 tgz then move the folder in the preferred path mv arduino 1 5 4 lt PREFERRED PATH 4 2 5 OSX Download and unzip the file then move the App in Application folder 4 5 Apply UDOO patch to Arduino IDE To allow the Arduino IDE to work on UDOO it is necessary to update a file in the Arduino IDE folder Download the patch Download the patch for the appropriate OS at following link www udoo org downloads tab4 Extract the file called bossac from the archive and move it in the Arduino IDE path overriding the old file Answer yes to any alert that will appear lt ARDUINO_IDE_PATH gt hardware tools On OS X right click on the Arduino IDE Application and select Show package contents then copy the bossac file into lt ARDUINO_IDE_PACKAGE gt Contents Resources Java hardware tools 4 5 1 Why this patch is necessary The Atmel SAM3x8E microcontroller needs to receive ERASE and RESET signals before programming it with a new sketch On Arduino board this operation is performed by the microcontroller ATmegal6U2 which is not present on UDOO board This patch solves this issue The bossac file sends a command to an i MX6 embedded driver which acknowledges the command and drive opportunely the SAM3x8E ERASE and RESET signals Afterwards the M LIIIJ http www udoo org 24 UDOO Starting manu
39. sdl seco UDOO pads ARRAY SIZE mx6sdl seco UDOO pads printk n UDOO dual It recognizes the UDOO version used and load the necessary macros needed for it mx6qd seco UDOO pads and mx6sdl_seco_UDOO_pads are two array of macros defined in two header files one for each processor type Both h files are included in the cc file X KERNEL ROOT arch arm mach mx6 board mx6qd seco UDOO h QUAD X KERNEL ROOT arch arm mach mx6 board mx sdl seco UDOO h DUAL mxc iomux v setup multiple pads reads the macros and set the correct bits values in registers Each header file defines e custom macros for some pins e GPIOs id number i MX6 pins are divided in banks and identified by id To make them visible by the OS it is necessary to give them a single id number IMX GIPO NR provide this function macro s array used for pinmuxing an array containing the pins set as GPIOs that must be configured in output mode with high value T LIIIJ http www udoo org 31 UDOO Starting manual beta Version 0 4 e anarray containing the pins set as GPIOs that must be configured in output mode with low value e anarray containing the pins set as GPIOs that must be configured as inputs It is also possible to divide the pins in two sets e internal pins used for communications between processors to enable or disable external peripherals ethernet usb hub audio e external pins accessible from external through
40. ser this will ensure that the write cache is flushed and that it is safe to Unmount the micro SD card Then run sudo diskutil eject dev rdisk3 The micro SD card is now ready to be used Simply insert it in UDOO s microSD Card slot and boot the system 2 3 Write the image on micro SD card using Windows Download the Win32Disklmager software Unzip it now there will be a new folder called win32diskimager v0 binary f the PC used has a slot for SD cards SD to microSD adapter needed simply insert the card If not insert the card into any SD card reader and then connect it to the PC ote the microSD card must be formatted using FAT32 File System Run the file named Win32Disklmager exe with Windows Vista 7 and 8 right click the file and select Run as administrator f the micro SD card Device used is not detected automatically click on the drop down box on the right and select the identifier of the micro SD card that has been plugged in e g H Note the microSD card must be formatted using FAT32 File System Please be careful to select the correct drive identifier if you use the wrong identifier you can lose all data on the PC s hard disk In the Image File box choose the downloaded img file and click Write Note click YES in case it pops up a warning message The microSD card is now ready to be used Simply insert it in UDOO s microSD Card slot and boot the system T LIIIJ http
41. software follow this instruction to get started with the Arduino Y n or this instruction to get started with the Arduino Due WARNING This software is a beta version you may encounter bugs or unexpected behaviours Please discuss any issues in the Y n forum or Due forum WARNING The early Windows release 1 5 4 contains a bug that prevents it from working correctly on Windows 8 We released the 1 5 4r2 that fix the problem Arduino 1 5 4 release notes Windows Installer 1 5 4 r2 Windows ZIP file 1 5 4 r2 MacOS X Linux 32 bit 64 bit source 4 2 Install Arduino IDE Once downloaded the appropriate IDE the next step is installing the Arduino IDE Keep in mind the path from now on referenced as lt ARDUINO_IDE_PATH gt for extraction of the archive previously downloaded It is necessary to update the IDE by inserting a patch inside the lt ARDUINO_IDE_PATH gt to make it fully compatible with UDOO board 4 21 Windows Download the installer or the zip package If it has been downloaded the zip file then it is necessary to remember the path where the file has been unzipped Instead if it has been donwloaded the installer it will copy all files needed in the following default path Whe LIIIJ http www udoo org 23 UDOO Starting manual beta Version 0 4 C Program Files x86 Arduino 4 2 2 Linux 32 64 Download the tar gz files choosing from 32 and 64 bit OS version avigate in the download f
42. st of conditions and the following disclaimer 8 I accept the agreement Ido not accept the agreement ma Wet cms y Setup Tera Term B Select Destination Location Where should Tera Term be installed A Setup will install Tera Term into the following folder To continue dick Next If you would like to select a different folder dick Browse C Program Files x86 teraterm Browse Atleast 7 5 MB of free disk space is required mk mets cas Select the Standard installation and press next M LIIIJ http www udoo org 40 UDOO Starting manual beta y Setup Tera Term 0 Select Components Which components should be installed Select the components you want to install dear the components you do not want to install Click Next when you are ready to continue Standard installation v v Tera Term amp Macro 6 8MB Y TTSSH 2 0 MB CygTerm 0 1MB C LogMeTT Other installer is started 3 4 MB L TTLEdit Other installer is started 1 9 MB C TeraTerm Menu 0 2 MB Y TTProxy 0 3 MB C Collector 1 6 MB m Additional Pluains 0 3MB Y Current selection requires at least 9 9 MB of disk space Bak next gt Camel j9 Setup Tera Term 8 Select Language Which language shoud be used Select the language of application s menu and dialog then dick Next ma mens Caa UuUDOO http www udoo org Version 0 4
43. ul UDOO Starting Manual UDOO Starting manual beta Version 0 4 Table of Content E TO ed cir A 4 LE Whats UDO0O arrena A E E A a 4 TZU DOO Gals E 4 1 3 Species 4 T3 1 GRO COUT ES aaie O UNDE 4 DZ UU DOO UA a a a eai a 4 TIE DIO DU AAA S 5 T3 4 0UDOO Duh BOS Le E A a AA E 5 2 Creating a bootable Micro SD card from Image sesssesossecssssecosesosseesssssesssseesssecossecossesese 7 2 1 Write the image on micro SD card Using Linux sisse tret tnnt tenete tton toten 7 2 2 Write the image on micro SD card Using Mac OS cnica 8 2 3 Write the image on micro SD card Using Windows e tenente ntn tnnt teta 9 2 4 Creating a bootable Micro SD card The Hard Way etse ttnnn 11 2 4 1 Download BIN e s t nut iia tado ete eet 11 2 4 2 Compiling the Kernel and the modules cs 11 2 4 3 Preparing the partitions on the SD card ttt ttt ttt ttt anneren nenns 12 2 4 4 Copy the fil s on the SD card t 13 24 5 Installing U BOOC 13 cM Ju ael AA 14 SM Dodo TS Cti OM PERRO e E E 3 2 Cpu s Connections 3 2 1 E Mx6 Debug Serial uat a 14 32 2 Shared VART serial e Rit peda Deed cce tutte ru td 15 3 2 3 Shared USB OTG DUS o fuk ono 19 3 2 4 Android Accessory Mode ettet tnnt ntt anat Masa Paese aa anh ia atteso 19 3 2 5 USB Debug mode tert antea e atten Ra net Ei AEAEE EARR 19 3 2 6 Switching between modes cs 21 3 3 Communicatio
44. ules install INSTALL MOD PATH z CROSS COMPILE arm fsl linux gnueabi bin arm fsl linux gnueabi ARCH arm cd 2 4 5 Preparing the partitions on the SD card Insert the microSD card in the card reader Launch gparted sudo gparted Select the right microSD label from the drop down menu NOTE Be sure you re using the correct label use of the wrong device identifier could result in the loss of all data on the Hard Drive of the host PC used e g dev sdc Unmount and delete the existing microSD partitions If necessary create a partition table Select from the top menu Device gt Create Partition Table Apply Create a new partition with the following parameters and press Add Free space preceding MiB 10 New size MiB based to the SD size Free space following MiB 10 Create as Primary partition File system ext3 NOTE ext4 is not yet supported T LIIIJ http www udoo org 12 UDOO Starting manual beta Version 0 4 Label lt UDOO_MICROSD_LABEL gt Press the green V form wait for the partition to be done and exit gparted 2 4 4 Copy the files on the SD card File System Note Always remember to replace the strings inside the brackets with the right filenames Mount the just created partition and then extract the tar gz file containing the filesystem inside the microSD card with the following command sudo tar xzvpf lt NAME_OF_TAR_FS gt C media lt UDOO_MICROS
45. x 71 How to create a Virtual Machine Environment 7 1 1 Introduction Mh UDOO http www udoo org 34 UDOO Starting manual beta Version 0 4 The use of a virtual machine running a specific Linux Ubuntu distribution is highly recommended A virtual machine will create a dedicated close environment that will ensure that a step by step procedure will guide the user until the end without problems It also prevent risks ofsystem corruption or that compiling environment is not clean It also allows to be sure that used libraries are always the same and updated System Requirements To run the procedure described in the following sections it is necessary to have PC with virtual machine running Linux Ubuntu 10 04 with at least 40 GB of free disk space e UDOO Board e micro SD at least AGB e An SDcard reader e Amicro USB to USB cable To try immediately UDOO Board it is also necessary DMI monitor DMI cable Mouse Keyboard UDOO compatible power supply This procedure can be performed also on native Linux OS The use of a VM only reduces system differences and can follow a standardised procedure to compile Android 7 1 3 Setting up work environment Install the Virtual Machine VMware PlayerTM is recommended for this operation A step by step installationProcedure is provided Mac users Virtual Box player can be used however the procedure has not been tested on this system Downl

Download Pdf Manuals

image

Related Search

Related Contents

ANNEXE 3 : MODE D`EMPLOI CARTE DE COMPETITION  FC1332取扱説明書 FC1332とアンプとの接続方法  Solicitud de cargo automatico de colegiatura  Samsung SyncMaster  P-267PD (PDF形式/約33.7MB)  取ー寸・取扱説明書 - RALLIART  Heavy Weather 1.1 Installation Guide  HP ZBook 15  klmgiedfhj 7-WAY CONNECTOR - Cequent Performance Products  

Copyright © All rights reserved.
Failed to retrieve file