public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Richardson, Brian" <brian.richardson@intel.com>
To: Andrew Fish <afish@apple.com>, Guy Raviv <guyraviv8@gmail.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Creating my own flashing app
Date: Tue, 4 Dec 2018 14:21:35 +0000	[thread overview]
Message-ID: <80AC2BAA3152784F98F581129E5CF5AFBD71D3C8@ORSMSX112.amr.corp.intel.com> (raw)
In-Reply-To: <D36AFA63-8DBE-4C43-9DBE-5BDD0CE8CD9D@apple.com>

Guy:

I would follow Andrew's advice and investigate the use of Secure Capsule to implement SPI Flash Update. This is becoming the standard, and has a number of advantages (signed, OS independent, platform independent, compatible with fwupd.org & Windows Update workflow).

General information is on the TianoCore wiki:
https://github.com/tianocore/tianocore.github.io/wiki/Capsule-Based-Firmware-Update-and-Firmware-Recovery 

There is a capsule-based update app in EDK II:
https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Application/CapsuleApp

Thanks ... br
---
Brian Richardson -- Director, Firmware Ecosystem Development
brian.richardson@intel.com -- @intel_brian (Twitter & WeChat)
https://software.intel.com/en-us/meet-the-developers/evangelists/team/brian-richardson 

-----Original Message-----
From: edk2-devel <edk2-devel-bounces@lists.01.org> On Behalf Of Andrew Fish
Sent: Tuesday, December 4, 2018 1:35 AM
To: Guy Raviv <guyraviv8@gmail.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] Creating my own flashing app

On a secure platform you likely need to update using a secure capsule. 
https://github.com/tianocore/tianocore.github.io/wiki/Capsule-Based-Firmware-Update-and-Firmware-Recovery
 
The capsule is the standard method, and then all the FLASH update code is part of the ROM.

Generally since an EFI platform has NVRAM services in the NOR FLASH there is an SPI driver to write to FLASH.

So if your platform does not secure FLASH you can use the services from the ROM.
> On Dec 3, 2018, at 8:45 PM, Guy Raviv <guyraviv8@gmail.com> wrote:
> 
>   a whole SPI BIOS image.
> if i was not clear please tell me what i'm missing.
> 
> Thanks!
> Guy
> 
> 	Virus-free. www.avg.com
> 
>> On Tue, Dec 4, 2018 at 6:42 AM Andrew Fish <afish@apple.com> wrote:
>> Guy,
>> 
>> What are you trying to FLASH?
>> 
>> Thanks,
>> 
>> Andrew Fish
>> 
>> > On Dec 3, 2018, at 7:28 PM, Guy Raviv <guyraviv8@gmail.com> wrote:
>> > 
>> > Hi,
>> > 
>> > I want to create my own flashing utility.
>> > Is there any EDKII App/Utilities that can help me?
>> > 
>> > Thanks,
>> > Guy
>> > 
>> > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> > Virus-free.
>> > www.avg.com
>> > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> > _______________________________________________
>> > edk2-devel mailing list
>> > edk2-devel@lists.01.org
>> > https://lists.01.org/mailman/listinfo/edk2-devel
>> 
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


      reply	other threads:[~2018-12-04 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-04  3:28 Creating my own flashing app Guy Raviv
2018-12-04  4:42 ` Andrew Fish
2018-12-04  4:45   ` Guy Raviv
2018-12-04  4:57     ` Kevin D Davis
2018-12-04  6:35     ` Andrew Fish
2018-12-04 14:21       ` Richardson, Brian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80AC2BAA3152784F98F581129E5CF5AFBD71D3C8@ORSMSX112.amr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox