Experiment firmwares
Besides train, the build produces small firmwares used to learn about the
hardware. They run with the SPL fragment configs/k3_freefw_probe.config (or
a dedicated one), which stops the SPL after the PMU run without activating the
DDRC:
make fsbl FW=<name> [FSBL_FRAG=configs/<fragment>.config]
tools/bench.sh build/fsbl-<name>/FSBL.bin <run-name>
probe(src/probe/main.c)Streams IDENTITY and the ARCv2 build configuration registers, RTC samples for the tick rate, the message block, ISA self tests and an IMEM data read. Experiments exp 000 and exp 001.
csrdump(src/csrdump/main.c)Read-only: reads the 5170
phyparaCSRs (compact table generated bytools/gen_phypara.py --fw) and the 4096 ACSM halfwords from the PMU side into DMEM0x80008000(host index0x5c000) and streams a summary (LOG_ID_CSRDUMP). WithK3_DDR_PMU_COMPARE_DUMPthe SPL compares that copy with its own reads and prints all values;tools/dump_extract.pyturns the log into CSV. Fragmentconfigs/k3_freefw_csrdump.config. Experiment exp 002.csrscan(src/csrscan/main.c)Read-only scan of whole index ranges (groups
0x02,0x04control,0x0c); the index being read is kept in breadcrumb slots 14/15 so a stalling read can be identified.tools/scan_extract.pybuilds CSV files annotated with the host-table value. Experiment exp 004.pllprobe(src/pllprobe/main.c)Writes the PLL registers of a DDR4 variant of the PHY, powers the PLL up and watches lock and period counters with timestamps. Experiment exp 005 showed those registers do not exist on the K3; the probe is kept only as the record of that experiment.
trainas an experiment vehicleThe training firmware itself carries the quickboot path and the RdDQS probe; which one runs is chosen by the message block (
Quickboot,SequenceCtrl, flag0xa5in byte 0) and by the SPL fragment (Host-assisted quickboot and experiment hooks). Experiments exp 011–exp 019.
Rules for experiment firmwares
Start read-only; any register write is a separate, documented experiment.
Keep
.bssbelow the buffers they publish to the host (checked at run time bycsrdump).Use major codes
0x20–0x2fand stream IDs0x0810–0x08ff.