androidboot: boot the system without a/b avb
Support boot the system in the old mode, and there is no need to differentiate the _a or _b slot in the gpt table. Change-Id: I162e34a9bd0120db051f709faec06daf3bc0aa9c Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
b3b934b636
commit
bf17c6275d
|
|
@ -751,6 +751,20 @@ int do_avb_flow(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
strcat(root_data, command_line);
|
strcat(root_data, command_line);
|
||||||
env_set("bootargs", root_data);
|
env_set("bootargs", root_data);
|
||||||
android_avb_boot_flow(boot_slot_select, load_address);
|
android_avb_boot_flow(boot_slot_select, load_address);
|
||||||
|
} else if (verify_flag == 'o') {
|
||||||
|
load_address = CONFIG_SYS_LOAD_ADDR;
|
||||||
|
strcat(slot_partition[1], requested_partitions[1]);
|
||||||
|
ops->get_unique_guid_for_partition(ops,
|
||||||
|
slot_partition[1],
|
||||||
|
guid_buf,
|
||||||
|
guid_buf_size);
|
||||||
|
strcat(root_data, guid_buf);
|
||||||
|
command_line = android_assemble_cmdline(boot_slot_select,
|
||||||
|
mode_cmdline);
|
||||||
|
strcat(root_data, " ");
|
||||||
|
strcat(root_data, command_line);
|
||||||
|
env_set("bootargs", root_data);
|
||||||
|
android_boot_flow(load_address);
|
||||||
} else {
|
} else {
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue