Skip to content

Xemu Mega65 ethertap

LGB edited this page Jan 12, 2018 · 9 revisions

Mega65 - Ethernet emulation via ethertap

Goal: provide ethernet controller (of Mega65) emulation within Xemu/Mega65 emulator.

Currently, it's work-in-progress, and only works on Linux. It requires TAP network interface, which is not implemented by OSX, and I currently have no idea about Windows.

On Linux

NOTE: you need to configure the TAP device manually! It's a must, since Xemu can't do it. Well, it would be able to, if you run with network administrator capabilities (usually this means, as "root"), but it's always a BIG NO to run something as privileged, especially a software which is not security audited, and it is not its primary goal either. Well, it's almost always the bad side of some Windows dudes, always use their system as the Administrator then wondering what are those security problems, oh boy ... Real systems should not use something like that ever.

Anyway, so, you need to give commands like these in a terminal window for example:

sudo ip tuntap add mode tap user lgb mega65
sudo ip addr add 10.10.10.1/24 dev mega65
sudo ip link set mega65 up

Couple of thins you must modify in this example:

  • lgb in the first line if my user name I use my Linux system as. Clearly, you must replace with your user name!
  • 10.10.10.1/24 is an IP address and netmask used by the TAP device, you can have this, but it may conflict with your LANs if you use especially this address range!
  • mega65 in all lines is the name of the interface, you can choose another as well, if you really want

Then, you can start xemu's mega65 emulator with the following command line switch part included: -ethertap mega65. Surely, run the emulator as your user name, as usual, with the username you also specified at the first ip command, for sure.

Surely, here the mega65 must much the interface name you used with the ip commands above.

Clone this wiki locally