Flashing eMMC over UART Debian SDK

Forums Devices OSD32MP15x Flashing eMMC over UART Debian SDK

Viewing 1 reply thread
  • Author
    Posts
    • #14660
      Palmer FryePalmer Frye
      Participant

        Hello,

        We have built a custom board utilizing the OSD32MP157c.   We have utilized the Debian SDK to successfully modify the device tree and configure the kernel for our application.

        Currently we are booting from an SD card which is working well.  However, we would like to flash the eMMC over the uart4 interface.  We did not populate any USB ports on our hardware so that is not currently an option.

        Utilizing STM32CubeProgrammer and a USB-UART cable we are able to  start the flashing process but it fails on partition ID 0x03 everytime,fip-stm32mp157c-osd32mp1-red-v1_2-trusted.bin

        I am using  layout file FlashLayout_sdcard_stm32mp157c-osd32mp1-red-v1_2-trusted.tsv, which i modified to use the uart version of tf-a that i found in bootloader/arm-trusted-firmware-2.4/deploy

        #Opt Id Name Type IP Offset Binary

        – 0x01 fsbl1-boot Binary none 0x0 tf-a-stm32mp157c-osd32mp1-red-v1_2-uart.stm32

        – 0x03 fip-boot Binary none 0x0 fip-stm32mp157c-osd32mp1-red-v1_2-trusted.bin

        P 0x04 fsbl1 Binary mmc0 0x00004400 tf-a-stm32mp157c-osd32mp1-red-v1_2-sdcard.stm32

        P 0x05 fsbl2 Binary mmc0 0x00044400 tf-a-stm32mp157c-osd32mp1-red-v1_2-sdcard.stm32

        P 0x06 fip Binary mmc0 0x00084400 fip-stm32mp157c-osd32mp1-red-v1_2-trusted.bin

        P 0x21 boot System mmc0 0x00484400 octavo-bootfs-debian-lxqt-stm32mp157c-osd32mp1-red-v1_2.ext4

        P 0x22 vendorfs FileSystem mmc0 0x04484400 octavo-vendorfs-debian-lxqt-stm32mp157c-osd32mp1-red-v1_2.ext4

        P 0x23 rootfs FileSystem mmc0 0x05484400 octavo-rootfs-debian-lxqt-sdcard-stm32mp157c-osd32mp1-red-v1_2.ext4

         

      • #14674
        Neeraj Kumar Reddy DantuNeeraj Dantu
        Moderator

          Palmer,

          Apologies for the late reply.

          The Flashlayout file format for SD card is different from the Flahslayout file for eMMC. Please take a look at Section 3 of this page: https://wiki.st.com/stm32mpu-ecosystem-v3/wiki/STM32CubeProgrammer_flashlayout#Typical_FlashLayout_file_with_FIP. Also note that the mmc interface used looks like mmc0. Make sure that your mmc interface is correct. Once you replace the Flashlayout file with the one for eMMC and chose the right mmc interface, this flashing procedure over UART should work.

           

          Best,

          Neeraj

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.