public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [EDK2 / UEFI]: Support for flashing ubi-volume using fastboot
@ 2021-04-14 18:12 Pintu Agarwal
  2021-04-14 19:34 ` [edk2-devel] " Andrew Fish
  0 siblings, 1 reply; 6+ messages in thread
From: Pintu Agarwal @ 2021-04-14 18:12 UTC (permalink / raw)
  To: edk2-devel, devel

Hi,

I am new to EDK2 and UEFI.
I am working on an ARM32 embedded Linux board that supports NAND and UBI images.
I have several partitions in my system images, and some partitions
have sub-volumes.
I am looking for help on how to support flashing ubi-volumes directly
using the fastboot flash method.

I see that our EDK2 does not have a mechanism to flash ubi-volumes.
But the underlying UEFI code, have support for ubi-volume.
{{{
UEFI Code flow:
ubi_flasher_write(...)
{
[...]
        if (hdl->is_it_volume) {
                result = ubi_flasher_vol_write(hdl);
                if (result != 0)
                        goto End;
        } else {
                result = ubi_flasher_ubi_write(hdl);
                if (result != 0)
                        goto End;
        }
[...]
}
}}}

When I tried to invoke ubi_flasher_write from EDK2, by passing the
ubifs volume name, instead of PartitionName, it does not work (crash).

Thus I am wondering, what needs to done at EDK2 (and how) to invoke
this ubi volume write at uefi.
Or, is there some functionality missing at the UEFI layer itself ?

Please provide some suggestions on this.

Thanks,
Pintu

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

end of thread, other threads:[~2021-04-15 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-14 18:12 [EDK2 / UEFI]: Support for flashing ubi-volume using fastboot Pintu Agarwal
2021-04-14 19:34 ` [edk2-devel] " Andrew Fish
2021-04-14 19:41   ` Michael Brown
2021-04-15 11:00     ` Laszlo Ersek
2021-04-15 17:47       ` Pintu Agarwal
2021-04-15 17:56         ` Andrew Fish

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