← All posts

AMXRT is a runtime, not a board: why I always start on a PC

Grow through practice

No need to finish reading — test now

One 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, reading Intel(R) Xeon(R) Platinum;
  • a standalone libamxb client: amxb_get returned object_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/-u without 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

  1. PC: run cpu-info → modify the ODL (add a parameter/action) → observe with ubus;
  1. QEMU/Yocto: run meta-ambiorix-demo, validate the build/integration;
  1. Real board: BPI-R4 / prplOS, replacing only the backend/BSP;
  1. Read upstream: libamxd/libamxo/amxrt docs; 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

Practice

Found this useful?

I write about AI agents × embedded / edge AI. Subscribe, or email me a concrete problem.

Guestbook →Subscribe (RSS)Support

Comments 1

  • wangbingowner
    https://holisticon.pl/blog/how-to-set-up-prplos-on-banana-pi-r3-a-step-by-step-guide/
No login required; name is optional.