Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

DRA821U: Partition and Format eMMC with ext4 in u-boot

Part Number: DRA821U
Other Parts Discussed in Thread: UNIFLASH

Hi TI

There's a request that customer wants to clarify.

Custom board will have eMMC only for storage device. 

We're able to download bootloader using UniFlash for now. 

Then eMMC need to be partitioned and formatted as ext4 before copying Root filesystem.

Could you please let us know how to partition and format eMMC with ext4 file format on u-boot runnning  ?

Thanks.

Regards,

Jack

  • Hi Jack,

    Did you take a look at Section 5.3 in the app note: https://www.ti.com/lit/an/spracy5/spracy5.pdf ?

    Regards

    Karan

  • Hi Karan

    Than ks for quick reply.

    Yes, Customer also already checked the chapter 5.3 below.

    They want the flash method for factory production. Currently DFU, u-boot_CCS/JTAG methods are not accepted by Customer environment. 

    They're trying to find a way to partition and ext4 format before Flashing. 

    SDK document describe a way available under Linux Running using mksdboot.sh.

    We would like to know the way from u-boot or boot from Network to partition and format in Target environment.

    Are you able to suggest a way to eMMC partition and ext4 format when u-boot is only running on eMMC. It need to re-partition as separated with boot and user partitions and format the user partition as ext4.

    They are under investigation eMMC flashing method from u-boot and network boot environment.

    If impossible from u-boot only, TFTP Network booting will be required for Linux running to execute partition and format script. right?

    Thanks.

    Regards, 

    Jack 

  • Hi Jack,

    We do not have a factory flashing solution but some tools can be used.

    If you have option to do dfu boot then you can use that to get to u-boot and then write partition table using "gpt write mmc 0 ${partitions} " and then use dfu to flash the file system as well. The format of the filesystem will automatically make the partition as ext4.

    Some information also available on thread - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/995426/tda4vm-rootfs-flashing-using-dfu-util 

    Regards

    Karan