[#5479] u-boot crashes for latest 2009.08 on boards with embedded env

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

[#5479] u-boot crashes for latest 2009.08 on boards with embedded env

Submitted By: Vivi Li

Open Date

2009-09-02 18:48:03     Close Date

2009-09-22 02:25:17

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

BF527

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: u-boot crashes for latest 2009.08 on boards with embedded env

Details:

 

u-boot crashes for latest 2009.08 on boards bf527-ezkit, BF533-EZKit, bf518f-ezbrd and bf526-ezbrd.

 

Bellow is the log on bf527-ezkit:

--

U-Boot 2009.08-svn2024 (ADI-2009R2-pre) (Sep 03 2009 - 05:46:39)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

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

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 00000021  IPEND: 8008  SYSCFG: 0032

  HWERRCAUSE: 0x0: undef

  EXCAUSE   : 0x21: undef inst

  physical IVG15 asserted : <0x03f404d0> { _evt_default + 0x0 }

RETE: <0x000a8001> /* unknown address */

RETN: <0x03e9fef4> /* unknown address */

RETX: <0x03f45a70> { _flash_init + 0x0 }

RETS: <0x03f40f00> { _board_init_r + 0x58 }

RETI: <0x03f400da> { _start + 0xda }

DCPLB_FAULT_ADDR: <0x03e9fef0> /* unknown address */

ICPLB_FAULT_ADDR: <0x03f45a70> { _flash_init + 0x0 }

 

PROCESSOR STATE:

R0 : 00000000    R1 : 0000000a    R2 : 00000000    R3 : 03f40000

R4 : 03f40000    R5 : 03f40000    R6 : 00000001    R7 : 03e9ff24

P0 : 00000408    P1 : 03f6d4dc    P2 : ffc02000    P3 : 03e9ff80

P4 : 03e9ffa8    P5 : 03e9ffa8    FP : 03e9ff7c    SP : ffb00f18

LB0: 03f40cbc    LT0: 03f40cbc    LC0: 00000000

LB1: 03f549b0    LT1: 03f549aa    LC1: 00000000

B0 : ffb00400    L0 : 00000000    M0 : 2c1e117c    I0 : ffb00580

B1 : 00000000    L1 : 00000000    M1 : 142d0164    I1 : 26340d14

B2 : 00000000    L2 : 00000000    M2 : 70b683f9    I2 : 24317fb1

B3 : 00000000    L3 : 00000000    M3 : 700d09f1    I3 : 47315d95

A0.w: 00003ea0   A0.x: 00000000   A1.w: 00000d7a   A1.x: 00000000

USP : ffb00ffc  ASTAT: 00001025

 

Hardware Trace:

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

     Source : <0x03f40bdc> { _trap_c + 0x12c }

   1 Target : <0x03f40bd4> { _trap_c + 0x124 }

     Source : <0x03f40ac8> { _trap_c + 0x18 }

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

     Source : <0x03f40474> { _trap + 0x60 }

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

     Source : <0x03f40efc> { _board_init_r + 0x54 }

   4 Target : <0x03f40efc> { _board_init_r + 0x54 }

     Source : <0x03f58980> { _serial_puts + 0x1c }

   5 Target : <0x03f58974> { _serial_puts + 0x10 }

     Source : <0x03f58952> { _serial_putc + 0x32 }

   6 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

   7 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

   8 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

   9 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  10 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  11 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  12 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  13 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  14 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

  15 Target : <0x03f58936> { _serial_putc + 0x16 }

     Source : <0x03f58942> { _serial_putc + 0x22 }

 

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

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-09-04 00:26:46

should be fixed now ... the env wasnt being embedded so doing a 'save' would

overwrite u-boot code with the environment

 

--- Vivi Li                                                  2009-09-16 06:30:09

U-boot in all platform can work now, except for bf533-ezkit.

 

--

U-Boot 2009.08-svn2039 (ADI-2009R2-pre) (Sep 16 2009 - 17:07:50)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.5) (bypass boot)

Board: ADI BF533 EZ-Kit Lite board

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

Clock: VCO: 594 MHz, Core: 594 MHz, System: 118.800 MHz

RAM:   32 MB

Flash:  2.1 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   SMC91111-0

MAC:   00:00:00:00:00:00

Hit any key to stop autoboot:  0

bfin>

bfin> saveenv

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

Erasing Flash locations, Please Wait

Erased 1 sectors

Writing to Flash... ...done

Protected 1 sectors

bfin> reset

 

U-Boot 2009.08-svn2039 (ADI-2009R2-pre) (Sep 16 2009 - 17:07:50)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.5) (bypass boot)

Board: ADI BF533 EZ-Kit Lite board

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

Clock: VCO: 594 MHz, Core: 594 MHz, System: 118.800 MHz

RAM:   32 MB

Flash:  2.1 MB

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 00002024  IPEND: 8008  SYSCFG: 0032

  HWERRCAUSE: 0x0: undef

  EXCAUSE   : 0x24: misaligned data

  physical IVG15 asserted : <0x01fc0574> { ffa0002c__etext_l1 + 0x1fc0574

}

RETE: <0xffa00000> { ffa0002c__etext_l1 + 0xffa00000 }

RETN: <0x01f9feb8> { ffa0002c__etext_l1 + 0x1f9feb8 }

RETX: <0x01fcb118> { ffa0002c__etext_l1 + 0x1fcb118 }

RETS: <0x01fcb718> { ffa0002c__etext_l1 + 0x1fcb718 }

