2009-03-25 18:15:50     Problem with DirectFB

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

2009-03-25 18:15:50     Problem with DirectFB

Alexander Buryak (UKRAINE)

Message: 71555   

 

I'v got error while running DirectFB application on BF-561.  

 

  ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~

        (c) 2001-2008  The world wide DirectFB Open Source Community

        (c) 2000-2004  Convergence (integrated media) GmbH

      ----------------------------------------------------------------

 

(*) DirectFB/Core: Single Application Core. (2009-03-23 21:04)

(*) Direct/TUndefined instruction

- May be used to emulate instructions that are not defined for

   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=spacedream PID=231

CPU = 0

TEXT = 0x008e4000-0x008e7cf8        DATA = 0x00900cf8-0x00928108

BSS = 0x00928108-0x00880000  USER-STACK = 0x0089feb0

 

return address: [0x037d20cc]; contents of:

0x037d20a0:  fcd4  0253  0042  0254  0057  0254  0066  0254

0x037d20b0:  00e0  0254  00f4  0254  fe94  0253  fcf8  0253

0x037d20c0:  29c4  0254  fea8  0253  fd0c  0253 [febc] 0253

0x037d20d0:  fd30  0253  fd44  0253  fd5c  0253  ff14  0253

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062021  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x21

  interrupts disabled

  physical IVG5 asserted : <0xffa00be4> { _evt_ivhw + 0x0 }

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

RETN: <0x008a8000> [ spacedream + 0x0 ]

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

RETS: <0x00956548> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x6548 ]

PC  : <0x037d20cc> [ spacedream + 0x20cc ]

DCPLB_FAULT_ADDR: <0x00833334> [ spacedream + 0x1334 ]

ICPLB_FAULT_ADDR: <0x037d20cc> [ spacedream + 0x20cc ]

 

PROCESSOR STATE:

R0 : 03784744    R1 : 00025800    R2 : 008e28a8    R3 : 008e28b8

R4 : 008e2808    R5 : 03784744    R6 : 00833780    R7 : 008e28b0

P0 : 00832fe8    P1 : 037d20cc    P2 : 037d5d04    P3 : 008a58b8

P4 : 008e28a4    P5 : 008e2838    FP : 0089f8fc    SP : 008a7f24

LB0: 001e1985    LT0: 001e1984    LC0: 00000000

LB1: 00955d93    LT1: 00955d92    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 001f9b0c

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

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

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

A0.w: fffffd7f   A0.x: ffffffff   A1.w: 00004f6a   A1.x: 00000000

USP : 0089f8ec  ASTAT: 02002000

 

Hardware Trace:

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

     Source : <0xffa0066a> { _exception_to_level5 + 0x9e } CALL pcrel

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

     Source : <0xffa0049a> { _bfin_return_from_exception + 0xe } RTX

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

     Source : <0xffa00522> { _ex_trap_c + 0x66 } JUMP.S

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

     Source : <0xffa00704> { _trap + 0x38 } 0x5f65

   4 Target : <0xffa006ea> { _trap + 0x1e }

     Source : <0xffa006e6> { _trap + 0x1a } 0xe10d

   5 Target : <0xffa006cc> { _trap + 0x0 }

     Source : <0x009527ea> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x27ea ] JUMP (P1)

   6 Target : <0x009527e2> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x27e2 ]

     Source : <0x00956544> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x6544 ] CALL pcrel

   7 Target : <0x00956528> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x6528 ]

     Source : <0x009cdb7e> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db7e ] CALL (P1)

   8 Target : <0x009cdb66> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db66 ]

     Source : <0x009cea5e> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4ea5e ] RTS

   9 Target : <0x009cea50> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4ea50 ]

     Source : <0x0098fa6e> [ /usr/lib/libdirectfb-1.2.so.0 + 0xfa6e ] JUMP (P1)

  10 Target : <0x0098fa66> [ /usr/lib/libdirectfb-1.2.so.0 + 0xfa66 ]

     Source : <0x009cdb62> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db62 ] CALL pcrel

  11 Target : <0x009cdb46> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db46 ]

     Source : <0x008ed3ba> [ /usr/lib/libfusion-1.2.so.0 + 0x53ba ] RTS

  12 Target : <0x008ed39c> [ /usr/lib/libfusion-1.2.so.0 + 0x539c ]

     Source : <0x0098fa28> [ /usr/lib/libdirectfb-1.2.so.0 + 0xfa28 ] JUMP (P1)

  13 Target : <0x0098fa20> [ /usr/lib/libdirectfb-1.2.so.0 + 0xfa20 ]

     Source : <0x009cdb42> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db42 ] CALL pcrel

  14 Target : <0x009cdb20> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db20 ]

     Source : <0x001f219c> [ /lib/libc.so.0 + 0x3219c ] RTS

  15 Target : <0x001f2194> [ /lib/libc.so.0 + 0x32194 ]

     Source : <0x001e198a> [ /lib/libc.so.0 + 0x2198a ] RTS

Userspace Stack

Stack info:

SP: [0x0089f8ec] <0x0089f8ec> [ spacedream + 0x1f8ec ]

FP: (0x0089f8fc)

Memory from 0x0089f8e0 to 008a0000

0089f8e0: 03784744  008bd9b8  00000008 [00000008] 008acfe8  008e2808  00833468 (0089f958)

0089f900:<009cdb80> 03784744  008bd9b8  008e28b0  037d5f48  008bc1c0  0089f92c  000001b6

0089f920: 00000002  008e28b0  00000000  008e2838  00832fe8  037c9000  008bd9bc  009d9cb8

0089f940: 008bd9a0  009d9f48 <009d9f64> 03784858  008e28a4  00000003 (0089fbb8)<00955fe8>

0089f960: 037d5ee8  037d5d04  00833468  00833780  00000000  03784744  00000000  00000000

0089f980: 037d5ee8  037d4004  00000800  00000000  008bd5e8  009585fc  00957d20  00000008

0089f9a0: 00000008  00000000  03784858  00000008  00000008  0089fb64  00000000  00000000

0089f9c0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0089f9e0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0089fa00: 037a51d8  037a51d8  008acfe8  0083e218  0083e14c  0083e218  0089fba8 <001ddb7a>

0089fa20: 00958189  00000005  008acfe8  0089fc6c  008acfe8  0089fa68 <008f6532> 008ac918

0089fa40: 037d5344 <03784740> 0089fb08  0089fb08  0089fa70  008acfe8  0089fa74  0089fa70

0089fa60: 00000005  00000001 <001f21e0> 0089fb08  00958184  00000000  00000000  00000000

0089fa80: 0089fab4 <008f6532> 0089fb04 <001dc1b6> 0089fb0c <001dc1b6> 009d9368  00000000

0089faa0: 0089fb1c <001dc1b6> 009d9428  00000000  00000028  037d4d80  00000028  008acfe8

0089fac0: 0089facc  037d4ccc  037d4cf4  000000d0  fffffffe  037d4d80  037d4da8  037d4d93

0089fae0: 037d4d80  037d4d80  037d4da8  00000000  00000001  00000000  00000000  00000000

0089fb00: 00000001  00000000  00000000  00000000  00000001  00000000  00000000  0089fb50

0089fb20:<001dc028> 0089fb3c <008cd3e0> 00000000  037d4b78  008bc1c0  00000001  0089fb5c

0089fb40:<008ebe1e> 037d4d44  0089fb5c <008ebe2a> 0089fb64  0089fb88 <008f6532> 008ac918

0089fb60: 03784744  008acfe8  0089fb88 <008f6158> 008ac918  008acfe8  00000000  00000000

0089fb80: 037d4d70  008ba000  0089fbb4 <001f20d4> 037d4de8  008acfe8  009d9f48 <009d9f64>

0089fba0: 03784858  00000000  00000001  0089fbd8  ffffffff  ffffffff (0089fbe4)<009ce9dc>

0089fbc0: 037d4dec  037d4ddc  03784744  008bc1c0  00000000  03784858  0089fc10  008bd9f8

0089fbe0: 0089fc10 (0089fc10)<009bda3a> 008b98a0  037d4dec <009cfb4e> 0248f4c8  03784744

0089fc00: 009d820c  00000001  00000140  037d4ddc (0089fc54)<009bd680> 008b955c  03784744

0089fc20: 008bc1c0  037848b0  00000000  009d8054  0089fc50 <008f6158> 008a9708  00000000

0089fc40: 037848f8  0000004c  009d7eb4  008b9574  03784858 (0089fc80)<008eacb4> 0089fcac

0089fc60: 008bd8f8  0089fcec  008bc1c0  008bd8fc  008a83ac  00000000 <009bd430> 0089fcec

0089fc80:(0089fcb0)<009bd454> 03784754  009d7e60  00000101  009da00c  008ba020  03784744

0089fca0: 03784754  0089fcac  008bd5e8  00000000 (0089fcf0)<0099029e> 00000000  008bd5e4

0089fcc0: 008bc1c0  009280ec  008a83ac  0089feb4  0089fdd0 <024a614c> 00000000  008af420

0089fce0: 00900ec8  00000000  008acfe8  0089feb4 (0089fdd0)<008e553a> 0089ff48  008af420

0089fd00: 00900ec8  00000000  008acfe8  0089feb4  0089fdf0  0089fdf4  037a4ea8  024a6cfc

