<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>openwrt &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/openwrt/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Mon, 17 Feb 2025 10:54:31 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>openwrt &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Guide to flashing OpenWRT on a Wavlink Quantum D6 - with screenshots]]></title>
		<link>https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/</link>
					<comments>https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Thu, 17 Feb 2022 12:34:16 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[openwrt]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=41959</guid>

					<description><![CDATA[Notes for anyone who wants a more detailed guide than the one on the official Wiki.  Download OpenWRT   Download the initramfs firmware file Rename the file to WN531A6.bin Download the sysupgrade file   Download the original firmware  Check the model number on your router. You can download the firmware from Wavlink directly. They have a specific firmware for WL-WN531A6-A and WL-WN531A6-C.  Make…]]></description>
										<content:encoded><![CDATA[<p>Notes for anyone who wants a more detailed guide than the one on <a href="https://openwrt.org/toh/wavlink/wl-wn531a6">the official Wiki</a>.</p>

<h2 id="download-openwrt"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#download-openwrt">Download OpenWRT</a></h2>

<ul>
<li><a href="https://firmware-selector.openwrt.org/?version=SNAPSHOT&amp;target=ramips%2Fmt7621&amp;id=wavlink_wl-wn531a6">Download the <code>initramfs</code> firmware file</a></li>
<li>Rename the file to <code>WN531A6.bin</code></li>
<li><a href="https://firmware-selector.openwrt.org/?version=SNAPSHOT&amp;target=ramips%2Fmt7621&amp;id=wavlink_wl-wn531a6">Download the <code>sysupgrade</code> file</a></li>
</ul>

<h3 id="download-the-original-firmware"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#download-the-original-firmware">Download the original firmware</a></h3>

<p>Check the model number on your router. You can <a href="https://www.wavlink.com/en_us/firmware.html">download the firmware from Wavlink directly</a>. They have a specific firmware for WL-WN531A6-<strong>A</strong> and WL-WN531A6-<strong>C</strong>.</p>

<p>Make sure you download the correct one. You can also back up the original firmware from your router if you prefer.</p>

<h2 id="connect-to-the-router"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#connect-to-the-router">Connect to the router</a></h2>

<p>Power on the router, but don't connect it to your modem. Instead, connect it to your computer by Ethernet cable. The Ethernet cable will need to go into one of the LAN ports - <strong>not</strong> the WAN port. The router may take a few minutes to boot up.</p>

<p>In a web browser, visit <a href="http://192.168.10.1"></a><a href="http://192.168.10.1">http://192.168.10.1</a>.  The login screen should look like this:
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/login.png" alt="Default login screen." width="800" height="523" class="aligncenter size-full wp-image-41963">
The default password is <code>admin</code></p>

<p>If this is your first time using the router, you will need to go through the on-screen setup process.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/initial-set-up.png" alt="Initial Set Up Screen." width="800" height="438" class="aligncenter size-full wp-image-41962"></p>

<h2 id="back-up-original-firmware"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#back-up-original-firmware">Back up original firmware</a></h2>

<p>This is an alternative to simply <a href="https://www.wavlink.com/en_us/firmware.html">downloading from from Wavlink directly</a>.</p>

<p>Click the setup icon at the bottom of the page.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/Wavlink-normal-screen.png" alt="The normal screen with lots of options." width="800" height="933" class="aligncenter size-full wp-image-41964">
Click the <code>USB Storage</code> link.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/Wavlink-settings.png" alt="List of options." width="791" height="680" class="aligncenter size-full wp-image-41965">
The USB disk is mounted at <code>sda</code>.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/USB-Storage.png" alt="USB Storage details." width="800" height="471" class="aligncenter size-full wp-image-41966"></p>

<p>In your browser, go to <a href="http://192.168.10.1/webcmd.shtml"></a><a href="http://192.168.10.1/webcmd.shtml">http://192.168.10.1/webcmd.shtml</a> - this is a "hidden" area which lets you run Linux commands.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/webcmd.png" alt="A command line screen." width="878" height="762" class="aligncenter size-full wp-image-41967">

<p>Type the following line in the Command input box:</p>

<p><code>dd if=/dev/mtd4ro of=/media/sda/firmware.bin</code></p>

<p>Click Apply. After few seconds, you'll see this in the output box:</p>

<p><code>30080+0 records in
30080+0 records out</code></p>

<p>Type <code>sync</code> in the Command input box and click Apply.</p>

<p>Physically remove the USB stick from the router and put it in your computer. Verify that it contains a file called <code>firmware.bin</code> which is 15,400,960 Bytes in size.</p>

<h2 id="flash-the-openwrt-firmware"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#flash-the-openwrt-firmware">Flash the OpenWRT firmware</a></h2>

<p>From the main page, go to Setup, and then Firmware Upgrade. It should look like this:
<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/firmware-upgrade.png" alt="The firmware upgrade page." width="800" height="567" class="aligncenter size-full wp-image-41968"></p>

<p>Note - if you haven't connected before, this page may be slow to load - because it tries to connect to <code>http://fw.iqs.link/firmware/router/WN531A6-WAVLINK.js</code> but the page will load eventually.</p>

<p>Upload the <code>WN531A6.bin</code> which you renamed earlier.</p>

<p>When you hit the apply button, it will take a few minutes.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/Firmware-waiting.png" alt="Page showing an upgrade progress bar." width="800" height="340" class="aligncenter size-full wp-image-41969">

<p>You need to wait until the rapid flashing red LED has been replaced with a solid blue light.</p>

<p>You can verify that the system has upgraded by SSH'ing into the unit with:</p>

<p><code>ssh root@192.168.1.1</code></p>

<p><strong>Note!</strong> The IP address has changed to <code>192.168.1.1</code>.</p>

<h2 id="set-a-password"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#set-a-password">Set a password</a></h2>

<p>After logging in via SSH, run <code>passwd</code> and set a secure password.</p>

<h2 id="install-the-rest-of-the-firmware"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#install-the-rest-of-the-firmware">Install the rest of the firmware</a></h2>

<p>Exit the SSH session.</p>

<p>On your machine, run:
<code>scp openwrt-ramips-mt7621-wavlink_wl-wn531a6-squashfs-sysupgrade.bin root@192.168.1.1:/tmp</code> 
to transfer the upgrade firmware.</p>

<p>SSH back in using <code>ssh root@192.168.1.1</code></p>

<p>Run:</p>

<p><code>sysupgrade -v /tmp/openwrt-ramips-mt7621-wavlink_wl-wn531a6-squashfs-sysupgrade.bin</code></p>

<p>This will take a few seconds, and then the router will reboot. Wait until it has stopped flashing red, and is solid blue.</p>

<p>If you try to SSH in again, it will fail becuase the host key has changed.  Run:</p>

<p><code>ssh-keygen -f "~/.ssh/known_hosts" -R "192.168.1.1"</code></p>

<p>Then SSH in again with <code>ssh root@192.168.1.1</code></p>

<p>You will need to set up a password again.</p>

<h2 id="install-luci"><a href="https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/#install-luci">Install LuCi</a></h2>

<p>By default, there is no web interface. For this step, you will need to connect the router to the Internet via its WAN port.</p>

<p>Once done, run 
<code>opkg update</code></p>

<p>That should download the list of all the software packages available for OpenWRT. Once done, run:</p>

<p><code>opkg install luci</code></p>

<p>Once that completes, you can visit <a href="http://192.168.1.1"></a><a href="http://192.168.1.1">http://192.168.1.1</a> in the browser:</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2022/02/LuCi-Login.png" alt="The web login screen." width="750" height="252" class="aligncenter size-full wp-image-41970">

<p>Let your configuration journey commence!</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=41959&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2022/02/guide-to-flashing-openwrt-on-a-wavlink-quantum-d6-with-screenshots/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
