How yuvan1492/embedded-linux-lab works
Embedded Linux Lab is a hands-on curriculum built around motor control and power telemetry, rather than one deployed application. Its learning path progresses from compiling C and booting Linux through kernel modules, a Device-Tree-bound motor driver, userspace control, and optional M4/RPMsg supervision; separate networking demos cover sockets, error detection, addressing, and HTTP. The graph includes the documented subsystem relationships and sampled runtime calls. Several stages are described only in the README, so their links are documented flows, not evidence of a validated hardware integration.
Main entry points: motor_ctl.c Motor Platform Driver · main.c M4 Control Loop · supervisor.c Telemetry Supervisor · protocol.h RPMsg Protocol
Components 24
Toolchain And Boot
- Cross Compilation
01-toolchain/hello.c - U-Boot Script
02-uboot/boot.cmd
Kernel And Hardware
- Linux Kernel
- Hello Module
03-kernel-modules/01-hello/hello.c - Proc Interface
03-kernel-modules/02-proc-interface/hello_proc.c - Timer GPIO
03-kernel-modules/03-timer-gpio/timer_gpio.c - Motor Platform Driver
04-platform-driver/motor_ctl.c - Device Tree Overlays
05-device-tree/overlays
Userspace Motor Control
- Motor Monitor
06-buildroot-external/package/motor-monitor/src/main.c - Motor ioctl API
06-buildroot-external/package/motor-monitor/src/motor_ctl.h
M4 And Supervision
- M4 Control Loop
07-rpmsg-m4/m4-firmware/main.c - RPMsg Protocol
07-rpmsg-m4/protocol.h - Linux RPMsg Client
07-rpmsg-m4/linux-client/rpmsg_client.c - Telemetry Supervisor
08-capstone-daemon/supervisor.c
Networking Demos
- TCP Client
09-networking/01-sockets/tcp_echo_client.c - TCP Echo Server
09-networking/01-sockets/tcp_echo_server.c - UDP Client
09-networking/01-sockets/udp_echo_client.c - UDP Echo Server
09-networking/01-sockets/udp_echo_server.c - Checksum And CRC
09-networking/02-error-detection - CIDR Calculator
09-networking/03-ip-addressing/subnet_calc.c - DNS And HTTP
09-networking/04-dns-http/http_get.c
Other components
- Engineer
- Target Hardware
- TCP Consumer
Connections 22
- Engineer → Cross Compilation: builds
README.md - Cross Compilation → U-Boot Script: prepares target
- U-Boot Script → Linux Kernel: loads kernel and DTB
README.md - Linux Kernel → Hello Module: loads module
README.md - Linux Kernel → Proc Interface: loads module
README.md - Linux Kernel → Timer GPIO: loads module
README.md - Device Tree Overlays → Motor Platform Driver: matches and probes
README.md - Linux Kernel → Motor Platform Driver: provides kernel services
README.md - Motor Monitor → Motor Platform Driver: controls through device
README.md - Motor Monitor → Motor ioctl API: uses ioctl definitions
06-buildroot-external/package/motor-monitor/src/main.c - M4 Control Loop → RPMsg Protocol: encodes messages
07-rpmsg-m4/m4-firmware/main.c - Linux RPMsg Client → RPMsg Protocol: encodes messages
07-rpmsg-m4/linux-client/rpmsg_client.c - Telemetry Supervisor → RPMsg Protocol: decodes telemetry
08-capstone-daemon/supervisor.c - M4 Control Loop → Linux RPMsg Client: exchanges RPMsg
README.md - M4 Control Loop → Telemetry Supervisor: sends telemetry
README.md - Telemetry Supervisor → TCP Consumer: serves status
08-capstone-daemon/supervisor.c - TCP Client → TCP Echo Server: exchanges TCP data
README.md - UDP Client → UDP Echo Server: exchanges UDP data
README.md - Engineer → Checksum And CRC: runs demonstrations
README.md - Engineer → CIDR Calculator: runs calculator
README.md - Engineer → DNS And HTTP: runs HTTP demo
README.md - Motor Platform Driver → Target Hardware: drives GPIO and PWM
README.md