<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dh-electronics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fpaule</id>
	<title>Wiki-DB - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dh-electronics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fpaule"/>
	<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=Special:Contributions/Fpaule"/>
	<updated>2026-04-27T21:28:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2204</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2204"/>
		<updated>2018-07-06T10:23:54Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Connecting everything&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting) else go to [https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG#Delete_uBoot Delete uBoot]&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*Power up the board and have a look at the serial output. If there is any uBoot starting:[https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG#Delete_uBoot Delete uBoot]&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Delete uBoot==&lt;br /&gt;
#If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Restart the board&lt;br /&gt;
#*Go on with your procedure&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2203</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2203"/>
		<updated>2018-07-06T10:23:26Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Connecting everything&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting) else go to [https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG#Delete_uBoot Delete uBoot]&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*Power up the board and have a look at the serial output. If there is any uBoot starting:&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Delete uBoot==&lt;br /&gt;
#If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Restart the board&lt;br /&gt;
#*Go on with your procedure&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2202</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2202"/>
		<updated>2018-07-06T10:22:23Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Connecting everything&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting) else go to [https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG#Delete uBoot]&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*Power up the board and have a look at the serial output. If there is any uBoot starting:&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Delete uBoot==&lt;br /&gt;
#If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Restart the board&lt;br /&gt;
#*Go on with your procedure&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2201</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2201"/>
		<updated>2018-07-06T10:20:24Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Connecting everything&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting) else go to [[Delete uBoot]]&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*Power up the board and have a look at the serial output. If there is any uBoot starting:&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
==Delete uBoot==&lt;br /&gt;
#If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#*&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Restart the board&lt;br /&gt;
#*Go on with your procedure&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2200</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2200"/>
		<updated>2018-07-06T10:15:46Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Connecting everything&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting)&lt;br /&gt;
