Skip to content

bsp-linux: deploy without a rootfs partition on the ab layout - #89

Merged
daniel-rossier merged 1 commit into
mainfrom
fix/ab-deploy-linux
Dec 2, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
fix/ab-deploy-linux

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

On the ab layout p2 is a raw slot, never mounted, but bsp-linux:do_deploy always pulled rootfs-linux:do_deploy, which failed with No .../filesystem/p2 exists: no ITB reached p1 and nothing booted. The rootfs deploy is now pulled only when the layout is not ab (the default rootfs.cpio ramfs carries the rootfs and apps in the ITB), and IB_RAMFS_SOURCE = "initrd" with the ab layout skips bsp-linux at parse time with an explicit reason. The rootfs layout is unchanged. Checked in infrabase-build:1.0: tinfoil shows do_deploy[depends] unchanged by default and with initrd, without rootfs-linux:do_deploy with IB_PARTITION_LAYOUT=ab; bitbake -n bsp-linux -c deploy no longer schedules any rootfs-linux task on ab; initrd + ab gives bsp-linux was skipped: IB_RAMFS_SOURCE = "initrd" boots from a rootfs on p2, ...; bitbake -p stays clean.

bsp-linux:do_deploy always depended on rootfs-linux:do_deploy, which
extracts the rootfs onto p2. In the "ab" layout p2 is a raw slot that is
never mounted, so that task failed with "No .../filesystem/p2 exists",
bsp-linux:do_deploy never ran, and the card was left without an ITB or
uEnv.txt: nothing booted.

The rootfs deploy is now pulled only when the layout has a rootfs
partition. With the default rootfs.cpio ramfs the rootfs and the apps
travel inside the ITB, so nothing is lost. IB_RAMFS_SOURCE = "initrd",
which pivots to p2, cannot work on the ab layout: bsp-linux is skipped
at parse time with a message that says so.
@daniel-rossier
daniel-rossier merged commit c34c833 into main Dec 2, 2026
2 checks passed
@daniel-rossier
daniel-rossier deleted the fix/ab-deploy-linux branch December 2, 2026 08:05
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.

1 participant