0089fd20: 009280ec  037a4f44  078c830f  00000000  0089fd70 <024a3d9a> 00000000  00000000

0089fd40: 0089fd80  00000000  00900eb0  024a6cfc  024a66b4  037a4f44  097a1fce  008e4711

0089fd60: 008e4711  00838878  00000000  00000000  0089fdb0 <024a601a> 008acf28  008388ac

0089fd80: 00040f28  0089fdac  037a4f78  001c7e53  001c7e53  00838614  00000000  00000000

0089fda0: 0089fdac  0089ff9f  00000000  00838510  0089fe74 <024a614c> 0089ff48  008af420

0089fdc0: 0089ff9f  0089ff50  008acfe8  ffffffff (0089fe74)<001f6b82> 0089ff48  008af420

0089fde0: 0089ff9f  0089ff50  008acfe8  0089feb4  00000001  0089feb4  037a4f44  00000000

0089fe00: 00000000  00000000  00000000  00000000  00000000  00000003  008e4034  00000004

0089fe20: 00000020  00000005  00000006  00000006  00001000  00000007  024a0000  00000008

0089fe40: 00000000  00000009  008e4d98  00000000  00000000  0000000b  00000000  0000000c

0089fe60: 00000000  0000000d  00000000  0000000e  00000000 (00000000)<008e4dc6> 037a4f78

0089fe80: 008e4d98  037a4f68  0089ff50  0089ff70 <008e4d9c> 03793008  00000001  037a4f68

0089fea0: 03793000  03793010  037a4f68  0089ff7c  00000001  0089ff9f  00000000  0089ffac

0089fec0: 0089ffb3  0089ffc1  0089ffe4  00000000  00000010  00000000  00000006  00001000

0089fee0: 00000011  00000064  00000003  008e4034  00000004  00000020  00000005  00000006

0089ff00: 00000007  024a0000  00000008  00000000  00000009  008e4d98  0000000b  00000000

0089ff20: 0000000c  00000000  0000000d  00000000  0000000e  00000000  00000017  00000000

0089ff40: 0000001f  0001ffef  00000000  00000000  00020000  024a0000  00000000  00006e1c

0089ff60: 037a4e1c  0000ae1c  00000448  00000000  00020000  008e4000  00000000  00003cf8

0089ff80: 00900cf8  00007cf8  00027410  00000000  00000000  00000000  00000000  2e000000

0089ffa0: 6170732f  72646563  006d6165  454d4f48  53002f3d  4c4c4548  69622f3d  68732f6e

0089ffc0: 54415000  622f3d48  2f3a6e69  2f727375  3a6e6962  6962732f  752f3a6e  732f7273

0089ffe0: 006e6962  4d524554  6e696c3d  2e007875  6170732f  72646563  006d6165  00000000

008a0000: e8010981

Return addresses in stack:

   frame  1 : <0x009cdb80> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4db80 ]

    address : <0x009d9f64> [ /usr/lib/libdirectfb-1.2.so.0 + 0x59f64 ]

   frame  2 : <0x00955fe8> [ /usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so + 0x5fe8 ]

    address : <0x001ddb7a> [ /lib/libc.so.0 + 0x1db7a ]

    address : <0x008f6532> [ /lib/libpthread.so.0 + 0x6532 ]

    address : <0x03784740> [ spacedream + 0x740 ]

    address : <0x001f21e0> [ /lib/libc.so.0 + 0x321e0 ]

    address : <0x008f6532> [ /lib/libpthread.so.0 + 0x6532 ]

    address : <0x001dc1b6> [ /lib/libc.so.0 + 0x1c1b6 ]

    address : <0x001dc1b6> [ /lib/libc.so.0 + 0x1c1b6 ]

    address : <0x001dc1b6> [ /lib/libc.so.0 + 0x1c1b6 ]

    address : <0x001dc028> [ /lib/libc.so.0 + 0x1c028 ]

    address : <0x008cd3e0> [ /usr/lib/libdirect-1.2.so.0 + 0xd3e0 ]

    address : <0x008ebe1e> [ /usr/lib/libfusion-1.2.so.0 + 0x3e1e ]

    address : <0x008ebe2a> [ /usr/lib/libfusion-1.2.so.0 + 0x3e2a ]

    address : <0x008f6532> [ /lib/libpthread.so.0 + 0x6532 ]

    address : <0x008f6158> [ /lib/libpthread.so.0 + 0x6158 ]

    address : <0x001f20d4> [ /lib/libc.so.0 + 0x320d4 ]

    address : <0x009d9f64> [ /usr/lib/libdirectfb-1.2.so.0 + 0x59f64 ]

   frame  3 : <0x009ce9dc> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4e9dc ]

   frame  4 : <0x009bda3a> [ /usr/lib/libdirectfb-1.2.so.0 + 0x3da3a ]

    address : <0x009cfb4e> [ /usr/lib/libdirectfb-1.2.so.0 + 0x4fb4e ]

   frame  5 : <0x009bd680> [ /usr/lib/libdirectfb-1.2.so.0 + 0x3d680 ]

    address : <0x008f6158> [ /lib/libpthread.so.0 + 0x6158 ]

   frame  6 : <0x008eacb4> [ /usr/lib/libfusion-1.2.so.0 + 0x2cb4 ]

    address : <0x009bd430> [ /usr/lib/libdirectfb-1.2.so.0 + 0x3d430 ]

   frame  7 : <0x009bd454> [ /usr/lib/libdirectfb-1.2.so.0 + 0x3d454 ]

   frame  8 : <0x0099029e> [ /usr/lib/libdirectfb-1.2.so.0 + 0x1029e ]

    address : <0x024a614c> [ /lib/ld-uClibc.so.0 + 0x614c ]

   frame  9 : <0x008e553a> [ /usr/bin/spacedream + 0x153a ]

    address : <0x024a3d9a> [ /lib/ld-uClibc.so.0 + 0x3d9a ]

    address : <0x024a601a> [ /lib/ld-uClibc.so.0 + 0x601a ]

    address : <0x024a614c> [ /lib/ld-uClibc.so.0 + 0x614c ]

   frame 10 : <0x001f6b82> [ /lib/libc.so.0 + 0x36b82 ]

   frame 11 : <0x008e4dc6> [ /usr/bin/spacedream + 0xdc6 ]

    address : <0x008e4d9c> [ /usr/bin/spacedream + 0xd9c ]