#***If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#****&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#****&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#****Restart the board and go on with the procedure for Automatic Programing&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2199</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2199"/>
		<updated>2018-07-06T10:13:51Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: /* uBoot Programing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting)&lt;br /&gt;
#***If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#****&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#****&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#****Restart the board and go on with the procedure for Automatic Programing&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2198</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2198"/>
		<updated>2018-07-06T10:12:31Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Connect the JTAG-Adapter with your PC and the Debian VM (Player - Removeable Devices)&lt;br /&gt;
#*Connect the board with a serial COM-port&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Power up the board and have a look at the serial output. There must not be any output (no uBoot starting)&lt;br /&gt;
#*If there is any uBoot starting, you can delete it with entering uBoot (press DEL after powering up the board)&lt;br /&gt;
#**&amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt;&lt;br /&gt;
#**&amp;lt;code&amp;gt;sf erase 0 f0000&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2197</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2197"/>
		<updated>2018-07-06T10:07:39Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the [https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ Olimex Arm-USB-OCD-Tiny-H.]&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-06_uBoot_recovery_iMX6.tar.gz|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog.bin&amp;quot;&#039;&#039;&#039; and your own uBoot file&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reset&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2192</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2192"/>
		<updated>2018-07-06T07:33:53Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-03_uBoot_recovery_iMX6.tar|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*Create a new folder (it isn&#039;t necessary where the folder is located, you just need to keep the folder structure)&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**In the bin_Folder belongs the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and your own uBoot file with the included SPL-header&lt;br /&gt;
#**You need to adjust the &#039;&#039;&#039;&amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h.sh&amp;quot;&#039;&#039;&#039; in terms of the name of your uBoot-file. Paste the name instead of the term &amp;quot;Your uBoot File&amp;quot;&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
#*If some error occures you can try the Manual Programing method below&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an a Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2191</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2191"/>
		<updated>2018-07-06T06:53:29Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-03_uBoot_recovery_iMX6.tar|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2190</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2190"/>
		<updated>2018-07-06T06:53:10Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is root): &amp;lt;code&amp;gt;$ su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-03_uBoot_recovery_iMX6.tar|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2189</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2189"/>
		<updated>2018-07-03T06:14:35Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039; [[media:2018-07-03_uBoot_programing_AM335.tar|Programing File]]&lt;br /&gt;
#*The MLO.byteswap and the uBoot.img are normal uBoot files you can download here: [https://wiki.dh-electronics.com/index.php?title=COM_AM335-D2#Downloads uBoot_AM335]&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the &#039;&#039;&#039;Serial Monitor&#039;&#039;&#039; not the programing terminal confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2188</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2188"/>
		<updated>2018-07-03T06:13:25Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039; [[media:2018-07-03_uBoot_recovery_iMX6.tar|Programing Files]]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2187</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2187"/>
		<updated>2018-07-02T10:22:51Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039; and the &#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
#*Here you get the &#039;&#039;&#039;&amp;quot;uBoot.imx&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2186</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2186"/>
		<updated>2018-07-02T10:09:36Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
##*[[File:Openocd.png]]&lt;br /&gt;
##*If OpenOCD does not open like in the picture then close and open it again&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=File:Openocd.png&amp;diff=2185</id>
		<title>File:Openocd.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=File:Openocd.png&amp;diff=2185"/>
		<updated>2018-07-02T10:07:20Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2184</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2184"/>
		<updated>2018-07-02T09:36:38Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Download newest uBoot here:&#039;&#039;&#039; [https://wiki.dh-electronics.com/index.php?title=COM_iMX6-D2#Downloads uBoot_iMX6]&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2183</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2183"/>
		<updated>2018-07-02T09:35:11Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*The MLO.byteswap and the uBoot.img are normal uBoot files you can download here: [https://wiki.dh-electronics.com/index.php?title=COM_AM335-D2#Downloads uBoot_AM335]&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the &#039;&#039;&#039;Serial Monitor&#039;&#039;&#039; not the programing terminal confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2182</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2182"/>
		<updated>2018-07-02T09:31:27Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*The MLO.byteswap and the uBoot.img are normal uBoot files you can download here:[[Downloads]]&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the &#039;&#039;&#039;Serial Monitor&#039;&#039;&#039; not the programing terminal confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2181</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2181"/>
		<updated>2018-07-02T09:28:34Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*The MLO.byteswap and the uBoot.img are normal uBoot files&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the &#039;&#039;&#039;Serial Monitor&#039;&#039;&#039; not the programing terminal confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2180</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2180"/>
		<updated>2018-07-02T09:25:26Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the &#039;&#039;&#039;Serial Monitor&#039;&#039;&#039; not the programing terminal confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2179</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2179"/>
		<updated>2018-07-02T09:16:10Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2178</id>
		<title>UBoot recovery for am335 via xmodem</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_am335_via_xmodem&amp;diff=2178"/>
		<updated>2018-07-02T09:15:50Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: Created page with &amp;quot;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port. You also need a Linux distribution for examp...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the programming of the AM335x we take use of the X-Modem, so there is no use of external Hardware except a PC with a com-port.&lt;br /&gt;
You also need a Linux distribution for example the [[Virtual Machine for Application Development]] with Debian Jessie&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Installation&#039;&#039;&#039;&lt;br /&gt;
#*installing the Debian package lrzsz&lt;br /&gt;
#**&amp;lt;code&amp;gt;sudo apt-get install lrzsz&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Standard password for VM is &#039;&#039;&#039;devel&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Programing&#039;&#039;&#039;&lt;br /&gt;
#*&#039;&#039;&#039;Download required files here:&#039;&#039;&#039;&lt;br /&gt;
#*If you use the Virtual Machine, then don’t import the serial Port because this can cause issues &lt;br /&gt;
#*[[File:Am335 serialport.png]]&lt;br /&gt;
#*check which ttyUSBX port is needed for programing &amp;lt;code&amp;gt;$ cd /dev &amp;amp;&amp;amp; ls&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Please change the &#039;&#039;&#039;ttyUSBX&#039;&#039;&#039; in the following code to the one you need&lt;br /&gt;
#*Navigate into the folder where the programing files are located&lt;br /&gt;
#*Power on the board and check if it prints &amp;quot;C&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot-spl.bin &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Trying to boot from UART&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx -kb u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for uBoot to boot, if the output stops with &amp;quot;**No partition table - mmc 1 **&amp;quot; you can go on (can take a while)&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the message &amp;quot;Ready for binary (ymodem) download to 0x82000000 at 115200 bps...&amp;quot; on the serial monitor&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx MLO.byteswap &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait untill the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 ${filesize};&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge“&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 131072 bytes @ 0x0 Erased: OK&lt;br /&gt;
#***device 0 offset 0x0, size 0x6794&lt;br /&gt;
#***SF: 26516 bytes @ 0x0 Written: OK “&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;loady ${loadaddr}&#039; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Ready for binary (ymode) download to 0x82000000 at 115200 bps...&lt;br /&gt;
#**&amp;lt;code&amp;gt;sx u-boot.img &amp;lt; /dev/ttyUSBX &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait till the Serial Monitor confirms that the data is sent&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &#039;sf probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&#039; &amp;gt; /dev/ttyUSB0&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Wait for the acknowledge “&lt;br /&gt;
#***SF probe; sf erase 0x20000 0xA0000; sf write ${loadaddr} 0x20000 ${filesize};&lt;br /&gt;
#***SF: Detected S25FL216K with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
#***SF: 655360 bytes @ 0x20000 Erased: OK&lt;br /&gt;
#***device 0 offset 0x20000, size 0x60eec&lt;br /&gt;
#***SF: 397036 bytes @ 0x20000 Written: OK&lt;br /&gt;
#**&amp;lt;code&amp;gt;echo &amp;quot;reset&amp;quot; &amp;gt; /dev/ttyUSBX&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2177</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2177"/>
		<updated>2018-07-02T09:12:18Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2176</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2176"/>
		<updated>2018-07-02T09:12:00Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;/usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=File:Am335_serialport.png&amp;diff=2175</id>
		<title>File:Am335 serialport.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=File:Am335_serialport.png&amp;diff=2175"/>
		<updated>2018-07-02T08:14:00Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2174</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2174"/>
		<updated>2018-07-02T07:54:26Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &#039;&#039;&#039;&amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;&#039;&#039;&#039;-file in the OpenOCD folder at &amp;lt;code&amp;gt;$ /usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&#039;&#039;&#039;&amp;quot;u-boot-spl-prog&amp;quot;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;) belong to the bin_File folder&lt;br /&gt;
#**The &#039;&#039;&#039;&amp;quot;u-boot-with-spl&amp;quot;&#039;&#039;&#039;-file can be changed with your own uboot-file. You just have to name it like this else it wouldn&#039;t be recognized by the script.&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;$ cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;$ ./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2173</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2173"/>
		<updated>2018-07-02T07:19:53Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;-file in the OpenOCD folder at &amp;lt;code&amp;gt;$ /usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&amp;quot;u-boot-spl-prog&amp;quot; and &amp;quot;u-boot-with-spl&amp;quot;) belong to the bin_File folder&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;$ cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;$ ./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2172</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2172"/>
		<updated>2018-07-02T07:19:34Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
&#039;&#039;&#039;Download the needed files here:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#**Paste the &amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;-file in the OpenOCD folder at &amp;lt;code&amp;gt;$ /usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&amp;quot;u-boot-spl-prog&amp;quot; and &amp;quot;u-boot-with-spl&amp;quot;) belong to the bin_File folder&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;$ cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;$ ./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2171</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2171"/>
		<updated>2018-07-02T07:18:10Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**You need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** Finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;br /&gt;
The other one is to type in the required commands. In a few cases this fails then you need to go the other way&lt;br /&gt;
and program the uBoot manually.&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
#*The needed folder structure looks like this:&lt;br /&gt;
#**DHcom_uBoot_Programmer&lt;br /&gt;
#***bin_File          (here are the uBoot files)&lt;br /&gt;
#***uBoot_Programmer  (here are the Programing scripts)&lt;br /&gt;
#*Download the needed files here:&lt;br /&gt;
#**Paste the &amp;quot;dhcom_olimex_arm_usb_tiny_h.cfg&amp;quot;-file in the OpenOCD folder at &amp;lt;code&amp;gt;$ /usr/share/openocd/scripts/board&amp;lt;/code&amp;gt;&lt;br /&gt;
#**The &amp;quot;uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;quot;-file needs to be in the uBoot_Programmer folder&lt;br /&gt;
#**The two u-boot files (&amp;quot;u-boot-spl-prog&amp;quot; and &amp;quot;u-boot-with-spl&amp;quot;) belong to the bin_File folder&lt;br /&gt;
#*Open a terminal and navigate into the folder e.g. &amp;lt;code&amp;gt;$ cd DHcom_uBoot_Programmer/uBoot_Programmer&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Start the programing script: &amp;lt;code&amp;gt;$ ./uBoot_Programmer_Olimex_arm_usb_tiny_h&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Manual Programing&#039;&#039;&#039;&lt;br /&gt;
#*You need two terminals, one for GDB the other for OpenOCD an da Com-Port to get the serial output&lt;br /&gt;
## &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;openocd –f board/dhcom_olimex_arm_usb_tiny_h.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
## &#039;&#039;&#039;GDB&#039;&#039;&#039;&lt;br /&gt;
##*&amp;lt;code&amp;gt;gdb --quiet&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;target remote localhost:3333&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-spl-prog/file 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon reg pc 0x908000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;br /&gt;
##*Wait until the message &amp;quot;Searching for IVT header at DDR address 0x18000000&amp;quot; is on the serial output&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon halt&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon load_image /path/to/the/u-boot-with-spl/file 0x18000000&amp;lt;/code&amp;gt;&lt;br /&gt;
##*&amp;lt;code&amp;gt;mon resume&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2170</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2170"/>
		<updated>2018-07-02T06:32:33Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**you need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
# &#039;&#039;&#039;Automatic Script&#039;&#039;&#039;&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2169</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2169"/>
		<updated>2018-07-02T06:28:06Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;br /&gt;
# &#039;&#039;&#039;OpenOCD&#039;&#039;&#039;&lt;br /&gt;
#* OpenOCD is a Linux package and is as easy to install as &amp;lt;code&amp;gt;$ sudo apt-get install openocd&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;Drivers&#039;&#039;&#039;&lt;br /&gt;
#* If you use the JTAG-Adapter recommended by DH, then you need to install the FTDI-Drivers as followed:&lt;br /&gt;
#**Go to http://www.ftdichip.com/Drivers/D2XX.htm and Download your suitable Driver (32-bit or 64-bit)&lt;br /&gt;
#**Navigate into the Download folder &amp;lt;code&amp;gt;$ cd /home/devel/Downloads&amp;lt;/code&amp;gt;&lt;br /&gt;
#**Untar the Downloaded zip-file &amp;lt;code&amp;gt;$ tar xfvz libftd2xx-x86_64-1.4.6.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
#**For the next steps you need Admin rights (standard password for the VM is devel): &amp;lt;code&amp;gt;$ sudo –su&amp;lt;/code&amp;gt;&lt;br /&gt;
#**you need to copy the folder &amp;lt;code&amp;gt;$ cp libftd2xx.* /usr/local/lib&amp;lt;/code&amp;gt;&lt;br /&gt;
#**changing the permission &amp;lt;code&amp;gt;$ chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6&amp;lt;/code&amp;gt;&lt;br /&gt;
#** creating a link &amp;lt;code&amp;gt;$ ln –sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so&amp;lt;/code&amp;gt;&lt;br /&gt;
#** finish the installation &amp;lt;code&amp;gt;$ exit&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== uBoot Programing ==&lt;br /&gt;
There are two ways for doing this.&lt;br /&gt;
The easy way is an automatic Bash-script, which handles all the commands needed for the programing process.&lt;br /&gt;
In this case you need a specified folder-structure so that the automatic script can find all its needed files.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2168</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2168"/>
		<updated>2018-07-02T05:57:00Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Machine for Application Development]].&lt;br /&gt;
All console expressions refer to this Debian system.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2167</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2167"/>
		<updated>2018-07-02T05:53:31Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the [[Virtual Macine for Application Development]]Virtual Machine for Application Development.&lt;br /&gt;
All console expressions refer to this Debian system.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2166</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2166"/>
		<updated>2018-07-02T05:52:36Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This installation was made on the DH Virtual Machine for Application Development.&lt;br /&gt;
All console expressions refer to this Debian system.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2165</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2165"/>
		<updated>2018-07-02T05:51:07Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2164</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2164"/>
		<updated>2018-07-02T05:42:23Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_imx6&amp;diff=2163</id>
		<title>UBoot recovery imx6</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_imx6&amp;diff=2163"/>
		<updated>2018-07-02T05:41:50Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: Fpaule moved page UBoot recovery imx6 to UBoot recovery for imx6 via JTAG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[UBoot recovery for imx6 via JTAG]]&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2162</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2162"/>
		<updated>2018-07-02T05:41:50Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: Fpaule moved page UBoot recovery imx6 to UBoot recovery for imx6 via JTAG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uBoot recovery for iMX6 via JTAG&lt;br /&gt;
&lt;br /&gt;
Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2161</id>
		<title>UBoot recovery for imx6 via JTAG</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=UBoot_recovery_for_imx6_via_JTAG&amp;diff=2161"/>
		<updated>2018-07-02T05:37:52Z</updated>

		<summary type="html">&lt;p&gt;Fpaule: Created page with &amp;quot;uBoot recovery for iMX6 via JTAG  Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H. All tests and Docume...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uBoot recovery for iMX6 via JTAG&lt;br /&gt;
&lt;br /&gt;
Technically all JTAG-adapter listed by OpenOCD should work, but DH electronics recommends the Olimex Arm-USB-OCD-Tiny-H.&lt;br /&gt;
All tests and Documents were made in use of this one.&lt;/div&gt;</summary>
		<author><name>Fpaule</name></author>
	</entry>
</feed>