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-Q1: TDA4VM-Q1

Part Number: TDA4VM-Q1

TDA4 EVM saveenv in Uboot is not saving the data as it is not able to get the right serverIP to do the booting through TFTP.

  • Hi Arun,

    Which SDK are you using? Also which Boot mode are you using for booting?
    Please share the commands you used to save the environment.

    Details will really help here.

    - Keerthy

  • Hi Keethi,

    Version : ti-processor-sdk-linux-j7-evm-08_00_00_08

    timeout 300
    verbose on
    expect {
    "stop autoboot:"
    }
    send " "

    expect {
    "=>"
    }
    send "env default -f -a"

    expect {
    "=>"
    }
    send "saveenv"

    expect {
    "=>"
    }
    send "reset"

    expect {
    "stop autoboot:"
    }
    send " "

    expect {
    "=>"
    }
    send "setenv serverip 192.168.0.109"

    expect {
    "=>"
    }
    send "setenv nfs_root /home/arunshankar/ti_sdk/targetNFS"

    expect {
    "=>"
    }
    send "setenv name_kern Image-j7-evm.bin"

    expect {
    "=>"
    }
    send "setenv bootcmd 'run findfdt; run envboot; run setup_${kern_boot}; run init_${rootfs_boot}; run get_kern_${kern_boot}; run get_fdt_${kern_boot}; run get_overlay_${kern_boot}; run run_kern'"

    expect {
    "=>"
    }
    send "setenv init_net 'run args_all args_net; setenv autoload no; dhcp'"

    expect {
    "=>"
    }
    send "setenv args_net 'setenv bootargs console=${console} ${optargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp'"

    expect {
    "=>"
    }
    send "setenv get_kern_net 'tftp ${loadaddr} ${name_kern}'"

    expect {
    "=>"
    }
    send "setenv get_fdt_net 'tftp ${fdtaddr} ${name_fdt}'"

    expect {
    "=>"
    }
    send "setenv get_overlay_net 'fdt address ${fdtaddr};fdt resize 0x100000;for overlay in ${overlay_files};do;tftp ${overlayaddr} ${overlay};fdt apply ${overlayaddr}; done'"

    expect {
    "=>"
    }
    send "setenv nfs_options 'nolock,v3,tcp,rsize=4096,wsize=4096'"

    expect {
    "=>"
    }
    send "setenv setup_mmc ''"

    expect {
    "=>"
    }
    send "setenv setup_net 'setenv autoload no; dhcp'"

    expect {
    "=>"
    }
    send "setenv kern_boot net"

    expect {
    "=>"
    }
    send "setenv rootfs_boot net"

    expect {
    "=>"
    }
    send "saveenv"

    expect {
    "=>"
    }
    send "boot"

    After boot server Ip is still old and it is not able to connect tftp server boot failing

  • Hi Arun,

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1031148/faq-tda4vm-u-boot-changes-in-sdk-8-0-vs-7-3

    8.0 SDK has changed saving environment from eMMC to SD. So check out above FAQ part 1)

    1) Environment is now saved to FAT partition of SD as against eMMC in the previous 7.3 version. This is to accommodate eaik boards that do not have eMMC.

    This should help you saving environment to eMMC properly.

    Can you try and get back if that helps your case?

    - Keerthy

  • So Should I rebuild u-boot and it should resolve it? Please clarify

  • Hi,

    Yes please revert that patch & rebuild u-boot and environment will be saved to eMMC as in previous 7.3 SDK version.

    I hope the instructions are clear:

    cd $PSDKLA/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89/
    git revert 20e7036ac9194b4ec8b0161b830d7f4f4d6db95f

    cd ../..
    make u-boot
    cp board-support/u-boot_build/r5/tiboot3.bin board-support/u-boot_build/a72/tispl.bin board-support/u-boot_build/a72/u-boot.img /media/$USER/boot/; sync

    Best Regards,
    Keerthy