-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support header_version up to version 2 #7
base: master
Are you sure you want to change the base?
Commits on Aug 18, 2022
-
Fix allocation size when extracting second stage
This needs to be ssize, not ksize.
Configuration menu - View commit details
-
Copy full SHA for 8b5acb9 - Browse repository at this point
Copy the full SHA 8b5acb9View commit details -
create: fix random ENOENT error when looking for block device
When creating a new image, if the stat fails with ENOENT we need to not check if it is a block device, we now do that randomly if the `S_ISBLK(st.st_mode)` check happens to pas with uninitialized `st`.
Configuration menu - View commit details
-
Copy full SHA for dca107d - Browse repository at this point
Copy the full SHA dca107dView commit details -
We need to skip the ramdisk as well to get to the second part.
Configuration menu - View commit details
-
Copy full SHA for 198f1d3 - Browse repository at this point
Copy the full SHA 198f1d3View commit details -
Fix output of second stage size in info
It was using the ramdisk size
Configuration menu - View commit details
-
Copy full SHA for f58c45c - Browse repository at this point
Copy the full SHA f58c45cView commit details -
Add some helper for reading and writing image parts
This means less duplicated code, especially when we later add support for more parts.
Configuration menu - View commit details
-
Copy full SHA for e654023 - Browse repository at this point
Copy the full SHA e654023View commit details -
Import bootimg.h with v2 support
This imports bootimh.h from upstream commit e55998a0f2b61b685d5eb4a486ca3a0c680b1a2f, which has added v2 support. (File is: https://android.googlesource.com/platform/system/tools/mkbootimg/+/e55998a0f2b61b685d5eb4a486ca3a0c680b1a2f/include/bootimg/bootimg.h) The upstream version was C++, so the struct derivation like: struct boot_img_hdr_v1 : public boot_img_hdr_v0 { uint32_t recovery_dtbo_size; ... Was changed to: struct boot_img_hdr_v1 { struct boot_img_hdr_v0 v0; uint32_t recovery_dtbo_size; ... To make this work in C.
Configuration menu - View commit details
-
Copy full SHA for b911faf - Browse repository at this point
Copy the full SHA b911fafView commit details -
Support header_version 1 and 2
This adds support for the "recovery dtbo" and "dtb" parts in the header. Whenever we add a feature from the later versions we update the header version, but we never go backwards with versions. New headers start as version 1, so will only become 1 or 2 as needed. We also display some new information from v0 headers that were not shown before (os version, header version), as well as the new data in the v1 and v2 headers.
Configuration menu - View commit details
-
Copy full SHA for af692c7 - Browse repository at this point
Copy the full SHA af692c7View commit details -
This builds and inspects some images in various ways and checks that we get the right results.
Configuration menu - View commit details
-
Copy full SHA for ec0bd0c - Browse repository at this point
Copy the full SHA ec0bd0cView commit details