RETI: <0x01fc00da> { ffa0002c__etext_l1 + 0x1fc00da }

DCPLB_FAULT_ADDR: <0x6d746f70> { ffa0002c__etext_l1 + 0x6d746f70 }

ICPLB_FAULT_ADDR: <0x01fcb118> { ffa0002c__etext_l1 + 0x1fcb118 }

 

PROCESSOR STATE:

R0 : fffffffc    R1 : 01fe03ac    R2 : 00000079    R3 : 0000000f

R4 : 01fc0000    R5 : 00010008    R6 : 00000000    R7 : 00220000

P0 : 6d746f6f    P1 : 01fe6ae8    P2 : 01fe03ac    P3 : 01f9ff80

P4 : 01f9ffa8    P5 : 01f9ffa8    FP : 01f9fec4    SP : ffb00f18

LB0: 01fd615c    LT0: 01fd6150    LC0: 00000000

LB1: 01fcef10    LT1: 01fcef0a    LC1: 00000000

B0 : fd5b8e7d    L0 : 00000000    M0 : 00000048    I0 : 01f9f210

B1 : 00000000    L1 : 00000000    M1 : e4a0ddd9    I1 : 20040000

B2 : f7a5cfbb    L2 : 00000000    M2 : a3ecc6bb    I2 : 0000003a

B3 : 8ee5cff9    L3 : 00000000    M3 : fbde43c3    I3 : 01f9fa7c

A0.w: 0000c820   A0.x: 00000000   A1.w: 00000388   A1.x: 00000000

USP : ff804414  ASTAT: 00000000

 

Hardware Trace:

   0 Target : <0x01fc0b30> { ffa0002c__etext_l1 + 0x1fc0b30 }

     Source : <0x01fc0cbe> { ffa0002c__etext_l1 + 0x1fc0cbe }

   1 Target : <0x01fc0cb6> { ffa0002c__etext_l1 + 0x1fc0cb6 }

     Source : <0x01fc0b88> { ffa0002c__etext_l1 + 0x1fc0b88 }

   2 Target : <0x01fc0b70> { ffa0002c__etext_l1 + 0x1fc0b70 }

     Source : <0x01fc0518> { ffa0002c__etext_l1 + 0x1fc0518 }

   3 Target : <0x01fc04b8> { ffa0002c__etext_l1 + 0x1fc04b8 }

     Source : <0x01fcb116> { ffa0002c__etext_l1 + 0x1fcb116 }

   4 Target : <0x01fcb116> { ffa0002c__etext_l1 + 0x1fcb116 }

     Source : <0x01fcb12c> { ffa0002c__etext_l1 + 0x1fcb12c }

   5 Target : <0x01fcb12a> { ffa0002c__etext_l1 + 0x1fcb12a }

     Source : <0x01fcb114> { ffa0002c__etext_l1 + 0x1fcb114 }

   6 Target : <0x01fcb0fe> { ffa0002c__etext_l1 + 0x1fcb0fe }

     Source : <0x01fcb0e2> { ffa0002c__etext_l1 + 0x1fcb0e2 }

   7 Target : <0x01fcb0d2> { ffa0002c__etext_l1 + 0x1fcb0d2 }

     Source : <0x01fcb0c6> { ffa0002c__etext_l1 + 0x1fcb0c6 }

   8 Target : <0x01fcb0c0> { ffa0002c__etext_l1 + 0x1fcb0c0 }

     Source : <0x01fcb0b8> { ffa0002c__etext_l1 + 0x1fcb0b8 }

   9 Target : <0x01fcb0b4> { ffa0002c__etext_l1 + 0x1fcb0b4 }

     Source : <0x01fcb0aa> { ffa0002c__etext_l1 + 0x1fcb0aa }

  10 Target : <0x01fcb0a8> { ffa0002c__etext_l1 + 0x1fcb0a8 }

     Source : <0x01fcb0a0> { ffa0002c__etext_l1 + 0x1fcb0a0 }

  11 Target : <0x01fcb09a> { ffa0002c__etext_l1 + 0x1fcb09a }

     Source : <0x01fcb068> { ffa0002c__etext_l1 + 0x1fcb068 }

  12 Target : <0x01fcb05e> { ffa0002c__etext_l1 + 0x1fcb05e }

     Source : <0x01fcb058> { ffa0002c__etext_l1 + 0x1fcb058 }

  13 Target : <0x01fcb050> { ffa0002c__etext_l1 + 0x1fcb050 }

     Source : <0x01fcb04c> { ffa0002c__etext_l1 + 0x1fcb04c }

  14 Target : <0x01fcb044> { ffa0002c__etext_l1 + 0x1fcb044 }

     Source : <0x01fcb714> { ffa0002c__etext_l1 + 0x1fcb714 }

  15 Target : <0x01fcb70c> { ffa0002c__etext_l1 + 0x1fcb70c }

     Source : <0x01fc1020> { ffa0002c__etext_l1 + 0x1fc1020 }

 

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

--

 

--- Mike Frysinger                                           2009-09-19 15:05:17

that is an unrelated issue.  we were using the 2nd 128kb sector for the env, but

latest u-boot overflows into that.

 

$ du -b u-boot.bin

137364  u-boot.bin

 

bf533-ezkit.h:

#define CONFIG_ENV_ADDR     0x20020000

 

guess we'll have to move the env down to give more space to u-boot

 

--- Mike Frysinger                                           2009-09-21 18:07:28

should be fixed now by moving to 0x20030000

 

--- Vivi Li                                                  2009-09-22 02:25:17

OK now. close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes