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.

PROCESSOR-SDK-AM335X: TFTP boot issue

Part Number: PROCESSOR-SDK-AM335X


Hello,

I am trying boot the am355x-evm board using TFTP & NFS but i am not able to get the proper processor or might i am missing something in that processor so please help me out of the issue. and The below  processor I am following please find that.

NETWORK BOOTING
===============================================================================================================================================
TFTP
-----------------------------------------------------------------------------------------------------------------------------------------------
step1)sudo apt-get install tftpd
step2)create a folder called tftp
step3)Make a file in /etc/xinit.d/tftp
copy the below contents
----------------------------------------------------------------------------------------------------------------------------------------------
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /home/chethan/tftp (This is my zImage file where i created path)
#       disable                 = yes
        per_source              = 11
        cps                     = 100 2
}
----------------------------------------------------------------------------------------------------------------------------------------------
NOTE:- change the path of server_args to the tftp folder created above
                         
step4)copy the uImage in the tftp folder created.
step5)sudo service xinetd restart
==============================================================================================================================================
NFS
----------------------------------------------------------------------------------------------------------------------------------------------
step1)sudo apt-get install nfs-kernel-server
step2)create a folder as rootfs
step3)copy your rootfs in this rootfs folder
step4)Go to /etc/exports
step5)copy the content below
----------------------------------------------------------------------------------------------------------------------------------------------
/home/chethan/rootfs 192.168.0.50/255.255.255.0(rw,no_root_squash,no_all_squash,sync,no_subtree_check)

my path
----------------------------------------------------------------------------------------------------------------------------------------------
NOTE:-change the path /home/dell.... to your rootfs and change the ip to your board ip
step6)sudo service nfs-kernel-server restart
===============================================================================================================================================

copy MLO and u-boot.img in the first partition of your sd-card, stop in uboot and run the below commands in your development board

setenv ipaddr 192.168.0.50 (MY am335x-evm Board IP address)
setenv serverip 192.168.0.22 (MY PC/LAPTOP IP address)
tftpboot 0x80007FC0 zImage (AFTER THIS I AM GETTING ERROR MESSAGE LIKE THIS IN THE BELOW )
setenv bootargs console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.0.22:/home/chethan/rootfs ip=192.168.0.22:::::eth0
bootm 0x80007FC0

setenv bootargs 'console=ttyO0,115200n8 noinitrd rw root=/dev/nfs nfsroot=192.168.0.22:/home/chethan/tftp,nolock ip=dhcp

====================================================================================================

ERROE MESSAGE

U-Boot 2016.05-g340c262b4b (Dec 28 2017 - 20:06:10 +0530)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
       Watchdog enabled
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Could not get PHY for ethernet@4a100000: addr 0
eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is         de:ad:be:ef:00:01
Address in environment is  04:a3:16:f9:77:03
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=> setenv ipaddr 192.168.0.50
=> setenv serverip 192.168.0.22
=> tftpboot 0x80007FC0 uImage
Using ethernet@4a100000 device
TFTP from server 192.168.0.22; our IP address is 192.168.0.50
Filename 'uImage'.
Load address: 0x80007fc0
Loading: *
Abort
=> setenv ipaddr 192.168.0.50  
=> setenv serverip 192.168.0.22
=> tftpboot 0x80007FC0 zImage  
Using ethernet@4a100000 device
TFTP from server 192.168.0.22; our IP address is 192.168.0.50
Filename 'zImage'.
Load address: 0x80007fc0
Loading: *
ARP Retry count exceeded; starting again
=>

  • Hi,

    You're U-Boot is extremely old. Can you please update to the latest processor SDK and try that U-Boot?

    Can you also describe your development environment a little more? How are you connecting the two together? Can you ping from U-Boot to the PC?

    Thanks.

  • Hello,

    I tried in that beagle bone block above steps it is working find but i need to do it in  am335x_evm boards but problem is

    "U-Boot 2016.05-g340c262b4b (Jan 09 2018 - 02:46:58 +0530)

    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
           Watchdog enabled
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    Net:   Could not get PHY for ethernet@4a100000: addr 0

    Warning: ethernet@4a100000 MAC addresses don't match:
    Address in SROM is         04:a3:16:f9:77:01
    Address in environment is  68:c9:0b:ed:ec:19
    eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in SROM is         de:ad:be:ef:00:01
    Address in environment is  68:c9:0b:ed:ec:1b
    , eth1: usb_ether
    Press SPACE to abort autoboot in 2 seconds
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.22; our IP address is 192.168.0.100
    Filename 'zImage'.
    Load address: 0x82000000
    Loading: * "

    In that PHY is getting

    so explain me where i have to change that phy in the U-boot file and how ?

    NOTE: my board phy is 07 (davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver SMSC LAN8710/LAN8720) I MAKE THIS BOARD WORKS IN DTB and all files.

    Thanks

  • Hello,

    I'm sorry, this thread seems to have gone unreplied to for a while. 

    Are you still facing this issue?

    Thank you,

    Ron