[#5343] bf537 mpu kernel can not wake up from mem

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

[#5343] bf537 mpu kernel can not wake up from mem

Submitted By: Vivi Li

Open Date

2009-07-13 00:08:19     Close Date

2009-07-31 06:00:49

Priority:

Medium High     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1_09r1-rc9

App binary format:

N/A     

Summary: bf537 mpu kernel can not wake up from mem

Details:

 

For bf537-stamp mpu kernel, after wake up from mem, application ifconfig crashed.

 

The last passed version:

--

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6958, build #4 Fri Jul 10 19:08:59 GMT 2009

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8476, build #46 Fri Jul 10 19:07:55 GMT 2009

--

 

The first failed version:

--

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6972, build #8 Sat Jul 11 14:21:08 GMT 2009

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8484, build #116 Sat Jul 11 14:19:55 GMT 2009

--

 

Bellow is the log:

--

Linux version 2.6.28.10-ADI-2009R1-svn6972 (test@uclinux74-mpu) (gcc version 4.1.2 (ADI svn)) #16 Mon Jul 13 04:07:29 GMT 2009^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x0011d660^M

  rodata    = 0x0011d660-0x00174704^M

  bss       = 0x00175000-0x00186f54^M

  data      = 0x00186f54-0x00198000^M

    stack   = 0x00196000-0x00198000^M

  init      = 0x00198000-0x008fb000^M

  available = 0x008fb000-0x03dff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

Hardware Trace Active and Enabled^M

Boot Mode: 0^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2009 Analog Devices, Inc.^M

Compiled for ADSP-BF537 Rev 0.3^M

Blackfin Linux support by http://blackfin.uclinux.org/^M

Processor Speed: 500 MHz core clock and 125 MHz System Clock^M

MPU: setting up cplb tables with memory protection^M

Instruction Cache Enabled for CPU0^M

Data Cache Enabled for CPU0 (write-back)^M

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15747^M

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off^M

Configuring Blackfin Priority Driven Interrupts^M

PID hash table entries: 256 (order: 8, 1024 bytes)^M

console handover:boot [early_BFuart0] boot [early_shadow0]  -> real [ttyBF0]^M

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M

Memory available: 50628k/65536k RAM, (7564k init code, 1137k kernel code, 491k data, 2048k dma, 3664k reserved)^M

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)^M

Security Framework initialized^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

Blackfin L1 Data A SRAM: 16 KB (15 KB free)^M

Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M

Blackfin L1 Instruction SRAM: 48 KB (37 KB free)^M

net_namespace: 288 bytes^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

stamp_init(): registering device resources^M

NET: Registered protocol family 2^M

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M

TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

NET: Registered protocol family 1^M

msgmni has been set to 98^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

Serial: Blackfin serial driver^M

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART^M

brd: module loaded^M

bfin_mii_bus: probed^M

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)^M

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M

bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.^M

ALSA device list:^M

  No soundcards found.^M

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 08:37:39 UTC (1085992659)^M

IP-Config: Complete:^M

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M

     host=bf537-stamp, domain=, nis-domain=(none),^M

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M

dma_alloc_init: dma_page @ 0x03001000 - 512 pages at 0x03e00000^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |^M

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |^M

       8'    .88       \        | |   | |  _ \| | | | \  /        |^M

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |^M

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |^M

     dP   .    Y8b.       \   For embedded processors including   |^M

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /^M

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

   8a.   :     _a88P         For further information, check out:^M

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/^M

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/^M

/     \.___.d|    .'           - http://www.uclinux.org/^M

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin^M

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.13.4 (2009-07-13 04:04:58 GMT) built-in shell (msh)^M

Enter 'help' for a list of built-in commands.^M

^M

root:/> PHY: 0:01 - Link is Up - 100/Full^M

root:/> version^M

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6972, build #16 Mon Jul 13 04:07:29 GMT 2009^M

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)^M

user-dist: release svn-8484, build #256 Mon Jul 13 04:06:21 GMT 2009^M

root:/> ping 10.100.4.174 -c 5^M

PING 10.100.4.174 (10.100.4.174): 56 data bytes^M

64 bytes from 10.100.4.174: seq=0 ttl=64 time=4.000 ms^M

