From beececb0d8d12e84dc872105dbb95244f81773c4 Mon Sep 17 00:00:00 2001 From: kszaq Date: Sat, 19 Mar 2016 00:55:59 +0100 Subject: [PATCH] projects/Amlogic: Reset uenv before applying new values. Allow to boot from NAND. --- projects/Amlogic/install/aml_autoscript.src | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/Amlogic/install/aml_autoscript.src b/projects/Amlogic/install/aml_autoscript.src index 1b1e0e4a6ff..4e1855b6769 100644 --- a/projects/Amlogic/install/aml_autoscript.src +++ b/projects/Amlogic/install/aml_autoscript.src @@ -1,3 +1,7 @@ -setenv bootcmd 'if mmcinfo; then if fatload mmc 0 ${loadaddr} kernel.img; then setenv bootargs ${bootargs} bootfromsd; bootm; fi; fi; run storeboot' +defenv +setenv bootfromnand 0 +setenv bootfromsd 'if test ${bootfromnand} = 1; then setenv bootfromnand 0; saveenv; exit; fi; if test ${reboot_mode} = switch_system; then exit; fi; if mmcinfo; then if fatload mmc 0 ${loadaddr} kernel.img; then setenv bootargs ${bootargs} bootfromsd; bootm; fi; fi' +setenv bootcmd 'run bootfromsd; run storeboot' setenv cecconfig cecf +setenv reboot_mode normal saveenv