Skip to content

Burning_firmware

semihalf-wojtas-marcin edited this page Mar 13, 2022 · 4 revisions

Burning the firmware

Prepare prerequisites

Download prebuilt Semihalf released image:

EDK2 SH 1.0: CN913x-DB

EDK2 SH 1.0: MacchiatoBin

EDK2 SH 1.1: CN913x CEx7 Evaluation Board

or build your own image by following instruction from: Build instructions

Update firmware from u-boot:

Please follow instructions from SolidRun documentation.

Update firmware from EDK2:

  1. Copy the image onto USB stick and insert it into the board.

  2. Enter 'UEFI Shell' by pressing ESC at boot process and selecting "Boot Manager" -> "UEFI Shell" from UEFI UI.

  3. Find the filesystem with the image:

    Shell> ls fs0:
    [...]
    Shell> ls fs3:
    Directory of: fs3:\
    03/08/2022  10:22           2,339,056  flash-image.bin
              1 File(s)   2,339,056 bytes
              0 Dir(s)
    
    
  4. fupdate is a custom command for updating raw firmware image (i.e. flash-image.bin binary) in a boot media of choice. SPI, MMC or SD storage devices are supported. Available media can be listed as below:

    Shell> fupdate list
    Handle  Path
    spi     spi
    A4      VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00006EF00000000000)/eMMC(0x0)/Ctrl(0x0)
    A5      VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00006EF00000000000)/eMMC(0x0)/Ctrl(0x1)
    A6      VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00006EF00000000000)/eMMC(0x0)/Ctrl(0x2)
    AA      VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,000078F20000000000)/SD(0x0)
    
  5. Burn the image using 'fupdate' command. Refer to help fupdate contents for details. Example:

    fupdate fs3:flash-image.bin spi
    

Capsule update

The standard, generic signed capsule update is fully supported in the upstream EDK2 code base of Marvell SoC's. For more details, please refer to official materials.