TDA4AL-Q1: [UBoot]How to modify the code to load the Linux rootfs image from eMMC by default

Part Number: TDA4AL-Q1

Tool/software:

Subject:  

 

Hi Sir,

            The UBoot of the TI-SDK J721s2  is to load the Linux rootfs image from SD Card by default.

 

We can run below UBoot command to change  from eMMC.

            TARGET => setenv mmcdev 0

            TARGET => setenv bootpart 0

            TARGET => boot

Now, we need a permanent solution that modifies the code to load the Linux rootfs image from eMMC by default.

Could you please provide guidance on how to modify the U-Boot code to achieve this?

 

It's important to note that our hardware board has the EEPROM removed, rendering the "saveenv" command ineffective.

 

Thank you for your time and assistance.

B.R.

SanHsin Kuo

  • Hi Kuo,

    The below steps can help in saving these configurations permanently:

    1:A default uEnv.txt file is present in the <LINUX_SDK FOLDER>/board-support/prebuilt-images.

    2:You can add these variables to the default uEnv.txt file by adding the following lines;

    mmcdev=0

    bootpart=0

    3:Copy this uENV.txt files to the fat32 partition of UDA partition of eMMC.

    Can you just try these and check if it is working.

    Also could help us with the linux sdk version you are using?

    Regards

    Gokul