64 bytes from 10.100.4.174: seq=1 ttl=64 time=0.000 ms^M

64 bytes from 10.100.4.174: seq=2 ttl=64 time=0.000 ms^M

64 bytes from 10.100.4.174: seq=3 ttl=64 time=0.000 ms^M

64 bytes from 10.100.4.174: seq=4 ttl=64 time=0.000 ms^M

^M

--- 10.100.4.174 ping statistics ---^M

5 packets transmitted, 5 packets received, 0% packet loss^M

round-trip min/avg/max = 0.000/0.800/4.000 ms^M

root:/>

root:/> rtcwake -s 10 -m mem^M

wakeup from "mem" at Mon May 31 08:38:18 2004^M

PM: Syncing filesystems ... done.^M

Freezing user space processes ... (elapsed 0.00 seconds) done.^M

Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.^M

Suspending console(s) (use no_console_suspend to debug)^M

PHY: 0:01 - Link is Down^M

Restarting tasks ... done.^M

PHY: 0:01 - Link is Up - 100/Full^M

root:/> ifconfig^M

Data access CPLB miss^M

- Used by the MMU to signal a CPLB miss on a data access.^M

Deferred Exception context^M

CURRENT PROCESS:^M

COMM=ifconfig PID=174^M

CPU = 0^M

TEXT = 0x03100000-0x0314dc24        DATA = 0x03dd8c24-0x03ddc4e4^M

BSS = 0x03ddc4e4-0x03300000  USER-STACK = 0x0331fec0^M

^M

return address: [0xffa005a4]; contents of:^M

0xffa00580:  e149  ffe0  9109  0141  0140  6000  3620  3628 ^M

0xffa00590:  3630  3638  31f4  b1b6  3046  6fa6  e330  2316 ^M

0xffa005a0:  6c66  2000 [017a] 0148  0140  05c0  014f  0178 ^M

0xffa005b0:  0150  0151  0152  0153  0154  0155  0156  0157 ^M

^M

ADSP-BF537-0.3 500(MHz CCLK) 125(MHz SCLK) (mpu on)^M

Linux version 2.6.28.10-ADI-2009R1-svn6972^M

Built with gcc version 4.1.2 (ADI svn)^M

^M

SEQUENCER STATUS:               Not tainted^M

SEQSTAT: 00060026  IPEND: 0030  SYSCFG: 0006^M

  EXCAUSE   : 0x26^M

  interrupts disabled^M

  physical IVG5 asserted : <0xffa00bf0> { _evt_ivhw + 0x0 }^M

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

RETN: <0x032ec000> /* kernel dynamic memory */^M

RETX: <0xffa005a4> { _exception_to_level5 + 0x0 }^M

RETS: <0x03023c7a> [ /lib/ld-uClibc.so.0 + 0x3c7a ]^M

PC  : <0xffa005a4> { _exception_to_level5 + 0x0 }^M

DCPLB_FAULT_ADDR: <0x0300c924> /* kernel dynamic memory */^M

ICPLB_FAULT_ADDR: <0x0008a45c> { _sprintf + 0x0 }^M

^M

PROCESSOR STATE:^M

R0 : 00000000    R1 : 0331fcc4    R2 : 0324b4b9    R3 : 00000000^M

R4 : 0324b000    R5 : 00c9a3f0    R6 : 03105bf3    R7 : 0324b010^M

P0 : 0324b13c    P1 : 0324b4b8    P2 : 03105bfc    P3 : 00c9a188^M

P4 : 0000001c    P5 : 00000019    FP : 0331fa74    SP : 032ebf24^M

LB0: 030df7cf    LT0: 030df7ce    LC0: 00000000^M

LB1: 03024f8d    LT1: 03024f8c    LC1: 00000000^M

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 000005c0^M

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00c9a1bc^M

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000^M

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000^M

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000^M

USP : 0331f928  ASTAT: 02002020^M

^M

