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.

No command "findfdt" in the uboot for ARM core in K2H

Hello

In the "boot board" section of this link (here), it shows the setup procedure for the BeagleBone Black Board. However, I run this procedure in our K2H EVM. I cannot run boot_cmd successfully. the boot cmd is 

setenv bootcmd 'setenv autoload no; dhcp; run nfs_bootfile; run findfdt; run nfs_fdtfile; run netargs; bootz ${loadaddr} - ${fdtaddr}'

the command findfdt and netargs are not defined.

Can you help me to solve that?

Thanks

Xining Yu

  • Dear Xining Yu,
    What boot mode are you trying ?
    NFS ?
    For keystone boards , the step will be little bit different.

    env default -a
    setenv boot nfs
    saveenv
    boot
  • Yes, I am using NFS.

    Titusrathinaraj Stalin said:
    For keystone boards , the step will be little bit different.

    If you are saying there are some differences, can you help me to find a document or link to illustrate the uboot procedure for K2H evm by using Processor SDK Linux?

    What I can find is the procedure for BeagleBone Black Board the in this link ()

    Thanks
    Xining

  • Do you want to boot your board in NFS mode ?
    If yes,
    u-boot# env default -a
    u-boot# setenv boot net
    u-boot# saveenv

    We don't have wiki or document for booting the K2H EVM (for processor SDK Linux)

    Refer this.
    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    Please let me know what you are trying to do.
  • Hi Titus

    In short, I want to load my recompiled Linux kernel to K2H EVM by using tftp.

    First, according to this link (click here), I recompile the Linux kernel, and got two newly generated files: k2hk-evm.dtb and zImage.

    Second, I copied those two files to the NFS root folder.

    At last, I am following the BeagleBone Black uboot example to setup uboot procedure for K2H EVM. Just like you said, it does not work.

    Titusrathinaraj Stalin said:
    u-boot# env default -a
    u-boot# setenv boot net
    u-boot# saveenv

    I tired what you said. The minicom pops out "init_nfs" is not defined. So I think I need to setup the boot folder, boot file and etc settings to make the boot successful. Can you tell me those things?

    Titusrathinaraj Stalin said:

    I cannot find the TFTP booting procedure in this link.

    Thanks

    Xining Yu

  • Hi Titus

    I went through the Internet and I program the uboot by the following command.

    env default -f -a
    saveenv
    reset
    setenv serverip 10.203.6.199
    setenv tftp_root '/home/arrc-3190/ti-processor-sdk-linux-k2hk-evm-02.00.02.11/trainingNFS/boot'
    setenv nfs_root '/home/arrc-3190/ti-processor-sdk-linux-k2hk-evm-02.00.02.11/trainingNFS'
    setenv name_kern zImage
    saveenv
    setenv boot net
    saveenv
    boot

    The following is the output of minicom. It shows that there are two 'Access violation' happened. Check the permission of the directory, i.e., 777. The first error is for the file k2-fw-initrd.cpio.gz. However there is no such file in that folder.There are only two file in the root nfs path. One is zImage. Another one is k2hk-evm.dtb. I do not know why the uboot need k2-fw-initrd.cpio.gz.  Second is for the k2hk-evm.dtb, I do believe the file is over there.

    It seems like besides zImage and 2hk-evm.dtb, more files needs to put into the tftp boot folder. But what are they?

    U-Boot# boot
    
    K2HK_EMAC Waiting for SGMII auto negotiation to complete. done
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    DHCP client bound to address 10.203.7.240 (1027 ms)
    Using K2HK_EMAC device
    TFTP from server 10.203.6.199; our IP address is 10.203.7.240
    Filename '/home/arrc-3190/ti-processor-sdk-linux-k2hk-evm-02.00.02.11/trainingNFS/boot/k2-fw-initrd.cpio.gz'.
    Load address: 0x88080000
    Loading: *
    TFTP error: 'Access violation' (2)
    Not retrying...
    
    K2HK_EMAC Waiting for SGMII auto negotiation to complete. done
    BOOTP broadcast 1
    DHCP client bound to address 10.203.7.240 (63 ms)
    Using K2HK_EMAC device
    TFTP from server 10.203.6.199; our IP address is 10.203.7.240
    Filename '/home/arrc-3190/ti-processor-sdk-linux-k2hk-evm-02.00.02.11/trainingNFS/boot/k2hk-evm.dtb'.
    Load address: 0x88000000
    Loading: *
    TFTP error: 'Access violation' (2)
    Not retrying...
    

    Thanks

    Xining Yu

  • Dear Xining Yu,

    Have you setup the TFTP in your PC (10.100.1.15) ?
    I hope you are using ubuntu machine and I would like to suggest to refer the following link to setup the TFTP in your machine.
    askubuntu.com/.../how-do-i-install-and-run-a-tftp-server

    After that, copy your binaries into "/tftpboot" directory and try to do the following command to fetch the file from tftpboot directory to K2H RAM.

    Ex:
    u-boot# setenv ipaddr 10.100.1.10 (you can also get the IP from dhcp server by dhcp command) (its for target IP)
    u-boot# setenv serverip 10.100.1.15 (its your PC IP)
    u-boot# tftpboot 0x82000000 zImage

    Now, you check whether your uboot able to fetch the zImage from tftpboot directory of your PC.
  • To facilitate another people for asking the similar question. The attachment is the environment setup for k2hk-evm.

    2656.UbootEnv2.tar.gz

  • Dear Xining Yu,
    Able to boot from NFS & TFTP now ?
  • Yes, I do. I need to setup the environments showing in the above.
  • Sounds good.
    Thanks for sharing.