AMXRT is a runtime, not a board: why I always start on a PC
Grow through practice
No need to finish reading — test nowOne line: AMXRT is a runtime — it loads ODL, loads a backend, and runs the event loop; it is not firmware, not a board. That is why it runs on a PC; learn the model, not the API.
What we ran on a PC
hello.odl+ ubus:ubus list/ubus call Hello _get;- the official
cpu-info:CPUMonitor+CPUMonitor.CPU.1..4, readingIntel(R) Xeon(R) Platinum; - a standalone
libamxbclient:amxb_getreturnedobject_not_found(a real integration pitfall); - the Yocto/QEMU demo:
meta-ambiorix-demo.
None of this needs a CPE board.
What “runtime” means
libamxrt: the runtime library;amxrt: the executable;- it does three things: load ODL, load a bus backend, run the event loop.
Hardware-specific things live in:
- the backend (ubus / D-Bus / PCB);
- plugins (
cpu-info,greeter); - the vendor BSP / HAL / offload.
They are not in the runtime itself. That is why a PC works.
Why a PC is the best learning environment
- fast builds: change a line, run it;
gdb,valgrind,strace;- local
ubusd, no flashing/serial; - the same ODL/C code; switching platforms only changes the backend/BSP.
What “learning it dead” looks like
- memorizing
-B/-uwithout knowing what a backend or URI is; - copying ODL without knowing what objects/parameters/transactions/actions do;
- going straight to hardware and debugging by guessing;
- treating prplOS/OpenWrt as AMX itself;
- treating official examples as production code.
How to learn it alive
- PC: run
cpu-info→ modify the ODL (add a parameter/action) → observe withubus;
- QEMU/Yocto: run
meta-ambiorix-demo, validate the build/integration;
- Real board: BPI-R4 / prplOS, replacing only the backend/BSP;
- Read upstream:
libamxd/libamxo/amxrtdocs; write a minimal repro when stuck.
What a PC cannot replace
- vendor BSP, DPAA/TOPS offload, Wi-Fi 7;
- real timing, power, networking;
- carrier certification.
Those need hardware. But validate the model and code on a PC first; hardware is then only a platform difference.
One sentence
The runtime is “model + event loop + bus”, not a board. Learn it and switching platforms is just switching backends; memorize it and every new board starts from zero.
Related: Official example cpu-info · amxrt CLI options · Runnable demo
Comments 1