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.

CCS/EVMK2H: Fail to burn the u-boot form TFTP

Part Number: EVMK2H
Other Parts Discussed in Thread: OMAPL138

Tool/software: Code Composer Studio

Hi,

I follow TI website Proccess SDK 06_01_00_08 section "1.1.4.5 Programming the bin files" to burn the u-boot form TFTP.

In my previous post . I'm successful on section"Load and Run U-Boot on keystone EVMs using CCS "

https://e2e.ti.com/support/tools/ccs/f/81/t/884927

but  I try to burn u-boot form TFTP . It seems to fail ,because nothing came up on UART.

I set up TFTP configure on ubuntu16_04.

Here is  what I input:

=> env default -f -a
## Resetting to default environment
=> setenv serverip 192.168.1.4
=> setenv tftp_root /home/study/tftpboot
=> run get_uboot_net

netcp@2000000 Waiting for SGMII auto negotiation to complete. done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17
BOOTP broadcast 18
BOOTP broadcast 19
BOOTP broadcast 20
BOOTP broadcast 21
BOOTP broadcast 22
BOOTP broadcast 23
BOOTP broadcast 24
BOOTP broadcast 25
BOOTP broadcast 26
BOOTP broadcast 27
BOOTP broadcast 28
BOOTP broadcast 29
BOOTP broadcast 30
BOOTP broadcast 31
BOOTP broadcast 32
BOOTP broadcast 33
BOOTP broadcast 34
BOOTP broadcast 35
BOOTP broadcast 36
BOOTP broadcast 37
BOOTP broadcast 38
BOOTP broadcast 39
BOOTP broadcast 40
BOOTP broadcast 41
BOOTP broadcast 42
BOOTP broadcast 43
BOOTP broadcast 44
BOOTP broadcast 45
BOOTP broadcast 46
BOOTP broadcast 47
BOOTP broadcast 48
BOOTP broadcast 49
BOOTP broadcast 50
BOOTP broadcast 51
BOOTP broadcast 52
BOOTP broadcast 53
BOOTP broadcast 54
BOOTP broadcast 55
BOOTP broadcast 56
BOOTP broadcast 57
BOOTP broadcast 58
BOOTP broadcast 59
BOOTP broadcast 60
BOOTP broadcast 61
BOOTP broadcast 62
BOOTP broadcast 63
BOOTP broadcast 64
BOOTP broadcast 65
BOOTP broadcast 66
BOOTP broadcast 67
BOOTP broadcast 68
BOOTP broadcast 69
BOOTP broadcast 70
BOOTP broadcast 71
BOOTP broadcast 72
BOOTP broadcast 73
BOOTP broadcast 74
BOOTP broadcast 75
BOOTP broadcast 76
BOOTP broadcast 77
BOOTP broadcast 78
BOOTP broadcast 79
BOOTP broadcast 80
BOOTP broadcast 81
BOOTP broadcast 82
BOOTP broadcast 83
BOOTP broadcast 84

Retry time exceeded; starting again
=> run burn_uboot_spi
SF: Detected n25q128a11 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
SF: 1048576 bytes @ 0x0 Erased: OK
device 0 whole chip
SF: 16777216 bytes @ 0x0 Written: OK

When I restart the power , nothing came up on .So I think maybe my TFTP has something wrong,

So I try to set ip address and ping to see TFTP connection is OK or not.It seems that connection of TFTP is OK

=> setenv ipaddr 192.168.1.20
=> setenv serverip 192.168.1.4
=> setenv tftp_root /home/study/tftpboot
=> ping 192.168.1.4

netcp@2000000 Waiting for SGMII auto negotiation to complete. done
Using netcp@2000000 device
host 192.168.1.4 is alive

But it seems to fail to burn, nothing came up on UART when restart.

1,Is it OK that UART print so many “”BOOTP broadcast “”?

2,Do I need to others configuration for TFTP download ?Do I miss something?

Best Regards

Jacky

  • Hi, Jacky,

    If tftp failed, don't try to burn it to spi. You destroyed what was in NOR with garbage in memory. You will need to use CCS to recover. Your tftp failed with bootp messages means it failed to contact the tftp server. Do you have tftp server set up? Have you verify that evm can reach tftp server?

    Rex

  • Hi,Rex

    I don't think setup of tftp server is wrong. I'm successful  to transfer a sample file to  my other evaluation board with omapl138.

    I try to others command to transfer

    => tftp u-boot-spi-k2hk-evm.gph

    it seems OK

    Do I need other configure for  "# run get_uboot_net"  command ?

    Best Regards

    Jacky

  • Hi, Jacky,

    You can tell the 2 posts have different output. The first showing BOOTP packets are not responded by server. That's server set up issue. The 2nd post doesn't show bootp messages any more. Somehow, server is responding. You can take a look at the scripts and see what they are doing. "get_uboot_net" does a dhcp to transfer file which acquires IP address first. tftp download skips getting IP address for the EVM, but you need to set ipaddr first. 

    Your 2nd post shows download and burn successfully. Do you still have issues?

    Rex

  • Hi,Rex 

    I burn u-boot successfully with tftp ,It is OK for me have solution to burn.

    1,I confuse that why "get_uboot_net" won't work.

    I alse burn .ubi successfully ,but it came error message on UART

    2,I using arago-base-tisdk-image-k2hk-evm.ubi which prebuild in ti-processor-sdk-linux-k2hk-evm-06.01.00.08.

    Do you have about this error? Or any document about that?

    Sorry for ask new question in this thread.

    Best Regards

    Jacky

  • Jacky,

    1. It may have something to do with your DHCP,/BOOTP server setups. Apparently, the server is not responding to BOOTP request to assign an IP address to the EVM, while using tftp you use static IP address.

    2. It may have something to do with NTP configuration, but that shouldn't affect kernel operation.

    Yes, please submit new questions in different threads which will be able to search for related issues in the future.

    Rex

  • Hi Rex,

    Thanks for your  support.

    Best Regards

    Jacky