ARM: imx: cm_fx6: env: support distro boot command
authorChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Sat, 9 Dec 2017 15:37:42 +0000 (16:37 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 3 Jan 2018 13:28:49 +0000 (14:28 +0100)
commit3ef5f6714ab1501247b227ffdcb5f37fd13c0bce
treefc94e727ada924c903007f278b3aa5644bc00758
parent6b79f71c8ee970635ac71d7a452d6b39a3db0e99
ARM: imx: cm_fx6: env: support distro boot command

The current default environment of the cm_fx6 is not suitable for
booting modern distributions.

Instead of extending the custom environment, let's use the distro
boot command, which has been developed for precisely this use case.

If the distro boot command fails, fall back to the old behavior
(except for USB drives where the old behaviour is completely covered
by the distro boot command). That way it is still possible to create
"rescue SD cards" for old installations (e.g. if one messes up the
on-flash environment).

Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
configs/cm_fx6_defconfig
include/configs/cm_fx6.h