Enable to generate rootfs.cpio.gz - #754
Merged
Merged
Conversation
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="tools/build-linux-image.sh">
<violation number="1" location="tools/build-linux-image.sh:281">
P2: The Linux image build does not request the `Image.gz` target before copying it. On the current RISC-V configuration, the default kernel build produces `Image`, so this copy can fail with “No such file or directory” and the gzip kernel will not be included; the unasserted failure can also be masked by the subsequent `do_simplefs` command. Building `Image.gz` explicitly and checking the copy result would make the new artifact reliable.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
This is friendly for user to store smaller size images locally. +---------------+--------------+-----------------+-----------+ | Image Type | Uncompressed | Compressed(.gz) | Reduction | +---------------+--------------+-----------------+-----------+ | Kernel | 4.6M | 2.2M | 52.17% | | Rootfs (cpio) | 32.0M | 15.0M | 53.12% | +---------------+--------------+-----------------+-----------+ Also, once the prebuilt gzipped linux images are available, the rv32emu's bootloader can be extended to handle these images to have more capability for wider ranges of linux images.
ChinYikMing
force-pushed
the
rootfs.cpio.gz
branch
from
July 24, 2026 17:39
a5c8dc5 to
831ec5b
Compare
Contributor
|
Thank @ChinYikMing for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is friendly for user to store smaller size images locally.
Also, once the prebuilt gzipped linux images are available, the
rv32emu's bootloader can be extended to handle these images to have
more capability for wider ranges of linux images.
Summary by cubic
Adds gzip-compressed Linux images (
rootfs.cpio.gz,Image.gz) to cut local storage by ~50% and pave the way for future bootloader support. The compressed files are built, copied to the output, and added to the prebuilt bundle with checksums.BR2_TARGET_ROOTFS_CPIO_GZIPinbuildrootto producerootfs.cpio.gz.rootfs.cpio.gzandImage.gzto output; include both in prebuilt artifacts andsha1sum-linux-image.Written for commit 831ec5b. Summary will update on new commits.