Skip to contentSkip to conversation

How to validate ext4load file size (not null)?

U-Boot brendan 1 participant 1 message Feb 24, 2017

lore
Share & tools
lore

brendan

author
#0 lore raw

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.