-
Notifications
You must be signed in to change notification settings - Fork 32
Xemu Mega65 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.
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:
-
lgbin 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/24is 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! -
mega65in 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.
The above scheme works with the right Mega65 software on the emulator to have communication between the host OS (what runs the emulator, in our example the IP is 10.10.10.1 for that) and your mega65. If you have some software want to access the Internet, you need to have the proper network admin knowledge to do this. You must enable IP forwarding on your Linux box, the right netfilter (iptables) forwarding settings, and probably also NAT (network address translation) there too. Surely, these cannot be avoided, as this emulation emulates network interface, thus you need knowledge on this, it's quite natural thing then ...