hread: Started 'VT Switcher' (237) [CRITICAL OTHER/OTHER 0/0] <12288>...

[  231:    0.000] --> Caught signal 4 (at 0x37d20cc, illegal opcode) <--

Illegal instruction

 

QuoteReplyEditDelete

 

 

2009-03-25 18:33:07     Re: Problem with DirectFB

Mike Frysinger (UNITED STATES)

Message: 71558   

 

what application ?  does the directfb tests work for you ?

QuoteReplyEditDelete

 

 

2009-03-25 19:19:39     Re: Problem with DirectFB

Alexander Buryak (UKRAINE)

Message: 71559   

 

spacedream

 

But all demo application is crashed with this error (df_dok  and other).Uclinux is latest from SVN.May be configuration is incorrect.But a can't find information what drivers should be included in kernel or libs installed for DirectFB.Framebuffer device works fine.I can play video with mplayer,some sdl examples runs.Also QT applications is crashed with bus error or undefined instruction.

 

 

QuoteReplyEditDelete

 

 

2009-03-25 19:32:46     Re: Problem with DirectFB

Mike Frysinger (UNITED STATES)

Message: 71560   

 

DirectFB is picky about the frame buffer device.  have you tried reading the documentation ?

 

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:directfb

QuoteReplyEditDelete

 

 

2009-03-25 20:29:49     Re: Problem with DirectFB

Alexander Buryak (UKRAINE)

Message: 71562   

 

Where I can find examles for /etc/directfbrc and /etc/fb.modes  for blackfin?

 

 

QuoteReplyEditDelete

 

 

2009-03-25 22:10:56     Re: Problem with DirectFB

Mike Frysinger (UNITED STATES)

Message: 71566   

 

the BF548-EZKIT and BF527-EZKIT install directfbrc files for their framebuffers

QuoteReplyEditDelete

 

 

2009-04-01 19:24:03     Re: Problem with DirectFB

Alexander Buryak (UKRAINE)

Message: 71983   

 

With /etc/directfbrc

 

mode=240x320

depth=16

pixelformat=RGB16

no-vt-switch

no-vt-switching

no-graphics-vt

no-vt

#system=fbdev

system=sdl

 

 

df_dok application works fine. I think example of this config  can be added in doc.

 

But if  system=fbdev   not works.

Something is wrong with DirectFB configuration scripts.To compile this library with freetype and libpng I need to run :

 

make lib/DirectFB/_only  liLIBPNG_CONFIG=/uclinux-dist/staging/usr/bin/libpng-config12  FREETYPE_CONFIG=/uclinux-dist/staging/usr/bin/freetype-config

 

 

QuoteReplyEditDelete

 

 

2009-04-01 21:38:16     Re: Problem with DirectFB

Mike Frysinger (UNITED STATES)

Message: 71988   

 

you're going to have to post real information.  build works fine for me with freetype/libpng in svn trunk.

Attachments

    Outcomes