[#7565] U-boot_SPI_test_bug-"sf probe 1"_BF533-stamp

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

[#7565] U-boot_SPI_test_bug-"sf probe 1"_BF533-stamp

Submitted By: ren qiang

Open Date

2012-12-27 22:54:48     Close Date

2013-01-04 02:26:06

Priority:

Medium     Assignee:

Bob Liu

Category:

N/A     Fixed In Release:

2012R2-RC3

Found In Release:

2012R2-RC3     Status:

Closed

Board:

STAMP     Processor:

BF533

Silicon Revision:

    Resolution:

Assigned (Not Start)

Is the bug repeatable?:

N/A     

Summary: U-boot_SPI_test_bug-"sf probe 1"_BF533-stamp

Details:

 

1. Burn SPI bootloader into SPI flash.

--

U-Boot 2011.09-svn2736 (ADI-2011R1) (Nov 02 2011 - 16:39:52)

 

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

Board: ADI BF533 Stamp board

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz

RAM:   128 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0                                                              

Warning: SMC91111-0 MAC addresses don't match:                                 

Address in SROM is         00:e0:22:fe:04:8b                                   

Address in environment is  00:11:22:33:44:55                                   

                                                                               

Hit any key to stop autoboot:  0                                               

bfin> print                                                                    

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask)f

autoload=no                                                                    

baudrate=57600                                                                 

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

bootcmd=run ramboot                                                            

bootdelay=5                                                                    

ethact=SMC91111-0                                                              

ethaddr=00:11:22:33:44:55                                                      

fileaddr=2000000                                                               

filesize=2CD94                                                                 

flashboot=bootm 0x20100000                                                     

gatewayip=192.168.0.1                                                          

hostname=bf533-stamp                                                           

ipaddr=10.100.4.50                                                             

loadaddr=0x1000000                                                             

loads_echo=1                                                                   

netmask=255.255.255.0                                                          

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsve3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm                

nfsfile=vmImage                                                                

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=11059200 earlyprintk=seria0

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

ramfile=uImage                                                                 

rootpath=/romfs                                                                

serveraddr=94:0c:6d:6a:96:e7                                                   

serverip=10.100.4.174                                                          

stderr=serial                                                                  

stdin=serial                                                                   

stdout=serial                                                                  

ubootfile=u-boot.bin                                                           

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 +$(filesize);erase )

                                                                               

Environment size: 1170/8188 bytes                                              

bfin> tftp 0x2000000 u-boot.bin                                                

SMC91111: MAC 00:11:22:33:44:55                                                

Using SMC91111-0 device                                                        

TFTP from server 10.100.4.174; our IP address is 10.100.4.50                   

Filename 'u-boot.bin'.                                                         

Load address: 0x2000000                                                        

Loading: ##################################                                    

done                                                                           

Bytes transferred = 171364 (29d64 hex)                                         

bfin> go 0x2000000                                                             

## Starting application at 0x02000000 ... H�H�H�� ս��с2012.07-rc2 (ADI-2012R2)-)

                                                                               

CPU:   ADSP bf533-0.3 (Detected Rev: 0.4) (spi flash boot)                     

Board: ADI BF533 Stamp board                                                   

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz                 

RAM:   128 MiB                                                                 

Flash: 4 MiB                                                                   

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

KGDB:  [on serial] ready                                                       

Net:   SMC91111-0                                                              

Warning: SMC91111-0 MAC addresses don't match:                                 

Address in SROM is         00:11:22:33:44:55                                   

Address in environment is  30:00:02:03:04:05                                   

                                                                               

Hit any key to stop autoboot:  0                                               

bfin> print                                                                    

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask)f

autoload=no                                                                    

baudrate=57600                                                                 

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

bootcmd=run ramboot                                                            

bootdelay=5                                                                    

ethact=SMC91111-0                                                              

ethaddr=30:00:02:03:04:05                                                      

fileaddr=1000000                                                               

filesize=2C00C                                                                 

flashboot=bootm 0x20100000                                                     

gatewayip=192.168.0.1                                                          

hostname=bf537-stamp                                                           

ipaddr=10.100.4.50                                                             

loadaddr=0x1000000                                                             

loads_echo=1                                                                   

nc=set ncip ${serverip};set stdin nc;set stdout nc;set stderr nc               

netmask=255.255.255.0                                                          

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsve3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm                

nfsfile=vmImage                                                                

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seria0

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

ramfile=uImage                                                                 

rootpath=/romfs                                                                

serveraddr=78:45:c4:09:05:9c                                                   

serverip=10.100.4.174                                                          

stderr=serial                                                                  

stdin=serial                                                                   

stdout=serial                                                                  

ubootfile=u-boot.ldr                                                           

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(l)

                                                                               

Environment size: 1199/8188 bytes                                              

bfin> run update                                                               

SMC91111: MAC 30:00:02:03:04:05                                                

