- Download and install cc65 from github (C compiler for 6502)
- Download Contiki OS from github (TCP/IP stack plus other utilities)
- Download and install c1541 bundled with VICE (needed to create the .d64 and .d71 images)
- Setup the following environtment variables:
CONTIKI
: Path to Contiki OS rootCC65_HOME
: Path to cc65 rootC1541
: Filepath (not just path) to thec1541
utility (bundled with VICE)
Example:
export CONTIKI=~/src/contiki
export CC65_HOME=~/src/cc65
export C1541=~/bin/VICE/tools/c1541
- Install
make
from brew, since themake
that comes with Xcode doesn't parse Contiki's makefiles correctly
brew install make
- Use
gmake
instead ofmake
Once all the needed 3rd party tools were installed and setup correctly, just do:
make c64
: to generate a.d64
file for the c64make c128
: to generate a.d71
file for the c128
- A RR-Net (or compatible) ethernet card
- or a TFE ethernet card
- or an ETH64 ethernet card
- Compile VICE with
--enable-ethernet
or download a nightly build which already has ethernet support - Windows only: Install WinPCAP
- Mac & Linux only: Run
x64
/x128
as root
And in case you are lost, here is a tutorial
Example:
$ sudo x64 vchar64d-c64.d64
IMPORTANT: Don't run the client and the server (by using VICE) in the same machine since most probably they won't see each other. VICE uses PCAP to "listen to" incoming packets, but it won't see packets that are emitted by that same machine.
vchar64-server
: the serverethconfig
: to setupt the ethernet driver. Not needed if you are already have an RR-Net cardipconfig
: the DHCP client, needed in order to setup the IP address. Only run it once.contiki.cfg
: Configuration file that stores the IP address and the ethernet driver to be usedcs8900a.eth
: TFE / RR-Net driverlan91c96.eth
: ETH64 driver
- Setup the Ethernet card with
ethconfig
(not needed if your card is RR-Net):
LOAD"ETHCONFIG",8,1
RUN
- Setup the IP address with
ipconfig
:
LOAD"IPCONFIG",8,1
RUN
- Run the server
LOAD"VCHAR64-SERVER",8,1
RUN
There is no need to run steps 1) and 2) again once you have setup the ethernet card and IP address.