This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Not able to create boot partition

Part Number: AM625

Hi TI team,

I am working to create an partition on emmc for boot and rootfs but getting error while creating the boot partition. please find the below logs for your reference.

Method-1

=> setenv uuid_gpt_boot 42b18d48-d0de-4461-ad6a-b7cbe78996b5
=> setenv uuid_gpt_rootfs 38f4224a-dbf9-413a-85d6-1595e9efeecf
=> setenv partitions_boot name=boot,start=2048,size=32768,uuid=${uuid_gpt_boot}
=> setenv partitions_rootfs name=rootfs,start=34816,size=31045632,uuid=${uuid_gpt_rootfs}
=> gpt write mmc 0 ${partitions_boot}
Writing GPT: error!
=> gpt write mmc 0 ${partitions_rootfs}
Writing GPT: success!

Method-2

=> setenv uuid_gpt_boot a17e352b-649d-4df9-b470-14af5733d359
=> setenv partitions_boot name=boot,start=2048,size=32768,uuid=${uuid_gpt_boot}
=> gpt write mmc 0 ${partitions_boot}
Writing GPT: error!

  • Hi Saubhik,

    The whole partition layout needs to be given in one command.

    Following is the reference command to partition the eMMC UDA into two GPT partitions

    => setenv uuid_gpt_boot d39df892-87d6-4811-bb62-f5902c4cc75a
    => setenv uuid_gpt_rootfs 147f21e7-6f59-4ba9-a3ac-6a6b27759f57
    => setenv partitions 'name=boot,size=32768,uuid=${uuid_gpt_boot};name=rootfs,size=-,uuid=${uuid_gpt_rootfs}'
    => gpt write mmc 0 $partitions
    Writing GPT: success!

    The eMMC is successfully partitioned as shown

    => mmc part
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    Part    Start LBA       End LBA         Name
            Attributes
            Type GUID
            Partition GUID
      1     0x00000022      0x00000061      "boot"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   d39df892-87d6-4811-bb62-f5902c4cc75a
      2     0x00000062      0x01da3fde      "rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   147f21e7-6f59-4ba9-a3ac-6a6b27759f57
    => 

    Regards,

    Prashant

  • Hi 

    I am able to do partition as mentioned by you but not able to flash rootfs after that.

    please find below logs of host and target device

    1. Target device.

    => mmc part
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    Part    Start LBA       End LBA         Name
            Attributes
            Type GUID
            Partition GUID
      1     0x00000022      0x00000061      "boot"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   288be330-997a-482e-92bf-9a571725a9e2
      2     0x00000062      0x01da3fde      "rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   b97500e1-a8c7-4753-b03e-e747f92911f7
    => setenv dfu_alt_info ${dfu_alt_info_emmc}
    => dfu 0 mmc 0                                                                         
    generic_phy_get_bulk : no phys property                                                
    ##DOWNLOAD ... OK                                                                      
    Ctrl+C to exit ...                                                                     
    #####DOWNLOAD ... OK                                                                   
    Ctrl+C to exit ...
    ####DOWNLOAD ... OK
    Ctrl+C to exit ...
    Request would exceed designated area!

    2. Host logs

    $ sudo dfu-util -a rootfs -D tisdk-base.ext4
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #1 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[                         ]   0%            0 bytes failed!
    state(10) = dfuERROR, status(14) = Something went wrong, but the device does not know what it was

  • Hi Saubhik,

    The `dfu_alt_info_emmc`, by default, is set to flash rootfs to GPT partition 1. Since you have created the rootfs partition as GPT partition 2, you will have to edit the variable and change the "rootfs part 0 1" to "rootfs part 0 2" to flash Linux EXT4 filesystem.

    Regards,

    Prashant