From 078930b7c764fd722e19cb075706d4ea7dac6edd Mon Sep 17 00:00:00 2001 From: cfig Date: Thu, 27 Oct 2022 14:14:44 +0800 Subject: [PATCH] correct document typos --- README.md | 22 +++++++++++++--------- doc/layout.md | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a701ead..224ece1 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,19 @@ Then flash vbmeta.img.signed to your device. +
+ + How to merge init_boot.img into boot.img + +* unpack init_boot.img and copy out "build/unzip_boot/root". +* clear workspace by `gradle clear`, then unpack boot.img +* copy back the "build/unzip_boot/root" +* edit build/unzip_boot/boot.json +- change `ramdisk.size` to 1 +- change `ramdisk.file` from "build/unzip_boot/ramdisk.img" to "build/unzip_boot/ramdisk.img.lz4" + +
+ ## boot.img layout Read [boot layout](doc/layout.md) of Android boot.img and vendor\_boot.img. Read [miac layout](doc/misc_image_layout.md) of misc\.img @@ -268,12 +281,3 @@ This project is developed with products by Jetbrains. - -How to merge init_boot.img into boot.img: -* unpack init_boot.img and copy out "build/unzip_boot/root". -* clear workspace by `gradle clear`, then unpack boot.img -* copy back the "build/unzip_boot/root" -* edit build/unzip_boot/boot.json -- change `ramdisk.size` to 1 -- change `ramdisk.file` from "build/unzip_boot/ramdisk.img" to "build/unzip_boot/ramdisk.img.lz4" - diff --git a/doc/layout.md b/doc/layout.md index 2b2ea82..f7f23e4 100644 --- a/doc/layout.md +++ b/doc/layout.md @@ -120,7 +120,7 @@ For partitions: `/boot` and `/init_boot`. |
| 4 (value in [3|4]) | |--------------------------------+--------------------------| --> 44 | | 1024+512=1536 | - |--------------------------------+--------------------------| --> 44 + |--------------------------------+--------------------------| --> 1580 | (v4 only) | 4 | |--------------------------------+--------------------------| --> 1584 | | min(n * page_size |