LS1088ARDB/LS1088ARDB-PB - How to update MC firmware, DPC, and DPL images on SD card

Document created by Swati Gupta Employee on Oct 11, 2018Last modified by Swati Gupta Employee on Nov 29, 2018
Version 20Show Document
  • View in full screen mode

Follow these steps to update the DPAA2 MC firmware, DPC, and DPL images on the SD card. 

 

Compiling MC firmware

Clone the qoriq-mc-binary repository.

  1. git clone https://github.com/NXP/qoriq-mc-binary.git
  2. $ cd qoriq-mc-binary/ls1088a/
  3. $ git checkout LSDK-<LSDK version>. For example, $ git checkout LSDK-18.09

The prebuilt MC firmware image, mc_10.10.0_ls1088a_20180814.itb, is available at qoriq-mc-binary/ls1088a/.

Note that the exact name of the MC firmware image may vary depending on the release version used.                 

Compiling DPC and DPL images

Clone the mc-utils repository and compile the DPC and DPL images.

  1. git clone https://source.codeaurora.org/external/qoriq/qoriq-components/mc-utils
  2. cd mc-utils/
  3. $ git checkout LSDK-<LSDK version>. For example, $ git checkout LSDK-18.09
  4. If required, make changes to the DPC and DPL files.
  5. make -C config/

The compiled dpc.0x1D-0x0D.dtb and dpl-eth.0x1D_0x0D.dtb images are available at /mc-utils/config/ls1088a/RDB/.

Note that the exact name of the DPL and DPC images may vary depending on the release version used.            

SD card start block number for MC, DPL, and DPC images

 

Image SD card start block number
DPAA2 MC firmware0x05000 = 20480
DPAA2 DPL 0x06800 = 26624
DPAA2 DPC0x07000 = 28672

Refer the Layerscape Software Development Kit <version> Documentation for complete listing of the SD card start block numbers for all LSDK firmware images.   

Programming MC, DPC, and DPL images to SD card

  1. Plug the SD card into the Linux host.
  2. Run the following commands on the Linux host:
    1. To update MC firmware:

      sudo dd if=mc_10.10.0_ls1088a_20180814.itb of=/dev/sdX bs=512 seek=20480 conv=fsync

    2. To update DPL image:

      sudo dd if=dpl-eth.0x1D_0x0D.dtb of=/dev/sdX bs=512 seek=26624 conv=fsync

    3. To update DPC image:

      sudo dd if=dpc.0x1D-0x0D.dtb of=/dev/sdX bs=512 seek=28672 conv=fsync

      Use the command cat /proc/partitions to see a list of devices and their sizes to make sure that the correct device names have been chosen.

       

      The SDHC storage drive in the Linux PC is detected as /dev/sdX, where X is a letter such as a, b, c. Make sure to choose the correct device name, because data on this device will be replaced.

       

      If your Linux host machine supports read/write SDHC card directly without an extra SDHC card reader device, the device name of SDHC card is typically  mmcblk0.  

  3. Remove the SD card from the Linux host machine.
  4. On the LS1088ARDB/LS1088ARDB-PB, ensure that the switches are set to boot the board from the SD card. 
    • For booting from SD card, SW1[1:8] + SW2[1] = 0010_0000_0 
  5. Plug the SD card into the board and boot the board to Ubuntu.

If U-Boot does not find LSDK on the SD card, it will boot TinyDistro from lsdk_linux_arm64_ tiny.itb stored on the SD card.

1 person found this helpful

Attachments

    Outcomes