From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mx.groups.io with SMTP id smtpd.web09.17436.1618423950454502346 for ; Wed, 14 Apr 2021 11:12:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P8q+gvW0; spf=pass (domain: gmail.com, ip: 209.85.218.43, mailfrom: pintu.ping@gmail.com) Received: by mail-ej1-f43.google.com with SMTP id e14so32780687ejz.11 for ; Wed, 14 Apr 2021 11:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CDYbsXtCQgg/btF1EcR2URqc8dfHGiilsGIhzo1FfmQ=; b=P8q+gvW0IrNS0a+lvCAlCjkSyyk4wQVUewHTide7UhlPFMb5WdSZ5GJaKmp0Ujc7XZ IWTPHMTThSizlJyMnxRyqwNYH7Un95G53ZicesXk0iHmZoCJ27rR3SpLfRV+uxslLhxN MAXmptM7gn4L+9nFpPeuRuMTLGMTtYPGkpLCrheFWNvydljLPBbnRBU8D4JOv3izD8wJ fX/4//JVDBSvJB/9xf4hfhiWZpBKefGpAR33veo9vBgC+XSpM0iZEw9fzX69VD4ezNnN h+gM1jONHbL0UkOSJ3zKO55YSlZ4wD45Pu9GnZ1Viyi3w9NGSYXHgTqbFSqh7kJ88h+5 34kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CDYbsXtCQgg/btF1EcR2URqc8dfHGiilsGIhzo1FfmQ=; b=OdxUk+v1jAZT2dDUElglJ66V0LDjc59dZ3cxDNa7joF6Udb1DQOAc0pMdHGzIBStLE W4FKATJn6XOS8x4NGqrtcFhEW0jv3WpOjZCEx+HYhXBGzLKCCNhSRiZDTVyBdb7faSae M73CEa6jhpeO5eoZFjrQuRlrCIYx31hBKBD3N5Lb/c6UWoyVnK5RMmnKxMcTMM+Z412e qiIFA5CnF88vAdbWLQWHKcfiZbHP4Ytf732tt10TsUqtVBUAlymgpZG5A+3mucgYUw/U XvgWFkLSBjmjmxvzq5LMLyJ5bf4JpJqSvYNRjho/XJgtdQc93tzu6z+UQ1q7mCzJkqS5 Nu3g== X-Gm-Message-State: AOAM531c18NbvVN5biahrrFn1h8Wt9YyWoiCyQkKVPLUy3teGyyBThHW Ks/5Pw2MLql7wsFkMEtq5iqiZ91nPpMRBA3G2uI= X-Google-Smtp-Source: ABdhPJxFDJqDtjT19hhhYZvVt6FVslAZK9QN8IoNw01SFC37cT5XyGqrgB9aXNsTGyRlvzvgYYeTN2O6B3n0UFmgUOw= X-Received: by 2002:a17:906:49d3:: with SMTP id w19mr182878ejv.116.1618423949026; Wed, 14 Apr 2021 11:12:29 -0700 (PDT) MIME-Version: 1.0 From: Pintu Agarwal Date: Wed, 14 Apr 2021 23:42:16 +0530 Message-ID: Subject: [EDK2 / UEFI]: Support for flashing ubi-volume using fastboot To: edk2-devel@lists.01.org, devel@edk2.groups.io Content-Type: text/plain; charset="UTF-8" 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