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.

[FAQ] TDA4VM: How to boot from the emmc UDA partition in FS mode using SPL boot flow?

Part Number: TDA4VM

How can we boot from the emmc uda partition in the FS boot mode using SPL boot flow ?

  • Hi 

    If you want to boot from the UDA partion in FS mode please follow these steps.

    • Make the changes in the uboot to avoid boot in the raw mode

             .

    diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig
    index 34457c35d8..6af7f59cd3 100644
    --- a/configs/j721e_evm_r5_defconfig
    +++ b/configs/j721e_evm_r5_defconfig
    @@ -34,8 +34,8 @@ CONFIG_SPL_BOARD_INIT=y
     CONFIG_SPL_STACK_R=y
     CONFIG_SPL_SEPARATE_BSS=y
     CONFIG_SPL_EARLY_BSS=y
    -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
    -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
    +#CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set 
    +#CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not set
     CONFIG_SPL_DMA=y
     CONFIG_SPL_ENV_SUPPORT=y
     CONFIG_SPL_FS_EXT4=y
    diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
    index e71a862a6f..d4e6fc0b52 100644
    --- a/configs/j721e_evm_a72_defconfig
    +++ b/configs/j721e_evm_a72_defconfig
    @@ -33,8 +33,8 @@ CONFIG_SPL_BOARD_INIT=y
     CONFIG_SPL_SYS_MALLOC_SIMPLE=y
     CONFIG_SPL_STACK_R=y
     CONFIG_SPL_SEPARATE_BSS=y
    -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
    -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
    +#CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set 
    +#CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not set
     CONFIG_SPL_DMA=y
     CONFIG_SPL_ENV_SUPPORT=y
     CONFIG_SPL_I2C_SUPPORT=y

    • Build the uboot and copy tiboot3.bin,tispl,u-boot.img to the sd card boot partition also copy mksdboot.sh script which you can find in the linux sdk at location j721e/ti-processor-sdk-linux-j7-evm-08_04_00_11/bin
    • Boot upto the uboot using sd boot mode .
    • Halt at UBOOT and run 
      •  mmc partconf 0 1 7 1
      • mmc bootbus 0 2 0 0
    • Now Boot upto Linux
    • Run mksdboot.sh script
      • mkdir /mnt/sd
      •  mount /dev/mmcblk0p1 /mnt/sd
      • cd /mnt/sd
      • ./mksdboot.sh --device /dev/mmcblk0
    • Now copy all the boot binaries from the boot partition of the sd card to the uda boot partion of the emmc 
      • mkdir /mnt/emmc
      • mount /dev/mmcblk1p1 /mnt/emmc/
      • cp /mnt/sd/* /mnt/emmc
    • Change the boot mode to emmc(user)
      • SW8[1:8]=1000_0000  SW9[1:8]=0000_0000
    • Power on the board 

    NOTE:With these changes you will not be able to use emmc raw mode If you want to use revert the above mentioned changes

    Regards
    Diwakar