Skip to content

Replace non-vendor-boot unpack_bootimg.py invocations with a C++ implementation#2203

Merged
Databean merged 5 commits intogoogle:mainfrom
Databean:unpack_boot_image
Mar 2, 2026
Merged

Replace non-vendor-boot unpack_bootimg.py invocations with a C++ implementation#2203
Databean merged 5 commits intogoogle:mainfrom
Databean:unpack_boot_image

Conversation

@Databean
Copy link
Copy Markdown
Member

unpack_bootimg.py was called to extract the kernel command line arguments and the ramdisk, unnecessarily extracting the kernel. The ramdisk in the original boot image seems to be empty anyway.

It also required launching a new process and invoking the python interpreter.

Bug: b/488486740

It created files with no permissions.

Bug: b/488486740
This supports creating a view of a `ReadWriteFilesystem` makes a
subdirectory look like the root directory.

Bug: b/488486740
This information is otherwise reported by unpack_bootimg.py

Bug: b/488486740
The full extract is now only used for the gem5 flow. Otherwise the
repacker only needs the kernel command line and the ramdisk.

Bug: b/488486740
@Databean Databean requested a review from jemoreira February 28, 2026 02:55
@Databean
Copy link
Copy Markdown
Member Author

FYI @rmuthiah

@Databean
Copy link
Copy Markdown
Member Author

Databean commented Mar 2, 2026

Thanks for reviewing!

@Databean Databean added this pull request to the merge queue Mar 2, 2026
Merged via the queue into google:main with commit a43ad7d Mar 2, 2026
26 checks passed
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