From: Tom Rini Date: Thu, 13 Aug 2015 11:25:47 -0400 Subject: [U-Boot] [PATCH] ARM: OMAP5+: configs: Fix default boot command In-Reply-To: <55CCB260.70409@ti.com> References: <1439477798-21955-1-git-send-email-lokeshvutla@ti.com> <55CCB260.70409@ti.com> Message-ID: <20150813152547.GF25532@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 Thu, Aug 13, 2015 at 10:06:08AM -0500, Nishanth Menon wrote: > On 08/13/2015 09:56 AM, Lokesh Vutla wrote: > > The default boot command searches for dofastboot varaiable > > and does a fastboot if it is set to 1. > > But the condition "if test ${dofastboot} -eq 1" always > > returns true if dofastboot is not defined and breaking mmc boot. > > So make dofastboot as 0 by default and let the runtime > > environment set it if fastboot is required. > > > > Reported-by: Yan Liu > > Signed-off-by: Lokesh Vutla > > --- > > include/configs/ti_omap5_common.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h > > index fe04692..1c1f8c0 100644 > > --- a/include/configs/ti_omap5_common.h > > +++ b/include/configs/ti_omap5_common.h > > @@ -79,6 +79,7 @@ > > "vram=16M\0" \ > > "partitions=" PARTS_DEFAULT "\0" \ > > "optargs=\0" \ > > + "dofastboot=0\0" \ > > "mmcdev=0\0" \ > > "mmcroot=/dev/mmcblk0p2 rw\0" \ > > "mmcrootfstype=ext4 rootwait\0" \ > > > arch/arm/cpu/armv7/omap-common/boot-common.c sets it to one. so what is > the point of this? dra7_evm defines CONFIG_USB_FUNCTION_FASTBOOT -> so > it is setting up dofastboot blindly. > > Is'nt fixing the source of the issue a better thing to do than depending > on env default -a hoping to save us (which btw will only help opentest > farm). > > Looks like the code blindly assumes fastboot mode - which is weird! As I read things the problem is the env code which checks for dofastboot but due to HUSH annoyances evalues to true rather than false when we don't have dofastboot set. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: