On 02/05/2018 08:06 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee <tien.fong.c...@intel.com> > > cmd_ubifs_mount() function would be called directly instead of > involving whole command machinery for mounting ubifs in > generic firmware loader, so some checking codes need to be factored out > into cmd_ubifs_mount() without breaking original functionality design. > > Signed-off-by: Tien Fong Chee <tien.fong.c...@intel.com>
[...] > diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h > index 827dbfc..fb300e8 100644 > --- a/include/ubi_uboot.h > +++ b/include/ubi_uboot.h > @@ -76,5 +76,6 @@ extern int ubi_volume_read(char *volume, char *buf, size_t > size); > > extern struct ubi_device *ubi_devices[]; > int cmd_ubifs_umount(void); > +int cmd_ubifs_mount(char *vol_name); Swap these two -- mount first and umount seconds. With that Reviewed-by: Marek Vasut <ma...@denx.de> -- Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot