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.

Is there a simple way to know the target is using remote NFS?

Other Parts Discussed in Thread: AM3358

Hi,

Though it looks like the target (AM3358 SK board) uses remote NFS, I am not sure about it. It was once noticed that I can copy files from a host folder to a NFS folder, which could be seen at the target terminal. Now I can not see this after a file copy, even though the Linux boot looks like the target using NFS at the host.

What command/procedure can be used for a file copy from host to the target on a NFS setup?

Thanks,

  • Hi,
    Use "mount" command to check how filesystem get mounted.
    Also, we have to check the bootargs.
    cat /proc/cmdline

    If you see anything like "root=/dev/nfs" then it would mount the fs via NFS.

    Can you please provide the bootup log?
  • Hi,

    The message of your suggestion is:

    root@am335x-evm:~# cat /proc/cmdline
    root=/dev/mmcblk0p2 rootwait console=ttyO2,115200

    When the SK board reboot, there are below such messages. From the 'TFTP' and .bin file name word, it looks like it loads kernel from host computer. But from the

    SD card LED (D4, on) at the end of the below message, it looks like the kernel is reading from SD memory. I have attached the uENV.txt file for the investigation. The above blue lines also show (file system, not kernel? I am a little puzzled from these different info sources).

    Could you help tell me what is wrong for NFS at the remote host?

    Thanks,

    0876.uEnv.txt

    Broadcast message from root@am335x-evm (ttyS0) (Wed Jul  8 02:50:50 2015):
    The system is going down to maintenance mode NOW!
    root@am335x-evm:~# cpsw, usb_ether
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    340 bytes read in 4 ms (83 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    ## Error: "find" not defined
    cpsw Waiting for PHY auto negotiation to complete. done
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.0.109; our IP address is 192.168.0.112
    Filename 'zImage-am335x-evm.bin'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###
             1.6 MiB/s
    done
    Bytes transferred = 4337552 (422f90 hex)
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.0.109; our IP address is 192.168.0.112
    Filename 'am335x-evmsk.dtb'.
    Load address: 0x82d80000
    Loading: ########
             1.4 MiB/s
    done
    Bytes transferred = 36445 (8e5d hex)

    ## Checking Image at 82d80000 ...
       FIT image found
    Bad FIT image format!
    Kernel image @ 0x82000000 [ 0x000000 - 0x422f90 ]
    ## Flattened Device Tree blob at 82d80000
       Booting using the fdt blob at 0x82d80000
       Loading Device Tree to 8e713000, end 8e71ee5c ... OK

    Starting kernel ...

  • Hi Jeff,

    SD card LED (D4, on) at the end of the below message, it looks like the kernel is reading from SD memory. I have attached the uENV.txt file for the investigation. The above blue lines also show (file system, not kernel? I am a little puzzled from these different info sources).


    You are right, your board is getting kernel image and dtb file from TFTP server (host) and mount filesystem on SD card.

    If you want to mount filesystem via NFS then you should setup NFS server on Linux host machine and need to modify the bootargs.

    You may need the bootargs like below.
    setenv bootargs 'console=ttyO2,115200n8 rootwait=1 rootfstype=nfs root=/dev/nfs rw nfsroot=10.110.1.120:/home/titus/workdir,v3,tcp,rsize=4096,wsize=4096 ip=dhcp'

    You have to add this bootargs in uEnv.txt file.

    Please refer to the following TI wiki pages.

    processors.wiki.ti.com/.../NFS_Setup
    processors.wiki.ti.com/.../Linux_Host_Configuration_-_Ubuntu
    processors.wiki.ti.com/.../AM335x_U-Boot_User's_Guide#Environment_Settings_for_NFS_Filesystem