[#5294] tftp in u-boot hangs with BFIN_BOOT_BYPASS

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

[#5294] tftp in u-boot hangs with BFIN_BOOT_BYPASS

Submitted By: Peter Meerwald

Open Date

2009-06-29 12:38:54     Close Date

2011-05-11 13:34:00

Priority:

Medium     Assignee:

Nobody

Category:

networking     Fixed In Release:

N/A

Found In Release:

snaps     Status:

Closed

Board:

Custom     Processor:

BF537

Silicon Revision:

0.2     Resolution:

Not reproducible

Is the bug repeatable?:

N/A     

Summary: tftp in u-boot hangs with BFIN_BOOT_BYPASS

Details:

 

tftp in u-boot hangs (after a couple of Ts) with BFIN_BOOT_BYPASS, it works with BFIN_BOOT_UART

 

this is on a custom board where I initialize TIMER1 in the board-specific initialization, i.e. misc_init_r():

 

    bfin_write_TIMER1_CONFIG(0x020d);

    bfin_write_TIMER1_PERIOD(0x0010);

    bfin_write_TIMER1_WIDTH(0x0010/2);

    bfin_write_TIMER_ENABLE(bfin_read_TIMER_ENABLE()|2);

    bfin_write_PORTF_FER(bfin_read_PORTF_FER() | 0x100);

 

 

I found out that everything works fine if I either

a) do not initialize TIMER1, or

b) I setup EVT1 even in BYPASS mode

 

see the code at the end of the initcode() function (in cpu/blackfin/initcode.c), i.e.

 

#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1

    /* tell the bootrom where our entry point is */

    if (CONFIG_BFIN_BOOT_MODE != BFIN_BOOT_BYPASS)

        bfin_write_EVT1(CONFIG_SYS_MONITOR_BASE);

#endif

 

 

any idea would be appreciated?

I do not see how EVT1 interacts with tftp;

I do not understand why EVT1 is initialized in BOOT_UART mode, but not BOOT_BYPASS mode;

 

this might be related to #4357

 

code is current SVN (u-boot-2009.03)

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-29 12:43:09

EVT1 should have no bearing whatsoever once u-boot starts executing _start.

EVT1 is only used by the bootrom as the entry point location.  since the bootrom

isnt used in bypass mode, it makes no sense to initialize it.

 

do you have jtag ?  it'd be useful to find out where it is hung.

 

btw, current svn trunk is 2009.06, not .03   i plan on deleting .03 in the

next month.

 

--- Peter Meerwald                                           2009-06-29 14:19:14

thx for your comment; I agree that EVT1 should have no influence whatsoever

 

on the other hand I get reproducible hangs when not initializing EVT1 in bypass

mode (only change between recompile is that I comment out the 'if' below)

 

if (CONFIG_BFIN_BOOT_MODE != BFIN_BOOT_BYPASS)

        bfin_write_EVT1(CONFIG_SYS_MONITOR_BASE);

 

I'll move to 2009.06 and re-try...

 

 

what is the difference between ENV_IS_EMBEDDED and ENV_IS_EMBEDDED_CUSTOM?

 

the following code is in include/configs/bf537-stamp.h

 

#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_BYPASS)

#define ENV_IS_EMBEDDED

#else

#define ENV_IS_EMBEDDED_CUSTOM

#endif

 

I guess that it is to determine that ENV_IS_EMBEDDED_CUSTOM prevents the board

settings to be read from flash, right?

 

--- Mike Frysinger                                           2009-06-29 14:31:08

i dont think moving to 2009.06 will make a difference here, but it should be

done regardless.  btw, we accept all board ports from people who wish to submit

them ;).

 

the CUSTOM variant is for embedding the environment into an LDR as it needs to

be handled slightly different than embedding in an ELF/bin.  i should add a

sanity check to the Blackfin code to reject ENV_IS_EMBEDDED when boot mode is

not bypass ...

 

i'm not saying EVT1 isnt making a difference, just that it shouldnt be ...

 

--- Mike Frysinger                                           2011-05-11 13:34:00

please let us know what you found ...

 

--- Peter Meerwald                                           2011-05-12 11:23:34

we switched to rev. 0.3 silicon, a rev. 0.2 board is not easily available

anymore

 

doesn't seem to be a problem nowadays, so close

 

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes