Skip to content

Commit

Permalink
Check the presence of first-b.txt and try to boot ROOT-B first
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jul 7, 2019
1 parent bcf991d commit c122217
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys-boot/rockchip-uboot/files/boot.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ fi
echo "FDT: ${fdtfile}"
echo "Bootdevice: ${bootdevice}"

if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}/first-b.txt; then
echo "Found ${prefix}/first-b.txt, trying ROOT-B first"
setenv prefix /boot
setenv distro_bootpart 5
setenv bootdevice_part 5
run boot_extlinux
fi

# Scan ROOT-A
setenv prefix /boot/
setenv distro_bootpart 3
Expand Down

0 comments on commit c122217

Please sign in to comment.