2008-06-20 14:15:03     Problem with SPI boot when parallel flash is disabled

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

2008-06-20 14:15:03     Problem with SPI boot when parallel flash is disabled

Gary Chan (UNITED STATES)

Message: 57640   

 

I'm testing u-boot 2008 and uImage 2008 on my BF537-stamp with good results.   I can boot uclinx directly from the SPI flash.  Both uboot and uImage are the pre-compiled versions from this website.

 

Since my custom BF537 will not use parallel flash, I turned off SW6-1 on the stamp board to disable the parallel flash, but I got the following error message:

 

root:/>

 

U-Boot 1.1.6-svn1112 (ADI-2008R1) (Jan 22 2008 - 20:30:27)

 

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

176 erase regions found, only 4 used

 

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 00000000  IPEND: 3fc00b2  SYSCFG: 0032

  HWERRCAUSE: 0x0

  EXCAUSE   : 0x0

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

RETE: <0x00000000> /* Maybe null pointer? */

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

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

RETS: <0x00000000> /* Maybe null pointer? */

PC  : <0x03fc00b2> { _start + 0xb2 }

 

PROCESSOR STATE:

R0 : 00000020    R1 : 00000008    R2 : 00000020    R3 : 00000000

R4 : 00000000    R5 : 00000000    R6 : 00000000    R7 : 00000000

P0 : 000000ad    P1 : 00000000    P2 : 03f5beef    P3 : 00000001

P4 : 00000000    P5 : 03f5c000    FP : 03fe3740    SP : 03f5be10

LB0: 03fd4920    LT0: 03fd4914    LC0: 00000000

LB1: 03fcec46    LT1: 03fcec40    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 03f5bed0

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000400

B2 : 00000000    L2 : 00000000    M2 : ff807ffc    I2 : 00021e45

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 00142000  ASTAT: 00001004

 

Hardware Trace:

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

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

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

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

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

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

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

     Source : <0x00000404> /* unknown address */

   4 Target : <0x00000000> /* Maybe null pointer? */

     Source : <0x03fc4ed2> { _flash_write_cmd + 0x7a }

   5 Target : <0x03fc4ecc> { _flash_write_cmd + 0x74 }

     Source : <0x03fc4e9a> { _flash_write_cmd + 0x42 }

   6 Target : <0x03fc4e90> { _flash_write_cmd + 0x38 }

     Source : <0x03fc4e88> { _flash_write_cmd + 0x30 }

   7 Target : <0x03fc4e7e> { _flash_write_cmd + 0x26 }

     Source : <0x03fc4e56> { _flash_make_cmd + 0x3a }

   8 Target : <0x03fc4e3e> { _flash_make_cmd + 0x22 }

     Source : <0x03fc4e38> { _flash_make_cmd + 0x1c }

   9 Target : <0x03fc4e2e> { _flash_make_cmd + 0x12 }

     Source : <0x03fc4e50> { _flash_make_cmd + 0x34 }

  10 Target : <0x03fc4e3e> { _flash_make_cmd + 0x22 }

     Source : <0x03fc4e38> { _flash_make_cmd + 0x1c }

  11 Target : <0x03fc4e2e> { _flash_make_cmd + 0x12 }

     Source : <0x03fc4e50> { _flash_make_cmd + 0x34 }

  12 Target : <0x03fc4e3e> { _flash_make_cmd + 0x22 }

     Source : <0x03fc4e38> { _flash_make_cmd + 0x1c }

  13 Target : <0x03fc4e2e> { _flash_make_cmd + 0x12 }

     Source : <0x03fc4e50> { _flash_make_cmd + 0x34 }

  14 Target : <0x03fc4e3e> { _flash_make_cmd + 0x22 }

     Source : <0x03fc4e38> { _flash_make_cmd + 0x1c }

  15 Target : <0x03fc4e2e> { _flash_make_cmd + 0x12 }

     Source : <0x03fc4e50> { _flash_make_cmd + 0x34 }

 

Please reset the board

 

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

 

 

If I switched on SW6-1, the board boots uclinux.  Looks like uboot is scanning for parallel flash and didn't find it?  Below is the environment variables, any thoughts?

 

Thanks, Gary

 

root:/>

 

U-Boot 1.1.6-svn1112 (ADI-2008R1) (Jan 22 2008 - 20:30:27)

 

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:   0E:37:08:56:B4:A4

I2C:   ready

Hit any key to stop autoboot:  0

bfin> printenv

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

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

hostname=BFIN

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);eeprom write $(loadaddr) 0x0 $(filesize)

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

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

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

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

ethaddr=0E:37:08:56:B4:A4

ethact=Blackfin EMAC

bootcmd=run eepromboot

filesize=407d9a

fileaddr=1000000

gatewayip=192.168.0.1

netmask=255.255.255.0

ipaddr=192.168.1.4

serverip=192.168.1.3

eepromboot=eeprom read 0x2000000 0x60000 0x500000; bootm 0x2000000

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 966/8188 bytes

 

QuoteReplyEditDelete

 

 

2008-06-20 14:31:28     Re: Problem with SPI boot when parallel flash is disabled

Mike Frysinger (UNITED STATES)

Message: 57642   

 

you cannot turn off the parallel flash with the default builds.  if you want to do that, you need to build u-boot yourself.

Attachments

    Outcomes