embedded-linux
/embedded-linux
Steruje, testuje i diagnozuje płytki z wbudowanym Linuksem przez sieć lub SSH, np. Buildroot, Yocto i OpenWrt.
- Autor
- Alka-q ↗
- Repozytorium
- embedded-linux-mcp ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Steruje, testuje i diagnozuje płytki z wbudowanym Linuksem przez sieć lub SSH, np. Buildroot, Yocto i OpenWrt.
Oryginalny opis (EN)
Use when controlling, testing, inspecting, or debugging network-connected embedded Linux boards (ARM, ARM64, RISC-V, Buildroot, Yocto, OpenWrt, BusyBox/Dropbear) via the embedded-linux-mcp server or SSH.
Jak działa
- Overview
- Mandatory Onboarding Workflow
- Flash-Safe Execution Rules
- Hardware & Debugging Playbooks
Podgląd SKILL.md
---
name: embedded-linux
description: Use when controlling, testing, inspecting, or debugging network-connected embedded Linux boards (ARM, ARM64, RISC-V, Buildroot, Yocto, OpenWrt, BusyBox/Dropbear) via the embedded-linux-mcp server or SSH.
---
# Embedded Linux Control, Testing & Debugging
## Overview
Use this skill whenever you interact with a network-attached embedded Linux target. Embedded Linux boards differ fundamentally from cloud servers: they often run **BusyBox** userlands, **Dropbear** SSH (frequently without an SFTP subsystem), **uclibc/musl** C libraries, small RAM budgets (64 MB – 512 MB), and raw **SPI NAND/NOR or eMMC flash** that wears out under heavy writes.
## Mandatory Onboarding Workflow
Whenever starting work on a board or IP address:
1. **Check Connection Pool (`device_list` / `device_connect`):**
- Call `device_list` first. If the target device is not registered or connected, call `device_connect` with `host` (e.g., `"192.168.1.100"`), `username` (default `"root"`), and the board's credentials.
2. **Take a System Snapshot (`system_info` & `read_dmesg`):**
- Call `system_info` before running custom commands. Note:
- **Architecture & ABI:** `armv7l`, `aarch64`, `riscv64`, `mips`
- **Board Model:** from `/proc/device-tree/model`
- **Available RAM & `/tmp` capacity:** Check `memory` and `storage` (`tmpfs` size)
- Call `read_dmesg(lines=50)` to spot boot errors, driver probe failures, or voltage/MMC warnings.
## Flash-Safe Execution Rules
1. **Always Use `/tmp` for Ephemeral Files:**
- Upload test scripts, cross-compiled binaries, and diagnostic captures to `/tmp/<name>` (`tmpfs` in RAM).
- Never write temporary artifacts to `/` or `/root` unless persistence across reboots is explicitly requested by the user.
2. **Check Binary Size & Linked Libc Before Uploading:**
- Before calling `file_transfer(direction="upload")`, verify `free` RAM in `/tmp` via `system_info`.
- When cross-compiling on the host, match the target's C library (`uclibc`, `musl`, or `glibc`) or link statically (`-static` / `*-unknown-linux-musl*`) so the binary does not fail with deceptive `sh: ./app: not found` (which indicates a missing dynamic linker in `/lib/ld-*`).
3. **Respect BusyBox Command Dialect:**
- Avoid GNU-only flags (`ps aux --sort`, `df --output`, `grep -P`, `stat -c`).
- Prefer POSIX/BusyBox flags or reading `/proc` and `/sys` directly via `file_read`.
## Hardware & Debugging Playbooks
Load the relevant reference document when performing peripheral control or low-level debugging:
- **SoC Families, Cross-Compilation & GPIO Pin Math:** Read `references/soc-gpio-notes.md` for GPIO bank/group pin number calculation, static cross-compilation targets, and media/camera service contention.
- **Generic Sysfs, Peripherals & Crash Debugging:** Read `references/sysfs-debug.md` for `/sys/class/gpio`, `/sys/class/pwm`, `i2c-tools`, `spidev`, `gdbserver`, and `strace` workflows.
Pliki w paczce (3)
- SKILL.md 3 KB
- references/soc-gpio-notes.md 2 KB
- references/sysfs-debug.md 2 KB
Wersje
W bazie nie ma innych skilli o nazwie embedded-linux.
Migawka bazy z 13.11.2026 · wersja paczki 8defc8bd2217 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100embedded-linux-login-debug
Pomaga zalogować się do urządzenia z wbudowanym Linuksem, połączyć się z nim i przygotować do debugowania. - 100embedded-linux-patterns
Opisuje wzorce Linuksa wbudowanego: hierarchię warstw i receptur Yocto, fragmenty konfiguracji jądra, device tree, moduły poza drzewem i testowanie w QEMU. - 100cross-gcc
Pomaga w kompilacji krzyżowej z GCC dla ARM, AArch64, RISC-V i MIPS: toolchainy, sysroot, błędy architektury i uruchamianie binariów w QEMU. - 86linux-server-ops
Diagnozuje i obsługuje serwer Linux przez SSH, sprawdzając usługi, zasoby i logi. - 95openwrt-kwrt-remote-ops
Zdalnie diagnozuje i naprawia router OpenWrt lub Kwrt po SSH: sieć po aktualizacji, wtyczki, źródła opkg i miejsce w overlay. - 100embedded-debugger
Prowadzi przez debugowanie sprzętu wbudowanego z sondami probe-rs przez serwer MCP: inspekcję sond, flashowanie i debugowanie ARM Cortex-M i RISC-V.