Skip to content

beaglev-ahead.conf: sparse images and add flashing script helper#573

Open
lslrt wants to merge 1 commit intoriscv:masterfrom
lslrt:master
Open

beaglev-ahead.conf: sparse images and add flashing script helper#573
lslrt wants to merge 1 commit intoriscv:masterfrom
lslrt:master

Conversation

@lslrt
Copy link
Copy Markdown

@lslrt lslrt commented Dec 1, 2025

  • conf/machine/beaglev-ahead.conf: inherit image_types_sparse from meta-openembedded layer so the rootfs can be converted to a sparse image otherwise fastboot will likely fail to flash it.

  • recipes-kernel/linux/linux-beaglev-dev.bb: sparse the boot.ext4 image to remove the 'fastboot flash boot boot.ext4' command generate a warning message "Invalid sparse file format at header magic"

  • recipes-support/flashing-scripts/flashing-script_1.0.bb: introducing a new "deploy only recipe" that deploy a flash.sh utility script to deploydir/. This may help end user to flash the device.

Signed-off-by: Leo Sartre leo@missingno.tech

Image files flashed with fastboot must be in sparse format otherwise
they may fail to be flashed. It looks like if image size < fastboot
buffer size, it accidently works but rootfs image is likely to be
larger than that.
Wrapping fastboot flash commands into a helper script.

Signed-off-by: Leo Sartre <leo@missingno.tech>
@kraj
Copy link
Copy Markdown
Collaborator

kraj commented Dec 1, 2025

Its adding a dependency on meta-oe which might be something to consider, regardless we need to add LAYERDEPENDS_riscv-layer it in conf/layer.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants