Personal tools

Difference between revisions of "1-1-1-1-1-1-1"

From ICOP tech wiki

Jump to: navigation, search
Line 1: Line 1:
<div id="column-content">
+
<!-- Set release according to "release" parameter in URL and use MORTY_V1.0_DART-6UL as default
<div id="content">
+
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
<br />
+
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_MORTY_V1.0_DART-6UL}}}} <!--
<h1 id="firstHeading" class="firstHeading">Yocto Start Here</h1>
+
--> {{PageHeader|{{#var:HARDWARE_NAME}}-First Time? Start Here.}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Yocto}} __toc__
<div id="bodyContent">
+
[[File:Yocto.png|x300px]]
<h3 id="siteSub">From Variscite Wiki</h3>
+
= Step One: Read Documentations =
<div id="contentSub"></div>
+
Please download and read the development kit documentation on Variscite website
<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div> <!-- start content -->
+
{{note| NOTE:<br>Make sure you read the Quick Start Guide.|info}}
<div lang="en" dir="ltr" class="mw-content-ltr"><p><br />                                                                                       
 
<span style="font-size:16pt;">DART-MX8M-MINI-First Time? Start Here.</span>
 
</p>
 
<hr /> <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
 
<ul>
 
<li class="toclevel-1 tocsection-1"><a href="#Step_One:_Read_Documentations"><span class="tocnumber">1</span> <span class="toctext">Step One: Read Documentations</span></a></li>
 
<li class="toclevel-1 tocsection-2"><a href="#Step_Two:_Setup_Linux_host_PC_Development_Environment"><span class="tocnumber">2</span> <span class="toctext">Step Two: Setup Linux host PC Development Environment</span></a></li>
 
<li class="toclevel-1 tocsection-3"><a href="#Step_Three:_Evaluation_Kit_Power_Up"><span class="tocnumber">3</span> <span class="toctext">Step Three: Evaluation Kit Power Up</span></a></li>
 
<li class="toclevel-1 tocsection-4"><a href="#Step_Four:_A_quick_test_with_recovery_SD_card"><span class="tocnumber">4</span> <span class="toctext">Step Four: A quick test with recovery SD card</span></a></li>
 
<li class="toclevel-1 tocsection-5"><a href="#Step_Five:_What_next.3F"><span class="tocnumber">5</span> <span class="toctext">Step Five: What next?</span></a></li>
 
</ul>
 
</div>
 
  
<p><a href="/index.php?title=File:Yocto.png" class="image"><img alt="Yocto.png" src="/images/thumb/3/33/Yocto.png/300px-Yocto.png" width="300" height="300" srcset="/images/thumb/3/33/Yocto.png/450px-Yocto.png 1.5x, /images/3/33/Yocto.png 2x" /></a>
+
= Step Two: Setup Linux host PC Development Environment =
</p>
+
Set up your development environment.
<h1><span class="mw-headline" id="Step_One:_Read_Documentations"><span class="mw-headline-number">1</span> Step One: Read Documentations</span></h1>
+
* [[Yocto_Development_Environment|Setting a Development Environment]]
<p>Please download and read the development kit documentation on Variscite website
+
 
</p>
+
= Step Three: Evaluation Kit Power Up =
<div class="note note-info"> NOTE:<br>Make sure you read the Quick Start Guide.</div>
+
You should have the serial cable connected to the debug port, as describe in the quick start guide.<br>
<h1><span class="mw-headline" id="Step_Two:_Setup_Linux_host_PC_Development_Environment"><span class="mw-headline-number">2</span> Step Two: Setup Linux host PC Development Environment</span></h1>
 
<p>Set up your development environment.
 
</p>
 
<ul>
 
<li> <a href="/index.php?title=Yocto_Development_Environment" title="Yocto Development Environment">Setting a Development Environment</a>
 
</li>
 
</ul>
 
<h1><span class="mw-headline" id="Step_Three:_Evaluation_Kit_Power_Up"><span class="mw-headline-number">3</span> Step Three: Evaluation Kit Power Up</span></h1>
 
<p>You should have the serial cable connected to the debug port, as describe in the quick start guide.<br>
 
 
Under Ubuntu (or other Linux based OS) minicom or picocom are recommended.<br>
 
Under Ubuntu (or other Linux based OS) minicom or picocom are recommended.<br>
 
Under Windows PuTTY or Tera Term are recommended.<br>
 
Under Windows PuTTY or Tera Term are recommended.<br>
 
For example, to use picocom under Ubuntu:<br>
 
For example, to use picocom under Ubuntu:<br>
 
Open a terminal a run:
 
Open a terminal a run:
</p>
 
 
<pre>
 
<pre>
 
$ dmesg
 
$ dmesg
One of the last lines should be something like: &quot;FTDI USB Serial Device converter now attached to ttyUSBX&quot; (the X should be a number)
+
One of the last lines should be something like: "FTDI USB Serial Device converter now attached to ttyUSBX" (the X should be a number)
 
$ sudo apt-get install picocom
 
$ sudo apt-get install picocom
 
$ sudo picocom -b 115200 /dev/ttyUSBX (replace the X with the number from the dmesg output).
 
$ sudo picocom -b 115200 /dev/ttyUSBX (replace the X with the number from the dmesg output).
Line 48: Line 26:
 
(If you want to exit picocom press Ctrl+A+X)
 
(If you want to exit picocom press Ctrl+A+X)
 
</pre>
 
</pre>
<p>And to use PuTTY under Windows:
+
 
</p>
+
And to use PuTTY under Windows:
 
<pre>
 
<pre>
Click the &quot;Windows key&quot;+&quot;R&quot; to open the &quot;Run&quot; window, type &quot;devmgmt.msc&quot; and hit &quot;Enter&quot; to open the Device Manager.
+
Click the "Windows key"+"R" to open the "Run" window, type "devmgmt.msc" and hit "Enter" to open the Device Manager.
  
In Device Manager, expend the &quot;Ports (COM &amp; LTP)&quot; entry.
+
In Device Manager, expend the "Ports (COM & LTP)" entry.
You should have a &quot;USB Serial Port (COMXX)&quot; entry there after you connect the Debug cable (the XX should be a number).
+
You should have a "USB Serial Port (COMXX)" entry there after you connect the Debug cable (the XX should be a number).
  
 
Run PuTTY as an administrator.
 
Run PuTTY as an administrator.
  
In the Putty &quot;Session&quot; screen:
+
In the Putty "Session" screen:
Choose &quot;Serial&quot; under &quot;Connection type&quot;.
+
Choose "Serial" under "Connection type".
in the &quot;Serial line&quot; field, put in COMXX (replace the XX with the number seen in your Device Manager).
+
in the "Serial line" field, put in COMXX (replace the XX with the number seen in your Device Manager).
Under &quot;Speed&quot; put in &quot;115200&quot;.
+
Under "Speed" put in "115200".
  
In the &quot;Connection&quot; -&gt; &quot;Serial&quot; screen:
+
In the "Connection" -> "Serial" screen:
Make sure the &quot;Data bits&quot; are set to &quot;8&quot;, &quot;Stop bits&quot; to &quot;1&quot;, &quot;Parity&quot; to &quot;None&quot; and &quot;Flow control&quot; to &quot;None&quot;.
+
Make sure the "Data bits" are set to "8", "Stop bits" to "1", "Parity" to "None" and "Flow control" to "None".
  
Click on &quot;Open&quot;.
+
Click on "Open".
 
</pre>
 
</pre>
<p>Note:<br>
+
Note:<br>
 
If you are using a virtual machine, make sure the USB device is used by the correct OS.<br>
 
If you are using a virtual machine, make sure the USB device is used by the correct OS.<br>
 
<br>
 
<br>
Line 74: Line 52:
 
When board boots, make sure you see the U-Boot and kernel prints on your host PC terminal. You will need to type-in commands in the command prompt late in the development stages.<br>
 
When board boots, make sure you see the U-Boot and kernel prints on your host PC terminal. You will need to type-in commands in the command prompt late in the development stages.<br>
 
The Linux login is root (no password).
 
The Linux login is root (no password).
</p>
+
{{note| IMPORTANT:<br>Don't continue without the serial console operating.|info}}
<div class="note note-info"> IMPORTANT:<br>Don't continue without the serial console operating.</div>
+
 
<h1><span class="mw-headline" id="Step_Four:_A_quick_test_with_recovery_SD_card"><span class="mw-headline-number">4</span> Step Four: A quick test with recovery SD card</span></h1>
+
= Step Four: A quick test with recovery SD card =
<p>Please follow the below guide to boot the evaluation kit with a bootable SD card, and burn a complete Yocto image into the SOM's internal storage (NAND flash/eMMC)
+
Please follow the below guide to boot the evaluation kit with a bootable SD card, and burn a complete Yocto image into the SOM's internal storage (NAND flash/eMMC)
</p>
+
* {{Varlink|Yocto Recovery SD card|{{#var:RELEASE_LINK}}|Using the recovery SD card}}
<ul>
+
 
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_Recovery_SD_card&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">Using the recovery SD card</a></span>
+
= Step Five: What next? =
</li>
+
For your next steps you can either use the pre-built recovery SD card or you can build a complete Yocto image yourself:
</ul>
+
* {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build a complete Yocto image}}
<h1><span class="mw-headline" id="Step_Five:_What_next.3F"><span class="mw-headline-number">5</span> Step Five: What next?</span></h1>
+
** [[Yocto Common Errors|Yocto common build errors]]
<p>For your next steps you can either use the pre-built recovery SD card or you can build a complete Yocto image yourself:
+
This guide will help you build a complete Yocto build, resulting in all required binaries to create a full bootable Yocto SD card, and all required binaries to burn to the SOM's internal storage (NAND flash or eMMC).<br>
</p>
+
<br>
<ul>
+
* Start your application programming:
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_Build_Release&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">Build a complete Yocto image</a></span>
+
** {{Varlink|Yocto Hello World|{{#var:RELEASE_LINK}}|Hello World 'C' application}}
<ul>
+
** {{Varlink|Yocto QT Hello World|{{#var:RELEASE_LINK}}|Building A Qt Hello World}}
<li> <a href="/index.php?title=Yocto_Common_Errors" title="Yocto Common Errors">Yocto common build errors</a>
+
** {{Varlink|Yocto Programming with Eclipse|{{#var:RELEASE_LINK}}|Debugging with Eclipse}}
</li>
+
** {{Varlink|Yocto Setup TFTP/NFS|{{#var:RELEASE_LINK}}|TFTP & NFS}}
</ul>
+
<br>
</li>
+
* Test various interfaces:
</ul>
+
** [[{{#var:HARDWARE_NAME}} GPIO|GPIO]]
<p>This guide will help you build a complete Yocto build, resulting in all required binaries to create a full bootable Yocto SD card, and all required binaries to burn to the SOM's internal storage (NAND flash or eMMC).<br>
+
** [[{{#var:HARDWARE_NAME}} Ethernet|Ethernet]]
 +
** [[{{#var:HARDWARE_NAME}} Audio record play|Audio record/play]]
 +
** [[IMX CAN bus|CAN bus]]
 +
** [[{{#var:HARDWARE_NAME}} USB Host|USB Host]]
 +
** [[{{#var:HARDWARE_NAME}} eMMC|eMMC]]
 +
** [[{{#var:HARDWARE_NAME}} RTC|RTC]]
 +
** [[{{#var:HARDWARE_NAME}} LVDS|LVDS]]
 +
** [[{{#var:HARDWARE_NAME}} I2C|I2C]]
 +
** [[{{#var:HARDWARE_NAME}} Wireless LAN|Wireless LAN]]
 +
** [[{{#var:HARDWARE_NAME}} Bluetooth|Bluetooth]]
 +
** [[{{#var:HARDWARE_NAME}} Backlight|Backlight]]
 +
** [[{{#var:HARDWARE_NAME}} USB OTG host|USB OTG as host]]
 +
** [[{{#var:HARDWARE_NAME}} USB OTG as device|USB OTG as device]]
 +
** [[{{#var:HARDWARE_NAME}} SPI|SPI]]
 +
** [[{{#var:HARDWARE_NAME}} UART|External UART]]
 
<br>
 
<br>
</p>
+
* Contact Support
<ul>
+
** [http://www.variscite.com/support/variscite-customer-portal '''Variscite Customer Portal'''] <br> Register at Variscite Customer Portal to get high quality engineering support for Variscite products
<li> Start your application programming:
+
** [http://variscite.com/support-forum/index.php Support forum]
<ul>
 
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_Hello_World&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">Hello World 'C' application</a></span>
 
</li>
 
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_QT_Hello_World&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">Building A Qt Hello World</a></span>
 
</li>
 
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_Programming_with_Eclipse&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">Debugging with Eclipse</a></span>
 
</li>
 
<li> <span class="plainlinks"><a rel="nofollow" class="external text" href="http://variwiki.com/index.php?title=Yocto_Setup_TFTP/NFS&amp;amp;release=RELEASE_SUMO_V2.2_DART-MX8M-MINI">TFTP &amp; NFS</a></span>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
<p><br>
 
</p>
 
<ul>
 
<li> Test various interfaces:
 
<ul>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_GPIO&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI GPIO (page does not exist)">GPIO</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_Ethernet&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI Ethernet (page does not exist)">Ethernet</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_Audio_record_play&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI Audio record play (page does not exist)">Audio record/play</a>
 
</li>
 
<li> <a href="/index.php?title=IMX_CAN_bus" title="IMX CAN bus">CAN bus</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_USB_Host&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI USB Host (page does not exist)">USB Host</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_eMMC&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI eMMC (page does not exist)">eMMC</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_RTC&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI RTC (page does not exist)">RTC</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_LVDS&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI LVDS (page does not exist)">LVDS</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_I2C&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI I2C (page does not exist)">I2C</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_Wireless_LAN&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI Wireless LAN (page does not exist)">Wireless LAN</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_Bluetooth&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI Bluetooth (page does not exist)">Bluetooth</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_Backlight&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI Backlight (page does not exist)">Backlight</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_USB_OTG_host&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI USB OTG host (page does not exist)">USB OTG as host</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_USB_OTG_as_device&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI USB OTG as device (page does not exist)">USB OTG as device</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_SPI&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI SPI (page does not exist)">SPI</a>
 
</li>
 
<li> <a href="/index.php?title=DART-MX8M-MINI_UART&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="DART-MX8M-MINI UART (page does not exist)">External UART</a>
 
</li>
 
</ul>
 
</li>
 
</ul>
 
<p><br>
 
</p>
 
<ul>
 
<li> Contact Support
 
<ul>
 
<li> <a rel="nofollow" class="external text" href="http://www.variscite.com/support/variscite-customer-portal"><b>Variscite Customer Portal</b></a> <br> Register at Variscite Customer Portal to get high quality engineering support for Variscite products
 
</li>
 
<li> <a rel="nofollow" class="external text" href="http://variscite.com/support-forum/index.php">Support forum</a>
 
</li>
 
</ul>
 
</li>
 
</ul>
 

Revision as of 17:00, 6 March 2020

DART-6UL-First Time? Start Here.


Yocto.png

Step One: Read Documentations

Please download and read the development kit documentation on Variscite website

NOTE:
Make sure you read the Quick Start Guide.

Step Two: Setup Linux host PC Development Environment

Set up your development environment.

Step Three: Evaluation Kit Power Up

You should have the serial cable connected to the debug port, as describe in the quick start guide.
Under Ubuntu (or other Linux based OS) minicom or picocom are recommended.
Under Windows PuTTY or Tera Term are recommended.
For example, to use picocom under Ubuntu:
Open a terminal a run:

$ dmesg
One of the last lines should be something like: "FTDI USB Serial Device converter now attached to ttyUSBX" (the X should be a number)
$ sudo apt-get install picocom
$ sudo picocom -b 115200 /dev/ttyUSBX (replace the X with the number from the dmesg output).
 
(If you want to exit picocom press Ctrl+A+X)

And to use PuTTY under Windows:

Click the "Windows key"+"R" to open the "Run" window, type "devmgmt.msc" and hit "Enter" to open the Device Manager.

In Device Manager, expend the "Ports (COM & LTP)" entry.
You should have a "USB Serial Port (COMXX)" entry there after you connect the Debug cable (the XX should be a number).

Run PuTTY as an administrator.

In the Putty "Session" screen:
Choose "Serial" under "Connection type".
in the "Serial line" field, put in COMXX (replace the XX with the number seen in your Device Manager).
Under "Speed" put in "115200".

In the "Connection" -> "Serial" screen:
Make sure the "Data bits" are set to "8", "Stop bits" to "1", "Parity" to "None" and "Flow control" to "None".

Click on "Open".

Note:
If you are using a virtual machine, make sure the USB device is used by the correct OS.

Power up the board.
When board boots, make sure you see the U-Boot and kernel prints on your host PC terminal. You will need to type-in commands in the command prompt late in the development stages.
The Linux login is root (no password).

IMPORTANT:
Don't continue without the serial console operating.

Step Four: A quick test with recovery SD card

Please follow the below guide to boot the evaluation kit with a bootable SD card, and burn a complete Yocto image into the SOM's internal storage (NAND flash/eMMC)

Step Five: What next?

For your next steps you can either use the pre-built recovery SD card or you can build a complete Yocto image yourself:

This guide will help you build a complete Yocto build, resulting in all required binaries to create a full bootable Yocto SD card, and all required binaries to burn to the SOM's internal storage (NAND flash or eMMC).