| /rk3399_rockchip-uboot/include/ |
| H A D | android_bootloader_message.h | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
| H A D | android_bootloader.h | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
| /rk3399_rockchip-uboot/common/ |
| H A D | android_bootloader.c | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
| H A D | Kconfig | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
| H A D | Makefile | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
| /rk3399_rockchip-uboot/ |
| H A D | README | 67dac67453c08a760320a21ccd076abd47c9c9f1 Wed Nov 09 20:04:28 UTC 2016 Alex Deymo <deymo@google.com> Initial support for the Android Bootloader flow
An Android Bootloader must comply with certain boot modes and change the kernel command line accordingly. This patch introduces the Android boot mode concept which determines whether the device should boot to one of the following: * recovery: which should boot to the recovery image, * bootloader: which should boot to the "bootloader" (fastboot) and * normal: which should boot to the system image.
The boot mode is determined in part by the Boot Control Block (BCB) which is stored at the beginning of the "misc" partition. The BCB is defined in the "bootloader_message.h" file in AOSP, now copied here as android_bootloader_message.h with minor modifications.
This patch implements the basic boot flow that loads and boots an Android kernel image assuming an A/B device which implies that it uses boot as recovery (BOARD_USES_RECOVERY_AS_BOOT in the BoardConfig.mk). This means that the recovery image shares the same kernel with the normal boot system image, but stores the recovery image as a ramdisk which is not used in normal mode.
Among the limitations, this patch doesn't implement the A/B slot selection, it only boots from the slot "a".
Bug: 31887729 Test: Booted a rpi3 with this flow.
Signed-off-by: Alex Deymo <deymo@google.com> Change-Id: Ia2932c6f398f1ae713f0cd9670828f84103dca38 update setenv/getenv to env_set/env_get. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|