From 4d11d70356e0afc2f297a5e03152965626acea51 Mon Sep 17 00:00:00 2001 From: MaDill Date: Sun, 15 Feb 2026 09:13:53 +0100 Subject: [PATCH 1/2] Update README.md how to compile Updte the "compiling" chapter --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e1c85ec..b078b0f 100644 --- a/README.md +++ b/README.md @@ -56,20 +56,15 @@ device simulator is provided, which runs entirely under Linux as a local webserv Install the following particular build requisites (Debian 12/13), note that Ubuntu 24.04 still has an older version of sdcc, but you will need sdcc version 4.5 for the code to compile: ``` -sudo apt install sdcc xxd python-is-python3 libjson-c-dev +sudo apt install --yes git make gcc sdcc xxd python-is-python3 libjson-c-dev +``` +Edit machine.h to adjust select the machine the firmware should build for. +``` +nano machine.h ``` - Now, building the firmware image should work: ``` -$ make -sdas8051 -plosgff crtstart.asm -sdcc -mmcs51 -c rtlplayground.c -sdcc -mmcs51 -c rtl837x_flash.c -sdcc -mmcs51 -Wl-bHOME=0x100 -o rtlplayground.ihx crtstart.rel rtlplayground.rel rtl837x_flash.rel -objcopy --input-target=ihex -O binary rtlplayground.ihx rtlplayground.img -if [ -e rtlplayground.bin ]; then rm rtlplayground.bin; fi -echo "0000000: 00 40" | xxd -r - rtlplayground.bin -cat rtlplayground.img >> rtlplayground.bin +$ make ``` Note, that the image generated ends in .bin, not .img, in order to make IMSProg happy. From cc734ecac2aa079c161e1ee2179f48345faa2178 Mon Sep 17 00:00:00 2001 From: MaDill Date: Sun, 15 Feb 2026 14:02:37 +0100 Subject: [PATCH 2/2] Update README.md changed as requested --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b078b0f..02fe198 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,12 @@ device simulator is provided, which runs entirely under Linux as a local webserv Install the following particular build requisites (Debian 12/13), note that Ubuntu 24.04 still has an older version of sdcc, but you will need sdcc version 4.5 for the code to compile: ``` -sudo apt install --yes git make gcc sdcc xxd python-is-python3 libjson-c-dev -``` -Edit machine.h to adjust select the machine the firmware should build for. -``` -nano machine.h +sudo apt install make gcc sdcc xxd python-is-python3 libjson-c-dev ``` +Edit machine.h with an editor like vi or nano. Select the correct machine the firmware should build for. Now, building the firmware image should work: ``` -$ make +make ``` Note, that the image generated ends in .bin, not .img, in order to make IMSProg happy.