bsp-kernel-build
Skill5 starsChanged 3 months agoApache-2.0View on GitHub
Build RDK Linux kernel, device-tree, and driver-module artifacts with mk_kernel.sh (X5 also offers mk_kernel_rt.sh). Require board family, target, config source, and deployment target; confirm boot replacement or reboot. Use for kernel/DTB/module/RT work, not full images (bsp-image-build), deb packaging (bsp-deb-build), or S-series (bsp-s-series).
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- D-Robotics/dsh-plugin-rdkedited, first seen Aug 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- D-Robotics/dsh-plugin-rdk★ 156% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- bsp-bootloader-buildSkill
- bsp-deb-buildSkill
- bsp-env-setupSkill
- bsp-image-buildSkill
- bsp-rootfs-customSkill
- bsp-source-syncSkill
- bsp-s-seriesSkill
- cmos-sensor-bringupSkill
- rdk-accessoriesSkill
- rdk-board-delegateSkill
- rdk-board-knowledgeSkill
- rdk-camera-setupSkill
- rdk-command-manualSkill
- rdk-diagnosticSkill
- rdk-docs-referenceSkill
- rdk-ecosystemSkill
- rdk-embodied-lerobotSkill
- rdk-gpio-40pinSkill
- rdk-hardwareSkill
- rdk-headless-modeSkill
- rdk-llm-deploymentSkill
- rdk-log-forensicsSkill
- rdk-memory-auditSkill
- rdk-model-benchmarkSkill
- rdk-model-deploySkill
- rdk-model-zoo-developSkill
- rdk-model-zoo-integrateSkill
- rdk-model-zoo-releaseSkill
- rdk-model-zoo-repoSkill
- rdk-model-zoo-reviewSkill
- rdk-model-zooSkill
- rdk-model-zoo-validateSkill
- rdk-multimediaSkill
- rdk-network-remoteSkill
- rdk-pack-installerSkill
- rdk-peripheral-cookbookSkill
- rdk-skill-finderSkill
- rdk-source-mapSkill
- rdk-system-configSkill
- rdk-system-maintainSkill
- rdk-tros-setupSkill
- rdk-vision-pipelineSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Do not use this skill for a whole-image build, deb-only rebuild, or S-series work.
- Distinctive: line 44
Before planning the build, collect and repeat all of these required inputs:
- Very specific: line 62
After the inputs and source diff are confirmed, run the artifact build from the selected workspace root.
- Very specific: line 70
Use mk_kernel_rt.sh only when the selected target is RT and the board family is X5.
- Very specific: line 74
Verify outputs in deploy/kernel:
- Very specific: line 87
Stop before deployment. Do not provide or execute a board-side install, boot-partition/Image/DTB replacement, or reboot command until the …
- Distinctive: line 97
Do not modify kernel configs or DTS files without showing the diff and getting user confirmation.
- Distinctive: line 99
Never overwrite a boot partition, Image, or DTB, and never reboot a board, without explicit confirmation of the deployment target and a …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kernel, Device Tree, and Driver Build
Purpose
Compile Linux kernel, device-tree, and driver-module artifacts, and understand how
they feed the hobot-boot / hobot-dtb / hobot-kernel-headers deb packages.
This skill produces kernel artifacts; it does not build a complete flashable image
or deploy artifacts to a board.
When to use
Use when:
- The user wants to build/modify the kernel, dtb, or driver modules
- The kernel artifacts (
deploy/kernel) are missing but deb packages are needed - Setting up out-of-tree module builds that need
kernel_headers
For a complete flashable or release image, route to bsp-image-build before
suggesting mk_kernel.sh. For creation or rebuilding of a hobot-* deb
package, route to bsp-deb-build after the required kernel artifacts exist.
Do not use this skill for a whole-image build, deb-only rebuild, or S-series work.
Instructions
- Classify the request before offering a command:
- A complete flashable or release image belongs to
bsp-image-build; do not presentmk_kernel.shas the terminal answer. - Creation or rebuilding of
hobot-boot,hobot-dtb, orhobot-kernel-headerspackages belongs tobsp-deb-build. This skill supplies its prerequisite kernel artifacts. - Otherwise, continue only for a kernel, DTB, driver-module, or X5 RT-kernel artifact request.
- A complete flashable or release image belongs to
Before planning the build, collect and repeat all of these required inputs:
- board family and board variant:
X3orX5, plus the exact target board; - kernel target:
kernel,DTB,module, orRT; - configuration source: the exact DTS, defconfig/config fragment, or known-good configuration path/revision to use; and
- deployment target: the intended board and delivery method (for example, a
hobot-dtbpackage install or a boot-partition replacement).
Also require a rollback method before any deployment plan: identify how the current Image/DTB will be backed up and restored, or an approved alternate boot/recovery path. Do not infer the board, configuration, delivery method, or rollback procedure from the current checkout.
- board family and board variant:
- Inspect the selected DTS/configuration diff and confirm the intended board configuration before changing source files or starting a build.
- Prerequisite: one completed full image build (
bsp-image-build) — it downloads the rootfs whose headers/libraries application packages use, plus the official debs. - After the inputs and source diff are confirmed, run the artifact build from
the selected workspace root.
mk_kernel.shbuilds kernel, DTB, and modules together; do not invent a narrower command for a DTB-only or module-only request.
Use./mk_kernel.sh # kernel, dtb, driver modules ./mk_kernel_rt.sh # X5 only: real-time kernelmk_kernel_rt.shonly when the selected target isRTand the board family is X5. Explain its scheduling impact and obtain explicit confirmation before the long RT build. - Verify outputs in
deploy/kernel:dtb Image Image.lz4 kernel_headers modules - Explain the dependency chain: these outputs are consumed by the
hobot-boot,hobot-dtb, andhobot-kernel-headersdeb packages — so any customization of those packages requires rebuilding the kernel first, then handing off package creation tobsp-deb-build. - For driver development, point the user to
deploy/kernel/kernel_headersfor out-of-tree module builds; do not invent include paths. - Stop before deployment. Do not provide or execute a board-side install, boot-partition/Image/DTB replacement, or reboot command until the deployment target and rollback method have been explicitly confirmed. Replacing boot artifacts or rebooting is confirmation-required even after the build succeeds. Then use the board-specific, supported deployment procedure rather than assuming partition names or paths.
Safety
- Kernel builds are CPU/disk heavy: confirm available resources before a long run.
- Do not modify kernel configs or DTS files without showing the diff and getting user confirmation.
- RT kernel (
mk_kernel_rt.sh) changes scheduling behavior on the target — flag the difference and obtain confirmation before switching. - Never overwrite a boot partition, Image, or DTB, and never reboot a board, without explicit confirmation of the deployment target and a tested or documented rollback method. Preserve the current boot artifacts first.
Sources:
x5-rdk-genREADME v3.5.0「编译 kernel」;rdk-genREADME v3.0.3「编译 kernel」。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

