public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] How to validate ext4load file size (not null)?
@ 2017-02-24  2:03 brendan
  0 siblings, 0 replies; 2+ messages in thread
From: brendan @ 2017-02-24  2:03 UTC (permalink / raw)
  To: u-boot


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 <return from ext4load> != null; then run <boot
with device tree from ext4>; else run <nand read .dtb stored in memory>; 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [U-Boot] How to validate ext4load file size (not null)?
@ 2017-02-24  0:58 brendan
  0 siblings, 0 replies; 2+ messages in thread
From: brendan @ 2017-02-24  0:58 UTC (permalink / raw)
  To: u-boot

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:


Is there a way I can parse this return from ext4load to check if the size is
null or not null?

The aim (in pseudo code) is 

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-tp282781.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-24  2:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24  2:03 [U-Boot] How to validate ext4load file size (not null)? brendan
  -- strict thread matches above, loose matches on Subject: below --
2017-02-24  0:58 brendan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox