• 1
    Step 1

    {You really should look in my repo for updated info on this, but since this empty field beckons me to write something here I'll just copy the current text from my github repo}

    Installing, Compiling and Running

    You will need ESP-Open-SDK installed. If you don't already have it you can get it at https://github.com/pfalcon/esp-open-sdk. Just follow the installation instructions there and be prepared for a lengthy (but automated) process.

    I've only setup this for for Debian/Ubuntu but most dists should be fairly similar.

    Unless you already have git installed you should install it

    apt-get install git

    Then install the prerequisites for pfalcon/esp-open-sdk

    apt-get install make unrar-free autoconf automake libtool gcc g++ 
    apt-get install gperf flex bison texinfo gawk ncurses-dev 
    apt-get install libexpat-dev python-dev python python-serial 
    apt-get install sed git unzip bash help2man wget bzip2 libtool-bin
    

    Install the esp-open-sdk

    git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
    cd esp-open-sdk
    make
    export PATH=~/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
    cd ..
    

    Install prerequisites for cpm8266

    apt-get install z80asm cpmtools zip
    

    Clone the cpm8266 repo and config your environment

    Instead of setting and exporting these environment variables you could change the settings in the top of the Makefile instead

    git clone https://github.com/SmallRoomLabs/cpm8266.git
    cd cpm8266/code
    export ESP8266SDK=~/esp-open-sdk
    export ESPTOOL=~/esp-open-sdk/esptool/esptool.py
    export ESPPORT=/dev/ttyUSB0
    

    Compile the emulator and all cp/m disks and upload it to the ESP8266

    make full

    Connect to the emulator and boot into CP/M

    Run any serial terminal emulator set to 8N1 at any standard speed between 300 and 115200 baud. To run any full screen CP/M programs you should have VT100/ANSI terminal emulation.

    Just to get started you can install the "screen" package and use that as a serial terminal.

    apt-get install screen

    And then connect with:

    screen /dev/ttyUSB0 9600

    Press Enter twice to autobaud to get the EMON:-prompt and then B <Enter> to Boot into CP/M.

    To compile with the wifi option enabled

    Either do a BUILD=WIFI make full

    or change the BUILD option in the Makefile.

    After the full re-compile and upload of all disks you can connect via telnet port 23 (the default telnet port) after the red led (on the NodeMCU board) goes off. The led is lit as long as the wifi has not received the ip address via DHCP.