bsp-image-build
Skill5 starsChanged 3 months agoApache-2.0View on GitHub
Build a complete RDK X3/X5 system image with pack_image.sh after explicitly selecting board, desktop/server, beta/release, checkout, free space, and any third-party deb. Use when the user wants a flashable RDK OS image or preinstalled debs. 触发词:系统镜像、整机镜像、pack_image.sh、desktop/server 版本、build_params、third_packages、.img. Do not use for kernel-only builds (bsp-kernel-build), deb-only builds (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★ 155% 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-kernel-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
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
If the request is only to build, rebuild, or obtain a deb package (including a changed hobot-multimedia deb), route to bsp-deb-build.
- Distinctive: line 36
Before planning a build, collect and repeat these explicit selections:
- Distinctive: line 58
If a third-party deb is requested, before the costly-build confirmation verify that its exact path exists and is a readable regular file.
- Distinctive: line 70
After that confirmation, run from the chosen checkout:
- Very specific: line 87
Verify the outputs under deploy/ — *.img image files plus rootfs, kernel intermediates.
- Very specific: line 96
Never use an image build as a substitute for package-only work.
≈ “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
System Image Build
Purpose
Produce a complete, flash-able RDK OS image (.img) that matches the official release, by orchestrating the official pack_image.sh entry point. This is the first build every BSP developer must complete before any deep development — it downloads the base filesystem and official debs that later steps depend on.
When to use
Use when:
- The user wants a complete, flashable RDK X3 or X5 image
- The user wants a third-party
.debpreinstalled in that image - The user needs to select the desktop/server and beta/release image variant
If the request is only to build, rebuild, or obtain a deb package (including a
changed hobot-multimedia deb), route to bsp-deb-build. Do not suggest or
run an image build command for package-only work. Do not use this skill for
kernel-, bootloader-, or S-series-only work.
Instructions
- Classify the work. Confirm the user needs a complete image, not only a deb.
For package-only requests, hand off to
bsp-deb-buildbefore discussingpack_image.sh. - Before planning a build, collect and repeat these explicit selections:
- board:
X3orX5 - Ubuntu flavor:
desktoporserver - release channel:
betaorrelease - source checkout: the absolute prepared
x5-rdk-genor legacyrdk-gencheckout path (do not assume the current directory) - intended third-party deb: its exact path, or explicit confirmation that none is to be preinstalled
- board:
- Confirm prerequisites for that checkout:
bsp-env-setupandbsp-source-synccompleted,sudoavailable, and at least roughly 50 GB of free space on the filesystem holding the checkout. Check the available space instead of inferring it from total disk capacity. - Derive and show the exact selected configuration before any build command:
For example, X5 desktop release selectsbuild_params/ubuntu-22.04_{desktop|server}_rdk-{x3|x5}_{beta|release}.confbuild_params/ubuntu-22.04_desktop_rdk-x5_release.conf. Verify that exact file exists under the chosen checkout'sbuild_params/directory. - If a third-party deb is requested, before the costly-build confirmation
verify that its exact path exists and is a readable regular file. Only after
those checks, optionally inspect its package metadata/architecture to
validate board compatibility, then put that exact file in
<checkout>/third_packages/. The pack process installs debs from that directory into the image filesystem. - Explain the cost and request an explicit confirmation. Image output uses
substantial time and storage, downloads gigabytes on a first full build,
and runs with
sudo. Do not invokepack_image.shuntil the user confirms the selected config, checkout, free-space result, and third-party-deb plan. - After that confirmation, run from the chosen checkout:
Substitute the exact selected config from step 4; never silently fall back to the default config or copy a config for another variant.sudo ./pack_image.sh -c "<selected build_params file from step 4>" - Useful options:
-l— local build: skip downloading samplefs and deb packages from the official server (use after the first full build, for fast iteration)-c <file>— select a build config
- What
pack_image.shdoes (report this to the user):download_samplefs.sh+download_deb_pkgs.shfetch the official base filesystem and preinstalled debs- unpack samplefs and run
hobot_customize_rootfs.shto customize the filesystem - install deb packages into the filesystem
- generate the system image
- Verify the outputs under
deploy/—*.imgimage files plus rootfs, kernel intermediates. Report the exact.imgpath and size.
Safety
- Runs as sudo and downloads gigabytes: confirm the explicit X3/X5,
desktop/server, beta/release, checkout, free-space result, selected config,
and third-party deb plan before starting
pack_image.sh. -lreuses previously downloaded artifacts; if those are missing the build fails — rerun a full build once.- Never use an image build as a substitute for package-only work; use
bsp-deb-buildto rebuild the deb first, then return here only if the user wants it preinstalled in a complete image. - Building does not flash anything: hand the
.imgto the official flashing docs /rdk-board-knowledge, never flash without user confirmation.
Sources:
x5-rdk-genREADME v3.5.0「编译系统镜像」「pack_image.sh 打包步骤」;rdk-genREADME v3.0.3「编译系统镜像」;x5-rdk-gen/build_params/config file list.
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.

