From: Tom Rini Date: Fri, 1 Apr 2016 16:53:57 -0400 Subject: [U-Boot] [PATCH] image-fit: Change FIT prefix for configurations In-Reply-To: <5cf027cfb8cb490a8c13408be1469100@APczBrno16.ysoft.local> References: <5cf027cfb8cb490a8c13408be1469100@APczBrno16.ysoft.local> Message-ID: <20160401205357.GE23166@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, Mar 17, 2016 at 02:05:59PM +0000, S?ren?k J?n wrote: > Instead of `bootm ${loadaddr}#conf at 1` > one uses `bootm ${loadaddr}_conf at 1` > > This fixes the bug with using just `bootm #conf at 2` > without $loadaddr where text starting with # is > interpreted as a comment. [snip] > diff --git a/doc/uImage.FIT/command_syntax_extensions.txt b/doc/uImage.FIT/command_syntax_extensions.txt > index 6c99b1c..ef4db80 100644 > --- a/doc/uImage.FIT/command_syntax_extensions.txt > +++ b/doc/uImage.FIT/command_syntax_extensions.txt > @@ -36,7 +36,7 @@ Old uImage: > New uImage: > 8. bootm > 9. bootm []: > -10. bootm []# > +10. bootm []_ > 11. bootm []: []: > 12. bootm []: []: []: > 13. bootm []: []: So the bug you've found is that we don't parse "bootm #conf at 2" correctly. We cannot change what has been working and is likely in the wild of "bootm ${loadaddr}#conf at 2". I think what we have to do here is correct the syntax file here to note that addr1 is not optional in that case and add a new form. I would first suggest seeing how it looks in code to have "bootm conf at 2" just work. If it ends up being too tricky or complex, "bootm _conf@" is OK as the new one. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: