prplOS & AMX
40 posts · grouped as a learning path
Series practice · grow through practice
prplOS / AMX fundamentals test
No need to finish reading. Practice covers the whole tier bank; exams draw random questions.
Start here · Method: run on a PC, do not memorize
The runtime is not a board; PC first, then QEMU, then hardware.
Part 0 · Environment: source build to a Docker base image
Install libubox/ubus/AMX/amxrt first; PC or a Docker base image, and examples run on top.
Part 1 · Starting point: why build an object container in C
First, clarify that “container” means an object container, not list/string.
Part 2 · Overview: runtime, bus, data model
Start from UCI’s boundaries, lay out the three layers, then see how amxrt starts.
Part 3 · Data model: objects, transactions, meaning
Objects/parameters/paths → libamxd in code → why it must exist.
Part 4 · Containers: libamxc vs STL/GLib
Intrusive lists, zero allocation, Variant, and why not STL/GLib.
Part 5 · Assembly and engineering: ODL, naming, debugging
ODL instead of annotations, naming conventions, and a real libamxb debugging note.
Part 6 · Integration: Yocto and prplOS
Put AMX into Yocto, and understand prplOS vs OpenWrt.
- How AMX calls UCI: CLI, libuci and backend modules
- Where the AMX data model lives: memory, ODL and UCI boundaries
- prplOS UCI backend: from TR-181 routes to /etc/config
- From TR-181 routes to UCI: a minimal mapping implementation
- Integrating Ambiorix (AMX) into Yocto: From Layer to Running
- prplOS vs OpenWrt: architecture, AMX/TR-181, and Raspberry Pi / BPI-R4 reality
Part 7 · Official examples: wait_for → amx-scheduler → cpu-info
Start with wait_for (one C file), then the minimal data model.
Part 8 · Advanced examples: greeter, localagent and ODL
Plugins, apps, threshold events, plus ODL parsing and the full reference.
- Official example 06: greeter_plugin — a full data model in 4 C + 4 ODL
- Official example 04: greeter_app — putting AMX into an existing event loop
- Official example 05: localagent_threshold — a real TR-181 object
- Ambiorix ODL parsing (2): a bigger ODL (greeter)
- Ambiorix ODL parsing (1): from ODL to the data model (amx-scheduler)
- Ambiorix ODL reference: syntax, attributes, resolvers and parse order (handbook)
- How ODL %config is parsed: from text to parser->config
Part 9 · prplOS porting, build and code walkthrough
From x86-64 build and QEMU config to profiles, scripts and TR-181 LED code.
- Build prplOS for x86_64 and boot it in QEMU (GEN_CONFIG to make)
- prplOS porting (2): GEN_CONFIG — targeting QEMU armsr/armv8
- prplOS porting (3): why add another CONFIG layer on top of OpenWrt
- prplOS official profiles (1): 26 profiles, layered and how to choose
- Why these scripts exist: reproducibility is not fussiness
- LED management in prplOS: TR-181 Device.LEDs and tr181-led
Further reading
Subscribe
Subscribe via RSS to get new posts automatically.
Want to leave a message?
Technical questions, feedback and leads: use the guestbook.