From mboxrd@z Thu Jan 1 00:00:00 1970 From: brendan Date: Thu, 23 Feb 2017 19:03:39 -0700 (MST) Subject: [U-Boot] How to validate ext4load file size (not null)? Message-ID: <1487901819664-282782.post@n7.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I have stored multiple device trees in my emmc (ext4 formatted) partition and I want to load a certain device tree file from emmc, but if this fails (i.e. the device tree file doesn't exist) it should default to a device tree that is stored in memory. For example if I run this: I get a return of: if test != null; then run ; else run ; fi I have seen the command however using the example above, if I did it does not set the filename environment variable therefore I cannot check the size as always returns true. I have tried other if statements such as: and they have not given me the true/false check that I am after. Does uBoot offer functionality for what I am after? or should I be approaching it with a different method. Thanks -- View this message in context: http://u-boot.10912.n7.nabble.com/How-to-validate-ext4load-file-size-not-null-tp282782.html Sent from the U-Boot mailing list archive at Nabble.com.