| #
9e98cd54 |
| 06-Dec-2024 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: Move common definitions to android_image.h
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ia582c71345c49f15d7b1195e34bdee6e588f0b13
|
| #
36e836f2 |
| 27-Feb-2023 |
Joseph Chen <chenjh@rock-chips.com> |
android: avb: Support verify resource.img for locked device
The resource.img is from android boot/recovery or resource partition.
The fit boot/recovery.img was already supported with fit verify mec
android: avb: Support verify resource.img for locked device
The resource.img is from android boot/recovery or resource partition.
The fit boot/recovery.img was already supported with fit verify mechanism.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I54243934b40325c08eefa4bacdee542ee8e81654
show more ...
|
| #
28317110 |
| 21-Oct-2022 |
Joseph Chen <chenjh@rock-chips.com> |
android: avb: Add init_boot support
== init-boot: This new init_boot partition contains the ramdisk the used to live in the boot partition. The boot partition will no longer contain that ramdisk.
i
android: avb: Add init_boot support
== init-boot: This new init_boot partition contains the ramdisk the used to live in the boot partition. The boot partition will no longer contain that ramdisk.
init_boot use android v4 header and is mandory from Android-13.
== avb with unlock: Don't process hash verify. Go pre-loaded path: Loading vendor_boot and init_boot directly to where they should be, while loading the boot/recovery. The boot message tells like: ··· preloaded: distribute image from 'boot_a' preloaded: distribute image from 'init_boot_a' preloaded: distribute image from 'vendor_boot_a' ···
== avb with lock: Process hash verify. Go pre-loaded path: Loading full vendor_boot, init_boot and boot/recovery one by one to verify, and distributing them to where they should be by memcpy at last.
The three images share a large memory buffer that allocated by sysmem_alloc(), it locate at high memory address that just lower than SP bottom. The boot message tells like: ··· preloaded: full image from 'boot_a' at 0xe47f90c0 - 0xe7a4b0c0 preloaded: full image from 'init_boot_a' at 0xeaff90c0 - 0xeb2950c0 preloaded: full image from 'vendor_boot_a' at 0xe87f90c0 - 0xe9f6e0c0 ···
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I9c8428eb9777eac81952971cfa97b783a7e71394
show more ...
|
| #
39bac655 |
| 06-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: Add android header v4 support
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: If36fde370263147b70b2eded83724678aeab07f9
|
| #
cf87ffd3 |
| 29-Sep-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
include: android_image: move some android common definitions to this file
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: Ia0da707408bcd43b50b49cef89495af7f9d97cd7
|
| #
e7498cb0 |
| 28-Sep-2020 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: show ramdisk size of boot and vendor-boot
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ia8eca7010989e64d10b09628a12bcfc5aaeb988c
|
| #
745aeb1a |
| 09-Sep-2020 |
Joseph Chen <chenjh@rock-chips.com> |
common: android: add boot_img_hdr_v3 and vendor boot support
Android Header v3 and vendor boot partition are introduced from Android-11(R).
Header populate: Header v3 is no longer compatible with
common: android: add boot_img_hdr_v3 and vendor boot support
Android Header v3 and vendor boot partition are introduced from Android-11(R).
Header populate: Header v3 is no longer compatible with v0/1/2 header, we add populate_andr_img_hdr() to merge boot and vendor_boot partition header into struct andr_img_hdr in order to compatible with v0/1/2 header.
resource.img: The second_addr and second_size fields are removed in v3, so we require resource partition to restore resource.img.
A/B system: If not A/B system, the boot.img header version is 3 and recovery header is version 2.
AVB load image: - If allow verification error: the image is loaded by ops->get_preloaded_partition() which auto populates boot_img_hdr_v3. - If not allow verification error: the image is full loaded by ops->read_from_partition() which doesn't populate boot_img_hdr_v3, we need to fix it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I2afce53c43d782fc57baa01acf9c05518b580840
show more ...
|
| #
43d520f3 |
| 05-Aug-2019 |
Alex Deymo <deymo@google.com> |
UPSTREAM: Update include/android_image.h from AOSP
This takes the latest changes from AOSP from the file include/bootimg/bootimg.h from the repository: https://android.googlesource.com/platform/syst
UPSTREAM: Update include/android_image.h from AOSP
This takes the latest changes from AOSP from the file include/bootimg/bootimg.h from the repository: https://android.googlesource.com/platform/system/tools/mkbootimg and update the U-Boot version with the latest changes.
This file keeps the changes from AOSP to a minimum: * Comments were converted from C++ to C style. * Code inside __cplusplus #ifdef blocks were removed. * C++11 struct extensions replaced with a single struct.
Change-Id: Ifdfa7cc365a28e45ab7f192c121b49f6da99af36 Signed-off-by: Alex Deymo <deymo@google.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Joseph Chen <chenjh@rock-chips.com> (cherry picked from commit 0b6febfdb3cf9b4a51fa65fbd94f9ab2d7738f32)
show more ...
|
| #
09f4e561 |
| 25-Jul-2018 |
Joseph Chen <chenjh@rock-chips.com> |
android: update android image header to support new version
mainly to support android P.
Change-Id: I34a49e4eedcde06a9e40792c7c908737dc10b426 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
210a7176 |
| 02-Apr-2017 |
Alex Deymo <deymo@google.com> |
image: Update include/android_image.h
Update the Android image header format to the latest version published in AOSP. The original code moved to a new repository, so this patch also updates the refe
image: Update include/android_image.h
Update the Android image header format to the latest version published in AOSP. The original code moved to a new repository, so this patch also updates the reference to that path.
Signed-off-by: Alex Deymo <deymo@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
c9afa7ce |
| 22-May-2014 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb
|
| #
9ace3fc8 |
| 05-May-2014 |
Sebastian Siewior <bigeasy@linutronix.de> |
image: add support for Android's boot image format
This patch adds support for the Android boot-image format. The header file is from the Android project and got slightly alterted so the struct + it
image: add support for Android's boot image format
This patch adds support for the Android boot-image format. The header file is from the Android project and got slightly alterted so the struct + its defines are not generic but have something like a namespace. The header file is from bootloader/legacy/include/boot/bootimg.h. The header parsing has been written from scratch and I looked at bootloader/legacy/usbloader/usbloader.c for some details. The image contains the physical address (load address) of the kernel and ramdisk. This address is considered only for the kernel image. The "second image" defined in the image header is currently not supported. I haven't found anything that is creating this.
v3 (Rob Herring): This is based on http://patchwork.ozlabs.org/patch/126797/ with the following changes: - Rebased to current mainline - Moved android image handling to separate functions in common/image-android.c - s/u8/char/ in header to fix string function warnings - Use SPDX identifiers for licenses - Cleaned-up file source information: android_image.h is from file include/boot/bootimg.h in repository: https://android.googlesource.com/platform/bootable/bootloader/legacy The git commit hash is 4205b865141ff2e255fe1d3bd16de18e217ef06a usbloader.c would be from the same commit, but it does not appear to have been used for any actual code. v4: - s/andriod/android/ - Use a separate flag ep_found to track if the entry point has been set rather than using a magic value.
Cc: Wolfgang Denk <wd@denx.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Tom Rini <trini@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|