<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=A10</id>
	<title>A10 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=A10"/>
	<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=A10&amp;action=history"/>
	<updated>2026-10-10T01:06:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://hurlster.com/wiki/index.php?title=A10&amp;diff=2753&amp;oldid=prev</id>
		<title>Gqwill69: Created page with &quot;* A10 Thunder 840 (TH840) Opnsense firewall Direct write the opensense nano amd64 img to a SSD or a Compact Flash. Boot the appliance and you have &lt;3minutes to create the file and execute it.  * A10 Thunder 840 install of Opnsense:&lt;br&gt; Must create watchdog disable script with &quot;vi&quot;&lt;br&gt; *vi /tmp/disarm_wdt.c&lt;br&gt; &lt;pre&gt; #include &lt;stdio.h&gt; #include &lt;fcntl.h&gt; #include &lt;unistd.h&gt; #include &lt;machine/cpufunc.h&gt;  #define PORT_INDEX 0x4E #define PORT_DATA  0x4F  int main(void) {...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=A10&amp;diff=2753&amp;oldid=prev"/>
		<updated>2026-09-22T23:22:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* A10 Thunder 840 (TH840) Opnsense firewall Direct write the opensense nano amd64 img to a SSD or a Compact Flash. Boot the appliance and you have &amp;lt;3minutes to create the file and execute it.  * A10 Thunder 840 install of Opnsense:&amp;lt;br&amp;gt; Must create watchdog disable script with &amp;quot;vi&amp;quot;&amp;lt;br&amp;gt; *vi /tmp/disarm_wdt.c&amp;lt;br&amp;gt; &amp;lt;pre&amp;gt; #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;fcntl.h&amp;gt; #include &amp;lt;unistd.h&amp;gt; #include &amp;lt;machine/cpufunc.h&amp;gt;  #define PORT_INDEX 0x4E #define PORT_DATA  0x4F  int main(void) {...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* A10 Thunder 840 (TH840) Opnsense firewall&lt;br /&gt;
Direct write the opensense nano amd64 img to a SSD or a Compact Flash. Boot the appliance and you have &amp;lt;3minutes to create the file and execute it.&lt;br /&gt;
&lt;br /&gt;
* A10 Thunder 840 install of Opnsense:&amp;lt;br&amp;gt;&lt;br /&gt;
Must create watchdog disable script with &amp;quot;vi&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
*vi /tmp/disarm_wdt.c&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;fcntl.h&amp;gt;&lt;br /&gt;
#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
#include &amp;lt;machine/cpufunc.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define PORT_INDEX 0x4E&lt;br /&gt;
#define PORT_DATA  0x4F&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
    int fd = open(&amp;quot;/dev/io&amp;quot;, O_RDONLY);&lt;br /&gt;
    if (fd &amp;lt; 0) {&lt;br /&gt;
        perror(&amp;quot;Failed to open /dev/io&amp;quot;);&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /* Enter Extended Function Mode */&lt;br /&gt;
    outb(PORT_INDEX, 0x87);&lt;br /&gt;
    outb(PORT_INDEX, 0x87);&lt;br /&gt;
&lt;br /&gt;
    /* Select Logical Device 8 (Watchdog Timer) */&lt;br /&gt;
    outb(PORT_INDEX, 0x07);&lt;br /&gt;
    outb(PORT_DATA, 0x08);&lt;br /&gt;
&lt;br /&gt;
    /* Set timeout counter to 0 (CR F6) */&lt;br /&gt;
    outb(PORT_INDEX, 0xF6);&lt;br /&gt;
    outb(PORT_DATA, 0x00);&lt;br /&gt;
&lt;br /&gt;
    /* Deactivate device (CR 30 = 0x00) */&lt;br /&gt;
    outb(PORT_INDEX, 0x30);&lt;br /&gt;
    outb(PORT_DATA, 0x00);&lt;br /&gt;
&lt;br /&gt;
    /* Exit Extended Function Mode */&lt;br /&gt;
    outb(PORT_INDEX, 0xAA);&lt;br /&gt;
&lt;br /&gt;
    close(fd);&lt;br /&gt;
    printf(&amp;quot;NCT6776F hardware watchdog disarmed successfully.\n&amp;quot;);&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cc -O2 /tmp/disarm_wdt.c -o /usr/local/etc/rc.syshook.d/early/05-disarm_wdt&lt;br /&gt;
chmod 755 /usr/local/etc/rc.syshook.d/early/05-disarm_wdt&lt;br /&gt;
/usr/local/etc/rc.syshook.d/early/05-disarm_wdt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Gqwill69</name></author>
	</entry>
</feed>