Using SMC91111-0 device                                                        

TFTP from server 10.100.4.174; our IP address is 10.100.4.50                   

Filename 'u-boot.ldr'.                                                         

Load address: 0x1000000                                                        

Loading: T ####################################                                

done                                                                           

Bytes transferred = 180236 (2c00c hex)                                         

SF: Unsupported manufacturer ff                                                

Failed to initialize SPI flash at 0:1                                          

No SPI flash selected. Please run `sf probe'                                   

No SPI flash selected. Please run `sf probe'                                   

bfin> sf probe 2                                                               

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

bfin> run update                                                               

SMC91111: MAC 30:00:02:03:04:05                                                

Using SMC91111-0 device                                                        

TFTP from server 10.100.4.174; our IP address is 10.100.4.50                   

Filename 'u-boot.ldr'.                                                         

Load address: 0x1000000                                                        

Loading: ####################################                                  

done                                                                           

Bytes transferred = 180236 (2c00c hex)                                         

SF: Unsupported manufacturer ff                                                

Failed to initialize SPI flash at 0:1                                          

bfin> save                                                                     

Saving Environment to SPI Flash...                                             

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

Erasing SPI flash...Writing to SPI flash...done                                

bfin>  

 

(set boot mode S1 to 00, Boot LDR from SPI flash)

 

2.Run bootloader and kernel from SPI flash.

 

 

U-Boot 2012.07-rc2 (ADI-2012R2)-00005-g0afea1e-dirty (Dec 28 2012 - 11:38:00)  

                                                                               

CPU:   ADSP bf533-0.3 (Detected Rev: 0.4) (spi flash boot)                     

Board: ADI BF533 Stamp board                                                   

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz                 

RAM:   128 MiB                                                                 

Flash: 4 MiB                                                                   

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

KGDB:  [on serial] ready                                                       

Net:   SMC91111-0                                                              

Warning: SMC91111-0 MAC addresses don't match:                                 

Address in SROM is         00:e0:22:fe:04:8b                                   

Address in environment is  30:00:02:03:04:05                                   

                                                                               

Hit any key to stop autoboot:  0                                               

bfin> print                                                                    

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask)f

autoload=no                                                                    

baudrate=57600                                                                 

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

bootcmd=run ramboot                                                            

bootdelay=5                                                                    

ethact=SMC91111-0                                                              

ethaddr=30:00:02:03:04:05                                                      

fileaddr=1000000                                                               

filesize=2C00C                                                                 

flashboot=bootm 0x20100000                                                     

gatewayip=192.168.0.1                                                          

hostname=bf537-stamp                                                           

ipaddr=10.100.4.50                                                             

loadaddr=0x1000000                                                             

loads_echo=1                                                                   

nc=set ncip ${serverip};set stdin nc;set stdout nc;set stderr nc               

netmask=255.255.255.0                                                          

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsve3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm                

nfsfile=vmImage                                                                

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seria0

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

ramfile=uImage                                                                 

rootpath=/romfs                                                                

serveraddr=78:45:c4:09:05:9c                                                   

serverip=10.100.4.174                                                          

stderr=serial                                                                  

stdin=serial                                                                   

stdout=serial                                                                  

ubootfile=u-boot.ldr                                                           

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(l)

                                                                               

Environment size: 1199/8188 bytes                                              

bfin> sf probe 2                                                               

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

bfin> tftp 0x1000000 u-boot.bin                                                

SMC91111: MAC 30:00:02:03:04:05                                                

Using SMC91111-0 device                                                        

TFTP from server 10.100.4.174; our IP address is 10.100.4.50                   

Filename 'u-boot.bin'.                                                         

Load address: 0x1000000                                                        

Loading: ##################################                                    

done                                                                           

Bytes transferred = 171364 (29d64 hex)                                         

bfin> sf erase 0x40000 0x1c0000                                                

bfin> sf write 0x1000000 0x40000 $(filesize)                                   

bfin> sf read 0x2000000 0x40000 $(filesize)                                    

bfin> cmp.b 0x1000000 0x2000000 $(filesize)                                    

Total of 171364 byte(s) were the same                                          

bfin> go 0x2000000                                                             

## Starting application at 0x02000000 ... H�H�H�� ս��с2012.07-rc2 (ADI-2012R2)-)

                                                                               

CPU:   ADSP bf533-0.3 (Detected Rev: 0.4) (spi flash boot)                     

Board: ADI BF533 Stamp board                                                   

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz                 

RAM:   128 MiB                                                                 

Flash: 4 MiB                                                                   

SF: Detected M25P64 with page size 64 KiB, total 8 MiB                         

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

KGDB:  [on serial] ready                                                       

Net:   SMC91111-0                                                              

Hit any key to stop autoboot:  0                                               

bfin>

 

Follow-ups

 

--- Mingquan Pan                                             2013-01-04 03:32:42

spi probe pin has changed back to 2. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes