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.

AM335x Starter Kit network boot

Hi friends,

     I am working on Starter kit, I am able to boot board using SD card.

     Know I am trying to boot board using network(TFTP,NFS), But on this board NAND flash is not present

    For booting the board I run "setup.sh" script. and Select NFS and TFTP options in place of SD card.

    but not able to boot kit.

   Please suggest me steps to be follow for booting Starter kit from Network.

  Regards

  Vishal Rana

  • Hi Biser,

       For changing the SYSBOOT resistor setting on Starter Kit.

       I thing I have to make changes on any file, I am not aware of that. Please tell the location of file.

      Thanks

      Vishal Rana

  • Vishal,

    If you need to entirely boot the board from the network, then you have to follow Biser's instructions and change the boards SYSBOOT pins values.

    If you are only interested in booting the kernel and file system from the network after U-Boot has been loaded from the SD card, then no hardware changes are needed. What you need to do once you reach U-Boot is:

    setenv bootfile uImage-3.2.0 (this is the uImage name inside the /tftp folder on your host PC)
    setenv serverip <your_host_pc_ip_address>
    setenv rootpath /home/users/<your_user_name>/ti-sdk-am335x-evm-05.05.00.00/targetNFS
    run netboot

    I assume your "netboot" command inside U-Boot looks like this:

    printenv netboot
    # netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${kloadaddr} ${bootfile}; run netargs; bootm ${kloadaddr}

    Best regards,
    Miroslav

  • Hello
    I do have a AM335x starter kit, latest ti-processor-sdk-linux-am335x-evm-03.01.00.06, and Ubuntu 16.04 LTS(VM).
    I am interested in booting the kernel and file system from the network(TFTP, NFS).
    The booting is fine with a SD card but it is not from the network. I used the script (setup.sh) with the proper options(TFTP, NFS) to create bin/setupBoard.minicom. Here is the error message I am having:

    => boot
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    DHCP client bound to address 192.168.1.84 (1054 ms)
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.216.128; our IP address is 192.168.1.84; sending throug
    h gateway 192.168.1.254
    Filename 'zImage-am335x-evm.bin'.
    Load address: 0x82000000
    Loading: T T T T T T T T T T T T T T T T T T T T
    Retry count exceeded; starting again
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.216.128; our IP address is 192.168.1.84; sending throug
    h gateway 192.168.1.254
    Filename 'am335x-evmsk.dtb'.
    Load address: 0x88000000
    Loading: T T T T T T T T T T T T T T T T T T T T
    Retry count exceeded; starting again
    Bad Linux ARM zImage magic!

    Here are the variables in u-boot:

    bootcmd=run findfdt; run getuenv; setenv autoload no;dhcp; setenv serverip 192.1
    68.216.128;tftp ${loadaddr} zImage-am335x-evm.bin; tftp ${fdtaddr} ${fdtfile}; r
    un netargs; bootz ${loadaddr} - ${fdtaddr}

    loadaddr=0x82000000

    fdtaddr=0x88000000

    fdtfile=am335x-evmsk.dtb

    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${se
    rverip}:${rootpath},${nfsopts} rw ip=dhcp

    serverip=192.168.216.128

    rootpath=/home/bb/AM335x/targetNFS

    nfsopts=nolock,v3,tcp,rsize=4096,wsize=4096

    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimag
    e; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}

    netloadimage=tftp ${loadaddr} ${bootfile}

    netloadfdt=tftp ${fdtaddr} ${fdtfile}


    I tried to
    1)set the serverip manually in 'bootcmd' to prevent DHCP from overwriting it.
    2) run netboot

    But still having an issue.

    Would you please let me what I am missing?

    Thank you,

    BB