Skip to content

Detailed firmware upgrade steps from 1.03 to Quark 1.04 or Console8 firmware

This guide lists all the required steps to upgrade an Agon, which has been delivered to you with older MOS/VDP version 1.03, to a later version. Please follow each step as closely as possible and make sure that each item on the preparation list is completed before attempting the first upgrade steps.

Preparation

  1. Connect your Agon to a VGA monitor and PS/2 capable keyboard. You need to interact with it using the keyboard and monitor in the first update step
  2. If you haven't done so already, prepare a micro SD card by formatting it with the FAT32 format and place the contents of a distribution 1 or 2 on it. If you already had a working SD card with stuff on it, just continue using it; then there is no need to format it or anything
  3. Connect your Agon to a PC using a USB data cable. The type of USB cable may differ according to the Agon platform you're using:
    • the Olimex AgonLight2 has a USB-C type connector
    • the Agon Console8 has a USB-B type connector
    • the Agon Origins edition has a USB-B type connector
    • the original AgonLight(1) has a USB-A type connector
  4. Find out which serial/COM port shows up on your PC, after connecting your Agon using a USB cable and note it down for later use:
    • Under Windows, it shows up in the 'Device Manager', or you can type '[System.IO.Ports.SerialPort]::getportnames()' in a PowerShell terminal
    • Under Linux, you can find it by running 'dmesg | grep tty' in a shell
    • Under MacOS, you can find it by running 'ls /dev/tty.*' in Terminal
  5. For the Olimex AgonLight2 - please make sure the jumpers on the board are placed like this: the LEFT jumper is unconnected/open/placed on just one pin, the RIGHT jumper is connected/closed/placed on both pins

    detail

  6. If it doesn't exist yet, create a folder named 'mos' on the SD card

  7. Download the file flash.bin and place it IN THE 'mos' FOLDER of your SD card
  8. Download one of the following options and place 'MOS.bin' in IN THE ROOT of your SD card:
    • If you'd like to upgrade to the latest and greatest Console8 release, please download MOS.bin
    • If you'd like to upgrade to the latest official Quark 1.04 release, please download MOS.bin
  9. Eject the SD card from your PC, insert it into your Agon
  10. RESET your Agon
  11. Download agon binaries to your PC and unzip it. I'll refer the unzipped folder later as 'agon-binaries'
  12. If you are using Linux/MacOS, please install python and install the python esptool.py using this guide from espressif

Upgrade the Agon MOS

  1. Complete all the steps from the preparation requirements
  2. Make sure to reset your Agon, so it shows the Agon's VDP/MOS versions
  3. Make sure to exit BBC Basic, if that autostarted, by typing '*BYE' and ENTER. If your prompt is a '*', you are on a MOS prompt already
  4. Type 'flash mos' and ENTER
  5. If the flash tool starts, calculates the CRC from the MOS.bin file and asks you to 'Flash firmware (y/n)', press 'y'. If it doesn't ask, check your preparations and make sure the flash.bin is installed under /mos and MOS.bin is in the root of the SD card
  6. Agon MOS upgrade is done - continue to upgrade the Agon VDP

Upgrade the Agon VDP

  1. Complete all the steps from the preparation requirements
  2. Upgrade the Agon MOS first
  3. On windows start a PowerShell terminal, on Linux start a shell and on MacOS start Terminal
  4. Change folder to the folder 'agon-binaries', where you unzipped the downloaded binaries earlier, using the 'cd' command
  5. Change to the subfolder of the VDP release you'd like to upgrade to:

    • For a very recent Console8 release: On Windows, change to the subfolder '.\firmware\Console8 2.6.0\' On Linux/MacOS, change to the subfolder ./firmware/Console8\ 2.6.0/
    • For the official Quark 1.04 release: On Windows, change to the subfolder '.\firmware\Quark 1.04\' On Linux/MacOS, change to the subfolder ./firmware/Quark\ 1.04/
  6. Start the upgrade script with the serial/COM port you noted earlier - COMXX and /dev/ttyUSBXXX are examples here:

    • On Windows type - '.\flash.bat COMXX'
    • On Linux/MacOS, run these commands in sequence:
      • sed -i -e 's/\r$//' flash.sh
      • chmod +x flash.sh
      • ./flash.sh /dev/ttyUSBXXX
  7. When the esptool is done uploading and it says 'Hard resetting via RTS pin', please press the physical reset button on your Agon

Done