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.

TDA4VM: Can I access data on SD card in the Uboot environment ?

Part Number: TDA4VM

Hi,

We want to update the firmware in the Uboot environment, so we need to access ext4 for rootfs partition and vfat partition for BOOT on the SD card.
Is there any relevant information available for reference?

1. ext4 

2. vfat

  • Hi Allen,

    you can try the following:

    fatwrite mmc 0 <addr> <filename> <size>

    this will write contents from <addr> in the memory with given size to a file <filename> on the FAT partition.

    Basically this is copying from RAM to SD card.

    You can read:

    fatload mmc 0 <loadaddr> <filename>

    this copies contents of the file to RAM.

    There is a similar interface to EXT4 partitions: ext4write/ext4load.

    Regards,

    Yordan

  • Hi Yordan,

    mmc list
    sdhci@4f80000: 0 (eMMC)
    sdhci@4fb0000: 1 (SD)

    So I need to change the parameter from 0 to 1, then the command can work correctly.

    fatls mmc 1

    Thank you for your help.