u-boot-dey: ccimx6ul: sync boot script with new dualboot variables

U-Boot uses partition names instead of partition indexes for the nand devices.
This commit syncs the boot scripts with the new dualboot variables.

https://onedigi.atlassian.net/browse/CC6UL-1254

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2021-11-25 16:03:22 +01:00
parent b8d46f0120
commit 46f7d6a64c
2 changed files with 4 additions and 8 deletions

View File

@ -15,14 +15,12 @@ if test "${dualboot}" = "yes"; then
if test "${active_system}" = "linux_a"; then
echo "Booting from system A"
setenv mtdbootpart ${active_system}
setenv mtdlinuxindex ${mtdlinux_a_index}
setenv mtdrootfsindex ${mtdrootfs_a_index}
setenv mtdrootfspart ${rootfsvol_a}
setenv rootfsvol ${rootfsvol_a}
else
echo "Booting from system B"
setenv mtdbootpart ${active_system}
setenv mtdlinuxindex ${mtdlinux_b_index}
setenv mtdrootfsindex ${mtdrootfs_b_index}
setenv mtdrootfspart ${rootfsvol_b}
setenv rootfsvol ${rootfsvol_b}
fi
fi

View File

@ -15,14 +15,12 @@ if test "${dualboot}" = "yes"; then
if test "${active_system}" = "linux_a"; then
echo "Booting from system A"
setenv mtdbootpart ${active_system}
setenv mtdlinuxindex ${mtdlinux_a_index}
setenv mtdrootfsindex ${mtdrootfs_a_index}
setenv mtdrootfspart ${rootfsvol_a}
setenv rootfsvol ${rootfsvol_a}
else
echo "Booting from system B"
setenv mtdbootpart ${active_system}
setenv mtdlinuxindex ${mtdlinux_b_index}
setenv mtdrootfsindex ${mtdrootfs_b_index}
setenv mtdrootfspart ${rootfsvol_b}
setenv rootfsvol ${rootfsvol_b}
fi
fi