2010-07-19 05:32:33     u-boot startup problem (IRQ)

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

2010-07-19 05:32:33     u-boot startup problem (IRQ)

Stephane DEBUSNE (FRANCE)

Message: 91439   

 

Hi all,

 

 

 

i have a custom board where u-boot-1.1.6-2008R1.5 is runing fine.

 

I'd like to upgrade to u-boot-2008.10-2009R1.1-rc1 so i added my custom board and its specific settings into the tree of the release.

 

But, when starting the board, u-boot crash when setting the irqs. what's going wrong ?

 

Here is the dump :

 

 

 

Early:start.S: Init Registers

Early:start.S: Find ourselves

Early:start.S: Lower to 15

Early: Board init flash

Early: Init CPLB tables

Early: Exceptions setup

Early: Turn on ICACHE

Early: Turn on DCACHE

Early: Init global data

Early: IRQ init

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 0000c000  IPEND: 8030  SYSCFG: 0032

  HWERRCAUSE: 0x3: external memory addressing error

  EXCAUSE   : 0x0: custom exception

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

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

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

RETX: <0x00061804> /* unknown address */

RETS: <0x01f6148c> { _board_init_f + 0x108 }

RETI: <0x01f603d8> { _irq_init + 0x70 }

 

PROCESSOR STATE:

R0 : 0000003f    R1 : 0000000a    R2 : fffffffc    R3 : 00000000

R4 : 01f60000    R5 : 01f60000    R6 : 00000001    R7 : 00061804

P0 : 00000020    P1 : 00000010    P2 : 01f74850    P3 : d276a3a3

P4 : 01ebc028    P5 : 01ebc000    FP : 01ebbffc    SP : 01ebbec4

LB0: 01f6b994    LT0: 01f6b988    LC0: 00000000

LB1: ffa13d93    LT1: ffa13d56    LC1: 00000000

B0 : ffb00400    L0 : 00000000    M0 : 170bcb09    I0 : ffe01300

B1 : 00000000    L1 : 00000000    M1 : 283e404f    I1 : ffe00300

B2 : 00000000    L2 : 00000000    M2 : 8000f509    I2 : 12d46d8b

B3 : 00000000    L3 : 00000000    M3 : 168c0b88    I3 : 56566a89

A0.w: fff3c828   A0.x: 00000020   A1.w: 1de1870b   A1.x: 0000005e

USP : ffb00ff0  ASTAT: 00001065

 

Hardware Trace:

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

     Source : <0x01f607ca> { _evt_default + 0x56 }

   1 Target : <0x01f60774> { _evt_default + 0x0 }

     Source : <0x01f603d6> { _irq_init + 0x6e }

   2 Target : <0x01f60368> { _irq_init + 0x0 }

     Source : <0x01f61488> { _board_init_f + 0x104 }

   3 Target : <0x01f61488> { _board_init_f + 0x104 }

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

   4 Target : <0x01f60668> { _serial_puts + 0x10 }

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

   5 Target : <0x01f6062a> { _serial_putc + 0x16 }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

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

 

 

 

 

 

thanks in advance for any help

 

 

 

best regards

 

 

 

Stephane

QuoteReplyEditDelete

 

 

2010-07-19 05:51:03     Re: u-boot startup problem (IRQ)

Stephane DEBUSNE (FRANCE)

Message: 91440   

 

Note that, if i remove the call to local_irq_enable() in irq_init() function, (i did that because in my previous version of u-boot there was no enable of irqs), then u-boot works fine.

QuoteReplyEditDelete

 

 

2010-07-19 14:00:18     Re: u-boot startup problem (IRQ)

Mike Frysinger (UNITED STATES)

Message: 91458   

 

you have some code that is accessing memory it shouldnt.  older u-boot did not enable the error interrupt which is why you might not have seen problems.  newer u-boots always do.

 

you have to locate the code that is accessing wrong memory and find out why.

Attachments

    Outcomes