<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Mister on piewpiew</title>
		<link>https://piewpiew.se/journal/tags/mister/</link>
		<description>Recent content in Mister on piewpiew</description>
		<generator>Hugo</generator>
		<language>sv-SE</language>
		
		<lastBuildDate>Thu, 22 Oct 2026 18:05:19 +0200</lastBuildDate>
		<atom:link href="https://piewpiew.se/journal/tags/mister/index.xml" rel="self" type="application/rss+xml" />
		
		
		
		<item>
			<title>Fast Ethernet for an emulated Amiga, over Wi-Fi</title>
			<link>https://piewpiew.se/journal/blog/2026-10-22-amiga-mister-fpga-retrocomputing/</link>
			<pubDate>Thu, 22 Oct 2026 18:05:19 +0200</pubDate>
			<guid>https://piewpiew.se/journal/blog/2026-10-22-amiga-mister-fpga-retrocomputing/</guid><description>&lt;p&gt;&lt;img src=&#34;https://piewpiew.se/journal/blog/2026-10-22-amiga-mister-fpga-retrocomputing/01.jpeg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tl;dr:&lt;/strong&gt; My MiSTer Amiga used to get online via emulated PPP at a cosy
23 kB/s. Now it has an emulated A2065 Ethernet card on my LAN, over Wi-Fi,
doing 330–440 kB/s. It took two days, a homemade firmware build, a packet
sniffer and one red herring of a disk error. Ethernet still won’t come up on
its own at boot, so the Amiga boots on PPP and I hit &lt;strong&gt;Go online&lt;/strong&gt; in the menu
when I want speed.&lt;/p&gt;
&lt;h2 id=&#34;the-setup&#34;&gt;The setup&lt;/h2&gt;
&lt;p&gt;The machine is a Minimig core on a MiSTer: 68020, AGA, Workbench 3.2.2 and
Roadshow TCP/IP on an 8 GB disk image. I call it “Amiga 020”. It got online
through the serial port: &lt;code&gt;pppd&lt;/code&gt; on the MiSTer’s Linux side, ~23 kB/s. Fine for
IRC, not much else.&lt;/p&gt;
&lt;p&gt;The MiSTer firmware (“Main”) can also emulate an A2065 Ethernet card and hook
it up to a Linux &lt;code&gt;tap0&lt;/code&gt; interface. So all I had to do was get &lt;code&gt;tap0&lt;/code&gt; onto the
LAN. Ha.&lt;/p&gt;
&lt;h2 id=&#34;wi-fi-doesnt-bridge&#34;&gt;Wi-Fi doesn’t bridge&lt;/h2&gt;
&lt;p&gt;You can’t just bridge &lt;code&gt;tap0&lt;/code&gt; with Wi-Fi. A Wi-Fi client only gets to send
frames from its own MAC, so a bridged Amiga is shouting into the void. The
MiSTer kernel has no NAT either. What does work is &lt;strong&gt;proxy ARP plus IP
forwarding&lt;/strong&gt;. The Amiga gets its own address (&lt;code&gt;192.168.1.240&lt;/code&gt;), Linux answers
ARP on its behalf, and forwards the packets. A little shell loop sets this up
every time &lt;code&gt;tap0&lt;/code&gt; reappears after a core reload.&lt;/p&gt;
&lt;p&gt;Bonus trap: MiSTer’s &lt;code&gt;/sbin/uartmode&lt;/code&gt; grabs &lt;em&gt;any&lt;/em&gt; IPv4 address it finds as the
PPP address. Give &lt;code&gt;tap0&lt;/code&gt; an address, and PPP breaks. So &lt;code&gt;tap0&lt;/code&gt; stays naked.&lt;/p&gt;
&lt;h2 id=&#34;what-went-wrong&#34;&gt;What went wrong&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;The link died after a couple of pings.&lt;/strong&gt; Two different SANA-II drivers died
the same way, so it wasn’t the driver. Then I set up an isolated test network
(just the MiSTer and the Amiga), and the network plumbing turned out fine.
There’s no tcpdump on the MiSTer, so I wrote a small Python sniffer for
&lt;code&gt;tap0&lt;/code&gt;. Best hour I spent all week.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The stable firmware stops sending after ~10 MB.&lt;/strong&gt; Upstream had already
fixed this, but only in the unstable branch, which gave me a black screen.
So I built my own Main: stable plus four A2065 fixes. It works. The MiSTer
updater will happily overwrite it, though, so there’s a note on the SD card.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It died after exactly ~18 seconds, every time.&lt;/strong&gt; That was my own fault. I
switched networks over a remote session running on PPP. When that TCP
connection tried to carry on over the A2065, Roadshow froze. Not just the
card, the whole stack. Lesson: don’t switch with PPP-era connections open.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Internet didn’t work, but the LAN did.&lt;/strong&gt; The default route stayed glued to
PPP. My script ran &lt;code&gt;DeleteNetRoute DEFAULT&lt;/code&gt;, which turns out to need the
gateway address. Without it you get an error, which &lt;code&gt;QUIET&lt;/code&gt; politely hid from
me. &lt;code&gt;DeleteNetRoute DEFAULT 192.168.1.155&lt;/code&gt; fixed it. While I was at it:
Roadshow’s &lt;code&gt;ping&lt;/code&gt; returns &lt;code&gt;WARN&lt;/code&gt; even when the replies come back, so the
script greps for &lt;code&gt;bytes from&lt;/code&gt; instead.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Starting Ethernet automatically kills it.&lt;/strong&gt; At boot: dead after the first
ping. Forty-five seconds after boot: same. And because a hung A2065 takes
Roadshow down with it, falling back to PPP doesn’t work either. Once it even
died in the middle of &lt;code&gt;ShowNetStatus INTERFACES&lt;/code&gt;. My guess is that Main polls
the A2065 in the same loop as the shared folder the Amiga hammers during boot.
I haven’t solved this yet.&lt;/p&gt;
&lt;h2 id=&#34;the-side-quest&#34;&gt;The side quest&lt;/h2&gt;
&lt;p&gt;In the middle of all the core reloads, the Amiga said:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Error validating System
Block 1146049287 out of range
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I assumed the SD card was dying. But 1146049287 is &lt;code&gt;0x444F5307&lt;/code&gt;, which is
&lt;code&gt;DOS\7&lt;/code&gt; in ASCII. That’s the filesystem type, being read as a block number. A
small FFS checker found all ~13,800 files intact. The real culprit was
amitools, which I used to build the disk: it writes the dostype into a root
block field that the 3.2 validator treats as a pointer. You only notice after
an unclean reset, and I’d done plenty of those. Clearing one longword (plus the
checksum) on each partition fixed it.&lt;/p&gt;
&lt;h2 id=&#34;what-works-now&#34;&gt;What works now&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Boot is always PPP.&lt;/strong&gt; Slow but boring, and boring is good.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Applications → Network → Go online&lt;/strong&gt; does the switch in the one order that
has proven stable:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Stop PPP and remove its route.&lt;/li&gt;
&lt;li&gt;Add the A2065.&lt;/li&gt;
&lt;li&gt;Remove the PPP interface, wait a bit, and set the route again.&lt;/li&gt;
&lt;li&gt;Ping the router to check.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You get a “you’re online” box, or one that says “reload the core”.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Back to PPP = reload the core.&lt;/strong&gt; Nothing is saved, so it always works.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Started that way, it runs for hours. HippoPlayer streams happily at
330–440 kB/s, 15–20 times faster than before.&lt;/p&gt;
&lt;h2 id=&#34;takeaways&#34;&gt;Takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Get a packet sniffer on the box first.&lt;/li&gt;
&lt;li&gt;Never trust &lt;code&gt;QUIET&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If an error has a huge weird number in it, try reading it as ASCII.&lt;/li&gt;
&lt;li&gt;If you can’t make the automatic path safe, make it a button with an easy way
back.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One day I’ll figure out why the A2065 hates being started early. Until then,
there’s a button.&lt;/p&gt;
</description>
		</item>
		
	</channel>
</rss>
