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
- 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
- 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
- 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
- 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
-
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
-
If it doesn't exist yet, create a folder named 'mos' on the SD card
- Download the file flash.bin and place it IN THE 'mos' FOLDER of your SD card
- Download one of the following options and place 'MOS.bin' in IN THE ROOT of your SD card:
- Eject the SD card from your PC, insert it into your Agon
- RESET your Agon
- Download agon binaries to your PC and unzip it. I'll refer the unzipped folder later as 'agon-binaries'
- If you are using Linux/MacOS, please install python and install the python esptool.py using this guide from espressif
Upgrade the Agon MOS
- Complete all the steps from the preparation requirements
- Make sure to reset your Agon, so it shows the Agon's VDP/MOS versions
- 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
- Type 'flash mos' and ENTER
- 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
- Agon MOS upgrade is done - continue to upgrade the Agon VDP
Upgrade the Agon VDP
- Complete all the steps from the preparation requirements
- Upgrade the Agon MOS first
- On windows start a PowerShell terminal, on Linux start a shell and on MacOS start Terminal
- Change folder to the folder 'agon-binaries', where you unzipped the downloaded binaries earlier, using the 'cd' command
-
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/
-
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
- When the esptool is done uploading and it says 'Hard resetting via RTS pin', please press the physical reset button on your Agon
Done