[#5672] U-Boot crashes when trying to detect flash (SST39VF3201B)

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

[#5672] U-Boot crashes when trying to detect flash (SST39VF3201B)

Submitted By: RUPAM DAS

Open Date

2009-11-11 01:26:00     Close Date

2010-06-10 11:07:02

Priority:

Medium     Assignee:

Nobody

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2008R1.5     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Out of Date

Is the bug repeatable?:

yes     

Summary: U-Boot crashes when trying to detect flash (SST39VF3201B)

Details:

 

We ( at ADI IITM DSP Lab, IIT Madras, Chennai, India) have changed the flash in our hardware from M29W320DB (as in the original BF537-STAMP board) to SST 39VF3201B. Both are pin-compatible, CFI-compliant, bottom-boot, 32 Mb flash. Before we changed the flash, the previous version of our hardware was working with M29W320DB flash. So, this version of hardware has only the SST flash as a modification. M29W320DB is now obsolete, so we had to make this change.

 

After we made the necessary changes to the bf537-config and compiling the u-boot, we have tried to boot in UART_MODE. Every time we get such error (DEBUG and DEBUGF is enabled hence extra messages) and crash. Please help us:

 

 

bfin> loadb

## Ready for binary (kermit) download to 0x01000000 at 57600 bps...

 

(Back at adilab.tenet.res.in)

----------------------------------------------------

C-Kermit 8.0.212 Dev.26, 20 Dec 2006, for Linux

Copyright (C) 1985, 2006,

  Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

Linux Kermit> send u-boot.bin

Linux Kermit> c

Connecting to /dev/ttyS0, speed 57600

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

## Total Size      = 0x00020f6c = 135020 Bytes

## Start Addr      = 0x01000000

bfin> go 0x1000000

## Starting application at 0x01000000 ...

Early:start.S: Init Registers

Early:start.S: Relocate

Early:start.S: Zero BSS

Early:start.S: Lower to 15

Early: NOP Slide

Early: L1 Relocate

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

Early: Environment init

Early: Baudrate init

Early: Serial init

Early: Console init flash

Early: End of early debugging

 

 

U-Boot 1.1.6Rupam-ADI-IITM-DSP-LAB-2009 (ADI-2008R1.5) (Nov 11 2009 - 10:38:38)

 

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

Board: ADI BF537 stamp board

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

bfin_rtc.c:rtc_init:48: here i am

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

RAM:   Serial Port initialized with Baud rate = 57600

SDRAM attributes:

tRCD 3 SCLK Cycles,tRP 3 SCLK Cycles,tRAS 6 SCLK CyclestWR 2 SCLK Cycles,CAS Latency 3 SCLK cycles

SDRAM Begin: 0x0

Bank size = 64 MB

64 MB

Flash: flash detect cfi

Flash reset cmd is 00F0

 

Setting address

fwc addr 20000000 cmd f0 f0 8bit x 8 bit

Setting address

fwc addr 20000055 cmd 98 98 8bit x 8 bit

Setting address

is= cmd 51(Q) addr 20000010 is= ff 51

Setting address

fwc addr 20000000 cmd f0 f0f0 16bit x 8 bit

Setting address

fwc addr 20000055 cmd 98 9898 16bit x 8 bit

 

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 00000024  IPEND: 3fc0160  SYSCFG: 0032

  HWERRCAUSE: 0x0

  EXCAUSE   : 0x24

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

  physical IVG8 asserted : <0x03fc04e0> { _evt_default + 0x0 }

RETE: <0x5c006020> { ___smulsi3_highpart + 0x580304d8 }

RETN: <0x30000662> { ___smulsi3_highpart + 0x2c02ab1a }

RETX: <0x03fc5b9e> { _flash_write_cmd + 0x8e }

RETS: <0x03fc5b98> { _flash_write_cmd + 0x88 }

PC  : <0x03fc0160> { _start + 0x160 }

DCPLB_FAULT_ADDR: <0x20000054> { ___smulsi3_highpart + 0x1c02a50c }

ICPLB_FAULT_ADDR: <0x03fc5b9e> { _flash_write_cmd + 0x8e }

 

PROCESSOR STATE:

R0 : ffff9898    R1 : 0000000a    R2 : 03f5bda4    R3 : fffffffc

R4 : 20000000    R5 : 05f5e100    R6 : 00000098    R7 : 00000098

P0 : 00000001    P1 : 00000128    P2 : 20000055    P3 : 03fe62f4

P4 : 03fe62f4    P5 : 03f5c000    FP : 03f5bf08    SP : 03f5bdc8

LB0: 03fd5b10    LT0: 03fd5b04    LC0: 00000000

LB1: 03fcfcba    LT1: 03fcfcb4    LC1: 00000000

B0 : 621cbf8d    L0 : 00000000    M0 : 00000000    I0 : 03f5bec4

B1 : be36fbfc    L1 : 00000000    M1 : 00000000    I1 : 01040000

B2 : 17362f28    L2 : 00000000    M2 : ff807ffc    I2 : 0e6caba8

B3 : 3eaf795b    L3 : 00000000    M3 : 00000040    I3 : a46e24a1

A0.w: 01900000   A0.x: 00000000   A1.w: 00004029   A1.x: 00000000

USP : a5ee1a3a  ASTAT: 00001025

 

Hardware Trace:

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

     Source : <0x03fc0bb6> { _trap_c + 0x1ca }

   1 Target : <0x03fc0ba8> { _trap_c + 0x1bc }

     Source : <0x03fc0a0a> { _trap_c + 0x1e }

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

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

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

     Source : <0x03fc5b9a> { _flash_write_cmd + 0x8a }

   4 Target : <0x03fc5b98> { _flash_write_cmd + 0x88 }

     Source : <0x03fcd006> { _printf + 0x42 }

   5 Target : <0x03fccffc> { _printf + 0x38 }

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

   6 Target : <0x03fc036c> { _serial_puts + 0x10 }

     Source : <0x03fc0348> { _serial_putc + 0x48 }

   7 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

   8 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

   9 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  10 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  11 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  12 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  13 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  14 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

  15 Target : <0x03fc0334> { _serial_putc + 0x34 }

     Source : <0x03fc0340> { _serial_putc + 0x40 }

 

Please reset the board

 

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

 

Attaching the modified bf537-stamp config file

 

Follow-ups

 

--- Mike Frysinger                                           2009-11-11 09:13:03

you're using an old release.  upgrade to the latest as there have been many

flash related fixes since.

 

--- Robin Getz                                               2010-06-10 11:04:28

Close this old bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

bf537-stamp.h    text/x-chdr    8277    RUPAM DAS

Attachments

    Outcomes