Repository navigation
Install into free LwVM space on 32-bit boards - #99
Merged
Merged
Conversation
When the iOS disk's LwVM map has unallocated chunks stored back to back (at least the minimum root size, with room in LwVM's virtual space and a free descriptor), `orchard install` offers "create a Linux partition in free space", behind a typed confirmation that says iOS's acceptance of such an entry is untested. The host computes the new header (one Linux entry appended, its virtual range after the others, the free chunks mapped in order, CRC recomputed, parsed again); the add-on writes the copy at the end of the first chunk, then the primary, each read back; both are parsed again, and the kernel must re-read the table and add the partition where the plan has it before the root is written. No LwVM space is free on any iPad today (the resize tool does not shrink Data's entry yet), so the option does not appear yet. No device has run this write; its first device test waits until LwVM writes are shown safe for iOS (docs/bring-up/p105-lwvm-write.md). The allocation follows Shayne Legault's allocate() and the write order his commit_headers() in shaynelegault/orchard#94 (src/orchard/lwvm.py, src/orchard/install_lwvm.py at b5c804a). Co-authored-by: Shayne Legault <8741557+shaynelegault@users.noreply.github.com> Assisted-by: LLM
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.
What this changes, by effect:
orchard installoffers "create a Linux partition in free space". The person has to typecreate partition; the prompt says iOS's acceptance of such an entry is untested.Hidden until LwVM free space exists: no iPad has any today (the resize tool does not shrink Data's entry yet), so the option does not appear. Untested on hardware; the first device test waits until LwVM writes are shown safe for iOS (docs/bring-up/p105-lwvm-write.md). Tests use synthetic headers only.
The allocation and write order follow Shayne Legault's code in #94 (b5c804a), credited as co-author.