[#3941] execute "tftp" in uboot with ethernet cable unplugged, it will crash.

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#3941] execute "tftp" in uboot with ethernet cable unplugged, it will crash.

Submitted By: Vivi Li

Open Date

2008-02-27 05:10:35     Close Date

2008-02-27 05:22:35

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

Duplicated

Is the bug repeatable?:

N/A     

Summary: execute "tftp" in uboot with ethernet cable unplugged, it will crash.

Details:

 

Unplug ethernet cable from ethernet port. When system bootup, execute "tftp" command in uboot in bf537-stamp, it will crash.

If I execute "tftp" command and unplug ethernet cable, then execute "tftp" command again, it will not crash.

 

Below is the log:

--

U-Boot 1.1.6-svn1150 (ADI-2008R1) (Feb 27 2008 - 14:40:23)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:42:80

I2C:   ready

Hit any key to stop autoboot:  0

bfin>

bfin>

bfin> print

bootcmd=run ramboot

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

hostname=1

loadaddr=0x1000000

ubootfile=u-boot.bin

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethact=Blackfin EMAC

ethaddr=00:e0:22:fe:42:80

ramboot=tftp $(loadaddr) linux;run ramargs;run addip;boote

bootdelay=2

mmcargs=setenv bootargs root=2401 rw

mmcboot=tftpboot 0x1000000 vmlinux; run mmcargs; run addip; bootelf

filesize=23ae8

fileaddr=1000000

gatewayip=10.100.4.174

netmask=255.255.255.0

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

serverip=10.100.4.174

ipaddr=10.100.4.50

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1059/8188 bytes

bfin> tftp 0x1000000 linux

Link is down, please check your network connection

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x1000000

Loading: *

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 00002024  IPEND: 3fc00c4  SYSCFG: 0032

  HWERRCAUSE: 0x0

  EXCAUSE   : 0x24

  physical IVG6 asserted : <0x03fc07a0> { _evt_default + 0x0 }

  physical IVG7 asserted : <0x03fc07a0> { _evt_default + 0x0 }

RETE: <0x16401128> { ___smulsi3_highpart + 0x12427a28 }

RETN: <0x74100048> { ___smulsi3_highpart + 0x70126948 }

RETX: <0x03fcb04a> { _bfin_EMAC_send + 0x72 }

RETS: <0x03fc8350> { _NetSendUDPPacket + 0xd4 }

PC  : <0x03fc00c4> { _start + 0xc4 }

DCPLB_FAULT_ADDR: <0x5a5a1a5e> { ___smulsi3_highpart + 0x565c835e }

ICPLB_FAULT_ADDR: <0x03fcb04a> { _bfin_EMAC_send + 0x72 }

 

PROCESSOR STATE:

R0 : 00000000    R1 : 03fe6780    R2 : 0000002a    R3 : 00000000

R4 : 00000018    R5 : ae04640a    R6 : 03fe3bce    R7 : 00000042

P0 : 03fe67aa    P1 : 03f601b0    P2 : 5a5a1a5f    P3 : 03fe4504

P4 : 03fe865c    P5 : 03f5c000    FP : 00000034    SP : 03f5b9f0

LB0: 03fc7796    LT0: 03fc7794    LC0: 00000000

LB1: 03fc65ae    LT1: 03fc65a8    LC1: 00000000

B0 : 0a0d6b31    L0 : 00000000    M0 : ac6d627f    I0 : 000000ae

B1 : 2295918f    L1 : 00000000    M1 : 5fe9243f    I1 : 03fe67ac

B2 : 650d45fb    L2 : 00000000    M2 : 6cc9a321    I2 : 40814c5f

B3 : ade0087d    L3 : 00000000    M3 : 43d53335    I3 : 4d850c55

A0.w: 387906ae   A0.x: 00000000   A1.w: 0000c72f   A1.x: 00000000

USP : 6d8d0c0f  ASTAT: 02001024

 

Hardware Trace:

   0 Target : <0x03fc04f8> { _bfin_panic + 0x0 }

     Source : <0x03fc06cc> { _trap_c + 0x198 }

   1 Target : <0x03fc06c2> { _trap_c + 0x18e }

     Source : <0x03fc054e> { _trap_c + 0x1a }

   2 Target : <0x03fc0534> { _trap_c + 0x0 }

     Source : <0x03fc0746> { _trap + 0x56 }

   3 Target : <0x03fc06f0> { _trap + 0x0 }

     Source : <0x03fcb048> { _bfin_EMAC_send + 0x70 }

   4 Target : <0x03fcb022> { _bfin_EMAC_send + 0x4a }

     Source : <0x03fcb004> { _bfin_EMAC_send + 0x2c }

   5 Target : <0x03fcaff4> { _bfin_EMAC_send + 0x1c }

     Source : <0x03fcafe2> { _bfin_EMAC_send + 0xa }

   6 Target : <0x03fcafd8> { _bfin_EMAC_send + 0x0 }

     Source : <0x03fc9a0c> { _eth_send + 0x18 }

   7 Target : <0x03fc99f4> { _eth_send + 0x0 }

     Source : <0x03fc7cce> { _ArpRequest + 0xfe }

   8 Target : <0x03fc7cb2> { _ArpRequest + 0xe2 }

     Source : <0x03fc7b84> { _NetWriteIP + 0x14 }

   9 Target : <0x03fc7b80> { _NetWriteIP + 0x10 }

     Source : <0x03fc7798> { _memcpy_ASM + 0x60 }

  10 Target : <0x03fc778e> { _memcpy_ASM + 0x56 }

     Source : <0x03fc7754> { _memcpy_ASM + 0x1c }

  11 Target : <0x03fc7738> { _memcpy_ASM + 0x0 }

     Source : <0x03fc75d0> { _memcpy + 0x50 }

  12 Target : <0x03fc75cc> { _memcpy + 0x4c }

     Source : <0x03fc75b4> { _memcpy + 0x34 }

  13 Target : <0x03fc75a6> { _memcpy + 0x26 }

     Source : <0x03fc7596> { _memcpy + 0x16 }

  14 Target : <0x03fc7580> { _memcpy + 0x0 }

     Source : <0x03fc7b7c> { _NetWriteIP + 0xc }

  15 Target : <0x03fc7b70> { _NetWriteIP + 0x0 }

     Source : <0x03fc7cae> { _ArpRequest + 0xde }

 

Please reset the board

 

### ERROR ### Please RESET the board ###

--

 

Follow-ups

 

--- Mike Frysinger                                           2008-02-27 05:22:34

duplicate of [#3089]

 

this is not a Blackfin bug, it's a bug in the common ethernet code.  upstream

knows about it and is working on it.  we'll get the fix "for free"

when we update to the next version

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes