Repository navigation
bsp-linux: deploy without a rootfs partition on the ab layout - #89
Merged
Merged
Conversation
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.
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.
On the
ablayout p2 is a raw slot, never mounted, butbsp-linux:do_deployalways pulledrootfs-linux:do_deploy, which failed withNo .../filesystem/p2 exists: no ITB reached p1 and nothing booted. The rootfs deploy is now pulled only when the layout is notab(the default rootfs.cpio ramfs carries the rootfs and apps in the ITB), andIB_RAMFS_SOURCE = "initrd"with theablayout skips bsp-linux at parse time with an explicit reason. The rootfs layout is unchanged. Checked ininfrabase-build:1.0: tinfoil showsdo_deploy[depends]unchanged by default and withinitrd, withoutrootfs-linux:do_deploywithIB_PARTITION_LAYOUT=ab;bitbake -n bsp-linux -c deployno longer schedules any rootfs-linux task on ab; initrd + ab givesbsp-linux was skipped: IB_RAMFS_SOURCE = "initrd" boots from a rootfs on p2, ...;bitbake -pstays clean.