2010-07-26 07:49:16     Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

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

2010-07-26 07:49:16     Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

Moses K (UNITED STATES)

Message: 91726   

 

We are trying to port direct-fb (1.2.7 ver) on to BF527 EzKit.

In the process, we have enabled direct-fb build options in the kernel library configuration

and built. We have ftp'ed the direct-fb examples as available in /user/DirectFB-examples-1.0.1

 

While running a sample on the target, we are getting the below exception:

(*) DirectFB/Core: Single Application Core. (2010-07-26 09:27)

(*) DirecJ/Turmadp  tattod  VN UwiLchLr  (a8d) dCrITeCsL sTH

/DTHeRf0/e]rred Exception context

CURRENT PROCESS:

COMM=df_dok PID=379

 

[Pl refer to log file for complete dump]

 

Image used: uImage-bf527-ezkit-2009R1.1-RC4

Linux version 2.6.28.10-ADI-2009R1.1

 

Please provide some pointers/solutions on solving this issue.

 

dfb_ezkit.txt

QuoteReplyEditDelete

 

 

2010-07-26 09:56:09     Re: Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

Mike Frysinger (UNITED STATES)

Message: 91728   

 

you need to look at the kernel buffer via `dmesg` in order to get an unmangled log

 

we simply upgraded to a newer version of DirectFB (like the 1.4.x series) to fix the crashes we were seeing with 1.2.x

QuoteReplyEditDelete

 

 

2010-07-27 02:49:00     Re: Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

Moses K (UNITED STATES)

Message: 91752   

 

Hi,

 

The latest distribution 2009R1.1-RC4 still contains DirectFb-1.2.7. Shall i use the upstream version DirectFB-1.4.3?

 

-Moses

QuoteReplyEditDelete

 

 

2010-07-27 03:44:06     Re: Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

Mike Frysinger (UNITED STATES)

Message: 91764   

 

you're free to do whatever you like

 

we've updated trunk to 1.4.3 long ago

QuoteReplyEditDelete

 

 

2010-07-27 05:22:11     Re: Issue in direct-fb porting onto ADSP-BF527 reference EzKit - reg

Moses K (UNITED STATES)

Message: 91769   

 

Hi,

 

I have used the DirectFB 1.4.3 and i did not get any crashes as eariler. But i got the mmap allocation problem.

 

Where could be the problem?

 

Please refer the log.

 

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

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

 

(*) DirectFB/Core: Single Application Core. (2010-07-27 08:43)

(*) Direct/Thread: Started 'VT SwitcChimei lcd released

her' (316) [CRITICAL OTHER/OTHER 0/0] <12288>...

(*) Direct/Thread: Started 'VT Flusher' (317) [DEFAULT OTHER/OTHER 0/0] <12288>...

(*) DirectFB/FBDev: Found 'bfin-chimei' (ID 0) with frame buffer at 0x00c04380, 225k (MMIO 0x00000000, 0k)

DirectFB/FBDev: Could not mmap the framebuffer!

    --> No such device

DirectFB/Core: Could not initialize 'system_core' core!

    --> Initialization error!

../../DirectFB-examples-1.0.1/src/df_drivertest.c <78>:

        (#) DirectFBError [DirectFBCreate( &dfb )]: Initialization error!

QuoteReplyEditDelete

 

 

2010-07-27 05:36:38     Re: Issue in direct-fb porting onto ADSP-BF527reference EzKit - reg

Michael Hennerich (GERMANY)

Message: 91770    What kernel version are you using?

 

Either apply something similar to hackish DirectFB-1.1.1-fbdev-mmap-private.patch

(take a look at the 2009R1 lib/DirectFB/patches)

 

In case you are using trunk kernel.

Simply remove the fb_mmap function from struct fb_ops.

Fbdev will then use get_unmapped_area.

 

Take a look at trunk arch/Blackfin/include/asm/pgtable.h:

 

/* provide a special get_unmapped_area for framebuffer mmaps of nommu */

extern unsigned long get_fb_unmapped_area(struct file *filp, unsigned long,

unsigned long, unsigned long,

unsigned long);

QuoteReplyEditDelete

 

 

2010-07-28 00:38:51     Re: Issue in direct-fb porting onto ADSP-BF527reference EzKit - reg

Moses K (UNITED STATES)

Message: 91798   

 

Hi,

 

I have applied DirectFB-1.1.1-fbdev-mmap-private.patch. In that, mmap is replaced with do_mmap call, which is giving the compilation error. Please refer the following log.

 

I am using linux version: Linux version 2.6.28.10-ADI-2009R1

 

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c: In function âsystem_initializeâ:

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c:511: error: implicit declaration of function âdo_mmapâ

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c:514: warning: assignment makes pointer from integer without a cast

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c: In function âsystem_joinâ:

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c:681: warning: assignment makes pointer from integer without a cast

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c: In function âsystem_map_mmioâ:

../../../DirectFB-1.4.3/systems/fbdev/fbdev.c:839: warning: assignment makes pointer from integer without a cast

 

 

I have tried to inlude <linux/mm.h> and in that this do_mmap is declared as static. I could not use that.

 

Where the prototype is declared? And libfor do_mmap is located? Whether it will support nommu?

QuoteReplyEditDelete

 

 

2010-07-28 00:41:45     Re: Issue in direct-fb porting onto ADSP-BF527reference EzKit - reg

Mike Frysinger (UNITED STATES)

Message: 91799   

 

it's a custom local function in the patch.  review the actual change.

QuoteReplyEditDelete

 

 

2010-07-28 05:01:30     Re: Issue in direct-fb porting onto ADSP-BF527reference EzKit - reg

Moses K (UNITED STATES)

Message: 91808   

 

Hi,

 

Thanks for your quick response. I have done that patch and compiled directfb-1.4.3 lib seperatly.

 

I have booted the ezkit with uImage-bf527-ezkit-2009R1.1-RC4 binary image, downloaded the lib and directfb examples in target, run the 'df_dok' executable. But it got crashed. I have attached trace also. The result is same behavior like directfb-1.2.7.

 

Where could be the problem?

 

ezkit-dfb-1.4.3.txt

QuoteReplyEditDelete

 

 

2010-07-30 02:36:12     Re: Issue in direct-fb porting onto ADSP-BF527reference EzKit - reg

Moses K (UNITED STATES)

Message: 91902   

 

Hi,

 

Any updates?

 

Can u share where i can look into get it solved?

Outcomes