From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 27 Mar 2015 10:19:55 -0400 Subject: [U-Boot] [PATCH v3 3/3] fastboot: ARM: OMAP5: Enable reboot-bootloader In-Reply-To: <1427236492-18032-3-git-send-email-dileep.katta@linaro.org> References: <1427236492-18032-1-git-send-email-dileep.katta@linaro.org> <1427236492-18032-3-git-send-email-dileep.katta@linaro.org> Message-ID: <20150327141955.GG32541@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 25, 2015 at 04:04:52AM +0530, Dileep Katta wrote: > Implemented fb_set_reboot_flag() for OMAP5 to set > an environment variable 'dofastboot' when reboot-bootloader called. > > This environment variable will be checked in boot command and fastboot > will be called if the variable is set. > If the bootcmd env variable of OMAP5 common is overwritten with board-specific > command, then these changes will not apply. [snip] > + printf("Setting reboot to fastboot flag ...\n"); > + setenv("dofastboot", "1"); > + saveenv(); > + udelay(60); [snip] > #define CONFIG_BOOTCOMMAND \ > + "if test ${dofastboot} -eq 1; then " \ > + "echo Boot fastboot requested, resetting dofastboot ...;" \ > + "setenv dofastboot 0; saveenv; sleep 1;" \ > + "echo Booting into fastboot ...; fastboot;" \ No. When saveenv returns environment is saved. If it doesn't there's a bug that must be addressed. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: