ormus-solutions/libreembed-claude-code/embedded-linux-patterns
- community
Checking that the SKILL.md file is still in the repository.
Embedded Linux patterns: Yocto layer and recipe hierarchy, kernel config fragments, device tree GPIO and interrupt properties, out-of-tree module Makefiles, sysfs attributes, and QEMU testing before hardware. Use when customizing a Linux image or writing a driver for an ARM board.
Install
npx vskill@latest install ormus-solutions/libreembed-claude-code/embedded-linux-patternsSKILL.md
embedded-linux-patterns
Knowledge Base
Patterns for Yocto, Buildroot, device trees, and kernel modules on ARM SoCs.
Pattern 1: Yocto Layer and Recipe Hierarchy
bblayers.conf adds layers. local.conf sets MACHINE, DISTRO, and BB_NUMBER_THREADS.
Pattern 2: Kernel Configuration Fragment
Instead of editing .config directly, use a config fragment in a .bbappend:
Apply with: bitbake linux-imx -c menuconfig then bitbake linux-imx -c savedefconfig.
Pattern 3: Device Tree GPIO and Interrupt Properties
Kernel driver reads: gpiod_get(dev, "reset", GPIOD_OUT_HIGH) — matches reset-gpios property. IRQ: platform_get_irq(pdev, 0) or irq_of_parse_and_map(np, 0).
Pattern 4: Kernel Module Makefile
Pattern 5: Sysfs Attribute in Kernel Driver
Expose sensor data via /sys/bus/platform/devices/mydev/temperature:
Read from userspace: cat /sys/bus/platform/devices/mydev.0/temperature
Pattern 6: QEMU Testing Before Hardware
Anti-Patterns
- Editing `.config` directly in Yocto: it gets overwritten on next build. Use config fragments.
- `compatible = "linux,generic-..."` in DTS: use a specific compatible string matching your driver's
of_match_table. - Kernel module without `devm_` APIs: manual resource management leaks on error paths in
probe. - Cross-compiling without sysroot: linking against host libraries causes ABI mismatch. Always use
--sysrootor Yocto SDK.
References
- Yocto Project Reference Manual: docs.yoctoproject.org
- Linux Device Drivers, 3rd Ed. (Corbet, Rubini, Hartman) — ldd3
- Device Tree specification: devicetree.org/specifications/
- U-Boot documentation: u-boot.readthedocs.io
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/embedded-linux/skills/embedded-linux-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ormus-solutions/libreembed-claude-code/embedded-linux-patterns)