Hardware Trace:^M

   0 Target : <0x00004cac> { _trap_c + 0x0 }^M

     Source : <0xffa0064c> { _exception_to_level5 + 0xa8 } CALL pcrel^M

   1 Target : <0xffa005a4> { _exception_to_level5 + 0x0 }^M

     Source : <0xffa00408> { _ex_dcplb_miss + 0x78 } RTX^M

   2 Target : <0xffa00390> { _ex_dcplb_miss + 0x0 }^M

     Source : <0xffa00718> { _trap + 0x58 } JUMP (P4)^M

   3 Target : <0xffa006c0> { _trap + 0x0 }^M

     Source : <0xffa0047c> { _bfin_return_from_exception + 0x18 } RTX^M

   4 Target : <0xffa00464> { _bfin_return_from_exception + 0x0 }^M

     Source : <0xffa004f2> { _ex_trap_c + 0x46 } JUMP.S^M

   5 Target : <0xffa004ac> { _ex_trap_c + 0x0 }^M

     Source : <0xffa00718> { _trap + 0x58 } JUMP (P4)^M

   6 Target : <0xffa006c0> { _trap + 0x0 }^M

     Source : <0x030229ba> [ /lib/ld-uClibc.so.0 + 0x29ba ] 0xb2ba^M

   7 Target : <0x030229b4> [ /lib/ld-uClibc.so.0 + 0x29b4 ]^M

     Source : <0xffa00408> { _ex_dcplb_miss + 0x78 } RTX^M

   8 Target : <0xffa00390> { _ex_dcplb_miss + 0x0 }^M

     Source : <0xffa00718> { _trap + 0x58 } JUMP (P4)^M

   9 Target : <0xffa006c0> { _trap + 0x0 }^M

     Source : <0x03023c76> [ /lib/ld-uClibc.so.0 + 0x3c76 ] CALL pcrel^M

  10 Target : <0x03023c62> [ /lib/ld-uClibc.so.0 + 0x3c62 ]^M

     Source : <0x03023c8e> [ /lib/ld-uClibc.so.0 + 0x3c8e ] JUMP.S^M

  11 Target : <0x03023c8a> [ /lib/ld-uClibc.so.0 + 0x3c8a ]^M

     Source : <0x03023c58> [ /lib/ld-uClibc.so.0 + 0x3c58 ] IF !CC JUMP^M

  12 Target : <0x03023c4f> [ /lib/ld-uClibc.so.0 + 0x3c4f ]^M

     Source : <0x03023c5e> [ /lib/ld-uClibc.so.0 + 0x3c5e ] IF CC JUMP^M

  13 Target : <0x03023c42> [ /lib/ld-uClibc.so.0 + 0x3c42 ]^M

     Source : <0x03023c2a> [ /lib/ld-uClibc.so.0 + 0x3c2a ] IF !CC JUMP^M

  14 Target : <0x03023c26> [ /lib/ld-uClibc.so.0 + 0x3c26 ]^M

     Source : <0x03023c40> [ /lib/ld-uClibc.so.0 + 0x3c40 ] IF CC JUMP^M

  15 Target : <0x03023c30> [ /lib/ld-uClibc.so.0 + 0x3c30 ]^M

     Source : <0x03023c64> [ /lib/ld-uClibc.so.0 + 0x3c64 ] IF CC JUMP^M

Userspace Stack^M

Stack info:^M

SP: [0x0331f928] <0x0331f928> [ ifconfig + 0x1f928 ]^M

Memory from 0x0331f920 to 03320000^M

0331f920: 00000000  00000000 [00000000] 00000000  00000000  00000000  00000000  00000000 ^M

0331f940: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331f960: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331f980: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331f9a0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331f9c0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331f9e0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fa00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fa20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fa40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fa60: 00000000  00000000  00000000  00000000  00000000  0331fab4 <03023c7a> 00000019 ^M

0331fa80: 0000001c  0324b010  03105bf3  00c9a3f0  0324b000  40baeeef  00000000  0324b4b9 ^M

0331faa0: 00000000  45984f00  00c9a188  00c9a474  0324b160  0331fcc8 <03025484> 03dd93ec ^M

0331fac0: 00c9a188  03105bf3  03297028  00c9a188  00000001  00000000  0331fcc4  00000000 ^M

0331fae0: 03105bf3  00000000  000000a8  00000000  00000000  03297028  00000000  00c9a158 ^M

0331fb00: 03027004  03026af0  00c9a154  00000000  00000000  00c9a3f0  00c9a3d4  00c9a3e4 ^M

0331fb20: 00c9a46c  00c9a410  00c9a414  00c9a150  0331fad4  00000000  00000000  00000000 ^M

0331fb40: 00000000  03026b48  00000000  00000000  00000000  0331fe20  03100000  00000000 ^M

0331fb60: 00000000  00000000  03297000  00000000  00000000  0331ff60  00c9a188  0331ff80 ^M

0331fb80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fba0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fbc0: 00000000  00001efb  00000880  03dda0a0  03100128  03103cf8  031013a8  00000000 ^M

0331fbe0: 00000000  00000000  00001f5a  00000010  000069fc  0003bbec  00000000  00000000 ^M

0331fc00: 00000000  03105c54  00000da8  00000008  00000011  00000000  00000000  0310617c ^M

0331fc20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fc40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fc60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fc80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fca0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fcc0: 00000000  03297124  0331fe80 <030261e2> 0331ff60  000005c0  0000b030  00000002 ^M

0331fce0: 00000512  00c9a188  0331fd18  0331ff60  00c9a188  0331fe08  0331fecc  0331fec4 ^M

0331fd00: 0331ff80  00c9a188  0331ff60  00c9a188  0331fec4  0331fecc  0331ff60  00c9a188 ^M

0331fd20: 03100114  00c9a0b8  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fd40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fd60: 00000000  00000000  00c9a188  030200d4  03020774  03020304  00000000  00000000 ^M

0331fd80: 00000000  00000429  00000010  00000000  00000000  0000040e  00000000  00000000 ^M

0331fda0: 03020ba0  000005c0  00000008  00000000  00000000  00000000  00000000  00000001 ^M

0331fdc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fde0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fe00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

0331fe20: 00000003  03100034  00000004  00000020  00000005  00000007  00000006  00001000 ^M

0331fe40: 00000007  03020000  00000008  00000000  00000009  03107b24  00000000  00000000 ^M

0331fe60: 0000000b  00000000  0000000c  00000000  0000000d  00000000  0000000e  00000000 ^M

0331fe80: 031ffa2c <030211b0> 00c9a188  031fffdb  00c9a0b8  0331ff60  0331ff80 <03021164>^M

0331fea0: 00c9a188  0331ff80  00000000  00c9a0b8  0331feb8  0331fec0  00000000  00000000 ^M

0331fec0: 00000001  0331ffa2  00000000  0331ffab  0331ffb2  0331ffc0  0331ffe3  00000000 ^M

0331fee0: 00000010  00000000  00000006  00001000  00000011  00000064  00000003  03100034 ^M

0331ff00: 00000004  00000020  00000005  00000007  00000007  03020000  00000008  00000000 ^M

0331ff20: 00000009  03107b24  0000000b  00000000  0000000c  00000000  0000000d  00000000 ^M

0331ff40: 0000000e  00000000  00000017  00000000  0000001f  0001ffee  00000000  00000000 ^M

0331ff60: 00020000  03020000  00000000  0000702c  00c9a02c  0000b02c  00000450  00000000 ^M

0331ff80: 00020000  03100000  00000000  0004dc24  03dd8c24  00051c24  000038c0  00000000 ^M

0331ffa0: 66690000  666e6f63  48006769  3d454d4f  4853002f  3d4c4c45  6e69622f  0068732f ^M

0331ffc0: 48544150  69622f3d  752f3a6e  622f7273  2f3a6e69  6e696273  73752f3a  62732f72 ^M

0331ffe0: 54006e69  3d4d5245  756e696c  622f0078  692f6e69  6e6f6366  00676966  00000000 ^M

03320000: e3306fa6 ^M

Return addresses in stack:^M

    address : <0x03023c7a> [ /lib/ld-uClibc.so.0 + 0x3c7a ]^M

    address : <0x03025484> [ /lib/ld-uClibc.so.0 + 0x5484 ]^M

    address : <0x030261e2> [ /lib/ld-uClibc.so.0 + 0x61e2 ]^M

    address : <0x030211b0> [ /lib/ld-uClibc.so.0 + 0x11b0 ]^M

    address : <0x03021164> [ /lib/ld-uClibc.so.0 + 0x1164 ]^M

Bus error^M

root:/>

--

 

Follow-ups

 

--- Sonic Zhang                                              2009-07-13 03:50:30

This bug is caused by Robin's commit 6969 to kernel 2009R1 branch.

 

Add wordaround for ANOMALY_05000189 - which should fix bug [#5129]

 

 

--- Sonic Zhang                                              2009-07-13 04:01:08

Ignore my last comments. I can not replicate this bug on 2009R1 kernel branch

head.

 

--- Vivi Li                                                  2009-07-15 02:11:23

It doesn't crash now, but can not wake up from mem.

 

--

root:/> ping 10.100.4.174 -c 5

PING 10.100.4.174 (10.100.4.174): 56 data bytes

64 bytes from 10.100.4.174: seq=0 ttl=64 time=0.000 ms

64 bytes from 10.100.4.174: seq=1 ttl=64 time=0.000 ms

64 bytes from 10.100.4.174: seq=2 ttl=64 time=0.000 ms

64 bytes from 10.100.4.174: seq=3 ttl=64 time=0.000 ms

64 bytes from 10.100.4.174: seq=4 ttl=64 time=0.000 ms

 

--- 10.100.4.174 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.000/0.000/0.000 ms

root:/> rtcwake -s 10 -m mem

wakeup from "mem" at Mon May 31 04:22:44 2004

PM: Syncing filesystems ... done.

Freezing user space processes ... (elapsed 0.00 seconds) done.

Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

Suspending console(s) (use no_console_suspend to debug)

--

 

Test version:

--

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6988, build #28 Tue Jul 14

22:06:36 GMT 2009

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8488, build #398 Tue Jul 14 22:05:29 GMT 2009

--

 

--- Michael Hennerich                                        2009-07-16 04:25:16

Works without issues for me!

I wonder if you use a BF537-STAMP with the SCKE Pull-Down installed?

All testing with suspend mem on BF537/6/4 BF52x BF51x BF561 require the

Pull-Down on SCKE.

 

See below:

 

-Michael

 

U-Boot 2008.10-svn1961 (ADI-2009R1-rc2) (Jul  7 2009 - 10:38:43)              

                                                            

                                                                              

                                                            

CPU:   ADSP bf537-0.2 (Detected Rev: 0.3) (bypass boot)                       

                                                            

Board: ADI BF537 stamp board                                                  

                                                            

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

                                                            

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

                                                            

RAM:   64 MB                                                                  

                                                            

Flash:  4 MB                                                                  

                                                            

In:    serial                                                                 

                                                            

Out:   serial                                                                 

                                                            

Err:   serial                                                                 

                                                            

Net:   Blackfin EMAC                                                          

                                                            

MAC:   4E:03:4E:03:4E:03                                                      

                                                            

Hit any key to stop autoboot:  0                                              

                                                            

Using Blackfin EMAC device                                                    

                                                            

TFTP from server 10.44.2.88; our IP address is 10.44.2.46                     

                                                            

Filename 'uImage'.                                                            

                                                            

Load address: 0x1000000                                                       

                                                            

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

                                                            

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

                                                            

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

                                                            

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

                                                            

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

                                                            

done                                                                          

                                                            

Bytes transferred = 4670834 (474572 hex)                                      

                                                            

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

                                                            

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

                                                            

   Created:      2009-07-16   7:25:07 UTC                                     

                                                            

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)                

                                                            

   Data Size:    4670770 Bytes =  4.5 MB                                      

                                                            

   Load Address: 00001000                                                     

                                                            

   Entry Point:  001c87cc                                                     

                                                            

   Verifying Checksum ... OK                                                  

                                                            

   Uncompressing Kernel Image ... OK                                          

                                                            

Starting Kernel at = 001c87cc                                                 

                                                            

Linux version 2.6.28.10-ADI-2009R1-svn6997 (michael@mhenneri-D02) (gcc version

4.1.2 (ADI svn)) #154 Thu Jul 16 09:24:59 CEST 2009          

bootconsole [early_shadow0] enabled                                           

                                                            

bootconsole [early_BFuart0] enabled                                           

                                                            

early printk enabled on early_BFuart0                                         

                                                            

Board Memory: 64MB                                                            

                                                            

Kernel Managed Memory: 64MB                                                   

                                                            

Memory map:                                                                   

                                                            

  fixedcode = 0x00000400-0x00000490                                           

                                                            

  text      = 0x00001000-0x001313d0                                           

                                                            

  rodata    = 0x001313d0-0x00192528                                           

                                                            

  bss       = 0x00193000-0x001a4dd4                                           

                                                            

  data      = 0x001a4dd4-0x001ba000                                           

                                                            

    stack   = 0x001b8000-0x001ba000                                           

                                                            

  init      = 0x001ba000-0x008b8000                                           

                                                            

  available = 0x008b8000-0x03eff000                                           

                                                            

  DMA Zone  = 0x03f00000-0x04000000                                           

                                                            

Hardware Trace Active and Enabled                                             

                                                            

Boot Mode: 0                                                                  

                                                            

Blackfin support (C) 2004-2009 Analog Devices, Inc.                           

                                                            

Compiled for ADSP-BF537 Rev 0.3                                               

                                                            

Blackfin Linux support by http://blackfin.uclinux.org/                        

                                                            

Processor Speed: 500 MHz core clock and 125 MHz System Clock                  

                                                            

MPU: setting up cplb tables with memory protection                            

                                                            

Instruction Cache Enabled for CPU0                                            

                                                            

Data Cache Enabled for CPU0 (write-back)                                      

                                                            

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001   

                                                            

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.44.2.46:10.44.2.88:1f

Configuring Blackfin Priority Driven Interrupts                               

                                                            

PID hash table entries: 256 (order: 8, 1024 bytes)                            

                                                            

console handover:boot [early_BFuart0] boot [early_shadow0]  -> real [ttyBF0]

                                                               

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                 

                                                            

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                  

                                                            

Memory available: 51652k/65536k RAM, (7160k init code, 1216k kernel code, 548k

data, 1024k dma, 3932k reserved)                             

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)                       

                                                            

Security Framework initialized                                                

                                                            

Mount-cache hash table entries: 512                                           

                                                            

Blackfin Scratchpad data SRAM: 4 KB                                           

                                                            

Blackfin L1 Data A SRAM: 16 KB (15 KB free)                                   

                                                            

Blackfin L1 Data B SRAM: 16 KB (16 KB free)                                   

                                                            

Blackfin L1 Instruction SRAM: 48 KB (37 KB free)                              

                                                            

net_namespace: 288 bytes                                                      

                                                            

NET: Registered protocol family 16                                            

                                                            

Blackfin DMA Controller                                                       

                                                            

stamp_init(): registering device resources                                    

                                                            

SCSI subsystem initialized                                                    

                                                            

usbcore: registered new interface driver usbfs                                

                                                            

usbcore: registered new interface driver hub                                  

                                                            

usbcore: registered new device driver usb                                     

                                                            

NET: Registered protocol family 2                                             

                                                            

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                

                                                            

TCP established hash table entries: 2048 (order: 2, 16384 bytes)              

                                                            

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                      

                                                            

TCP: Hash tables configured (established 2048 bind 2048)                      

                                                            

TCP reno registered                                                           

                                                            

NET: Registered protocol family 1                                             

                                                            

msgmni has been set to 100                                                    

                                                            

io scheduler noop registered                                                  

                                                            

io scheduler anticipatory registered (default)                                

                                                            

io scheduler cfq registered                                                   

                                                            

Serial: Blackfin serial driver                                                

                                                            

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART              

                                                            

brd: module loaded                                                            

                                                            

bfin_mii_bus: probed                                                          

                                                            

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)                   

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1        

                                                            

Driver 'sd' needs updating - please use bus_type methods                      

                                                            

isp1760-hcd isp1760-hcd.0: NXP ISP1760 USB Host Controller                    

                                                            

isp1760-hcd isp1760-hcd.0: new USB bus registered, assigned bus number 1      

                                                            

ISP1760: Scratch test failed.                                                 

                                                            

isp1760-hcd isp1760-hcd.0: can't setup                                        

                                                            

isp1760-hcd isp1760-hcd.0: USB bus 1 deregistered                             

                                                            

Initializing USB Mass Storage driver...                                       

                                                            

usbcore: registered new interface driver usb-storage                          

                                                            

USB Mass Storage support registered.                                          

                                                            

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0                      

                                                            

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller,

regs_base@ffc01400                                                   

bfin-wdt: initialized: timeout=20 sec (nowayout=0)                            

                                                            

usbcore: registered new interface driver usbhid                               

                                                            

usbhid: v2.6:USB HID core driver                                              

                                                            

TCP cubic registered                                                          

                                                            

NET: Registered protocol family 17                                            

                                                            

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:54:27 UTC (3267)     

                                                            

IP-Config: Gateway not on directly connected network.                         

                                                            

dma_alloc_init: dma_page @ 0x03abd000 - 256 pages at 0x03f00000               

                                                            

PHY: 0:01 - Link is Up - 100/Full                                             

                                                            

                           _____________________________________              

                                                            

        a8888b.           / Welcome to the uClinux distribution \             

                                                            

       d888888b.         /       _     _                         \            

                                                            

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  | 

                                                                      

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |           

                                                            

       8'    .88       \        | |   | |  _ \| | | | \  /        |           

                                                            

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |           

                                                            

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |           

                                                            

     dP   .    Y8b.       \   For embedded processors including   |           

                                                            

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /       

                                                                 

   d8"         'Y88b        \___________________________________/        

                                                                 

  :8P    '      :888                                                          

                                                            

   8a.   :     _a88P         For further information, check out:              

                                                            

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/           

                                                                 

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/      

                                                                 

/     \.___.d|    .'           - http://www.uclinux.org/                     

                                                            

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin              

                                                            

                                                                              

                                                            

Have a lot of fun...                                                          

                                                            

                                                                              

                                                            

 

BusyBox v1.13.4 (2009-07-13 10:47:27 CEST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> ping 10.44.2.88 -c5

PING 10.44.2.88 (10.44.2.88): 56 data bytes

64 bytes from 10.44.2.88: seq=0 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=1 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=2 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=3 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=4 ttl=64 time=0.000 ms

 

--- 10.44.2.88 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.000/0.000/0.000 ms

root:/> rtcwake -s10 -mmem

wakeup from "mem" at Thu Jan  1 00:55:13 1970

PM: Syncing filesystems ... done.

Freezing user space processes ... (elapsed 0.00 seconds) done.

Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

Suspending console(s) (use no_console_suspend to debug)

PHY: 0:01 - Link is Down

Restarting tasks ... done.

PHY: 0:01 - Link is Up - 100/Full

root:/> ping 10.44.2.88 -c5

PING 10.44.2.88 (10.44.2.88): 56 data bytes

64 bytes from 10.44.2.88: seq=0 ttl=64 time=4.000 ms

64 bytes from 10.44.2.88: seq=1 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=2 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=3 ttl=64 time=0.000 ms

64 bytes from 10.44.2.88: seq=4 ttl=64 time=0.000 ms

 

--- 10.44.2.88 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.000/0.800/4.000 ms

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6997, build #154 Thu Jul 16

09:24:59 CEST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8370, build #77 Thu Jul 16 09:23:50 CEST 2009

root:/>

 

--- Vivi Li                                                  2009-07-20 06:39:15

So you mean that I should do the similar fix to nearly all the boards as in bug

[#5327]?

 

Without SCKE Pull-Down installed, suspend to mem will act very strange or it

won't work at all?

 

--- Michael Hennerich                                        2009-07-21 03:29:58

 

All boards that doesn't already feature the Pull-Down on the SCKE strobe

require this resistor, when you re going to test Hibernate/suspend mem.

As far as I know only the latest BF518-EZBRD has this resistor

populated.

 

Not having it will cause random failures after return from suspend mem,

due lost data integrity in the SDRAM.

 

-Michael

 

--- Vivi Li                                                  2009-07-31 06:00:49

It's OK now after a pull down resistor is added.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.power    application/octet-stream    32591    Vivi Li

Attachments

Outcomes