<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://admincenter.idriveglobal.com/wiki/index.php?action=history&amp;feed=atom&amp;title=U-boot_Watchdog</id>
	<title>U-boot Watchdog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://admincenter.idriveglobal.com/wiki/index.php?action=history&amp;feed=atom&amp;title=U-boot_Watchdog"/>
	<link rel="alternate" type="text/html" href="https://admincenter.idriveglobal.com/wiki/index.php?title=U-boot_Watchdog&amp;action=history"/>
	<updated>2026-05-07T10:12:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://admincenter.idriveglobal.com/wiki/index.php?title=U-boot_Watchdog&amp;diff=3736&amp;oldid=prev</id>
		<title>Ionut: /* Changing the source code to activate the watchdog */</title>
		<link rel="alternate" type="text/html" href="https://admincenter.idriveglobal.com/wiki/index.php?title=U-boot_Watchdog&amp;diff=3736&amp;oldid=prev"/>
		<updated>2014-12-12T16:55:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Changing the source code to activate the watchdog&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:55, 12 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Save and close this file.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Save and close this file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Compiling the source code==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Compiling the source code==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In order to compile the source code, you have to run the following commands in the terminal:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In order to compile the source code, you have to run the following commands in the terminal:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ionut</name></author>
	</entry>
	<entry>
		<id>https://admincenter.idriveglobal.com/wiki/index.php?title=U-boot_Watchdog&amp;diff=3735&amp;oldid=prev</id>
		<title>Ionut: Created page with &quot;==Required Items== * File:U-boot-imx6.zip  ==Changing the source code to activate the watchdog== Extract the source code provided here and do the following: * Open /path_t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://admincenter.idriveglobal.com/wiki/index.php?title=U-boot_Watchdog&amp;diff=3735&amp;oldid=prev"/>
		<updated>2014-12-12T16:52:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Required Items== * &lt;a href=&quot;/wiki/index.php?title=File:U-boot-imx6.zip&quot; title=&quot;File:U-boot-imx6.zip&quot;&gt;File:U-boot-imx6.zip&lt;/a&gt;  ==Changing the source code to activate the watchdog== Extract the source code provided here and do the following: * Open /path_t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Required Items==&lt;br /&gt;
* [[File:U-boot-imx6.zip]]&lt;br /&gt;
&lt;br /&gt;
==Changing the source code to activate the watchdog==&lt;br /&gt;
Extract the source code provided here and do the following:&lt;br /&gt;
* Open /path_to_source_code/drivers/watchdog/imx_watchdog.c;&lt;br /&gt;
* Delete '''#ifdef CONFIG_IMX_WATCHDOG''' from '''line 26''', '''#ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS''' from '''line 45''', '''#endif''' from '''line 47''' and '''#endif''' from '''line 53''';&lt;br /&gt;
* Change the time interval from '''line 46''' (default: '''#define CONFIG_WATCHDOG_TIMEOUT_MSECS 128000''') to a value in miliseconds in the range 500 - 128000 with increments of 500; &lt;br /&gt;
'''BEWARE!''' DO '''NOT''' set this value to a small time interval that will not give you enough time to run the commands in the next section. This will brick your board and you will be unable to boot into linux or change the bootloader and an external programmer is needed to write another bootloader. If you can't even run the erase command until the watchdog kicks in, you will have to replace the NAND memory on the board.&lt;br /&gt;
* Save and close this file;&lt;br /&gt;
* Open /path_to_source_code/board/boundary/nitrogen6x/nitrogen6x.c&lt;br /&gt;
* Add the following line in the '''checkboard''' function (on '''line 928'''):&lt;br /&gt;
 int checkboard(void)&lt;br /&gt;
 {&lt;br /&gt;
     ...&lt;br /&gt;
     '''hw_watchdog_init();'''&lt;br /&gt;
     return 0;&lt;br /&gt;
 }&lt;br /&gt;
* Save and close this file.&lt;br /&gt;
==Compiling the source code==&lt;br /&gt;
In order to compile the source code, you have to run the following commands in the terminal:&lt;br /&gt;
 cd /path_to_source_code/&lt;br /&gt;
 export ARCH=arm&lt;br /&gt;
 export CROSS_COMPILE=arm-none-linux-gnueabi-&lt;br /&gt;
 make nitrogen6q_config&lt;br /&gt;
 make all&lt;br /&gt;
==Writing the bootloader to the NAND memory==&lt;br /&gt;
In order to write the bootloader to the NAND memory, you have to:&lt;br /&gt;
* Copy the '''u-boot.imx''' that was compiled in the previous section to the root of your linux sd card;&lt;br /&gt;
* Power up the board and press any key to stop autoboot&lt;br /&gt;
* Run the following commands in the u-boot terminal:&lt;br /&gt;
 setenv mmcdev 0&lt;br /&gt;
 mmc dev ${mmcdev}&lt;br /&gt;
 load mmc ${mmcdev}:1 0x10800000 u-boot.imx&lt;br /&gt;
 sf probe&lt;br /&gt;
 sf erase 0 0xc0000&lt;br /&gt;
 sf write 0x10800000 0x400 ${filesize}&lt;br /&gt;
* Restart the board.&lt;/div&gt;</summary>
		<author><name>Ionut</name></author>
	</entry>
</feed>