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.

SK-TDA4VM: Needing NFS example environment "setenv" variables to bootup my SK-TDA4VM via NFS

Part Number: SK-TDA4VM

Dear Support:

I have been able to bootup my SK-TDA4VM and run from the SD card and use the console output via minicom - no issues.  I have run the setup script./setup from the Linux SDK by following the directions here:

https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_04_00_11/exports/docs/linux/Overview/Run_Setup_Scripts.html

Where I designed that I wanted to bootup via TFTP and use NFS.  I have followed all the documentation on what all needs to be done to get NFS running with my Ubuntu v18.04 laptop and can TFTP the necessary files such as:

tftp 0x82000000 Image-j7-evm.bin

tftp 0x81200000 k3-j721e-common-proc-board.dtb

and using the following:

https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_04_00_11/exports/docs/linux/Overview/Processor_SDK_Linux_Formatting_SD_Card.html

I am able to create my SD card which defaults to using the SD card to bootup the board even though I ran the setup script to tell it to boot from TFTP and use NFS. 

Since my board is booting up from the SD card and I want to use NFS, I don't see any example NFS "setenv" statements that I can use to get it running on my board.  I have been on the e2e forum and looked at all the NFS posts that are available, but they don't provided details on what are the "setenv" statements I need to execute from boot so that my board will bootup via NFS.  Can you provide this for me so I can enter the necessary variables and "saveenv" so my board will bootup using NFS?

And so I don't trash any existing environment variables, please provide the necessary "setenv" values I need to use so that if I want to go back to booting up from my SD card, I can enter those values and boot my board via the SD card.

Thanks,
Tim 

  • Dear Support:

    More specifically, what does the "bootargs" and the "bootcmd" values need to be and any other setenv values I need to boot from NFS and SD card?

    Thanks,
    Tim

  • Dear Support:

    Just FYI - this is the best e2e post I found to address this issue:

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/vision_apps/docs/user_guide/RUN_INSTRUCTIONS.html#run_steps_linux_nfs

    However upon implementing this, I get this output:

    => setenv boot nfs
    => boot

    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    0 bytes read in 1 ms (0 Bytes/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ## Error: "init_nfs" not defined
    ## Error: "get_kern_nfs" not defined
    ## Error: "get_fdt_nfs" not defined
    ## Error: "get_overlay_nfs" not defined
    ## Flattened Device Tree blob at 88000000

       Booting using the fdt blob at 0x88000000

       Loading Device Tree to 000000008fee3000, end 000000008fffffff ... OK

     Starting kernel ...

    "Synchronous Abort" handler, esr 0x02000000
    elr: 00000000037ee000 lr : 00000000808024dc (reloc)
    elr: 0000000082ed0000 lr : 00000000ffee44dc
    x0 : 000000008fee3000 x1 : 0000000000000000
    x2 : 0000000000000000 x3 : 0000000000000000
    x4 : 0000000082000000 x5 : 0000000000000001
    x6 : 0000000000000008 x7 : 0000000000000000
    x8 : 00000000fdeade50 x9 : 0000000000000002
    x10: 000000000a200023 x11: 0000000000000002
    x12: 0000000000000002 x13: 00000000fdec1e06
    x14: 00000000fdeade50 x15: 00000000ffee3a3c
    x16: 00000000fff2ef80 x17: 0000000000000000
    x18: 00000000fdec1df0 x19: 00000000fffe2b70
    x20: 0000000000000000 x21: 0000000000000400
    x22: 0000000000000003 x23: 00000000fdecc418
    x24: 00000000fdecc418 x25: 00000000fffcbc78
    x26: 0000000000000000 x27: 00000000ffee4504
    x28: 00000000fdecc440 x29: 00000000fdead3b0

    Code: 00000000 00000000 00000000 00000000 (cccccccc) 

    Resetting CPU ...

    resetting ...

    U-Boot SPL 2021.01-ga169f42610 (Aug 30 2022 - 09:35:44 +0000)
    Model: Texas Instruments J721E SK R5
    Board: J721EX-EAIK rev A1
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...

    Any idea as to what is the problem here?

    Thanks,
    Tim

  • Dear Support:

    Please disregard - I figured this out from searching around.  I found that the file "setupBoard.minicom" in my <SDK>/bin directory had all the entries I needed for supporting NFS as a result of me running the ./setup.sh file and selecting NFS from earlier.  I was expecting this to get incorporated into the uEnv.txt file when I formatted my SD card with the new settings, but that didn't happen.  So I just took the entries from this file and hand entered them into my settings from boot and then did a saveenv and boot and it worked.  So I'm good to go now with NFS.

    Thanks,
    Tim