This project is setup to do everything needed to run the Zephyr LwM2M Sample in QEMU with the Leshan Demo Server
Apple Silicon note: Replace
qemu_x86withqemu_cortex_m3to build but unfortunately, the network will not work.
The instructions below remain valid for Linux hosts with x86_64 CPUs.
- Install VS Code
- Install Docker (If on Windows or MacOS, use Docker Desktop)
Open this project in VS Code and let it start the dev container. This will do the following:
- Download and setup Zephyr while building the DevContainer Dockerfile
- Download and run the Leshan Demo Server Dockerfile
- Start the DevContainer with VS Code
Leshan should start on its own at localhost.
- Terminal 1:
west build -b qemu_x86 /west/zephyr/samples/net/lwm2m_client -DCONF_FILE="prj.conf"Start the net-tools according to the guide
- Terminal 2:
cd /west/tools/net-tools
. loop-socat.sh- Terminal 3:
cd /west/tools/net-tools
sudo bash loop-slip-tap.sh- Terminal 4:
west build -t run