Browse Source

fix

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 3 months ago
parent
commit
d8dd0ab787
  1. 8
      arch/arm/mach-rockchip/boot_rkimg.c

8
arch/arm/mach-rockchip/boot_rkimg.c

@ -491,21 +491,23 @@ static int rockchip_read_distro_dtb(void *fdt_addr)
if (!rockchip_get_bootdev() || !fdt_addr)
return -ENODEV;
part_id = get_boot_part_num();
if (part_id > 0)
goto next;
if (run_command_list(cmd, -1, 0)) {
printf("Failed to find -bootable\n");
return -EINVAL;
}
part_id = get_boot_part_num();
if (part_id <= 0) {
devplist = env_get("devplist");
if (!devplist) {
part_id = 1;
} else {
part_id = strtoul(devplist, NULL, 16);
}
}
next:
devtype = env_get("devtype");
devnum = env_get("devnum");
sprintf(devnum_part, "%s:%d", devnum, part_id);

Loading…
Cancel
Save