Thanks to visit codestin.com
Credit goes to github.com

Skip to content

U-Boot: tftpboot doesn't load the second file #5

@abrodkin

Description

@abrodkin

The simplest example - load uImage and .dtb from TFTP server.
uImage gets loaded perfectly fine while .dtb transfer doesn't even start:

********************************
**       Synopsys, Inc.       **
**   ARC HS Development Kit   **
********************************
** IC revision: Rev 1.0
** Bootloader verbosity: Normal
** Starting HS Core 1
** HS Core running @ 500 MHz
** HS Core fetching application from SPI flash
** HS Core starting application
<debug_uart> 

U-Boot 2018.07 (Jul 13 2018 - 15:22:27 +0300)

DRAM:  1 GiB
Relocation Offset is: 3ef6e000
MMC:   Synopsys Mobile storage: 0
Loading Environment from FAT... OK
In:    serial0@f0005000
Out:   serial0@f0005000
Err:   serial0@f0005000
Clock values are saved to environment
Net:   eth0: ethernet@f0008000
Hit any key to stop autoboot:  0 
ethernet@f0008000 Waiting for PHY auto negotiation to complete.. done
Speed: 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.42.0.33 (257 ms)
Using ethernet@f0008000 device
TFTP from server 10.42.0.1; our IP address is 10.42.0.33
Filename 'uImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
         4.5 MiB/s
done
Bytes transferred = 21333710 (14586ce hex)

hsdk# tftp 0x84000000 hsdk.dtb
Speed: 100, full duplex
Using ethernet@f0008000 device
TFTP from server 10.42.0.1; our IP address is 10.42.0.33
Filename 'hsdk.dtb'.
Load address: 0x84000000
Loading: *
ARP Retry count exceeded; starting again

I can reproduce that on both HSDK and AXS103 with U-Boot 2018.07
Wireshark shows some garbage rarely on that network interface on host so that might be some problem with reinitialization of GMAC in U-Boot.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions