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:
parent
b8d46f0120
commit
46f7d6a64c
|
|
@ -15,14 +15,12 @@ if test "${dualboot}" = "yes"; then
|
||||||
if test "${active_system}" = "linux_a"; then
|
if test "${active_system}" = "linux_a"; then
|
||||||
echo "Booting from system A"
|
echo "Booting from system A"
|
||||||
setenv mtdbootpart ${active_system}
|
setenv mtdbootpart ${active_system}
|
||||||
setenv mtdlinuxindex ${mtdlinux_a_index}
|
setenv mtdrootfspart ${rootfsvol_a}
|
||||||
setenv mtdrootfsindex ${mtdrootfs_a_index}
|
|
||||||
setenv rootfsvol ${rootfsvol_a}
|
setenv rootfsvol ${rootfsvol_a}
|
||||||
else
|
else
|
||||||
echo "Booting from system B"
|
echo "Booting from system B"
|
||||||
setenv mtdbootpart ${active_system}
|
setenv mtdbootpart ${active_system}
|
||||||
setenv mtdlinuxindex ${mtdlinux_b_index}
|
setenv mtdrootfspart ${rootfsvol_b}
|
||||||
setenv mtdrootfsindex ${mtdrootfs_b_index}
|
|
||||||
setenv rootfsvol ${rootfsvol_b}
|
setenv rootfsvol ${rootfsvol_b}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,12 @@ if test "${dualboot}" = "yes"; then
|
||||||
if test "${active_system}" = "linux_a"; then
|
if test "${active_system}" = "linux_a"; then
|
||||||
echo "Booting from system A"
|
echo "Booting from system A"
|
||||||
setenv mtdbootpart ${active_system}
|
setenv mtdbootpart ${active_system}
|
||||||
setenv mtdlinuxindex ${mtdlinux_a_index}
|
setenv mtdrootfspart ${rootfsvol_a}
|
||||||
setenv mtdrootfsindex ${mtdrootfs_a_index}
|
|
||||||
setenv rootfsvol ${rootfsvol_a}
|
setenv rootfsvol ${rootfsvol_a}
|
||||||
else
|
else
|
||||||
echo "Booting from system B"
|
echo "Booting from system B"
|
||||||
setenv mtdbootpart ${active_system}
|
setenv mtdbootpart ${active_system}
|
||||||
setenv mtdlinuxindex ${mtdlinux_b_index}
|
setenv mtdrootfspart ${rootfsvol_b}
|
||||||
setenv mtdrootfsindex ${mtdrootfs_b_index}
|
|
||||||
setenv rootfsvol ${rootfsvol_b}
|
setenv rootfsvol ${rootfsvol_b}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue