[#5227] bf533-ezkit/533-stamp kernel fails to boot when CCLK = 2*SCLK

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

[#5227] bf533-ezkit/533-stamp kernel fails to boot when CCLK = 2*SCLK

Submitted By: Vivi Li

Open Date

2009-06-10 04:30:17     Close Date

2009-06-11 08:45:14

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF533

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: bf533-ezkit/533-stamp kernel fails to boot when CCLK = 2*SCLK

Details:

 

bf533-ezkit/533-stamp kernel fails to boot when CCLK = 2*SCLK for trunk and 09r1 branch.

This happened since middle of May, 2009. Old kernel can boot up.

 

Bellow is the log:

--

U-Boot 2008.10-svn1905 (ADI-2009R1-rc1) (Jun 10 2009 - 08:06:09)

 

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: 405 MHz, Core: 202.500 MHz, System: 101.250 MHz

RAM:   32 MB

Flash:  2.1 MB

In:    serial

Out:   serial

Err:   serial

Net:   MAC:   00:E0:22:FE:BA:29

Hit any key to stop autoboot:  0

bfin> run ramboot

Using MAC Address 00:E0:22:FE:BA:29

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

         #######################################

done

Bytes transferred = 1519151 (172e2f hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1-svn66

   Created:      2009-06-10  11:48:32 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1519087 Bytes =  1.4 MB

   Load Address: 00001000

   Entry Point:  0016f2ec

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0016f2ec

Linux version 2.6.28.10-ADI-2009R1-svn6600 (test@uboot32-533ezkit) (gcc version 4.1.2 (ADI svn)) #4 Wed Jun 10 11:48:25 GMT 2009

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x000fa420

  rodata    = 0x000fa420-0x0014449c

  bss       = 0x00145000-0x001553d0

  data      = 0x001553d0-0x00164000

    stack   = 0x00162000-0x00164000

  init      = 0x00164000-0x0028b000

  available = 0x0028b000-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

Kernel panic - not syncing: ANOMALY 05000273 or 05000274: CCLK must be >= 2*SCLK

--

 

 

Kernel revision is as bellow:

--

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6600, build #4 Wed Jun 10 11:48:25 GMT 2009

toolchain: bfin-uclinux-gcc release collect2: ld returned 1 exit status

user-dist: release svn-8245, build #2 Wed Jun 10 11:47:36 GMT 2009

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-10 04:51:19

did you actually read the log before copying & pasting it ?

 

--- Vivi Li                                                  2009-06-10 06:06:35

The log says "CCLK must be >= 2*SCLK".

 

In the u-boot "Core: 202.500 MHz, System: 101.250 MHz", and CCLK is

just equal to 2*SCLK. So I think kernel should be able to boot up.

 

--- Mike Frysinger                                           2009-06-10 14:09:03

you're right, sorry.  the output in u-boot are rounded numbers ... so either the

math in the kernel is slightly off, or the values used are not correct.  please

post the exact settings you're using in u-boot.

 

--- Vivi Li                                                  2009-06-10 22:44:36

In include/configs/bf533-ezkit.h, change following settings:

--

#define CONFIG_VCO_MULT                   15

#define CONFIG_CCLK_DIV                   2

#define CONFIG_SCLK_DIV                   4

--

 

--- Mike Frysinger                                           2009-06-11 01:55:59

if you change the panic line in arch/blackfin/kernel/setup.c, does it boot ?

 

    if ((ANOMALY_05000273 || ANOMALY_05000274) && (cclk >> 1)

<= sclk)

 

change the "<=" to "<"

 

--- Vivi Li                                                  2009-06-11 06:37:48

Yes, it works. Please commit this change. Thank you!

 

--- Mike Frysinger                                           2009-06-11 08:45:14

added to svn then, thanks

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes