Article [#5930] Fail to run bfin_opcontrol in flat format after update toolchain to svn3815

[#5930] Fail to run bfin_opcontrol in flat format after update toolchain to svn3815

Submitted By: Vivi Li

Open Date

2010-02-25 05:34:06     Close Date

2010-03-17 05:18:21

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-svn3815

App binary format:

N/A     

Summary: Fail to run bfin_opcontrol in flat format after update toolchain to svn3815

Details:

Fail to run bfin_opcontrol in flat format after update toolchain to svn3815.

Last passed version:

--

kernel:    Linux release 2.6.32.6-ADI-2010R1-pre-svn8240, build #24 Thu Jan 28 20:59:09 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)

user-dist: release svn-9414, build #491 Thu Jan 28 20:57:45 CST 2010

--

First failed version:

--

kernel:    Linux release 2.6.32.6-ADI-2010R1-pre-svn8250, build #28 Sat Jan 30 06:55:03 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)

user-dist: release svn-9424, build #576 Sat Jan 30 06:53:14 CST 2010

--

--

Linux version 2.6.32.9-ADI-2010R1-pre-svn8339 (test@uclinux60-bf527-std) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #8 Thu Feb 250

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0015fc10

  rodata    = 0x0015fc10-0x001de5b4

  bss       = 0x001df000-0x00213a84

  data      = 0x00213aa0-0x00230000

    stack   = 0x0022e000-0x00230000

  init      = 0x00230000-0x00f3b000

  available = 0x00f3b000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF527 Rev 0.2

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

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 if

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

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

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

Memory available: 48348k/65536k RAM, (13356k init code, 1403k kernel code, 833k data, 1024k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Switching to clocksource jiffies

musb_hdrc: version 6.0, pio, host, debug=0

musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

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 94

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...

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

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

brd: module loaded

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

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

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

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

oprofile: using timer interrupt.

TCP cubic registered

NET: Registered protocol family 17

(IP-Config: Complete:tting system clock to 2004-06-01 08:23:32 UTC (1086078212)

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

     host=bf527-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 13356k freed

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

scsi0 : SCSI emulation for USB Mass Storage devices

                           _____________________________________

        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.15.3 (2010-02-25 15:30:19 CST) hush - the humble shell

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

scsi 0:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  3.21 PQ: 0 ANSI: 2

sd 0:0:0:0: [sda] 2006673 512-byte logical blocks: (1.02 GB/979 MiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1 sda2

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Attached SCSI removable disk

root:/>

root:/> version

kernel:    Linux release 2.6.32.9-ADI-2010R1-pre-svn8339, build #8 Thu Feb 25 15:34:02 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)

user-dist: release svn-9462, build #161 Thu Feb 25 15:31:33 CST 2010

root:/>

root:/> /usr/bin/bfin_opcontrol --init

mkdir: cannot create directory '/var/lib/': File exists

root:/>

root:/> /usr/bin/bfin_opcontrol --start-daemon &

[1] 251 /usr/bin/bfin_opcontrol --start-daemon

root:/> Using 2.6+ OProfile kernel interface.Data access misaligned address violation

<5> - Attempted misaligned data memory or data cache access.

Deferred Exception context

CURRENT PROCESS:

COMM=oprofiled PID=252 CPU=0

TEXT = 0x00260040-0x0026f8e0        DATA = 0x0026f900-0x002737f8

BSS = 0x002737f8-0x0027bdf0  USER-STACK = 0x0027cf00

return address: [0x00269b0a]; contents of:

0x00269ae0:  1c0a  6050  304d  e300  0a77  0c38  1403  63ff

0x00269af0:  2002  640f  0c06  1409  3047  e14a  0026  6780

0x00269b00:  6009  e10a  cc50  0062  3007 [e801] 0000  05ad

0x00269b10:  0010  0000  e800  0003  b0f9  b13a  e14a  0027

ADSP-BF527-0.2 525(MHz CCLK) 131(MHz SCLK) (mpu off)

Linux version 2.6.32.9-ADI-2010R1-pre-svn8339 (test@uclinux60-bf527-std) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #8 Thu Feb 250

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002024  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x24

  physical IVG3 asserted : <0xffa006bc> { _trap + 0x0 }

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

RETN: <0x0024c000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x00269aea> [ /usr/bin/oprofiled + 0x9aaa ]

PC  : <0x00269b0a> [ /usr/bin/oprofiled + 0x9aca ]

DCPLB_FAULT_ADDR: <0x2e6f660c> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x00269b0a> [ /usr/bin/oprofiled + 0x9aca ]

PROCESSOR STATE:

R0 : 00000015    R1 : 0027bbec    R2 : 00000015    R3 : 00000000

R4 : 00260790    R5 : 002721fc    R6 : 00000002    R7 : 00000015

P0 : 00000004    P1 : 00000006    P2 : 00000015    P3 : 002731a0

P4 : 00000004    P5 : 0027337c    FP : 2e6f660a    SP : 0024bf24

LB0: 002671c9    LT0: 002671bc    LC0: 00000000

LB1: 0026e959    LT1: 0026e90e    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 00272210

B1 : 00000000    L1 : 00000000    M1 : 00000001    I1 : 00000000

B2 : 0024d3e8    L2 : 00000000    M2 : 00000000    I2 : 00000000

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

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

USP : 0027bc10  ASTAT: 02003004

Hardware Trace:

   0 Target : <0x00005188> { _trap_c + 0x0 }

     Source : <0xffa00650> { _exception_to_level5 + 0xa4 } CALL pcrel

   1 Target : <0xffa005ac> { _exception_to_level5 + 0x0 }

     Source : <0xffa00460> { _bfin_return_from_exception + 0x18 } RTX

   2 Target : <0xffa00448> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00504> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa00490> { _ex_trap_c + 0x0 }

     Source : <0xffa00716> { _trap + 0x5a } JUMP (P4)

   4 Target : <0xffa006bc> { _trap + 0x0 }

     Source : <0x00269b08> [ /usr/bin/oprofiled + 0x9ac8 ] 0x3007

   5 Target : <0x00269b08> [ /usr/bin/oprofiled + 0x9ac8 ]

     Source : <0x00269af6> [ /usr/bin/oprofiled + 0x9ab6 ] IF CC JUMP

   6 Target : <0x00269af2> [ /usr/bin/oprofiled + 0x9ab2 ]

     Source : <0x00269aec> [ /usr/bin/oprofiled + 0x9aac ] IF CC JUMP

   7 Target : <0x00269aea> [ /usr/bin/oprofiled + 0x9aaa ]

     Source : <0x0026b06a> [ /usr/bin/oprofiled + 0xb02a ] RTS

   8 Target : <0x0026b064> [ /usr/bin/oprofiled + 0xb024 ]

     Source : <0x0026b060> [ /usr/bin/oprofiled + 0xb020 ] JUMP.S

   9 Target : <0x0026b05e> [ /usr/bin/oprofiled + 0xb01e ]

     Source : <0x0026b040> [ /usr/bin/oprofiled + 0xb000 ] IF CC JUMP

  10 Target : <0x0026b03e> [ /usr/bin/oprofiled + 0xaffe ]

     Source : <0x00269f0a> [ /usr/bin/oprofiled + 0x9eca ] RTS

  11 Target : <0x00269efe> [ /usr/bin/oprofiled + 0x9ebe ]

     Source : <0x0026d3e6> [ /usr/bin/oprofiled + 0xd3a6 ] RTS

  12 Target : <0x0026d3de> [ /usr/bin/oprofiled + 0xd39e ]

     Source : <0x0026d382> [ /usr/bin/oprofiled + 0xd342 ] IF !CC JUMP

  13 Target : <0x0026d380> [ /usr/bin/oprofiled + 0xd340 ]

     Source : <0x0026d39c> [ /usr/bin/oprofiled + 0xd35c ] JUMP.S

  14 Target : <0x0026d392> [ /usr/bin/oprofiled + 0xd352 ]

     Source : <0x00268f60> [ /usr/bin/oprofiled + 0x8f20 ] RTS

  15 Target : <0x00268f58> [ /usr/bin/oprofiled + 0x8f18 ]

     Source : <0x00268f4a> [ /usr/bin/oprofiled + 0x8f0a ] IF CC JUMP

Userspace Stack

Stack info:

SP: [0x0027bc10] <0x0027bc10> [ /usr/bin/oprofiled + 0x1bc10 ]

Memory from 0x0027bc10 to 0027c000

0027bc10:[00000000] 00000020  00000000  00000001  00000013  00010000  00000003  0027cdb8

0027bc30:<00261ba8> 002731a0  00020000  00000000  02fbf004  00000008  00000008  0027bdc8

0027bc50:<002717cc> 00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bc70: 00000000  00000000  0024e044 <00268c5a> 00000000  00000000  0027bcc8 <0026b71c>

0027bc90: ffffffff  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bcb0: 00000000  00000000  0027bce4 <0026b9f8> 0024e040  00273304  00273624  00000044

0027bcd0: 00008030  00000002  00000001  00000000  00000000  0027bd2c <0026acec> 00000000

0027bcf0: 0027333c  00008030  0027bd2c <0026ad2c><0026b9f8> 0024e084  0026cc50  00273624

0027bd10: 00000104  00000000  00000002 <00269d24> 0000000a  0000000a  0027bd70  0027bd70

0027bd30:<00269a14> 0024e044  0026cc50  0027bd50  00000000  0027bd50  00000000  00000000

0027bd50: 000000d0  0027bd84 <0026a8a6> 0027bdc8  00000004  00273624  0024e044  0027bdc8

0027bd70: 0027bda0 <00263d48> 0027bdc8  00000004  0024e044  0027bdc8  00000001  00000000

0027bd90: 0027bdac  0027bd9c  00000001  00000004  0027cdcc <00260bd8> 00000001  00000000

0027bdb0: 02fbf004 <0026c034> 0024e004  00000000  002717b0 <002717cc> 7665642f  72706f2f

0027bdd0: 6c69666f  702f2f65  746e696f  735f7265  00657a69  00000000  00000000  00000000

0027bdf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027be10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027be30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027be50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027be70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027be90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027beb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bed0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bef0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bf10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bf30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bf50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bf70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bf90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bfb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bfd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0027bff0: 00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x00261ba8> [ /usr/bin/oprofiled + 0x1b68 ]

    address : <0x002717cc> [ /usr/bin/oprofiled + 0x117cc ]

    address : <0x00268c5a> [ /usr/bin/oprofiled + 0x8c1a ]

    address : <0x0026b71c> [ /usr/bin/oprofiled + 0xb6dc ]

    address : <0x0026b9f8> [ /usr/bin/oprofiled + 0xb9b8 ]

    address : <0x0026acec> [ /usr/bin/oprofiled + 0xacac ]

    address : <0x0026ad2c> [ /usr/bin/oprofiled + 0xacec ]

    address : <0x0026b9f8> [ /usr/bin/oprofiled + 0xb9b8 ]

    address : <0x00269d24> [ /usr/bin/oprofiled + 0x9ce4 ]

    address : <0x00269a14> [ /usr/bin/oprofiled + 0x99d4 ]

    address : <0x0026a8a6> [ /usr/bin/oprofiled + 0xa866 ]

    address : <0x00263d48> [ /usr/bin/oprofiled + 0x3d08 ]

    address : <0x00260bd8> [ /usr/bin/oprofiled + 0xb98 ]

    address : <0x0026c034> [ /usr/bin/oprofiled + 0xbff4 ]

    address : <0x002717cc> [ /usr/bin/oprofiled + 0x117cc ]

|3'ing module info.

[1] Done                   /usr/bin/bfin_opcontrol --start-daemon

root:/>

--

Follow-ups

--- Graf Yang                                                2010-03-05 04:45:33

This bug is caused by stack overflow.

Please add a line:

'FLTFLAGS += -s 8192' to the file user/oprofile/Makefile

to fix it.

--- Mike Frysinger                                           2010-03-05 04:58:45

ive restored the old FLTFLAGS the code used to use (the stack it implied was

bigger)

--- Graf Yang                                                2010-03-05 05:16:16

Thank you Mike.

--- Vivi Li                                                  2010-03-17 05:17:11

OK. Close it.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.