2008-06-26 12:21:28 Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 57929
Hello -
I am currently trying to compile Links 2,0 (graphics enabled) for the BF548 EZKIT Lite. After days of fiddling with the thing, I have gotten past linking against libpng. (That really had me in a bind for a while.) Now that I've gotten past that, I'm getting stuck with "config: error: No graphics drivers found." I don't have any ideas on this one.
If anyone has any experience building graphics enabled links for the BF548 and could point me in the right direction, it would be greatly appreciated!
Thanks in advance -
Caleb
QuoteReplyEditDelete
2008-06-26 12:52:47 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 57930
we've already integrated links into our distribution
please see: http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:browsers#links1
QuoteReplyEditDelete
2008-06-26 13:32:48 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 57932
I must be downloading the wrong file then. I have downloaded the following:
http://blackfin.uclinux.org/gf/download/frsrelease/378/4236/linux-bf548-ezkit-2008R1-RC8
then tftp'd it to the device and ran bootelf.
Apparently, that isn't what I'm supposed to be downloading. Should I be looking elsewhere?
Thanks -
Caleb
QuoteReplyEditDelete
2008-06-26 14:05:23 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 57933
that is just the default image. we dont include a lot of things in the default image as it would make it prohibitively large.
QuoteReplyEditDelete
2008-07-03 08:22:33 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58269
Thanks for your help, and I apologize for my delayed response.
I got the source from your website and built the kernel / vendor apps to include links. However, when I deploy uClinux to our BF548 and try to run links in graphics-enabled mode, I receive the following error:
root:/> links -g
=======================| DirectFB 1.1.1 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2008-07-02 18:01)
DirectFB/core/system: No system found!
Could not initialize any graphics driver. Tried the following drivers:
directfb:
No (suitable) implementation found!
Any help in resolving this would be greatly appreciated.
Thanks again -
Caleb
QuoteReplyEditDelete
2008-07-03 08:30:30 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58271
did you enable and load the framebuffer driver ?
QuoteReplyEditDelete
2008-07-03 08:59:02 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58274
If it isn't enabled by default, then no - I didn't enable it. How do I enable it? (Please forgive my ignorance - I have very little experience with linux and absolutely none in building a kernel from scratch).
QuoteReplyEditDelete
2008-07-03 09:09:18 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58275
just look at the lcd once you've booted into linux ... if it's black, your driver isnt loaded
in that case, please review:
http://docs.blackfin.uclinux.org/doku.php?id=sharp_lq043t1dg01
QuoteReplyEditDelete
2008-07-03 09:15:05 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58276
I must be loading it then. I get the kernel messages, followed by the linux penguin image in the top left. I can pipe output to /dev/tty0 and it shows up. I can also run the /bin/video_test app and that displays on the screen as well.
QuoteReplyEditDelete
2008-07-03 09:43:44 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58277
you're probably building for FLAT. make sure your local tree has this fix:
QuoteReplyEditDelete
2008-07-03 09:47:57 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58278
it already had the fix.
QuoteReplyEditDelete
2008-07-03 13:43:45 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58285
it would appear DirectFB does not work as FLAT. build your system as FDPIC.
QuoteReplyEditDelete
2008-07-03 14:56:06 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58288
I will give it a try and let you know how it goes. Thanks again for your help - I really appreciate it.
QuoteReplyEditDelete
2008-07-03 15:28:19 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58289
Success!!
Thanks a ton!!
QuoteReplyEditDelete
2008-07-09 08:28:00 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58531
Back for round two.
Now that I've gotten graphics-enabled links working on the BF548 - I've been assigned the task of doing the same on the BF527. I've made lots of progress, but am starting to wonder whether or not graphics-enabled links is a possibility on this device... which is why I'm here. I don't want to spend a week trying to get it to work if it's not supported. Which leads me to my question: is graphics-enabled links supported on the BF527 EZKIT? Posted below is the last bit of the output I was able to capture from the device, if it's at all useful:
(*) FBDev/Mode: Preparing switch to 320x240 RGB24
(*) FBDev/Surface: Allocated 320x240 24bit RGB24 buffer at offset 0 and pitch 96
0.
(*) FBDev/Mode: (Post)Setting 320x240 RGB24
DirectFB/FBDev: Unsupported pixelformat: rgba 8/0, 8/8, 8/16, 0/0 (24bit)
(!!!) *** WARNING [unknown format] *** [../../../DirectFB-1.1.1/systems/fbdev/
fbdev.c:1900 in dfb_fbdev_set_mode()]
Core/LayerRegion: realize_region() in dfb_layer_region_flip_update() failed!
--> Not supported!
(*) FBDev/Mode: Testing 320x240 RGB24
(*) FBDev/Mode: Preparing switch to 320x240 RGB24
[ 171: 0.000] --> Caught signal 11 (unknown origin) <--
(!!!) *** WARNING [still objects in 'Layer Region Pool'] *** [../../../DirectF
B-1.1.1/lib/fusion/object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Context Pool'] *** [../../../Direct
FB-1.1.1/lib/fusion/object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Surface Pool'] *** [../../../DirectFB-1.1
.1/lib/fusion/object.c:241 in fusion_object_pool_destroy()]
Abort
Any and all help is greatly appreciated.
Thanks,
Caleb
QuoteReplyEditDelete
2008-07-09 08:57:50 Re: Compile Links 2 for BF548
Robin Getz (UNITED STATES)
Message: 58535
Caleb:
Can you check that /etc/directfbrc is installed, and seems to work OK?
Can you run the other directfb applications? or do you get the same thing?
QuoteReplyEditDelete
2008-07-09 09:07:23 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58536
Robin -
Thanks for the quick reply.
/etc/directfbrc is an ASCII text file containing the following:
mode=320x240
depth=24
pixelformat=RGB24
As for other directfb applications - I'm not sure. I've been unable to build any of the directfb examples (for either device, actually) - but the canned /bin/video_test demo does work, if that's of any consequence.
QuoteReplyEditDelete
2008-07-09 09:31:41 Re: Compile Links 2 for BF548
Robin Getz (UNITED STATES)
Message: 58540
Caleb:
You should just be able to select "DirectFB Examples", and get a bunch of things in /usr/bin
Doesn't that work for you?
QuoteReplyEditDelete
2008-07-09 09:41:42 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58545
Robin -
Sadly, no, that doesn't work for me. My build always fails when I include the DirectFB Examples for either the BF548 or BF527 devices. If you think it would help, I can rebuild and provide you with messages from the points of failure.
Thanks again -
Caleb
QuoteReplyEditDelete
2008-07-09 11:34:10 Re: Compile Links 2 for BF548
Robin Getz (UNITED STATES)
Message: 58562
Caleb:
If you could - it would be great - if you can post the error - I can fix it.
-Robin
QuoteReplyEditDelete
2008-07-09 11:39:03 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58564
Robin -
Sure thing. It should take about 25 to 30 minutes or so.
Thanks for your help!
QuoteReplyEditDelete
2008-07-09 11:53:39 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58566
Didn't take as long as I thought it would to get the linux box up and running.
Here is the result of the build:
make[2]: Entering directory `/home/caleb/uclinux/bf527/uClinux-dist-2008R1-RC8/user/DirectFB-examples'
for i in df_andi df_bltload df_drivertest df_cpuload df_databuffer df_dok df_fire \
df_flip df_fonts df_input df_joystick df_layer df_matrix df_netload \
df_dioload df_palette df_particle df_porter df_video df_video_particle \
df_stress df_texture df_window pss; \
do \
romfs-inst.sh -d build-DirectFB-examples-1.0.1/src/$i /usr/bin/$i; \
done;
romfs-inst.sh -d build-DirectFB-examples-1.0.1/src/df_knuckles/df_knuckles /usr/bin/df_knuckles
romfs-inst.sh -d build-DirectFB-examples-1.0.1/src/spacedream/spacedream /usr/bin/spacedream
romfs-inst.sh -d build-DirectFB-examples-1.0.1/src/df_neo/df_neo /usr/bin/df_neo
romfs-inst.sh -d DirectFB-examples-1.0.1/data /usr/share/directfb-examples
2042 blocks
romfs-inst.sh -d /usr/share/directfb-examples/fonts
cp: cannot stat `fonts': No such file or directory
make[2]: *** [romfs] Error 1
make[2]: Leaving directory `/home/caleb/uclinux/bf527/uClinux-dist-2008R1-RC8/user/DirectFB-examples'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory `/home/caleb/uclinux/bf527/uClinux-dist-2008R1-RC8/user'
make: *** [romfs.subdirs] Error 1
QuoteReplyEditDelete
2008-07-09 21:28:20 Re: Compile Links 2 for BF548
Robin Getz (UNITED STATES)
Message: 58574
Caleb:
I think that has been fixed on the branch and on trunk.
Look at r6435 in svn
rgetz@imhotep:~/blackfin/releases/2008R1/uClinux-dist/user/DirectFB-examples> svn log Makefile
------------------------------------------------------------------------
r6435 | rgetz | 2008-03-19 17:09:36 -0400 (Wed, 19 Mar 2008) | 2 lines
[#2424] the fonts directory needs to be created
-Robin
QuoteReplyEditDelete
2008-07-10 08:27:44 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58618
Robin -
That worked and I was able to build the DirectFB examples. I tried about five of them and they all end in the exact same message. Any ideas?
Thanks -
Caleb
QuoteReplyEditDelete
2008-07-14 11:03:55 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58762
We're still researching on our end what the cause(s) may be. We've not been successful. This is a pretty big hang-up for us. Any ideas on your end?
Thanks -
Caleb
QuoteReplyEditDelete
2008-07-15 21:38:44 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58884
the framebuffer driver for the BF527-EZKIT operates in a video mode that DirectFB does not currently support
QuoteReplyEditDelete
2008-07-15 21:54:53 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58885
so if you dont care about color correctness and want to just prove things out, you can just do:
--- a/drivers/video/bfin-t350mcqb-fb.c
+++ b/drivers/video/bfin-t350mcqb-fb.c
@@ -486,9 +486,9 @@ static int __init bfin_t350mcqb_probe(struct platform_device *pdev)
fbinfo->var.yres_virtual = LCD_Y_RES;
fbinfo->var.bits_per_pixel = LCD_BPP;
- fbinfo->var.red.offset = 0;
+ fbinfo->var.red.offset = 16;
fbinfo->var.green.offset = 8;
- fbinfo->var.blue.offset = 16;
+ fbinfo->var.blue.offset = 0;
fbinfo->var.transp.offset = 0;
fbinfo->var.red.length = 8;
fbinfo->var.green.length = 8;
QuoteReplyEditDelete
2008-07-16 11:07:57 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 58960
Ok. Any estimates on when it may be supported?
(Your suggestion worked, also.)
Thanks for your help, it's been greatly appreciated.
- Caleb
QuoteReplyEditDelete
2008-07-16 21:13:36 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 58976
the limitation is in DirectFB which we dont develop, so there is no timeframe or plans currently
QuoteReplyEditDelete
2008-07-17 10:37:31 Re: Compile Links 2 for BF548
Caleb Payne (UNITED STATES)
Message: 59019
Thanks for the info;
Would you happen to know who is developing DirectFB?
QuoteReplyEditDelete
2008-07-17 20:45:17 Re: Compile Links 2 for BF548
Mike Frysinger (UNITED STATES)
Message: 59033
QuoteReplyEditDelete
2008-12-12 14:52:10 Re: Compile Links 2 for BF548
Nikolay Chokoev (IRELAND)
Message: 66666
the limitation is in DirectFB which we dont develop, so there is no timeframe or plans currently
---
Hi Mike,
Do you know what exact is the limitation in DirectFB?
Is it possible the framebuffer of BF527 EZKIT to be changed to support directFB requirement (workaround the limitation)?
Regards,
Nikolay