LearnerMan wrote:
> hi, I am running an application on a TI Davinci platform. I installed
> directfb using the follwing configure command:
> ./configure --with-gfxdrivers=davinci --disable-x11 --exec-prefix=/usr
>
> But (after inserting debug code into the davinci driver code) when I run my
> applicaton I see that the function driver_probe(...) in davinci_gfxdriver.c
> always returns 0 due to the following:
>
> switch (dfb_system_type())
> {
> case CORE_DEVMEM:
> break;
> case CORE_TI_CMEM:
> break;
> default:
> return 0;
> }
>
> I need this to 'not' return 0 as I wish to continue and open up both fb0 and
> fb2 in driver_init_driver.
>
> My question is how can I get directfb to recognise that my platform is
> CORE_DEVMEM or CORE_TI_CMEM? Do I need to change a config file or
> something?
How much memory does your board have?
The following is presuming 128MB, which also works if you have 256MB.
You need to change your kernel command line to reserve memory for the devmem
system module.
E.g. add "mem=80M" to the kernel command line and create a directfbrc with the
following:
system = devmem # select 'devmem' system module
video-phys = 85000000 # 0x80000000 + 80MB offset
video-length = 16777216 # 16MB for acceleration and ARGB OSD dithering
accelerator = 6400 # disable probing in davinci driver
The DSP firmware is still not available, but it would use memory at
0x8e000000-0x8fffffff
which also works on 128MB systems effectively using 0x86000000-0x87ffffff.
Unfortunately, the success depends on the frame buffer driver. I've seen a hand
full of
different versions with different configurations, not only in the size if the
frame buffer
devices, but also the numbering of those. The size of frame buffer devices
should be checked,
especially the OSD1 might be too small for all resolutions (buggy driver). The
numbering of
the devices has to match the definitions in gfxdrivers/davinci/davincifb.h
(OSD0,OSD1,...).
Let me know if you or your company is interested in licensing for acceleration
and MPEG2
decoding. Further codecs are going to be implemented soon.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev