Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
8446811
Build the Elite II / C64 Ultimate control module (u64ctrl) with ESP-I…
JC-000 Oct 21, 2026
68cc7f0
Lock the mbedTLS key store in the control module (MBEDTLS_THREADING_C)
JC-000 Oct 21, 2026
f534036
Keep dropping WiFi packets quietly when the control module has no UAR…
JC-000 Oct 21, 2026
36eaa6f
Keep the pull-ups on the control module's UART RX and CTS pins
JC-000 Oct 21, 2026
df14b6e
Stop UART1 flow control in the brownout interrupt
JC-000 Oct 21, 2026
e097583
Test the keys the control module ships with
JC-000 Oct 23, 2026
7034f35
Keep FreeRTOS and the ring buffer in IRAM in the U64 control module
JC-000 Oct 25, 2026
494a6e5
Run the U64 control module's UART ISR and dispatch on core 1, out of …
JC-000 Oct 27, 2026
b515061
Lower the U64 control module UART FIFO thresholds
JC-000 Oct 27, 2026
1bf10d3
Keep more of the WiFi driver in IRAM in the U64 control module (ESP_W…
JC-000 Oct 27, 2026
5b96672
Run the netif, pbuf and heap path of the U64 control module from IRAM
JC-000 Oct 27, 2026
fe96e6b
Build the U64 WiFi bridge (raw_u64) with ESP-IDF 6.0.3
JC-000 Oct 2, 2026
c646a44
Lock the mbedTLS key store in the U64 WiFi bridge (MBEDTLS_THREADING_C)
JC-000 Oct 2, 2026
f5ce67f
Keep dropping WiFi packets quietly when the bridge has no UART buffer
JC-000 Oct 2, 2026
4b3f7aa
Keep FreeRTOS and the ring buffer in IRAM in the U64 WiFi bridge
JC-000 Oct 25, 2026
14630ef
Build the U2+L WiFi bridge (raw_c3) with ESP-IDF 6.0.3 (build-only, u…
JC-000 Oct 21, 2026
6ee42b3
Run the U64 WiFi bridge UART ISR and dispatch on core 1, out of flash
JC-000 Oct 26, 2026
0676f7b
Build all three ESP32 modules in the ESP-IDF 6 image in CI
JC-000 Oct 23, 2026
464183e
Raise the U64 WiFi bridge UART FIFO thresholds
JC-000 Oct 26, 2026
701c8be
Keep FreeRTOS and the ring buffer in IRAM in the U2+L WiFi bridge
JC-000 Oct 25, 2026
938ae48
Enable CONFIG_ESP_WIFI_EXTRA_IRAM_OPT in the U64 WiFi bridge
JC-000 Oct 26, 2026
47324cf
Run the U2+L WiFi bridge UART and dispatch code from IRAM
JC-000 Oct 27, 2026
344333f
Keep the U64 WiFi bridge per-frame netif and lwip path in IRAM
JC-000 Oct 27, 2026
2bf097f
Keep more of the WiFi driver in IRAM in the U2+L WiFi bridge (ESP_WIF…
JC-000 Oct 27, 2026
3996eed
Build the U64 WiFi bridge with -O2
JC-000 Oct 26, 2026
9b1a52e
Run the netif, pbuf and heap path of the U2+L WiFi bridge from IRAM
JC-000 Oct 27, 2026
d22137f
Turn the radio off with Disable on the U64 and U2+L, and make WiFi En…
JC-000 Oct 30, 2026
4852d96
Keep a Disable during the AP walks and do not scan from Disabled on t…
JC-000 Oct 30, 2026
5a038c2
Keep the WiFi interface up while the AP list is scanned
JC-000 Oct 30, 2026
e37b349
Join the strongest access point when several share the SSID
JC-000 Oct 30, 2026
c5902c8
Join the access point picked from the WiFi AP list
JC-000 Oct 30, 2026
233bcd6
Tell the user how a connect from the Wi-Fi AP list ended
JC-000 Oct 30, 2026
7bfa836
Bump the WiFi modules' identities for the changes above
JC-000 Oct 30, 2026
817b9f8
Review fixes for the WiFi series: pass every WiFi Enabled change on, …
JC-000 Oct 30, 2026
11e6257
Start and stop the radio of the control module through the shared code
JC-000 Oct 30, 2026
884fbbc
Add E2E scenarios for the UCI network target's GET_RANDOM
JC-000 Oct 27, 2026
3fb4a4e
Give the WiFi module a call that returns hardware random bytes
JC-000 Oct 27, 2026
e41d23e
Give GET_RANDOM a reply channel of its own to the WiFi module
JC-000 Oct 27, 2026
99f2beb
Answer NET_CMD_GET_RANDOM on the UCI network target
JC-000 Oct 27, 2026
6bf0391
Share the GET_RANDOM wire definitions between the WiFi modules
JC-000 Oct 27, 2026
61b2f55
Answer GET_RANDOM from the control module of the Ultimate 64 Elite II…
JC-000 Oct 27, 2026
276771f
Describe the C64 Ultimate's release firmware by its product name in a…
JC-000 Oct 27, 2026
93d945c
Serve GET_RANDOM with the radio off, from the SAR ADC entropy source
JC-000 Oct 27, 2026
0813c62
Report a busy WiFi module as UCI status 88
JC-000 Oct 27, 2026
220995a
Do not call it a low voltage when the module has no reading
JC-000 Oct 27, 2026
11780c1
Test the paths of GET_RANDOM that only the E2E suite covered
JC-000 Oct 27, 2026
f52f363
Draw GET_RANDOM with the radio off in the E2E suite
JC-000 Oct 27, 2026
1c0747f
Link the radio entropy hooks into the U2+L module
JC-000 Oct 30, 2026
82a6568
Serve GET_RANDOM on the Ultimate 64 Elite II and C64 Ultimate as well…
JC-000 Oct 27, 2026
37611de
ESP32 bridge: TLS client sessions and the vendored Mozilla root store
JC-000 Oct 14, 2026
f2c1a85
UCI network target: TLS sockets, commands $21-$25
JC-000 Oct 14, 2026
08a8209
E2E: TLS sockets on the UCI network target (uci-net-tls)
JC-000 Oct 14, 2026
7c5bcb3
E2E: fix the stale cite in net_tls_test.py
JC-000 Oct 15, 2026
b1ff7b0
Move the ESP-side TLS code to a shared directory, software/wifi/tls
JC-000 Oct 26, 2026
6b838d7
Answer the peer's close_notify with our own on TLS client sockets
JC-000 Oct 27, 2026
0c95b64
Keep the U64 WiFi bridge command dispatch and TLS block timing in IRAM
JC-000 Oct 26, 2026
405e234
Build the raw_u64 certificate bundle from the control module's root list
JC-000 Oct 30, 2026
9f418a3
E2E: move the UCI agent mailbox OPT_WAIT to $C00B
JC-000 Oct 31, 2026
dd7f999
Write the E2E agent's OPT_WAIT at its own address
JC-000 Oct 31, 2026
f8e1b7d
Merge master into pr/idf6-u64ctrl (base update for #1028)
JC-000 Nov 10, 2026
e71452d
Merge master into pr/2-idf6-r4 (base update for #996)
JC-000 Nov 10, 2026
1eefb56
Merge master into pr/idf6-raw_c3 (base update for #1029)
JC-000 Nov 10, 2026
5d6c0bb
Merge master into uci-net-get-random (base update for #953)
JC-000 Nov 10, 2026
9624543
Merge master into pr/3-tls-r1 (base update for #997)
JC-000 Nov 10, 2026
50aa426
Merge master into pr/idf6-u64ctrl (base update for #1028)
JC-000 Nov 12, 2026
d36a8e6
Merge #1028 (with master) into pr/2-idf6-r4 (base update for #996)
JC-000 Nov 12, 2026
8501e58
Merge #996 (with #1028 and master) into pr/idf6-raw_c3 (base update f…
JC-000 Nov 12, 2026
44ad539
Merge #1029 (with #996, #1028 and master) into uci-net-get-random (ba…
JC-000 Nov 12, 2026
a51f7a9
Adapt the getrandompaths host test to the worker-task NetworkTarget f…
JC-000 Nov 12, 2026
72b68dc
Merge #953 (with #1029, #996, #1028 and master) into pr/3-tls-r1 (bas…
JC-000 Nov 12, 2026
7569cba
Adapt the TLS host tests to the worker-task NetworkTarget from master
JC-000 Nov 12, 2026
3e95730
Count socket-free and skipped commands as commands for the TLS rules
JC-000 Nov 12, 2026
3e878a4
Stop the TLS waits for a C64 reset and for an abort, as the worker se…
JC-000 Nov 12, 2026
3c98cfa
Test a C64 reset during a WRITE that has stalled
JC-000 Nov 13, 2026
7d15151
An ABORT cancels an OPEN_TLS or START_TLS in flight: update the doc a…
JC-000 Nov 13, 2026
02dc1a2
wifitls host test: UNSENT paths, free inside the suspended section, a…
JC-000 Nov 13, 2026
ec0b5e4
TLS handshake draws hold the entropy gate, one draw at a time
JC-000 Nov 13, 2026
218a862
Report a handshake that lost its entropy source as 87, and document it
JC-000 Nov 13, 2026
9298269
Document that a server KeyUpdate ends a TLS session with status 16
JC-000 Nov 13, 2026
a077b5d
Keep status 87 to the OPEN, and bind the entropy gate in the engine
JC-000 Nov 13, 2026
aaa04b0
Pin the TLS entropy wait at build time, and state its limits in the docs
JC-000 Nov 13, 2026
d4c42ab
Selftest: model the ABORT that cancels an OPEN_TLS, and keep INFO-cla…
JC-000 Nov 13, 2026
fdc70fb
Test requirements: list cryptography, and let the TLS fixture and moc…
JC-000 Nov 14, 2026
8e1737c
Merge tests/997-gaps: wifitls host test: UNSENT paths, free inside th…
JC-000 Nov 14, 2026
11a0a89
Merge tests/997-selftest: Selftest: model the ABORT that cancels an O…
JC-000 Nov 14, 2026
7092601
Merge tests/997-requirements: Test requirements: list cryptography, a…
JC-000 Nov 14, 2026
78f1685
Drop roots NSS master removed from u64ctrl's root list
JC-000 Nov 16, 2026
87fdfc5
Merge ca-refresh-2611 into the #997 branch
JC-000 Nov 16, 2026
7d7f744
raw_u64: bump the module identity for the new root list
JC-000 Nov 16, 2026
37fb403
Build raw_u64 with ESP-IDF 6.1.1
JC-000 Nov 16, 2026
1031428
Build raw_c3 with ESP-IDF 6.1.1
JC-000 Nov 16, 2026
443bdbc
Build the control module with ESP-IDF 6.1.1
JC-000 Nov 16, 2026
6077a2d
Merge the 6.1.1 move of the control module into raw_u64's branch
JC-000 Nov 16, 2026
c741198
Merge the 6.1.1 move of raw_u64 and the control module into raw_c3's …
JC-000 Nov 16, 2026
65ca008
Merge the 6.1.1 move of the ESP32 modules into the GET_RANDOM branch
JC-000 Nov 16, 2026
80c5d02
Merge the 6.1.1 move of the ESP32 modules into the TLS branch
JC-000 Nov 16, 2026
a98dea9
Name 6.1.1 in the Wi-Fi password-failure reason comment
JC-000 Nov 16, 2026
521e994
Merge the control module's 6.1.1 comment update into raw_u64's branch
JC-000 Nov 16, 2026
a9b7edb
Merge the 6.1.1 comment update into raw_c3's branch
JC-000 Nov 16, 2026
0aef82a
Merge the 6.1.1 comment update into the GET_RANDOM branch
JC-000 Nov 16, 2026
a1f091d
Say 6.1.1 in the control module's version history
JC-000 Nov 16, 2026
b533543
Leave the Wi-Fi OWE soft-AP support out of the control module
JC-000 Nov 16, 2026
7bd66d4
Merge the control module's 6.1.1 OWE and history update into raw_u64'…
JC-000 Nov 16, 2026
1f07e24
Say 6.1.1 in raw_u64's version history
JC-000 Nov 16, 2026
1ee0ea2
Merge the 6.1.1 OWE and history update of raw_u64 into raw_c3's branch
JC-000 Nov 16, 2026
c87463c
Leave the Wi-Fi OWE soft-AP support out of raw_u64
JC-000 Nov 16, 2026
d994d2d
Say 6.1.1 in raw_c3's version history
JC-000 Nov 16, 2026
23a7db6
Leave the Wi-Fi OWE soft-AP support out of raw_c3
JC-000 Nov 16, 2026
8caf085
Merge the 6.1.1 OWE and history update of raw_c3 into the GET_RANDOM …
JC-000 Nov 16, 2026
94bbcfd
Carry the raw_u64 Wi-Fi TLS client setting over to the 6.1.1 sdkconfig
JC-000 Nov 16, 2026
fdb91d5
Merge the 6.1.1 OWE and history update into the TLS branch
JC-000 Nov 16, 2026
f33d11b
Name the Mozilla data and mbedTLS source of 6.1.1 in the TLS texts
JC-000 Nov 16, 2026
ce58dee
Do not pass a null pointer to memcpy for an empty step input
JC-000 Nov 16, 2026
b759883
Refuse a TLS 1.2 ServerHello that leaves the session version above 1.2
JC-000 Nov 17, 2026
f2655e3
Disable the elliptic curves the TLS engine does not offer
JC-000 Nov 17, 2026
ec31688
Document the TLS 1.3 claim through the 1.2 path under VERSION REFUSED
JC-000 Nov 17, 2026
eada9d3
Merge master into pr/idf6-u64ctrl
JC-000 Nov 23, 2026
c7aa601
Merge master into pr/2-idf6-r4
JC-000 Nov 23, 2026
b014990
Merge master into pr/idf6-raw_c3
JC-000 Nov 23, 2026
0926ac4
Merge master into uci-net-get-random
JC-000 Nov 23, 2026
df9eb21
Merge master into pr/3-tls-r1
JC-000 Nov 23, 2026
64da082
Link network_target_tls.cc into the network target host test
JC-000 Nov 23, 2026
bd28479
Test the TLS version-confusion guard in tls_engine.c on the host
JC-000 Nov 24, 2026
a2a5f4a
Report the ServerHello version that was refused, not ssl->tls_version
JC-000 Nov 24, 2026
eae99f8
Make the TLS guard test pass on a fixed Mbed TLS, show the second bar…
JC-000 Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
# commit twice, without restricting which branches build on push.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: self-hosted
env:
# The ESP32 modules (raw_u64, raw_c3, u64ctrl) need ESP-IDF 6, so they build here, not in my_docker_image
IDF6_IMAGE: espressif/idf:v6.1.1@sha256:2b4f966c37eaedc19542b0637a5f850b2eff9478d8e858192aa0073d92c2dc91
steps:
- name: Checkout repository
uses: actions/checkout@v7
Expand Down Expand Up @@ -186,6 +189,22 @@ jobs:
-v /opt/build-tools:/mnt/build-tools:ro \
-v $GITHUB_WORKSPACE:/mnt/project:rw my_docker_image /bin/bash -c "cd /mnt/project && make host_tests"

# In the ESP-IDF 6 image, because the control module's signature check is
# built against the crypto library that image ships.
- name: Test Recovery Manifest Signature Check
run: |
docker run --rm --user $(id -u):$(id -g) -e HOME=/tmp \
-v $GITHUB_WORKSPACE:/mnt/project:rw --workdir /mnt/project $IDF6_IMAGE make host_tests_idf6

# The UCI TLS commands against stand-ins for FreeRTOS, the UART, lwIP and the
# WiFi module: the module calls, the dedicated channel and the network target
# (network_target.cc, network_target_tls.cc) itself. Needs no device and no network beyond loopback.
- name: Test UCI TLS Sockets
run: |
docker run --rm \
-v /opt/build-tools:/mnt/build-tools:ro \
-v $GITHUB_WORKSPACE:/mnt/project:rw my_docker_image /bin/bash -c "cd /mnt/project && make -C target/pc/linux/wifitls test"

- name: Cache U2 FPGA
id: cache-u2
uses: actions/cache@v6
Expand Down Expand Up @@ -234,16 +253,15 @@ jobs:
software/wifi/raw_u64/build/bridge.bin
software/wifi/raw_u64/build/bootloader/bootloader.bin
software/wifi/raw_u64/build/partition_table/partition-table.bin
key: ${{ runner.os }}-esp32-${{ hashFiles('software/esp_depends.txt') }}
key: ${{ runner.os }}-esp32-${{ env.IDF6_IMAGE }}-${{ hashFiles('software/esp_depends.txt') }}
restore-keys: |
${{ runner.os }}-esp32-${{ hashFiles('software/esp_depends.txt') }}
${{ runner.os }}-esp32-${{ env.IDF6_IMAGE }}-${{ hashFiles('software/esp_depends.txt') }}

- if: steps.cache-esp32.outputs.cache-hit != 'true'
name: Build ESP32 Software (skipped if available in cache)
run: |
docker run --rm --net=custom_network --mac-address=4c:cc:6a:06:b3:79 \
-v /opt/build-tools:/mnt/build-tools:ro \
-v $GITHUB_WORKSPACE:/mnt/project:rw my_docker_image /bin/bash -c "cd /mnt/project && make esp32"
docker run --rm --user $(id -u):$(id -g) -e HOME=/tmp \
-v $GITHUB_WORKSPACE:/mnt/project:rw --workdir /mnt/project $IDF6_IMAGE make esp32

- if: steps.cache-u2.outputs.cache-hit != 'true'
name: Build U2 including FPGAs
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ OPENAPI = python3 tools/openapi/generate.py
# make openapi_validate PYTHON=/path/to/venv/bin/python
PYTHON ?= python3

.PHONY: all app_space app_space_test d81_tracks_test observability_test lint_test host_tests openapi openapi_check openapi_test openapi_validate
.PHONY: all app_space app_space_test d81_tracks_test observability_test lint_test host_tests host_tests_idf6 openapi openapi_check openapi_test openapi_validate

all: esp32 u2_rv u2plus u2pl u64 u64ii
@$(APP_SPACE) report
Expand Down Expand Up @@ -67,6 +67,11 @@ openapi_validate:
exit 2; }
@$(PYTHON) -m openapi_spec_validator --validation-errors all `$(OPENAPI) paths`

# The recovery manifest check is built against the crypto library of ESP-IDF 6,
# so it runs in that image (IDF_PATH of an ESP-IDF 6), apart from the rest.
host_tests_idf6:
@$(MAKE) -C target/pc/linux/recoverymanifest test

# Unit tests that run on the build host rather than on the device. Kept out of
# the firmware targets deliberately: those build with a cross compiler, and
# these need a host g++.
Expand All @@ -80,7 +85,6 @@ host_tests:
@$(MAKE) -C software/io/wifi/tests
@$(MAKE) -C software/wifi/tests
@$(MAKE) -C software/wifi/uart_tests
@$(MAKE) -C target/pc/linux/recoverymanifest test
@$(MAKE) -C target/pc/linux/recoveryimage test
@$(MAKE) -C target/pc/linux/recoveryurl test
@$(MAKE) -C target/pc/linux/c64mem test
Expand All @@ -89,6 +93,11 @@ host_tests:
@$(MAKE) -C target/pc/linux/socketdma test
@$(MAKE) -C target/pc/linux/syslog test
@$(MAKE) -C target/pc/linux/ucitargets test
@$(MAKE) -C target/pc/linux/radioentropy test
@$(MAKE) -C target/pc/linux/wifirandom test
@$(MAKE) -C target/pc/linux/wifidedicated test
@$(MAKE) -C target/pc/linux/getrandompaths test
@$(MAKE) -C target/pc/linux/wifitls test
@$(MAKE) -C software/userinterface/tests

esp32: esp32_raw_u64 esp32_raw_c3 esp32_u64ctrl
Expand Down
15 changes: 10 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ U2+:
U2+L:
- Lattice Diamond 3.13 with a (free) generated license
- RiscV GNU C/C++ Compiler (for RV32I), same as for U2/RiscV.
- Espressif IDF 5.x
- Espressif IDF 6.x

U64:
- Altera Quartus (tested with 18.1 Lite Edition) - for the Nios-II compiler only.
- Espressif IDF 5.x
- Espressif IDF 6.x

U64E-II:
- RiscV GNU C/C++ Compiler (for RV32I), same as for U2/RiscV.
- Espressif IDF 5.x
- Espressif IDF 6.x


Environment variables
Expand All @@ -40,7 +40,7 @@ In this file, you need to set the location of your Xilinx ISE toolchain.

Building targets
================
ALL targets can be built by just typing 'make' in the root of the repository.
ALL targets can be built by just typing 'make' in the root of the repository (see the ESP32 note below).

In order to build for U2 only, use the 'u2_rv' target in the top level makefile. This will build the FPGAs as well
as the RiscV based software, including all updaters.
Expand All @@ -53,8 +53,13 @@ target 'niosapps'. This target will only succeed if you have already successfull
For the U2+L, you can build the 'u2pl' target.

The U64 firmware can be built by typing 'make u64'.

The U64E-II firmware can be built by typing 'make u64ii'
The ESP32 module firmware (software/wifi/raw_u64 for the U64, software/wifi/raw_c3 for the U2+L and
software/u64ctrl for the U64E-II) needs ESP-IDF 6, so IDF_PATH has to be an ESP-IDF 6 for 'make', 'make esp32',
'make u64', 'make u64ii', 'make u2pl' and 'make clean'. The Dockerfile in docker/ still installs ESP-IDF 5.3.1; CI
builds the modules in the espressif/idf:v6.1.1 image (see .github/workflows/build.yml) and then packs them with
'make u64_no_esp', 'make u64ii_no_esp' and 'make u2pl_no_esp'. The README.md in each module directory shows the
command.

==> When using the top level makefile, the results are copied into the root of the project.

Expand Down
Loading